/* =============================================================
   Tema claro enterprise para la landing publica de Zelanda Demo
   Overrides del <style> inline en layouts/landing.php
   ============================================================= */

/* Header: glass blanco */
.landing-header {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid #E2E8F0;
    backdrop-filter: blur(14px) saturate(1.1);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.landing-header nav a {
    color: #475569;
}

.landing-header nav a:hover {
    color: #2563EB;
}

/* Hero: gradiente claro con acentos sutiles */
.hero {
    background:
        radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.07), transparent 42%),
        radial-gradient(circle at 80% 70%, rgba(20, 184, 166, 0.06), transparent 45%),
        linear-gradient(180deg, #EFF6FF 0%, #FFFFFF 78%);
    padding: 6rem 1.5rem 8rem;
}

.hero .inner {
    position: relative;
    z-index: 2;
}

.glow {
    filter: blur(90px);
    opacity: 0.6;
}

/* Panel del texto del hero: tarjeta blanca limpia */
.hero-text {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid #E2E8F0;
    border-radius: 1.5rem;
    padding: 2.25rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 16px 40px -20px rgba(15, 23, 42, 0.18);
}

.hero h1 {
    text-shadow: none;
}

.hero .eyebrow,
.hero-badges span {
    background: #FFFFFF;
    border: 1px solid #DBEAFE;
    color: #1D4ED8;
    backdrop-filter: blur(8px);
}

.hero-badges span {
    border-color: #E2E8F0;
    color: #475569;
}

/* Botones */
.btn-white {
    background: #FFFFFF;
    border: 1.5px solid #CBD5E1;
    color: #334155;
    backdrop-filter: none;
}

.btn-white:hover {
    border-color: #2563EB;
    color: #2563EB;
}

.btn-teal {
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.28);
}

/* Marco del mockup de la app */
.hero-visual {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid #E2E8F0;
    border-radius: 1.5rem;
    padding: 1rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px -24px rgba(15, 23, 42, 0.25);
}

.demo-app {
    border-radius: 1rem;
    border: 1px solid #E2E8F0;
    box-shadow: 0 16px 40px -16px rgba(15, 23, 42, 0.22);
}

/* Features: fondo claro */
.features {
    background: #F8FAFC;
    color: #0F172A;
    position: relative;
    overflow: hidden;
    padding: 6rem 1.5rem;
}

.features::before,
.features::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}

.features::before {
    top: -10%;
    right: -5%;
    width: 420px;
    height: 420px;
    background: rgba(37, 99, 235, 0.07);
}

.features::after {
    bottom: -15%;
    left: -10%;
    width: 380px;
    height: 380px;
    background: rgba(20, 184, 166, 0.06);
}

.features .inner {
    position: relative;
    z-index: 1;
}

.features h2 {
    color: #0F172A;
}

.feature-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 40px -16px rgba(15, 23, 42, 0.16);
    border-color: #BFDBFE;
}

.feature-card h3 {
    color: #0F172A;
}

.feature-card p {
    color: #64748B;
}

.feature-icon {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    border: none;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.25);
    margin-bottom: 1.25rem;
}

/* CTA: panel claro con acento azul */
.demo-cta {
    background: linear-gradient(180deg, #FFFFFF 0%, #EFF6FF 100%);
    border-top: 1px solid #E2E8F0;
    position: relative;
    overflow: hidden;
}

.demo-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(37, 99, 235, 0.06);
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

.demo-cta .inner {
    position: relative;
    z-index: 1;
    background: #FFFFFF;
    border: 1px solid #BFDBFE;
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    box-shadow: 0 20px 50px -24px rgba(15, 23, 42, 0.18);
    max-width: 800px;
    margin: 0 auto;
}

.demo-cta h2 {
    color: #0F172A;
}

.demo-cta p {
    color: #475569;
}

.demo-cta .btn-white {
    font-size: 1.05rem;
    padding: 0.9rem 2rem;
}

/* Footer */
.landing-footer {
    background: #FFFFFF;
    border-top: 1px solid #E2E8F0;
}

/* Mobile polish */
.hero {
    padding: 4rem 1rem 5rem;
}

.hero-text {
    padding: 1.5rem;
}

.features {
    padding: 4rem 1rem;
}

.demo-cta .inner {
    padding: 2rem 1rem;
}

@media (min-width: 769px) {
    .hero {
        padding: 6rem 1.5rem 8rem;
    }

    .hero-text {
        padding: 2.25rem;
    }

    .features {
        padding: 6rem 1.5rem;
    }

    .demo-cta .inner {
        padding: 3rem 2rem;
    }
}

/* =============================================================
   Secciones corporativas (intro, modules, feature rows, benefits)
   ============================================================= */

.section {
    background: #FFFFFF;
    color: #334155;
}

.section h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    text-align: center;
    margin: 0 0 0.75rem;
    color: #0F172A;
}

.section-subtitle {
    text-align: center;
    color: #64748B;
    max-width: 720px;
    margin: 0 auto 3rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Intro */
.intro {
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.intro-grid img {
    width: 100%;
    border-radius: 1.25rem;
    box-shadow: 0 20px 50px -20px rgba(15, 23, 42, 0.25);
    border: 1px solid #E2E8F0;
}

.intro-grid h2 {
    text-align: left;
    margin-bottom: 1rem;
}

.intro-grid .section-subtitle {
    text-align: left;
    margin-left: 0;
    margin-bottom: 1rem;
    color: #475569;
}

.intro-grid p {
    color: #64748B;
    margin: 0 0 1rem;
    line-height: 1.7;
}

/* Modules */
.modules {
    background: #F8FAFC;
    position: relative;
    overflow: hidden;
}

.modules-alt {
    background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.module-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 1.25rem;
    padding: 1.75rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -16px rgba(15, 23, 42, 0.16);
    border-color: #BFDBFE;
}

.module-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.6rem;
    color: #0F172A;
}

.module-card p {
    font-size: 0.95rem;
    color: #64748B;
    line-height: 1.55;
    margin: 0;
}

/* Feature rows */
.feature {
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}

.feature-alt {
    background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.feature-grid.reverse {
    direction: rtl;
}

.feature-grid.reverse > * {
    direction: ltr;
}

.feature-text h2 {
    text-align: left;
    margin-bottom: 1rem;
}

.feature-text p {
    color: #64748B;
    line-height: 1.7;
    margin: 0 0 1.25rem;
}

.feature-text ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.feature-text li {
    color: #475569;
    margin-bottom: 0.6rem;
    padding-left: 1.6rem;
    position: relative;
}

.feature-text li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: #0D9488;
    font-weight: 700;
}

.feature-image img {
    width: 100%;
    border-radius: 1.25rem;
    box-shadow: 0 20px 50px -20px rgba(15, 23, 42, 0.25);
    border: 1px solid #E2E8F0;
}

/* Benefits */
.benefits {
    background: linear-gradient(180deg, #F0F9FF 0%, #FFFFFF 100%);
    color: #334155;
    text-align: center;
}

.benefits h2 {
    color: #0F172A;
}

.benefits .section-subtitle {
    color: #64748B;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    text-align: center;
    padding: 1.5rem;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 1.25rem;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    border-color: #BFDBFE;
    box-shadow: 0 16px 36px -16px rgba(15, 23, 42, 0.14);
}

.benefit-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #EFF6FF;
    color: #2563EB;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #0F172A;
}

.benefit-card p {
    color: #64748B;
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
}

/* Footer */
.landing-footer {
    background: #FFFFFF;
    text-align: left;
    padding: 3rem 1.5rem 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 2.5rem;
}

.landing-footer h3 {
    color: #0F172A;
    font-size: 1.25rem;
    margin: 0 0 1rem;
}

.landing-footer h4 {
    color: #0F172A;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1rem;
}

.landing-footer p {
    color: #64748B;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.landing-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.landing-footer li {
    margin-bottom: 0.5rem;
    color: #64748B;
    font-size: 0.9rem;
}

.landing-footer a {
    color: #64748B;
    text-decoration: none;
    transition: color 0.2s;
}

.landing-footer a:hover {
    color: #2563EB;
}

.footer-bottom {
    border-top: 1px solid #E2E8F0;
    padding-top: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.8rem;
    color: #94A3B8;
}

.footer-bottom p {
    margin: 0;
}

.intro-grid,
.feature-grid {
    grid-template-columns: 1fr;
}

.feature-grid.reverse {
    direction: ltr;
}

.intro-grid h2,
.feature-text h2,
.intro-grid .section-subtitle,
.feature-text p {
    text-align: center;
}

.feature-text ul {
    display: inline-block;
    text-align: left;
}

.footer-bottom {
    flex-direction: column;
    text-align: center;
}

@media (min-width: 861px) {
    .intro-grid,
    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }

    .feature-grid.reverse {
        direction: rtl;
    }

    .intro-grid h2,
    .feature-text h2,
    .intro-grid .section-subtitle,
    .feature-text p {
        text-align: left;
    }

    .feature-text ul {
        display: block;
        text-align: left;
    }

    .footer-bottom {
        flex-direction: row;
        text-align: left;
    }
}

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .fade-in-up,
    .delay-1,
    .delay-2,
    .delay-3 {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    .module-card:hover,
    .benefit-card:hover,
    .feature-card:hover,
    .demo-kpi:hover,
    .btn-teal:hover,
    .btn-white:hover {
        transform: none !important;
    }
}
