/* ==================================================================
   Lotus Digital · estilos del sitio
   Se carga después de Bootstrap 5.3 y ajusta sus variables a la marca.

   Reglas de color de la marca:
   - Texto #1E293B solo sobre fondo blanco.
   - Sobre fondo oscuro (#0F112A, #27306D) el texto es blanco.
   ================================================================== */

/* ---------- Fuentes alojadas en el propio sitio ---------- */
@font-face {
    font-family: "Plus Jakarta Sans";
    src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Roboto Mono";
    src: url("../fonts/roboto-mono-latin-400-normal.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Roboto Mono";
    src: url("../fonts/roboto-mono-latin-500-normal.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* ---------- Variables ---------- */
:root {
    --navy: #0F112A;
    --indigo: #27306D;
    --blue: #0458A1;
    --blue-dark: #03467F;
    --ink: #1E293B;
    --white: #FFFFFF;
    --sky: #A9D3F5;                         /* acento sobre fondos oscuros */
    --line: #DCE3EE;                        /* bordes sobre blanco */
    --tint: rgba(4, 88, 161, 0.09);         /* fondo de iconos sobre blanco */
    --on-dark-soft: rgba(255, 255, 255, 0.82);
    --on-dark-line: rgba(255, 255, 255, 0.16);

    --font-title: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-data: "Roboto Mono", ui-monospace, Consolas, monospace;

    --radius: 14px;
    --radius-sm: 8px;
    --petal: 6px 50% 50% 50%;               /* forma de pétalo: la firma visual del sitio */
    --section-y: clamp(3.5rem, 2rem + 6vw, 6.5rem);

    /* Bootstrap */
    --bs-body-font-family: var(--font-body);
    --bs-body-color: var(--ink);
    --bs-body-color-rgb: 30, 41, 59;
    --bs-body-bg: var(--white);
    --bs-body-font-size: 1.0625rem;
    --bs-body-line-height: 1.65;
    --bs-primary: var(--blue);
    --bs-primary-rgb: 4, 88, 161;
    --bs-link-color: var(--blue);
    --bs-link-color-rgb: 4, 88, 161;
    --bs-link-hover-color: var(--blue-dark);
    --bs-link-hover-color-rgb: 3, 70, 127;
    --bs-border-color: var(--line);
    --bs-border-radius: var(--radius-sm);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { overflow-x: hidden; -webkit-font-smoothing: antialiased; }

h1, h2, h3, h4 {
    font-family: var(--font-title);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: inherit;
    text-wrap: balance;
}
h1 { font-size: clamp(2.125rem, 1.35rem + 3.3vw, 3.5rem); }
h2 { font-size: clamp(1.625rem, 1.25rem + 1.7vw, 2.375rem); margin-bottom: 1rem; }
h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; margin-bottom: 0.35rem; }
p { max-width: 68ch; }
address { margin: 0; font-style: normal; }
img { max-width: 100%; height: auto; }

.icon { width: 1em; height: 1em; flex: none; vertical-align: -0.125em; }

a:focus-visible, button:focus-visible, .btn:focus-visible,
.form-control:focus-visible, .form-select:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
    box-shadow: none;
}
.site-header :focus-visible, .hero :focus-visible, .page-header :focus-visible,
.section--navy :focus-visible, .section--indigo :focus-visible, .site-footer :focus-visible {
    outline-color: var(--sky);
}
.form-card :focus-visible { outline-color: var(--blue); }
main:focus { outline: none; }

.skip-link {
    position: absolute; left: 1rem; top: -4rem; z-index: 2000;
    padding: 0.75rem 1rem; border-radius: var(--radius-sm);
    background: var(--white); color: var(--navy); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* Campo trampa contra bots: fuera de la vista y del teclado */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Botones ---------- */
.btn {
    --bs-btn-font-family: var(--font-body);
    --bs-btn-font-weight: 600;
    --bs-btn-border-radius: var(--radius-sm);
    --bs-btn-padding-x: 1.25rem;
    --bs-btn-padding-y: 0.65rem;
}
.btn-lg { --bs-btn-padding-x: 1.5rem; --bs-btn-padding-y: 0.85rem; --bs-btn-font-size: 1.0625rem; --bs-btn-border-radius: var(--radius-sm); }
.btn-primary {
    --bs-btn-bg: var(--blue); --bs-btn-border-color: var(--blue);
    --bs-btn-hover-bg: var(--blue-dark); --bs-btn-hover-border-color: var(--blue-dark);
    --bs-btn-active-bg: var(--indigo); --bs-btn-active-border-color: var(--indigo);
    --bs-btn-disabled-bg: var(--blue); --bs-btn-disabled-border-color: var(--blue);
}
.btn-outline-primary {
    --bs-btn-color: var(--blue); --bs-btn-border-color: var(--blue);
    --bs-btn-hover-bg: var(--blue); --bs-btn-hover-border-color: var(--blue);
    --bs-btn-active-bg: var(--blue-dark); --bs-btn-active-border-color: var(--blue-dark);
}
.btn-light {
    --bs-btn-bg: var(--white); --bs-btn-border-color: var(--white); --bs-btn-color: var(--navy);
    --bs-btn-hover-bg: var(--sky); --bs-btn-hover-border-color: var(--sky); --bs-btn-hover-color: var(--navy);
    --bs-btn-active-bg: var(--sky); --bs-btn-active-border-color: var(--sky); --bs-btn-active-color: var(--navy);
}
.btn-outline-light {
    --bs-btn-border-color: rgba(255, 255, 255, 0.55);
    --bs-btn-hover-color: var(--navy); --bs-btn-active-color: var(--navy);
}
.btn .spinner-border { width: 1.1em; height: 1.1em; border-width: 0.15em; margin-right: 0.5rem; vertical-align: -0.15em; }

.link-arrow {
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.3em;
}

/* ---------- Encabezado ---------- */
.site-header {
    position: sticky; top: 0; z-index: 1030;
    background: var(--navy);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--on-dark-line); box-shadow: 0 8px 24px rgba(8, 9, 24, 0.35); }
.site-header .navbar { --bs-navbar-padding-y: 0.85rem; }
.navbar-brand { padding: 0; margin: 0; }
.navbar-brand img, .footer-logo img { display: block; height: 40px; width: auto; }

.site-header .nav-link {
    color: var(--white); font-weight: 500; font-size: 1rem;
    padding: 0.5rem 0.9rem !important; border-radius: var(--radius-sm);
}
.site-header .nav-link:hover, .site-header .nav-link.show { background: rgba(255, 255, 255, 0.1); color: var(--white); }
.site-header .nav-link.active { color: var(--white); box-shadow: inset 0 -2px 0 var(--sky); border-radius: 0; }

.navbar-toggler {
    border: 1px solid var(--on-dark-line); border-radius: var(--radius-sm);
    color: var(--white); font-size: 1.25rem; width: 48px; height: 48px; padding: 0;
}

.site-header .dropdown-menu {
    --bs-dropdown-min-width: 21rem;
    --bs-dropdown-padding-x: 0.5rem; --bs-dropdown-padding-y: 0.5rem;
    --bs-dropdown-border-color: var(--line); --bs-dropdown-border-radius: var(--radius);
    --bs-dropdown-link-color: var(--ink);
    --bs-dropdown-link-hover-color: var(--ink); --bs-dropdown-link-hover-bg: transparent;
    --bs-dropdown-link-active-bg: transparent; --bs-dropdown-link-active-color: var(--ink);
    margin-top: 0.6rem !important;
    box-shadow: 0 18px 40px rgba(15, 17, 42, 0.18);
}
.site-header .dropdown-item {
    display: flex; gap: 0.85rem; align-items: flex-start;
    padding: 0.65rem 0.75rem; border-radius: var(--radius-sm); white-space: normal;
}
.site-header .dropdown-item:hover, .site-header .dropdown-item:focus { box-shadow: inset 0 0 0 1px var(--blue); }
.dropdown-item__icon {
    display: grid; place-items: center; flex: none;
    width: 2.25rem; height: 2.25rem; border-radius: var(--petal);
    background: var(--tint); color: var(--blue);
}
.dropdown-item__label { display: block; font-weight: 600; line-height: 1.3; }
.dropdown-item__text { display: block; font-size: 0.875rem; line-height: 1.4; }

.offcanvas { --bs-offcanvas-bg: var(--navy); --bs-offcanvas-color: var(--white); --bs-offcanvas-width: min(22rem, 88vw); }
.offcanvas-title { font-family: var(--font-title); font-weight: 700; font-size: 1.125rem; margin: 0; }

@media (max-width: 991.98px) {
    .site-header .nav-link { padding: 0.85rem 0.5rem !important; font-size: 1.0625rem; }
    .site-header .nav-link.active { box-shadow: inset 2px 0 0 var(--sky); }
    .site-header .dropdown-menu { box-shadow: none; margin: 0.25rem 0 0.75rem !important; }
    .site-header .btn-cta { width: 100%; padding-block: 0.85rem; }
}

/* ---------- Portada: bloque principal ---------- */
.hero, .page-header {
    position: relative; isolation: isolate;
    background: var(--navy); color: var(--white);
    overflow: hidden;
}
/* Pétalos de loto dibujados con línea: fondo del bloque principal */
.hero::before, .page-header::before {
    content: ""; position: absolute; z-index: -1;
    right: -12rem; bottom: -22rem; width: 58rem; height: 58rem;
    background: url("../img/lotus-pattern.svg") center / contain no-repeat;
    opacity: 0.9;
}
.hero { padding: clamp(3rem, 1.5rem + 6vw, 6rem) 0 clamp(3.5rem, 2rem + 6vw, 6.5rem); }
.hero--inner { padding-top: 2rem; }
.hero h1 { margin-bottom: 1.25rem; }
.hero__lead { font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); color: var(--on-dark-soft); max-width: 54ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }
.hero__note { display: flex; gap: 0.6rem; align-items: center; margin: 0; font-size: 0.9375rem; color: var(--on-dark-soft); }
.hero__note .icon { color: var(--sky); font-size: 1.1rem; }
.hero__visual { position: relative; }
.hero__visual::before {
    content: ""; position: absolute; inset: 8% -4% -6% 10%; z-index: -1;
    border-radius: 40% 60% 55% 45%;
    background: radial-gradient(closest-side, rgba(4, 88, 161, 0.75), rgba(4, 88, 161, 0));
}
@media (max-width: 575.98px) {
    .hero__actions .btn { width: 100%; }
}

.browser-frame {
    border-radius: var(--radius); overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 30px 60px rgba(4, 6, 20, 0.5);
}
.browser-frame::before {
    content: ""; display: block; height: 28px;
    background:
        radial-gradient(circle at 16px 14px, #C3CCDD 4px, transparent 5px),
        radial-gradient(circle at 32px 14px, #C3CCDD 4px, transparent 5px),
        radial-gradient(circle at 48px 14px, #C3CCDD 4px, transparent 5px),
        #EEF2F8;
}
.browser-frame img { display: block; width: 100%; }

/* ---------- Franja de datos esenciales ---------- */
.highlights { border-bottom: 1px solid var(--line); }
.highlights__list {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(4, 1fr);
}
.highlights__list li {
    display: flex; gap: 0.9rem; align-items: center;
    padding: 1.6rem 1.25rem; border-left: 1px solid var(--line);
}
.highlights__list li:first-child { border-left: 0; padding-left: 0; }
.highlights__list .icon { font-size: 1.5rem; color: var(--blue); }
.highlights__list strong { display: block; font-family: var(--font-title); font-weight: 700; line-height: 1.25; }
.highlights__list span span { display: block; font-size: 0.9375rem; line-height: 1.4; }
@media (max-width: 991.98px) {
    .highlights__list { grid-template-columns: repeat(2, 1fr); }
    .highlights__list li { padding: 1.25rem 0.75rem; border-left: 0; border-top: 1px solid var(--line); }
    .highlights__list li:nth-child(-n+2) { border-top: 0; }
    .highlights__list li:nth-child(odd) { padding-left: 0; }
}
@media (max-width: 479.98px) {
    .highlights__list { grid-template-columns: 1fr; }
    .highlights__list li { padding-left: 0; }
    .highlights__list li:nth-child(2) { border-top: 1px solid var(--line); }
}

/* ---------- Secciones ---------- */
.section { padding: var(--section-y) 0; }
.section--bordered { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--bordered + .section--bordered { border-top: 0; }
.section--navy { background: var(--navy); color: var(--white); }
.section--indigo { background: var(--indigo); color: var(--white); }
.section--navy p, .section--indigo p { color: var(--on-dark-soft); }
.section--navy a:not(.btn), .section--indigo a:not(.btn) { color: var(--white); }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.section-head p { font-size: 1.125rem; margin: 0; }
.section-head--side { margin-bottom: 0; }
.section-head--side p + p { margin-top: 1rem; }
@media (min-width: 992px) {
    .section-head--side { position: sticky; top: 7rem; padding-right: 1.5rem; }
}
.lead-text { font-size: 1.1875rem; line-height: 1.6; }

/* Pétalo: contenedor de iconos */
.petal {
    display: grid; place-items: center; flex: none;
    width: 3rem; height: 3rem; border-radius: var(--petal);
    background: var(--tint); color: var(--blue); font-size: 1.25rem;
}
.petal--light { background: rgba(255, 255, 255, 0.14); color: var(--white); }

/* ---------- Modalidades ---------- */
.modality-list { list-style: none; margin: 0; padding: 0; }
.modality-list li { display: flex; gap: 1.1rem; padding: 1.35rem 0; border-top: 1px solid var(--line); }
.modality-list li:last-child { border-bottom: 1px solid var(--line); }
.modality-list p { margin: 0; }

/* ---------- Funciones ---------- */
.feature-grid {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(2rem, 5vw, 5rem);
}
.feature { display: flex; gap: 1.1rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.feature p { margin: 0; }
@media (max-width: 767.98px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Galería de pantallas ---------- */
.gallery { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.gallery__tabs { display: grid; gap: 0.6rem; }
.gallery__tab {
    display: block; width: 100%; text-align: left;
    padding: 1rem 1.15rem; border-radius: var(--radius);
    border: 1px solid var(--on-dark-line); background: transparent; color: var(--white);
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.gallery__tab:hover { border-color: rgba(255, 255, 255, 0.5); }
.gallery__tab.active { background: var(--white); border-color: var(--white); color: var(--ink); }
.gallery__tab-title { display: block; font-family: var(--font-title); font-weight: 700; font-size: 1.0625rem; }
.gallery__tab-text { display: block; font-size: 0.9375rem; line-height: 1.45; margin-top: 0.15rem; }
.gallery__stage figure { margin: 0; }
.gallery .browser-frame { box-shadow: 0 24px 50px rgba(10, 12, 40, 0.45); }
@media (max-width: 991.98px) {
    .gallery { grid-template-columns: 1fr; }
    .gallery__stage { order: -1; }
}

/* ---------- Servicios incluidos ---------- */
.included-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 2.5rem; }
.included-list li { display: flex; gap: 0.9rem; padding: 1.15rem 0; border-top: 1px solid var(--line); }
.included-list .icon { color: var(--blue); font-size: 1.2rem; margin-top: 0.2rem; }
.included-list h3 { font-size: 1.0625rem; }
.included-list p { margin: 0; font-size: 0.9875rem; }
@media (max-width: 575.98px) { .included-list { grid-template-columns: 1fr; } }

/* ---------- Paquetes ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; max-width: 62rem; }
.plan {
    display: flex; flex-direction: column;
    padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
    border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
    background: var(--white);
}
.plan--highlight { background: var(--navy); border-color: var(--navy); color: var(--white); }
.plan__title { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 0.4rem; }
.plan__title h3 { font-size: 1.5rem; font-weight: 700; margin: 0; }
.plan__badge {
    font-family: var(--font-data); font-size: 0.8125rem; font-weight: 500;
    padding: 0.2rem 0.6rem; border-radius: 99px;
    background: var(--sky); color: var(--navy);
}
.plan__tagline { margin-bottom: 1.5rem; }
.plan--highlight .plan__tagline { color: var(--on-dark-soft); }
.plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.6rem; margin: 0 0 1.5rem; }
.plan__amount { font-family: var(--font-data); font-weight: 500; font-size: clamp(2.25rem, 1.8rem + 2vw, 3rem); line-height: 1; letter-spacing: -0.07em; }
.plan__suffix { font-size: 1rem; }
.plan__specs { margin: 0 0 1.75rem; flex: 1; }
.plan__specs div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1rem; padding: 0.8rem 0; border-top: 1px solid var(--line); }
.plan--highlight .plan__specs div { border-top-color: var(--on-dark-line); }
.plan__specs dt { font-weight: 500; font-size: 0.9375rem; }
.plan--highlight .plan__specs dt { color: var(--on-dark-soft); }
.plan__specs dd { margin: 0; font-weight: 600; font-size: 0.9875rem; }
.plan-note { margin: 1.5rem 0 0; font-size: 0.9375rem; }
@media (max-width: 767.98px) { .plan-grid { grid-template-columns: 1fr; } }

/* ---------- RVOE ---------- */
.rvoe-text p:last-child {
    margin: 1.5rem 0 0; padding-left: 1rem;
    border-left: 3px solid var(--sky); color: var(--white);
}
.rvoe-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--on-dark-line); border: 1px solid var(--on-dark-line); border-radius: var(--radius); overflow: hidden; }
.rvoe-grid li { background: var(--navy); padding: 1.5rem; }
.rvoe-grid .icon { font-size: 1.4rem; color: var(--sky); margin-bottom: 0.9rem; }
.rvoe-grid p { margin: 0; font-size: 0.9875rem; }
@media (max-width: 479.98px) { .rvoe-grid { grid-template-columns: 1fr; } }

/* ---------- Proceso ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: paso; }
.step { position: relative; padding-top: 1.5rem; border-top: 2px solid var(--line); }
.step__number {
    display: grid; place-items: center;
    width: 2.75rem; height: 2.75rem; margin-bottom: 1rem; border-radius: var(--petal);
    background: var(--blue); color: var(--white);
    font-family: var(--font-data); font-weight: 500; font-size: 1.125rem;
}
.step p { margin: 0; }
@media (max-width: 991.98px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .steps { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---------- Preguntas frecuentes ---------- */
.faq {
    --bs-accordion-color: var(--ink); --bs-accordion-bg: var(--white);
    --bs-accordion-border-color: var(--line);
    --bs-accordion-btn-color: var(--ink); --bs-accordion-active-color: var(--blue); --bs-accordion-active-bg: var(--white);
    --bs-accordion-btn-padding-x: 0; --bs-accordion-btn-padding-y: 1.25rem;
    --bs-accordion-body-padding-x: 0; --bs-accordion-body-padding-y: 0;
    --bs-accordion-btn-focus-box-shadow: none;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.faq .accordion-button { font-family: var(--font-title); font-weight: 600; font-size: 1.0625rem; line-height: 1.35; gap: 1rem; }
.faq .accordion-button:not(.collapsed) { box-shadow: none; }
.faq .accordion-body { padding-bottom: 1.5rem; max-width: 64ch; }

/* ---------- Quién está detrás ---------- */

.about-teaser__box { padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); border-left: 6px solid var(--blue); }
.about-teaser__box p { font-size: 1.125rem; }

/* ---------- Demostración y formularios ---------- */
.demo__lead { font-size: 1.125rem; margin-bottom: 1.5rem; }
.demo__points { list-style: none; margin: 0 0 2rem; padding: 0; }
.demo__points li { display: flex; gap: 0.75rem; align-items: baseline; padding: 0.4rem 0; }
.demo__points .icon { color: var(--sky); }

.form-card { background: var(--white); color: var(--ink); border-radius: calc(var(--radius) + 4px); padding: clamp(1.25rem, 0.75rem + 2.5vw, 2.5rem); }
.form-card p { color: var(--ink); }
.form-card a:not(.btn) { color: var(--blue) !important; }
.form-card--bordered { border: 1px solid var(--line); }
.form-label { font-weight: 600; font-size: 0.9375rem; margin-bottom: 0.35rem; }
.form-optional { font-weight: 400; }
.form-control, .form-select {
    min-height: 3rem; border-color: #94A3B8; color: var(--ink); font-size: 1rem;
}
.form-control:focus, .form-select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(4, 88, 161, 0.2); }
.form-control.is-invalid, .form-select.is-invalid { border-color: #B42318; }
.invalid-feedback { color: #B42318; font-size: 0.9rem; font-weight: 500; }
.form-note { margin: 0.9rem 0 0; font-size: 0.875rem; max-width: none; }
.form-flash { padding: 0.85rem 1rem; border-radius: var(--radius-sm); font-weight: 500; margin-bottom: 1.25rem; max-width: none; background: var(--white); }
.form-flash--ok { border: 2px solid #0B6B3A; color: #0B6B3A !important; }
.form-flash--error { border: 2px solid #B42318; color: #B42318 !important; }

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 0.9rem; padding: 0.7rem 0; }
.contact-list .icon { font-size: 1.1rem; margin-top: 0.3rem; color: var(--blue); }
.contact-list__label { display: block; font-size: 0.875rem; }
.contact-list a { font-weight: 600; word-break: break-word; }
.section--navy .contact-list .icon, .site-footer .contact-list .icon { color: var(--sky); }
.section--navy .contact-list, .site-footer .contact-list { color: var(--on-dark-soft); }
.section--navy .contact-list a, .site-footer .contact-list a { color: var(--white); }

.contact-aside h2 { font-size: 1.375rem; }
.contact-aside h2:not(:first-child) { margin-top: 2.25rem; }
.next-steps { margin: 0; padding-left: 1.25rem; }
.next-steps li { padding: 0.3rem 0 0.3rem 0.25rem; }
.next-steps li::marker { font-family: var(--font-data); font-weight: 500; color: var(--blue); }

/* ---------- Páginas interiores ---------- */
.page-header { padding: 2rem 0 clamp(3rem, 2rem + 4vw, 5rem); }
.page-header h1 { max-width: 22ch; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.125rem); margin-bottom: 1rem; }
.page-header__lead { font-size: 1.1875rem; color: var(--on-dark-soft); max-width: 56ch; margin: 0; }
.breadcrumb {
    --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.6); --bs-breadcrumb-item-active-color: var(--on-dark-soft);
    --bs-breadcrumb-margin-bottom: 1.75rem; --bs-breadcrumb-font-size: 0.9375rem;
}
.breadcrumb a { color: var(--white); }

.prose { max-width: 68ch; }
.prose p { font-size: 1.125rem; }
.statement { height: 100%; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border: 1px solid var(--on-dark-line); border-radius: calc(var(--radius) + 4px); }
.statement h2 { font-size: 1.5rem; margin: 1.25rem 0 0.75rem; }
.statement p { font-size: 1.125rem; margin: 0; color: var(--white); }

.value-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.value-grid li { padding-top: 1.5rem; border-top: 2px solid var(--line); }
.value-grid h3 { margin-top: 1rem; }
.value-grid p { margin: 0; }
@media (max-width: 991.98px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479.98px) { .value-grid { grid-template-columns: 1fr; } }

.service-list { list-style: none; margin: 0; padding: 0; max-width: 52rem; }
.service-list li { display: flex; gap: 1.25rem; padding: 1.75rem 0; border-top: 1px solid var(--line); }
.service-list li:last-child { border-bottom: 1px solid var(--line); }
.service-list h2, .service-list h3 { font-size: 1.375rem; font-weight: 700; }
.service-list h2 a, .service-list h3 a { color: var(--ink); text-decoration: none; }
.service-list h2 a:hover, .service-list h3 a:hover { color: var(--blue); }

.cta-band { text-align: left; }
.cta-band p { font-size: 1.125rem; margin-bottom: 1.75rem; }

.message-page { min-height: 55vh; display: flex; align-items: center; }
.message-page h1 { font-size: clamp(1.875rem, 1.4rem + 2vw, 2.75rem); margin-bottom: 1rem; }
.message-page p { font-size: 1.125rem; margin-bottom: 1.75rem; }
.message-page__code { font-family: var(--font-data); font-weight: 500; color: var(--blue); margin-bottom: 0.5rem !important; }
.message-page__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Pie ---------- */
.site-footer { background: var(--navy); color: var(--on-dark-soft); padding-top: clamp(2.5rem, 2rem + 3vw, 4.5rem); font-size: 0.9875rem; }
.section--navy + .site-footer { border-top: 1px solid var(--on-dark-line); }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.newsletter {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2rem 3rem; align-items: center;
    padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); margin-bottom: clamp(2.5rem, 2rem + 3vw, 4rem);
    background: var(--indigo); border-radius: calc(var(--radius) + 4px); color: var(--white);
}
.newsletter h2 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.newsletter p { margin: 0; color: var(--on-dark-soft); }
.newsletter__row { display: flex; gap: 0.6rem; }
.newsletter__row .form-control { border-color: var(--white); }
.newsletter__row .btn { flex: none; }
.newsletter .invalid-feedback { color: var(--white); background: #B42318; padding: 0.35rem 0.6rem; border-radius: 6px; margin-top: 0.5rem; }
.newsletter .invalid-feedback:empty { display: none; }
.newsletter__note { font-size: 0.875rem; margin-top: 0.6rem !important; }
@media (max-width: 991.98px) { .newsletter { grid-template-columns: 1fr; } }
@media (max-width: 479.98px) { .newsletter__row { flex-direction: column; } }

.footer-logo { display: inline-block; margin-bottom: 1.1rem; }
.footer-about { max-width: 34ch; }
.footer-heading { font-family: var(--font-title); font-size: 1rem; font-weight: 700; letter-spacing: 0; color: var(--white); margin-bottom: 0.9rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-block; padding: 0.4rem 0; }
.social-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.25rem 0 0; padding: 0; }
.social-list a { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: var(--petal); border: 1px solid var(--on-dark-line); font-size: 1.1rem; }
.social-list a:hover { background: var(--white); color: var(--navy); }
.footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem;
    margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); padding: 1.5rem 0;
    border-top: 1px solid var(--on-dark-line); font-size: 0.9rem;
}
.footer-bottom p { margin: 0; max-width: none; }
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 0; padding: 0; }

/* ---------- WhatsApp flotante (solo si hay número configurado) ---------- */
.whatsapp-float {
    position: fixed; right: 1rem; bottom: 1rem; z-index: 1020;
    display: grid; place-items: center; width: 3.5rem; height: 3.5rem;
    border-radius: 50%; background: #0B7A43; color: var(--white); font-size: 1.75rem;
    box-shadow: 0 10px 24px rgba(15, 17, 42, 0.35);
}
.whatsapp-float:hover { background: #096236; color: var(--white); }

/* ---------- Avisos de SweetAlert2 con la marca ---------- */
.swal2-popup { font-family: var(--font-body); border-radius: calc(var(--radius) + 4px) !important; color: var(--ink) !important; }
.swal2-title { font-family: var(--font-title); color: var(--navy) !important; font-size: 1.5rem !important; }
.swal2-styled.swal2-confirm { background: var(--blue) !important; border-radius: var(--radius-sm) !important; font-weight: 600; padding: 0.7rem 1.5rem !important; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Margen lateral mínimo de 16 px en móviles */
.container { --bs-gutter-x: 2rem; }

/* ==================================================================
   Banners e imágenes de contenido
   Las imágenes de fondo llevan encima una capa azul marino (#0F112A),
   así el texto blanco conserva su contraste con cualquier foto.
   ================================================================== */
.has-banner { position: relative; isolation: isolate; overflow: hidden; }
.banner-media {
    position: absolute; inset: 0; z-index: -2;
    display: block; pointer-events: none;
    --o-text: 0.9; --o-far: 0.62;
}
.banner-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, center center); }
.banner-media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg,
        rgba(15, 17, 42, var(--o-text)) 0%,
        rgba(15, 17, 42, var(--o-text)) 38%,
        rgba(15, 17, 42, var(--o-far)) 100%);
}
.banner-media--suave { --o-text: 0.86; --o-far: 0.45; }
.banner-media--fuerte { --o-text: 0.93; --o-far: 0.78; }
@media (max-width: 767.98px) {
    /* En móvil el texto ocupa todo el ancho: capa pareja */
    .banner-media::after { background: rgba(15, 17, 42, var(--o-text)); }
}
/* Con foto de fondo, el patrón de pétalos queda más tenue */
.hero.has-banner::before, .page-header.has-banner::before { opacity: 0.45; }

.page-header.has-banner { padding-bottom: clamp(4rem, 3rem + 6vw, 8rem); }
.page-header.has-banner .page-header__lead { color: var(--white); }

/* Banda de imagen a todo lo ancho */
.image-band {
    display: flex; align-items: center;
    min-height: clamp(26rem, 18rem + 22vw, 36rem);
    padding: var(--section-y) 0;
    background: var(--navy); color: var(--white);
}
.image-band__content { max-width: 36rem; }
.image-band h2 { font-size: clamp(1.875rem, 1.3rem + 2.4vw, 3rem); margin-bottom: 1rem; }
.image-band p { font-size: 1.1875rem; color: var(--white); margin-bottom: 2rem; }
.image-band :focus-visible { outline-color: var(--sky); }

/* Sección RVOE sobre imagen: las tarjetas conservan su fondo sólido */
#rvoe.has-banner .rvoe-grid li { background: rgba(15, 17, 42, 0.92); }

/* Imagen de contenido con esquina de pétalo */
.content-figure { margin: 2rem 0 0; }
.col-lg-6 > .content-figure { margin-top: 0; }
.content-figure img {
    display: block; width: 100%; height: auto;
    aspect-ratio: 4 / 3; object-fit: cover;
    border-radius: var(--radius) var(--radius) var(--radius) clamp(4rem, 10vw, 8rem);
}
