/* =========================================================
   DEMEX MEDICAL · CONTACTO · V1 (27-07-2026)
   ---------------------------------------------------------
   MISMO PATRON QUE NOSOTROS/PUNTOS DE VENTA: CSS APARTE (NO EN
   EL CONTENIDO DE LA PAGINA) PARA QUE WORDPRESS NO LO REFORMATEE.
   ========================================================= */
.dmx14-home{
  --dmx14-primary:#102A43; --dmx14-primary-2:#163957; --dmx14-blue:#2F5D8A;
  --dmx14-accent:#5E8E4A; --dmx14-accent-2:#4C7A3B; --dmx14-dark:#181C22;
  --dmx14-text:#243345; --dmx14-muted:#677487; --dmx14-line:#DDE5EE;
  --dmx14-bg:#F6F8FB; --dmx14-white:#FFFFFF; --dmx14-soft-blue:#EAF1F8;
  --dmx14-soft-green:#EDF5E8; --dmx14-sale:#C0463B;
  --dmx14-shadow:0 18px 45px rgba(16,42,67,.08);
  --dmx14-font-display:'Fraunces', Georgia, 'Times New Roman', serif;
  --dmx14-font-body:'Montserrat', Arial, sans-serif;
}
.dmx14-home,.dmx14-home *{box-sizing:border-box}
.dmx14-home{
  position:relative !important;left:auto !important;
  margin-left:calc(-50vw + 50%) !important;margin-right:calc(-50vw + 50%) !important;overflow-x:hidden !important;
  font-family:var(--dmx14-font-body);color:var(--dmx14-text);background:#fff;
}
.dmx14-home a{text-decoration:none !important;color:inherit}
.dmx14-home h1,.dmx14-home h2,.dmx14-home h3,.dmx14-home h4{font-feature-settings:"liga" 1,"kern" 1;font-variant-ligatures:common-ligatures;text-rendering:optimizeLegibility;font-synthesis:none}
.dmx14-container{width:100%;max-width:1180px;margin:0 auto;padding-left:clamp(18px,4vw,56px);padding-right:clamp(18px,4vw,56px)}
html, body{overflow-x:hidden !important}
.dmx14-section{padding:56px 0 64px;background:#fff}

/* ENCABEZADO (COPIA DEL PATRON DE NOSOTROS) */
.dmx14-ct-hero{border-radius:20px;border:1px solid var(--dmx14-line);background:linear-gradient(135deg,#F8FAFC 0%,var(--dmx14-soft-blue) 52%,var(--dmx14-soft-green) 100%);padding:48px;box-shadow:var(--dmx14-shadow);text-align:center}
.dmx14-ct-hero h1{margin:14px 0 0;font-family:var(--dmx14-font-display);color:var(--dmx14-primary);font-size:clamp(32px,3.4vw,54px);line-height:1.05;font-weight:600;letter-spacing:-.5px}
.dmx14-ct-hero p{margin:16px auto 0;color:var(--dmx14-muted);font-size:16px;line-height:1.75;font-weight:500;max-width:640px}
.dmx14-kicker-light{display:inline-flex;align-items:center;gap:9px;padding:10px 15px;border-radius:999px;background:#fff;border:1px solid var(--dmx14-line);color:var(--dmx14-accent);font-size:12px;font-weight:800;letter-spacing:1.5px;text-transform:uppercase}

/* 2 COLUMNAS: MEDIOS DE CONTACTO + VISITANOS */
.dmx14-ct-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:32px}
.dmx14-ct-card{background:#fff;border:1px solid var(--dmx14-line);border-radius:22px;padding:36px;box-shadow:0 14px 34px rgba(16,42,67,.05)}
.dmx14-ct-card h3{margin:0 0 8px;font-family:var(--dmx14-font-display);color:var(--dmx14-primary);font-size:24px;font-weight:600;letter-spacing:-.2px}
.dmx14-ct-card > p{margin:0 0 22px;color:var(--dmx14-muted);font-size:15px;line-height:1.65;font-weight:500}

/* LISTA DE TELEFONOS Y CORREOS */
.dmx14-ct-list{list-style:none;margin:0 0 26px;padding:0;display:flex;flex-direction:column;gap:4px}
.dmx14-ct-list li{display:flex;align-items:center;gap:14px}
.dmx14-ct-list a{display:block;padding:12px 4px;color:var(--dmx14-text);font-size:15px;font-weight:600;border-bottom:1px solid var(--dmx14-line);flex:1 1 auto;transition:color .2s ease}
.dmx14-ct-list li:last-child a{border-bottom:none}
.dmx14-ct-list a:hover{color:var(--dmx14-blue)}
.dmx14-ct-icon{flex:0 0 auto;width:38px;height:38px;border-radius:50%;background:var(--dmx14-soft-blue);color:var(--dmx14-primary);display:flex;align-items:center;justify-content:center}
.dmx14-ct-icon svg{width:18px;height:18px}

/* BOTON WHATSAPP DENTRO DE LA TARJETA */
.dmx14-ct-wa-btn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;padding:15px 20px;border-radius:14px;background:#25D366;color:#fff !important;font-size:15px;font-weight:700;box-shadow:0 12px 26px rgba(37,211,102,.28);transition:transform .2s ease,box-shadow .2s ease}
.dmx14-ct-wa-btn svg{width:22px;height:22px;flex:0 0 auto}
.dmx14-ct-wa-btn:hover{transform:translateY(-2px);box-shadow:0 16px 32px rgba(37,211,102,.36)}

/* DIRECCION Y MAPA */
.dmx14-ct-address{display:flex;align-items:center;gap:14px;margin-bottom:18px;color:var(--dmx14-text);font-size:15px;font-weight:600;transition:color .2s ease}
.dmx14-ct-address:hover{color:var(--dmx14-blue)}
.dmx14-ct-map{border-radius:16px;overflow:hidden;border:1px solid var(--dmx14-line);box-shadow:0 10px 26px rgba(16,42,67,.06);margin-bottom:26px}
.dmx14-ct-map iframe{display:block;width:100%;height:260px;border:0}

/* REDES SOCIALES */
.dmx14-ct-follow-title{margin:0 0 14px;font-family:var(--dmx14-font-display);color:var(--dmx14-primary);font-size:17px;font-weight:600}
.dmx14-ct-social{display:flex;gap:12px}
.dmx14-ct-social a{width:44px;height:44px;border-radius:50%;background:var(--dmx14-soft-green);color:var(--dmx14-accent-2);display:flex;align-items:center;justify-content:center;transition:background .2s ease,color .2s ease,transform .2s ease}
.dmx14-ct-social a svg{width:19px;height:19px}
.dmx14-ct-social a:hover{background:var(--dmx14-accent-2);color:#fff;transform:translateY(-2px)}

/* =========================================================
   FORMULARIO — CONTENEDOR
   ========================================================= */
.dmx14-ct-form-wrap{margin-top:40px;background:linear-gradient(120deg,var(--dmx14-primary) 0%,var(--dmx14-primary-2) 60%,var(--dmx14-accent-2) 150%);border-radius:26px;padding:48px;box-shadow:0 20px 50px rgba(16,42,67,.18)}
.dmx14-ct-form-head{text-align:center;margin-bottom:30px}
.dmx14-ct-form-head h2{margin:0 0 8px;font-family:var(--dmx14-font-display);color:#fff;font-size:clamp(24px,2.4vw,32px);font-weight:600;letter-spacing:-.3px}
.dmx14-ct-form-head p{margin:0;color:#D9E6F2;font-size:15px;font-weight:500}

/* =========================================================
   FORMULARIO — SOBREESCRITURA DEL PLUGIN WPFORMS
   (mismo formulario e ID de siempre, solo se le cambia el look)
   ========================================================= */
.dmx14-ct-form .wpforms-container{max-width:640px;margin:0 auto}
.dmx14-ct-form .wpforms-field-container{background:#fff;border-radius:20px;padding:32px;box-shadow:0 14px 34px rgba(16,42,67,.14)}
.dmx14-ct-form .wpforms-field{margin-bottom:18px !important;padding:0 !important}
.dmx14-ct-form .wpforms-field-label{color:var(--dmx14-primary) !important;font-family:var(--dmx14-font-body) !important;font-size:13.5px !important;font-weight:700 !important;margin-bottom:8px !important}
.dmx14-ct-form .wpforms-required-label{color:var(--dmx14-sale) !important}
.dmx14-ct-form .wpforms-field-sublabel{color:var(--dmx14-muted) !important;font-size:12px !important;font-weight:500 !important}
.dmx14-ct-form input[type=text],
.dmx14-ct-form input[type=email],
.dmx14-ct-form input[type=tel],
.dmx14-ct-form textarea{
  width:100% !important;padding:13px 16px !important;border-radius:12px !important;
  border:1px solid var(--dmx14-line) !important;background:var(--dmx14-bg) !important;
  color:var(--dmx14-text) !important;font-family:var(--dmx14-font-body) !important;
  font-size:15px !important;font-weight:500 !important;transition:border-color .2s ease,background .2s ease;
}
.dmx14-ct-form input:focus,
.dmx14-ct-form textarea:focus{outline:none !important;border-color:var(--dmx14-blue) !important;background:#fff !important}
.dmx14-ct-form textarea{min-height:120px !important;resize:vertical}
.dmx14-ct-form .wpforms-field-row{gap:14px}
.dmx14-ct-form .wpforms-field-hp{display:none !important}
.dmx14-ct-form .wpforms-submit-container{margin-top:6px !important;text-align:center}
.dmx14-ct-form button.wpforms-submit{
  width:100%;padding:16px 20px !important;border-radius:14px !important;border:0 !important;
  background:var(--dmx14-accent-2) !important;color:#fff !important;font-family:var(--dmx14-font-body) !important;
  font-size:15px !important;font-weight:700 !important;letter-spacing:.2px;cursor:pointer;
  box-shadow:0 14px 30px rgba(16,42,67,.2);transition:transform .2s ease,box-shadow .2s ease;
}
.dmx14-ct-form button.wpforms-submit:hover{transform:translateY(-2px);box-shadow:0 18px 36px rgba(16,42,67,.26)}
.dmx14-ct-form .wpforms-error-noscript{display:none !important}

/* WHATSAPP FLOTANTE (COPIA EXACTA DEL RESTO DEL SITIO) */
.dmx14-whatsapp{position:fixed;right:22px;bottom:22px;z-index:9999;width:42px;height:42px;display:flex;align-items:center;justify-content:center;background:transparent !important;border:none !important;box-shadow:none !important;padding:0 !important}
.dmx14-whatsapp svg{width:42px;height:42px;display:block}

/* ACCESIBILIDAD Y APARICION SUAVE (COPIA EXACTA) */
.dmx14-home a:focus-visible,.dmx14-home button:focus-visible{outline:3px solid var(--dmx14-blue);outline-offset:3px;border-radius:6px}
@media(prefers-reduced-motion:reduce){.dmx14-home *,.dmx14-home *::before,.dmx14-home *::after{transition-duration:.01ms !important;animation-duration:.01ms !important}}
.dmx14-reveal{opacity:0;transform:translateY(18px);transition:opacity .6s ease,transform .6s ease}
.dmx14-reveal.dmx14-visible{opacity:1;transform:none}

@media(max-width:900px){
  .dmx14-ct-grid{grid-template-columns:1fr}
  .dmx14-ct-form-wrap{padding:32px 22px}
}
@media(max-width:680px){
  .dmx14-container{padding-left:16px;padding-right:16px}
  .dmx14-ct-hero{padding:28px 22px;border-radius:24px}
  .dmx14-ct-card{padding:26px 22px}
  .dmx14-ct-form .wpforms-field-container{padding:22px}
  .dmx14-ct-form .wpforms-field-row{flex-direction:column}
}
