/* ============================================
   NATILLERA DIGITAL · Landing Page Styles
   ============================================ */

body {
    background: var(--cream);
}

/* ============================================
   HERO - CORRECCIÓN DE ANIMACIÓN INFINITA SEAMLESS
   ============================================ */
.hero {
    position: relative;
    background: #1B1B3A;
    overflow: hidden; /* Mantiene el desborde de la imagen oculto */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%; /* Duplicamos el ancho para el ciclo de repetición continua */
    height: 100%;
    background-image: url('../assets/hero-background.jpg'); /* Corregido de .PNG a .jpg según tu archivo real */
    background-size: 50% auto; /* Cada mosaico de imagen ocupará exactamente el 100% de la pantalla */
    background-repeat: repeat-x;
    background-position: center center;
    opacity: 0.15;
    z-index: 0;
    animation: heroPan 45s linear infinite; /* Subido a 45s para que el paneo por el fondo sea sutil y majestuoso */
}

@keyframes heroPan {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Al llegar a -50%, la segunda copia se alinea perfecto y el reset es invisible */
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(201, 168, 76, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(29, 158, 117, 0.06) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.hero-text {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    padding: 120px 0 80px;
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}

.hero-text h1 {
    font-family: 'Crimson Pro', serif;
    font-size: 64px;
    font-weight: 700;
    color: white;
    line-height: 1.05;
    margin-bottom: 28px;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-text h1 .gold-text {
    color: var(--gold);
    display: block;
    position: relative;
    margin-top: 8px;
}

.hero-text h1 .gold-text::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.5);
}

.trust-badge {
    background: linear-gradient(135deg, #1D9E75 0%, #188764 100%);
    padding: 24px 32px;
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(29, 158, 117, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.trust-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%   { left: -100%; }
    100% { left: 100%; }
}

.trust-badge p {
    color: white;
    font-size: 17px;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.2px;
    position: relative;
    z-index: 1;
}

.trust-badge small {
    display: block;
    margin-top: 10px;
    color: white;
    opacity: 0.95;
    font-size: 13px;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.cta-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* ============================================
   HERO STATS BAR
   ============================================ */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.stat-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    padding: 32px 24px;
    text-align: center;
    border-right: 1px solid rgba(212, 175, 55, 0.2);
    transition: background 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:last-child {
    border-right: none;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--teal));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.stat-card:hover { background: rgba(255, 255, 255, 0.14); }
.stat-card:hover::before { transform: scaleX(1); }

.stat-number {
    font-family: 'Crimson Pro', serif;
    font-size: 36px;
    font-weight: 700;
    color: #F4D03F;
    margin-bottom: 8px;
    line-height: 1;
    text-shadow: 0 2px 15px rgba(244, 208, 63, 0.6);
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ============================================
   SECTION TITLE (shared across page sections)
   ============================================ */
.section-title {
    font-family: 'Crimson Pro', serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--navy);
    text-align: center;
    margin-bottom: 60px;
}

.section-title span {
    color: var(--gold);
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
    padding: 100px 0;
    background: white;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
}

.step {
    text-align: center;
    padding: 40px 30px;
    border-radius: 20px;
    background: var(--cream);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--teal));
}

.step:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(26, 43, 74, 0.15);
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--navy), var(--dark-navy));
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    margin: 0 auto 24px;
    box-shadow: 0 8px 20px rgba(26, 43, 74, 0.2);
}

.step h3 {
    font-size: 22px;
    color: var(--navy);
    margin-bottom: 16px;
    font-weight: 600;
}

.step p {
    color: var(--navy);
    opacity: 0.8;
    line-height: 1.7;
    font-size: 15px;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(2) { animation-delay: 0.2s; }
.step:nth-child(3) { animation-delay: 0.3s; }
.step:nth-child(4) { animation-delay: 0.4s; }

/* ============================================
   TIERS
   ============================================ */
.tiers {
    padding: 100px 0;
    background: var(--navy);
    color: white;
}

.tiers .section-title { color: white; }

.tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.tier-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 40px;
    border: 2px solid rgba(201, 168, 76, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tier-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tier-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.tier-card:hover::before { opacity: 1; }

.tier-emoji {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.tier-name {
    font-family: 'Crimson Pro', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 12px;
}

.tier-amount {
    font-size: 24px;
    font-weight: 600;
    color: var(--teal);
    margin-bottom: 20px;
}

.tier-description {
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 24px;
}

.tier-features {
    list-style: none;
}

.tier-features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    opacity: 0.85;
}

.tier-features li:last-child { border-bottom: none; }

.tier-features li::before {
    content: '✓';
    color: var(--teal);
    font-weight: bold;
    margin-right: 10px;
}

/* ============================================
   TRUST / SECURITY SECTION
   ============================================ */
.trust {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--cream) 0%, white 100%);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.trust-item {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(26, 43, 74, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.trust-item:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
}

.trust-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.trust-item h3 {
    font-size: 20px;
    color: var(--navy);
    margin-bottom: 12px;
    font-weight: 600;
}

.trust-item p {
    color: var(--navy);
    opacity: 0.8;
    font-size: 15px;
    line-height: 1.6;
}

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta {
    padding: 100px 0;
    background: var(--navy);
    color: white;
    text-align: center;
}

.final-cta h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
}

.final-cta p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-text {
        padding: 80px 0 60px;
    }

    .hero-text h1 { font-size: 42px; }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-card {
        border-right: none;
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
        padding: 24px 16px;
    }

    .stat-card:nth-child(2n) { border-right: none; }
    .stat-card:last-child,
    .stat-card:nth-last-child(2):nth-child(odd) { border-bottom: none; }

    .stat-number { font-size: 28px; }
    .stat-label  { font-size: 11px; }

    .section-title { font-size: 36px; }

    .cta-group {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: auto;
        min-width: 280px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 { font-size: 34px; }
}
