/* =====================================================
   ESTILOS GENERALES
   ===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    color: #413D45;
    background: white;
}

/* =====================================================
   FONDOS DE SECCIONES
   ===================================================== */
.section-bg-image {
    background-image: url('https://gemind.app/juegos-eya/info/imagenes/hero-big-scaled.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.section-bg-white {
    background: white;
}

.section-bg-pattern {
    background-color: #F5F2ED;
    position: relative;
    padding: 120px 20px;
}

/* Curva superior para secciones con patrón */
.section-bg-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: white;
    clip-path: ellipse(100% 100% at 50% 0%);
}

/* Curva inferior para secciones con patrón */
.section-bg-pattern::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: white;
    clip-path: ellipse(100% 100% at 50% 100%);
}

/* Asegurar que el contenido esté por encima de las curvas */
.section-bg-pattern .container,
.section-bg-pattern .testimonials-grid {
    position: relative;
    z-index: 1;
}

/* =====================================================
   HEADER
   ===================================================== */
.header {
    background: #F5F2ED;
    padding: 20px 0;
    text-align: center;
}

.header img {
    height: 40px;
    width: auto;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
}

.hero-container {
    text-align: center;
    max-width: 900px;
    width: 100%;
}

.hero h1 {
    font-size: 50px;
    font-weight: 800;
    line-height: 1.2;
    color: #413D45;
    margin-bottom: 30px;
}

.hero .subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #28A4AD;
    margin-bottom: 30px;
}

.hero .description {
    font-size: 20px;
    line-height: 1.6;
    color: #413D45;
    margin-bottom: 40px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
}

.hero .btn {
    display: block;
    margin: 0 auto 40px auto;
    width: fit-content;
}

.feature-list {
    list-style: none;
    margin: 0 auto;
    display: block;
    text-align: left;
    font-size: 22px;
    width: fit-content;
}

.feature-list li {
    font-size: 22px;
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: #413D45;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #FAB53A;
    font-weight: bold;
}

/* =====================================================
   BOTONES
   ===================================================== */
.btn {
    display: inline-block;
    padding: 12px 35px;
    background: #28A4AD;
    color: white;
    text-decoration: none;
    border-radius: 28px;
    font-size: 22px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 164, 173, 0.3);
}

.btn-outline {
    background: white;
    color: #28A4AD;
    border: 1px solid #28A4AD;
    padding: 12px 60px;
}

.btn-white {
    background: white;
    color: #28A4AD;
}

/* =====================================================
   SECCIONES GENERALES
   ===================================================== */
section {
    padding: 100px 20px;
}

.what-is-section {
    padding-top: 60px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

h2 {
    font-size: 30px;
    font-weight: 800;
    color: #413D45;
    margin-bottom: 40px;
}

.subtitle-section {
    font-size: 28px;
    font-weight: 600;
    color: #28A4AD;
    margin-bottom: 30px;
    line-height: 1.4;
}

.text-section {
    font-size: 20px;
    color: #413D45;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* =====================================================
   SECCIÓN AUTOR (Jesús Jarque)
   ===================================================== */
.author-section {
    display: grid;
    grid-template-columns: 31% 69%;
    gap: 40px;
    align-items: center;
    max-width: 900px;
    margin: 60px auto;
}

.author-image {
    text-align: center;
}

.author-image img {
    border-radius: 50%;
    width: 100%;
}

.author-content {
    text-align: left;
}

.author-content .text-section {
    margin-bottom: 20px;
}

.author-bio {
    font-style: italic;
    margin-top: 40px;
}

/* =====================================================
   CÓMO FUNCIONA
   ===================================================== */
.features-bg {
    padding: 80px 20px 100px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    border: 1px solid #E4DBCE;
    border-radius: 30px;
    padding: 40px 30px;
    text-align: center;
}

.feature-card img {
    width: 180px;
    margin-bottom: 30px;
}

.feature-card h3 {
    font-size: 28px;
    font-weight: 800;
    color: #413D45;
    margin-bottom: 20px;
}

.feature-card p {
    font-size: 18px;
    color: #413D45;
    line-height: 1.6;
}

/* =====================================================
   PARA QUIÉN ES
   ===================================================== */
.target-item {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.target-icon {
    text-align: center;
}

.target-icon img {
    width: 60%;
}

.target-content {
    text-align: left;
}

.target-content h3 {
    font-size: 28px;
    font-weight: 600;
    color: #28A4AD;
    margin-bottom: 20px;
    line-height: 1.3;
}

.target-content p {
    font-size: 20px;
    color: #413D45;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* =====================================================
   DISPONIBILIDAD
   ===================================================== */
.availability-section {
    padding: 60px 20px;
}

/* =====================================================
   PLANES Y PRECIOS
   ===================================================== */
.plans-section {
    background: #413D45;
    color: white;
    padding: 100px 20px 150px;
    position: relative;
}

.plans-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: white;
    clip-path: polygon(0 0, 100% 0, 100% 20%, 50% 100%, 0 20%);
}

.plans-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: white;
    clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
}

.plans-section h2 {
    color: white;
}

/* Toggle de precios */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

.pricing-toggle span {
    font-size: 20px;
    color: white;
    transition: all 0.3s;
}

.pricing-toggle .active {
    font-weight: 700;
    color: #FAB53A;
}

.toggle-switch {
    position: relative;
    width: 70px;
    height: 35px;
    background: #28A4AD;
    border-radius: 35px;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle-switch input {
    display: none;
}

.toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 29px;
    height: 29px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle-switch input:checked ~ .toggle-slider {
    transform: translateX(35px);
}

/* Grid de planes */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 60px auto 0;
}

.plan-card {
    background: white;
    color: #413D45;
    border-radius: 30px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
}

.plan-card.featured {
    border: 2px solid #FAB53A;
    box-shadow: 0 0 30px rgba(250, 181, 58, 0.4);
}

.plan-card h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 15px;
}

.plan-card .plan-desc {
    font-size: 15px;
    font-style: italic;
    margin-bottom: 25px;
    min-height: 60px;
}

.plan-price {
    font-size: 52px;
    font-weight: 600;
    color: #28A4AD;
    margin: 20px 0;
}

.price-period {
    font-size: 20px;
}

.old-price {
    font-size: 24px;
    color: #999;
    text-decoration: line-through;
    display: block;
    margin-bottom: 10px;
}

.savings-badge {
    background: #FAB53A;
    color: #413D45;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
}

.plan-card hr {
    border: none;
    border-top: 1px solid #D1D1D1;
    margin: 25px 0;
}

.plan-features {
    list-style: none;
    text-align: left;
    margin: 25px 0;
}

.plan-features li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-size: 16px;
}

.plan-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #FAB53A;
}

.plan-features li.disabled::before {
    content: "!";
    color: #C7C7C7;
}

.cta-container {
    margin-top: 50px;
}

/* =====================================================
   TESTIMONIOS
   ===================================================== */
.testimonials-bg {
    padding: 80px 20px 100px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 60px auto 0;
}

.testimonial-card {
    background: white;
    border: 1px solid #E4DBCE;
    border-radius: 30px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
}

.testimonial-text {
    font-size: 18px;
    color: #413D45;
    margin-bottom: 25px;
    line-height: 1.6;
}

.testimonial-author {
    font-size: 18px;
    font-weight: 500;
    color: #413D45;
    text-align: right;
    line-height: 1.4;
}

/* =====================================================
   LOGOS
   ===================================================== */
.logos-section {
    padding: 60px 20px;
}

.logos-intro {
    font-size: 18px;
    font-style: italic;
    margin-bottom: 40px;
}

.logos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.logo-item {
    width: 150px;
}

.logo-item img {
    width: 100%;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s;
}

.logo-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: #413D45;
    color: #F5F2ED;
    padding: 60px 20px;
    text-align: center;
}

.footer img {
    width: 150px;
    margin-bottom: 20px;
}

/* =====================================================
   WHATSAPP BUTTON
   ===================================================== */
.whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25D366;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.3s;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

.whatsapp-btn svg {
    width: 35px;
    height: 35px;
    fill: white;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 38px;
    }
    
    .hero .subtitle {
        font-size: 16px;
    }
    
    .hero .description {
        font-size: 18px;
        text-align: left;
    }
    
    .feature-list li {
        font-size: 18px;
    }
    
    .btn {
        font-size: 18px;
        padding: 10px 25px;
    }
    
    section {
        padding: 60px 20px;
    }
    
    .features-grid,
    .plans-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .target-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .target-content {
        text-align: center;
    }
    
    .author-section {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .author-content {
        text-align: center;
    }
    
    .logos-grid {
        gap: 20px;
    }
    
    .logo-item {
        width: 100px;
    }
}