/* landing.css — Port del <style> inline del index.asp (líneas 47-893).
   Se mantiene la estética visual al 100%; se añaden las variables de los
   3 productos hermanos al final, para que la sección "Familia OKmystay"
   (Fase 3) y las pastillas nuevas de integraciones (Fase 4) puedan
   usarlas sin tocar este fichero. */

:root {
    --coral:       #F04464;
    --coral-light: #ff6b87;
    --purple:      #667eea;
    --purple-dark: #764ba2;
    --dark:        #0d0d14;
    --dark-2:      #16161f;
    --gray-1:      #f7f7fc;
    --gray-2:      #ebebf5;
    --text:        #18182a;
    --text-muted:  #6b7280;
    --white:       #ffffff;
    --radius:      18px;
    --radius-sm:   12px;
    --shadow:      0 4px 24px rgba(0,0,0,0.07);
    --shadow-lg:   0 16px 48px rgba(0,0,0,0.13);

    /* Marcas de los 4 productos OKmystay (para Fase 3 y filtro `brand`) */
    --brand-okmystay:  #F04464;
    --brand-lirio:     #3B82F6;
    --brand-rosa:      #EC4899;
    --brand-margarita: #FF9F1C;
    --brand-tulipan:   #10B981;
    --brand-orquidea:  #D946EF;
    --brand-jazmin:    #06B6D4;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text);
    overflow-x: hidden;
    background: var(--white);
    -webkit-text-size-adjust: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== A11Y ===== */
/* Skip-link visible solo al recibir foco con teclado. */
.skip-link {
    position: absolute;
    top: -40px;
    left: 8px;
    z-index: 9999;
    background: var(--coral);
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: top 0.15s;
}
.skip-link:focus {
    top: 8px;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* ===== NAV ===== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    background: rgba(13,13,20,0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
    background: rgba(13,13,20,0.95);
    box-shadow: 0 2px 24px rgba(0,0,0,0.3);
}

.nav-logo {
    background: rgba(255,255,255,0.9);
    border-radius: 10px;
    padding: 5px 12px;
    display: flex;
    align-items: center;
}
.nav-logo img { height: 30px; width: auto; max-width: 160px; }

.nav-langs {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-langs a img {
    width: 22px;
    height: auto;
    opacity: 0.55;
    border-radius: 3px;
    transition: opacity 0.2s, transform 0.2s;
}

.nav-langs a:hover img { opacity: 1; transform: scale(1.1); }

.nav-cta {
    background: linear-gradient(135deg, var(--coral), var(--coral-light));
    color: white;
    padding: 9px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(240,68,100,0.3);
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(240,68,100,0.4);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    background: #111120;
    color: white;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 66px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 65% at 10% 60%, rgba(102,126,234,0.38) 0%, transparent 60%),
        radial-gradient(ellipse 60% 70% at 90% 10%, rgba(240,68,100,0.32) 0%, transparent 55%),
        radial-gradient(ellipse 50% 50% at 50% 90%, rgba(118,75,162,0.28) 0%, transparent 55%);
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 90px 0 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(240,68,100,0.13);
    border: 1px solid rgba(240,68,100,0.28);
    color: #ffa3b8;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    margin-bottom: 26px;
    max-width: 100%;
    flex-wrap: wrap;
}

.hero-badge-dot {
    width: 7px;
    height: 7px;
    background: var(--coral);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(240,68,100,0.28);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 3px rgba(240,68,100,0.28); }
    50%      { box-shadow: 0 0 0 6px rgba(240,68,100,0.12); }
}

.hero h1 {
    font-size: clamp(2rem, 3.8vw, 3.3rem);
    font-weight: 800;
    line-height: 1.14;
    margin-bottom: 22px;
    letter-spacing: -0.03em;
}

.hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, var(--coral) 0%, #ff9ab0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.08rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.75;
    margin-bottom: 10px;
}

.hero-actions {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 38px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--coral), var(--coral-light));
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 24px rgba(240,68,100,0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 36px rgba(240,68,100,0.45);
}

.btn-ghost {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.btn-ghost:hover { color: white; }

/* Phone mockup */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.phone-wrap {
    position: relative;
    width: 260px;
}

.phone {
    width: 260px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 48px 96px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06);
    position: relative;
}

.phone-notch {
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 8px;
}

.phone-notch-bar {
    width: 72px;
    height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
}

.phone-body {
    padding: 8px 16px 24px;
    background: linear-gradient(180deg, rgba(102,126,234,0.12) 0%, rgba(240,68,100,0.08) 100%);
}

.phone-header-card {
    background: rgba(255,255,255,0.07);
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 10px;
    text-align: center;
    font-size: 1rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}

.phone-row {
    background: rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.phone-row-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.pi-coral  { background: rgba(240,68,100,0.22);  color: #ffb3c4; }
.pi-purple { background: rgba(102,126,234,0.22); color: #b3c3ff; }
.pi-green  { background: rgba(52,211,153,0.22); color: #6ee7b7; }
.pi-amber  { background: rgba(251,191,36,0.22); color: #fcd34d; }

.phone-row-info  { flex: 1; min-width: 0; }
.phone-row-label { font-size: 0.62rem; color: rgba(255,255,255,0.42); line-height: 1; margin-bottom: 3px; }
.phone-row-val   { font-size: 0.82rem; font-weight: 600; color: white; }

.float-badge {
    position: absolute;
    background: rgba(22,22,31,0.85);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    color: white;
    white-space: nowrap;
}

.float-badge.top-right   { right: -50px; top: 14%; }
.float-badge.bottom-left {
    left: -50px;
    bottom: 18%;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
}

.float-icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--purple), var(--coral));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: white;
    flex-shrink: 0;
}

.float-big-num {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    color: white;
}

.float-small-text {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.45);
}

/* ===== STATS ===== */
.stats-band {
    background: var(--dark-2);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 64px 0;
}

.stats-eyebrow {
    text-align: center;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: rgba(255,255,255,0.3);
    margin-bottom: 44px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius);
    overflow: hidden;
}

.stat-cell {
    background: var(--dark-2);
    padding: 36px 28px;
    text-align: center;
    transition: background 0.3s;
}

.stat-cell:hover { background: rgba(255,255,255,0.03); }

.stat-num {
    font-size: 2.05rem;            /* -20% del 2.6rem original */
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.65) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.42);
    line-height: 1.45;
}

/* ===== SECTIONS ===== */
.section { padding: 100px 0; }
/* .section-alt antes era gris claro. Decisión 2026-05-16: pasamos a
   fondo oscuro estilo Hero/Tres-ideas/Casos — el usuario quiere
   coherencia con esas secciones (no quedan blancos/grises en la home).
   El selector queda como `.section-alt` por compatibilidad con el HTML
   existente; las adaptaciones de cards/textos viven en bloque
   "Adaptaciones de .section-alt en dark" más abajo. */
.section-alt {
    background: var(--dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.section-alt::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 12% 25%, rgba(240,68,100,0.12) 0%, transparent 60%),
        radial-gradient(ellipse 70% 60% at 88% 75%, rgba(102,126,234,0.14) 0%, transparent 60%);
    pointer-events: none;
}

.section-alt .container { position: relative; z-index: 2; }

/* ── Adaptaciones de .section-alt en dark ─────────────────────────── */

.section-alt .sec-title       { color: white; }
.section-alt .sec-sub         { color: rgba(255,255,255,0.62); }
.section-alt .section-preamble { color: rgba(255,255,255,0.5); }

.section-alt .pill-tag {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.85);
    border-color: rgba(255,255,255,0.14);
}

/* Family card en dark: glass + border-top de marca se mantiene */
.section-alt .family-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-top: 4px solid var(--brand-accent, var(--coral));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.section-alt .family-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.18);
    border-top-color: var(--brand-accent, var(--coral));
    box-shadow: 0 22px 56px rgba(0,0,0,0.4);
}

.section-alt .family-card p { color: rgba(255,255,255,0.68); }

/* Future card en dark */
.section-alt .future-card {
    background: rgba(255,255,255,0.04);
    border: 1px dashed rgba(255,255,255,0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.section-alt .future-card:hover {
    border-style: solid;
    border-color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.06);
}

.section-alt .future-card h4 { color: white; }
.section-alt .future-card p  { color: rgba(255,255,255,0.62); }

.section-alt .future-icon {
    background: linear-gradient(135deg, rgba(102,126,234,0.28), rgba(240,68,100,0.22));
    color: rgba(255,255,255,0.92);
}

/* Integ link en dark — las fotos resaltan más sobre oscuro */
.section-alt .integ-link {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}

.section-alt .integ-link:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.18);
    box-shadow: 0 14px 36px rgba(0,0,0,0.4);
}

.section-alt .integ-name { color: rgba(255,255,255,0.85); }

/* Ad-hoc block sobre dark — gradient más visible */
.section-alt .adhoc-block {
    background: linear-gradient(135deg, rgba(240,68,100,0.12) 0%, rgba(102,126,234,0.14) 100%);
    border-color: rgba(240,68,100,0.32);
}

.section-alt .adhoc-body h3 { color: white; }
.section-alt .adhoc-body p  { color: rgba(255,255,255,0.7); }

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 68px;
}

.pill-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(102,126,234,0.1), rgba(118,75,162,0.08));
    color: var(--purple);
    border: 1px solid rgba(102,126,234,0.18);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 18px;
}

h2.sec-title {
    font-size: clamp(1.85rem, 3vw, 2.7rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text);
}

h2.sec-title span {
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2.sec-title-white {
    font-size: clamp(1.85rem, 3vw, 2.7rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 16px;
    color: white;
}

.sec-sub {
    font-size: 1.02rem;
    color: var(--text-muted);
    line-height: 1.75;
}

.sec-sub-white {
    font-size: 1.02rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.75;
}

/* ===== FEATURE CARDS ===== */
.feat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feat-card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--gray-2);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.feat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--purple), var(--coral)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}

.feat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feat-card:hover::after { opacity: 1; }

.feat-photo {
    width: 100%;
    height: 110px;
    object-fit: cover;
    display: block;
}

.feat-body {
    padding: 28px;
}

.feat-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 9px;
    margin-top: 4px;
    color: var(--text);
    letter-spacing: -0.01em;
}

.feat-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 6px;
}

/* ===== GUEST CARDS ===== */
.guest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
    gap: 14px;
}

.guest-card {
    background: white;
    border-radius: var(--radius-sm);
    padding: 20px;
    border: 1px solid var(--gray-2);
    display: flex;
    gap: 15px;
    align-items: flex-start;
    transition: all 0.25s ease;
}

.guest-card:hover {
    border-color: rgba(102,126,234,0.25);
    box-shadow: 0 8px 28px rgba(102,126,234,0.09);
    transform: translateY(-2px);
}

.guest-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, rgba(102,126,234,0.1), rgba(118,75,162,0.1));
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple);
    font-size: 1rem;
    flex-shrink: 0;
}

.guest-card h4 {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}

.guest-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ===== TRES IDEAS (sección conceptual sobre OKmystay) =====
   Fondo oscuro (más moderno) con gradiente sutil tipo aurora.
   Las cards en glass effect, texto blanco; los títulos en gradient
   coral→purple para acentuar. */
.three-ideas-section {
    background: var(--dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.three-ideas-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 15% 30%, rgba(102,126,234,0.22) 0%, transparent 60%),
        radial-gradient(ellipse 60% 60% at 85% 70%, rgba(240,68,100,0.18) 0%, transparent 55%);
    pointer-events: none;
}

.three-ideas-section .container { position: relative; z-index: 2; }

.three-ideas-section .pill-tag {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.85);
    border-color: rgba(255,255,255,0.12);
}

.three-ideas-section .sec-title {
    color: white;
}

.three-ideas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.idea-card {
    background: rgba(255,255,255,0.04);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 38px 32px 36px;
    transition: all 0.3s ease;
    position: relative;
}

.idea-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.06);
    box-shadow: 0 24px 56px rgba(0,0,0,0.4);
}

.idea-number {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--coral-light);
    margin-bottom: 18px;
    text-transform: uppercase;
}

.idea-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ff8aa1 0%, #b3c3ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.idea-card p {
    font-size: 0.94rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.7;
}

/* ===== FUTURE — "Hacia dónde miramos" =====
   Sección discreta entre Módulos y Casos. Tarjetas más pequeñas,
   acabado etéreo para señalar "esto aún no está, pero llega". */
.future-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    max-width: 880px;
    margin: 0 auto;
}

.future-card {
    background: white;
    border: 1px dashed var(--gray-2);
    border-radius: var(--radius);
    padding: 28px 30px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    transition: all 0.25s ease;
}

.future-card:hover {
    border-style: solid;
    border-color: rgba(102,126,234,0.28);
    background: linear-gradient(135deg, rgba(102,126,234,0.03), rgba(240,68,100,0.02));
    transform: translateY(-2px);
}

.future-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(102,126,234,0.12), rgba(240,68,100,0.10));
    color: var(--purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.future-card h4 {
    font-size: 1.02rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
    letter-spacing: -0.01em;
}

.future-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ===== AD-HOC BLOCK (cierre conceptual de la sección Módulos) ===== */
.adhoc-block {
    margin-top: 56px;
    background: linear-gradient(135deg, rgba(240,68,100,0.05) 0%, rgba(102,126,234,0.06) 100%);
    border: 1px solid rgba(240,68,100,0.18);
    border-radius: var(--radius);
    padding: 40px 44px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 32px;
    align-items: center;
}

.adhoc-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--coral), var(--coral-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    box-shadow: 0 10px 28px rgba(240,68,100,0.3);
    flex-shrink: 0;
}

.adhoc-body h3 {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
    color: var(--text);
}

.adhoc-body p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.adhoc-body p + p { margin-top: 8px; }

.adhoc-cta {
    background: linear-gradient(135deg, var(--coral), var(--coral-light));
    color: white;
    padding: 13px 26px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
    transition: all 0.25s ease;
    box-shadow: 0 6px 22px rgba(240,68,100,0.32);
}

.adhoc-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(240,68,100,0.42);
}

/* ===== MÓDULOS OKMYSTAY (Lirio / Rosa / Margarita / Tulipán / Orquídea / Jazmín) ===== */
.family-grid {
    /* 6 cards en 2 filas de 3. Caben holgadas en desktop (~1200/3 = 400px
       por card) y dan respiro al copy. */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

/* Comentario suelto que precede al pill-tag de la sección Módulos.
   Italic, gris suave, centrado — establece tono humano sin sobrecargar. */
.section-preamble {
    text-align: center;
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.97rem;
    line-height: 1.55;
    max-width: 580px;
    margin: 0 auto 22px;
}

.family-card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--gray-2);
    border-top: 4px solid var(--brand-accent, var(--coral));
    overflow: hidden;
    padding: 36px 28px 30px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.family-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 56px rgba(0,0,0,0.10);
    border-color: var(--brand-accent, var(--gray-2));
    border-top-color: var(--brand-accent, var(--coral));
}

.family-card.lirio     { --brand-accent: var(--brand-lirio); }
.family-card.rosa      { --brand-accent: var(--brand-rosa); }
.family-card.margarita { --brand-accent: var(--brand-margarita); }
.family-card.tulipan   { --brand-accent: var(--brand-tulipan); }
.family-card.orquidea  { --brand-accent: var(--brand-orquidea); }
.family-card.jazmin    { --brand-accent: var(--brand-jazmin); }

.family-card-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 22px;
    display: block;
    /* Los PNGs son la flor + glow sobre transparente (sin squircle), así
       que el drop-shadow CSS dibuja sobre la silueta real de la flor —
       crea un halo en color de marca alrededor de los pétalos. Dos
       sombras anidadas para que el halo se difumine suavemente. */
    filter: drop-shadow(0 6px 18px color-mix(in srgb, var(--brand-accent) 35%, transparent))
            drop-shadow(0 1px 3px color-mix(in srgb, var(--brand-accent) 25%, transparent));
}
.family-card-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

/* Fallback para navegadores sin color-mix (raros hoy): halo neutro. */
@supports not (color: color-mix(in srgb, red, white)) {
    .family-card-icon {
        filter: drop-shadow(0 6px 18px rgba(255,255,255,0.18));
    }
}

.family-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
    color: var(--brand-accent, var(--text));
}

.family-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 24px;
    flex-grow: 1;
}

.family-card {
    padding: 36px 28px 32px;
}

.family-cta {
    align-self: center;
    color: var(--brand-accent, var(--coral));
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 22px;
    border-radius: 50px;
    border: 1.5px solid var(--brand-accent, var(--coral));
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.family-cta:hover {
    background: var(--brand-accent, var(--coral));
    color: white;
    transform: translateY(-2px);
}

.family-cta i { font-size: 0.78rem; transition: transform 0.25s ease; }
.family-cta:hover i { transform: translateX(3px); }

/* ===== CLIENTS ===== */
.clients-section {
    background: var(--dark);
    color: white;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.client-link {
    display: block;
    text-decoration: none;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.03);
    transition: all 0.3s ease;
}

.client-link:hover {
    border-color: rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.06);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.client-photo {
    width: 100%;
    height: 120px;
    object-fit: cover;
    opacity: 0.82;
    transition: opacity 0.3s;
    display: block;
}

.client-link:hover .client-photo { opacity: 1; }

.client-name-bar {
    padding: 15px 20px;
    font-size: 0.92rem;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
}

/* ===== INTEGRATIONS ===== */
.integ-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.integ-link {
    display: block;
    text-decoration: none;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-2);
    background: white;
    transition: all 0.3s ease;
}

.integ-link:hover {
    box-shadow: 0 8px 32px rgba(102,126,234,0.12);
    transform: translateY(-3px);
    border-color: rgba(102,126,234,0.2);
}

.integ-photo {
    width: 100%;
    height: 90px;
    object-fit: cover;
    display: block;
}

/* Pastillas que en lugar de screenshot usan icono FA en cuadro de color.
   Mismas dimensiones que .integ-photo para que la grid quede uniforme. */
.integ-icon-wrap {
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: white;
}
.integ-icon-wrap.brand-ses       { background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%); }
.integ-icon-wrap.brand-verifactu { background: linear-gradient(135deg, #991B1B 0%, #DC2626 100%); }
.integ-icon-wrap.brand-whatsapp  { background: linear-gradient(135deg, #075E54 0%, #25D366 100%); }

.integ-name {
    padding: 14px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
}

/* ===== CTA FINAL ===== */
.cta-section {
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 45%, var(--coral) 100%);
    color: white;
    text-align: center;
    padding: 108px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="p" width="28" height="28" patternUnits="userSpaceOnUse"><circle cx="14" cy="14" r="1" fill="white" opacity="0.07"/></pattern></defs><rect width="200" height="200" fill="url(%23p)"/></svg>');
    pointer-events: none;
}

.cta-section .container { position: relative; z-index: 2; }

.cta-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 44px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.btn-white {
    background: white;
    color: var(--purple-dark);
    padding: 17px 38px;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.28);
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark);
    border-top: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.35);
    padding: 28px 0;
    text-align: center;
    font-size: 0.82rem;
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }
.d5 { transition-delay: 0.40s; }

/* ===== FILTRO `brand` — color por marca cuando aparece literal ===== */
.brand           { font-weight: 700; }
.brand-okmystay  { color: var(--brand-okmystay); }
.brand-margarita { color: var(--brand-margarita); }
.brand-rosa      { color: var(--brand-rosa); }
.brand-tulipan   { color: var(--brand-tulipan); }
.brand-jazmin    { color: var(--brand-jazmin); }
.brand-orquidea  { color: var(--brand-orquidea); }
.brand-lirio     { color: var(--brand-lirio); }

/* ===== RESPONSIVE ===== */

/* Tablet grande */
@media (max-width: 1024px) {
    .float-badge { display: none; }
    .feat-grid { grid-template-columns: 1fr 1fr; }
}

/* Tablet */
@media (max-width: 960px) {
    .hero-inner {
        grid-template-columns: 1fr;
        padding: 60px 0 50px;
        text-align: center;
    }
    .hero-visual { display: none; }
    .hero-actions { justify-content: center; }
    .hero-badge { justify-content: center; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .clients-grid { grid-template-columns: 1fr 1fr; }
    .integ-grid { grid-template-columns: repeat(2, 1fr); }
    .family-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .three-ideas-grid { grid-template-columns: 1fr; gap: 18px; }
    .future-grid { grid-template-columns: 1fr; }
    .adhoc-block {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 32px 28px;
        text-align: center;
    }
    .adhoc-icon { margin: 0 auto; }
}

/* Móvil grande */
@media (max-width: 640px) {
    .nav {
        padding: 0 12px;
        height: 56px;
        gap: 8px;
    }
    .nav-logo { padding: 4px 8px; }
    .nav-logo img { height: 22px; }
    .nav-langs { gap: 6px; }
    .nav-langs a img { width: 18px; }
    .nav-cta { padding: 7px 12px; font-size: 0.78rem; white-space: nowrap; }

    .hero { padding-top: 58px; }
    .hero-inner { padding: 50px 0 40px; }
    .hero h1 { font-size: 1.75rem; letter-spacing: -0.02em; }
    .hero-desc { font-size: 0.95rem; }
    .hero-badge { font-size: 0.75rem; padding: 5px 12px; }
    .btn-primary { padding: 13px 20px; font-size: 0.88rem; word-break: break-all; }
    .btn-ghost { font-size: 0.85rem; }
    .hero-actions { gap: 12px; flex-direction: column; align-items: center; }

    .stats-band { padding: 48px 0; }
    .stats-row { grid-template-columns: 1fr 1fr; gap: 1px; }
    .stat-cell { padding: 24px 12px; }
    .stat-num { font-size: 1.5rem; }          /* -20% del 1.9rem original */
    .stat-label { font-size: 0.75rem; }

    .section { padding: 60px 0; }
    .section-head { margin-bottom: 40px; }
    .feat-grid { grid-template-columns: 1fr; }
    .feat-body { padding: 20px; }

    .guest-grid { grid-template-columns: 1fr; }

    .clients-grid { grid-template-columns: 1fr; }
    .integ-grid { grid-template-columns: 1fr 1fr; }
    .family-grid { grid-template-columns: 1fr; gap: 14px; }
    .family-card { padding: 28px 22px 26px; }
    .family-card-icon { width: 100px; height: 100px; margin-bottom: 18px; }
    .family-card h3 { font-size: 1.3rem; }
    .three-ideas-grid { gap: 14px; }
    .idea-card { padding: 28px 22px 26px; }
    .idea-card h3 { font-size: 1.2rem; }
    .section-preamble { font-size: 0.9rem; }

    .cta-section { padding: 72px 0; }
    .cta-section h2 { font-size: 1.7rem; }
    .btn-white { padding: 14px 28px; font-size: 0.95rem; }

    .sec-title, h2.sec-title { font-size: 1.7rem; }
    .sec-title-white, h2.sec-title-white { font-size: 1.7rem; }
}

/* Móvil pequeño */
@media (max-width: 400px) {
    .container { padding: 0 14px; }
    .nav-cta { display: none; }
    .nav-langs a img { width: 16px; }
    .hero h1 { font-size: 1.5rem; }
    .stats-row { grid-template-columns: 1fr; }
    .stat-num { font-size: 1.75rem; }         /* -20% del 2.2rem original */
    .integ-grid { grid-template-columns: 1fr; }
}

/* Garantía anti-overflow global */
img { max-width: 100%; height: auto; }
* { min-width: 0; }
