/* Aviso de cookies y mapa de Exolution. Colores tomados de la web de cada cliente vía variables. */
:root { --exo-accent: #7a3e8f; --exo-accent-fg: #ffffff; --exo-bg: #ffffff; --exo-fg: #2b2b2b; --exo-line: #e4e0e8; }
.exo-consent {
  position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 2147483000;
  max-width: 760px; margin: 0 auto; background: var(--exo-bg); color: var(--exo-fg);
  border: 1px solid var(--exo-line); border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,.18);
  padding: 16px 18px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  font: 15px/1.45 inherit;
}
.exo-consent-text { flex: 1 1 320px; min-width: 0; }
.exo-consent-text strong { display: block; margin-bottom: 4px; font-size: 16px; }
.exo-consent-text p { margin: 0; padding: 0; }
.exo-consent-text a { color: var(--exo-accent); text-decoration: underline; }
.exo-consent-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.exo-btn {
  appearance: none; cursor: pointer; border-radius: 6px; padding: 9px 18px; font: 600 14px/1.2 inherit;
  border: 1px solid var(--exo-accent); background: var(--exo-bg); color: var(--exo-accent);
}
.exo-btn-accept { background: var(--exo-accent); color: var(--exo-accent-fg); }
.exo-btn:focus-visible { outline: 3px solid var(--exo-accent); outline-offset: 2px; }

.exo-map-container { width: 100%; }
.exo-map { width: 100%; }
.exo-map-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.exo-map-tabs button {
  appearance: none; cursor: pointer; border: 1px solid var(--exo-line); background: var(--exo-bg); color: var(--exo-fg);
  border-radius: 6px; padding: 7px 12px; font: 600 13px/1.2 inherit;
}
.exo-map-tabs button[aria-pressed="true"] { border-color: var(--exo-accent); color: var(--exo-accent); }
.exo-map-view { width: 100%; height: 440px; border-radius: 6px; overflow: hidden; background: #f2f0f4; }
.exo-map-view iframe { width: 100%; height: 100%; border: 0; display: block; }
.exo-map-caption { margin: 8px 0 0; padding: 0; font-size: 14px; color: var(--exo-fg); }
.exo-map-off { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; text-align: center; color: var(--exo-fg); }
.exo-map-off p { margin: 0; padding: 0; max-width: 46ch; }
.exo-map-off a { color: var(--exo-accent); }
.exo-cookie-table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 14px; }
.exo-cookie-table th, .exo-cookie-table td { border: 1px solid var(--exo-line); padding: 8px 10px; text-align: left; vertical-align: top; }
@media (max-width: 600px) { .exo-map-view { height: 320px; } .exo-consent-actions { width: 100%; } .exo-consent-actions .exo-btn { flex: 1; } }

/* Formularios de contacto (form.js) */
.exo-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.et_pb_contact_form .exo-privacy { margin-bottom: 12px; }
.et_pb_contact_form .exo-privacy label { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.5; cursor: pointer; }
/* Divi quita el aspecto nativo a todos los campos (appearance:none + fondo gris): sin esto la casilla
   se marca pero no muestra la marca de verificación. */
.et_pb_contact_form .exo-privacy input[type="checkbox"] { display: inline-block !important; position: static !important; opacity: 1 !important; -webkit-appearance: checkbox !important; appearance: auto !important; background: #fff !important; border: 0 !important; padding: 0 !important; width: 18px !important; height: 18px !important; margin: 2px 0 0 !important; flex: 0 0 auto; accent-color: #7a3e8f; cursor: pointer; }
.et_pb_contact_form .exo-privacy a { text-decoration: underline; }
.exo-form-info { font-size: 12px !important; line-height: 1.5 !important; color: #555 !important; margin-top: 12px; }
.exo-form-info strong { color: #444 !important; }
.exo-form-info a, .et_pb_contact_form .exo-privacy a { color: var(--exo-accent) !important; text-decoration: underline !important; }
/* Accesibilidad: puntos del carrusel de Divi con zona de pulsacion de 24 px (el punto se ve igual) */
.et-pb-controllers a { box-sizing: content-box !important; padding: 8.5px !important; background-clip: content-box !important; margin: 0 !important; }
.et_pb_contact_form .et_pb_contact_captcha:focus-visible, .et_pb_contact_form .exo-privacy input:focus-visible { outline: 2px solid #7a3e8f; outline-offset: 2px; }
.exo-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Visor 360º (pano.js + Pannellum) */
.exo-360 { width: 100%; max-width: 1300px; aspect-ratio: 2 / 1; max-height: 650px; min-height: 260px; margin: 0 auto; background: #e9e4ec; }

/* Confirmación de envío del formulario (form.js) */
.exo-form-ok { display: flex; gap: 16px; align-items: center; padding: 22px 24px; margin: 10px 0 20px; border: 2px solid #7a3e8f; border-radius: 8px; background: #f6f1f8; color: #333; }
.exo-form-ok strong { display: block; font-size: 18px; color: #5c2a6e; margin-bottom: 4px; }
.exo-form-ok p { margin: 0; padding: 0; font-size: 15px; line-height: 1.5; }
.exo-form-ok-icon { flex: 0 0 auto; width: 48px; height: 48px; }
.exo-form-ok-icon svg { width: 100%; height: 100%; display: block; }
.exo-form-ok-icon circle { fill: #7a3e8f; }
.exo-form-ok-icon path { fill: none; stroke: #fff; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.exo-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(30, 14, 38, .55); opacity: 0; transition: opacity .2s ease; }
.exo-modal.exo-modal-in { opacity: 1; }
.exo-modal-card { width: 100%; max-width: 420px; background: #fff; border-radius: 12px; padding: 32px 28px 26px; text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); transform: translateY(12px) scale(.97); transition: transform .2s ease; }
.exo-modal.exo-modal-in .exo-modal-card { transform: none; }
.exo-modal-icon { display: block; width: 72px; height: 72px; margin: 0 auto 14px; }
.exo-modal-icon path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: exo-check .45s .15s ease forwards; }
@keyframes exo-check { to { stroke-dashoffset: 0; } }
.exo-modal-card h3 { margin: 0 0 10px; padding: 0; font-size: 22px; line-height: 1.3; color: #5c2a6e; }
.exo-modal-card p { margin: 0 0 22px; padding: 0; font-size: 15px; line-height: 1.55; color: #444; }
.exo-modal-card .exo-btn { min-width: 140px; }
@media (prefers-reduced-motion: reduce) { .exo-modal, .exo-modal-card { transition: none; } .exo-modal-icon path { animation: none; stroke-dashoffset: 0; } }
/* Accesibilidad: el número escrito en la suma de verificación, con contraste suficiente */
.et_pb_contact_form .et_pb_contact_captcha { color: #333 !important; }

/* Fluidez: mientras la pagina se monta, sin transiciones de Divi (menu, logo, botones);
   al terminar la carga (html.exo-loaded) vuelven a funcionar igual que siempre. */
html:not(.exo-loaded) #main-header, html:not(.exo-loaded) #main-header *, html:not(.exo-loaded) .et_pb_button,
html:not(.exo-loaded) .et_pb_contact_submit, html:not(.exo-loaded) .logo_container { transition: none !important; }

/* EXO_MHERO_V1: cabecera propia para movil (la de Divi se oculta solo en movil). */
.exo-mhero { display: none; }
@media (max-width: 767px) {
  .exo-mhero + .et_pb_section_0 { display: none !important; }
  .exo-mhero {
    /* EXO_MHERO_V2: alto segun el contenido (sin franja vacia bajo el logo); la foto
       queda de fondo, velada para que el texto se lea desde arriba. */
    display: flex; align-items: flex-start; position: relative; isolation: isolate;
    padding: 44px 22px 40px;
    background-color: #3a1748; background-size: cover; background-position: center; color: #fff;
  }
  .exo-mhero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(160deg, rgba(58, 22, 74, .58) 0%, rgba(52, 18, 66, .78) 55%, rgba(44, 14, 58, .92) 100%);
  }
  .exo-mhero-inner { width: 100%; max-width: 520px; }
  .exo-mhero-kicker {
    display: inline-block; margin-bottom: 14px; padding: 6px 12px; border-radius: 999px;
    font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1.2;
    color: #fff; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .32);
  }
  .exo-mhero .exo-mhero-title {
    margin: 0 0 12px !important; padding: 0 !important; color: #fff !important;
    font-size: clamp(32px, 10vw, 44px) !important; line-height: 1.06 !important; font-weight: 700 !important;
    letter-spacing: -.01em; text-transform: none; overflow-wrap: break-word; text-shadow: 0 1px 12px rgba(0, 0, 0, .25);
  }
  .exo-mhero-sub { margin: 0 0 22px; padding: 0; font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, .9); }
  .exo-mhero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
  .exo-mhero-btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
    border-radius: 999px; font-size: 15px; font-weight: 700; line-height: 1.2; text-decoration: none !important;
    color: #fff !important; border: 1.5px solid rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .06);
  }
  .exo-mhero-btn.primary { background: #fff; color: var(--exo-accent) !important; border-color: #fff; }
  .exo-mhero-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
}

/* EXO_FORM_V2 (13/10/2026): la capa de proteccion de datos va debajo del boton, a todo
   el ancho (en formularios de Divi en linea se quedaba encajonada junto a la suma). */
.et_pb_contact_form .exo-form-info { flex: 1 0 100%; width: 100%; clear: both; margin-top: 14px; }
