/* Estilos para la página de inicio - PEGASUS - OPTIMIZADO */

/* ========================================
   VARIABLES CSS - COLORES Y VALORES REUTILIZABLES
======================================== */
:root {
    /* Colores principales */
    --primary-green: #2c4a3d;
    --dark-green: #1e3529;
    --darker-green: #243629;
    --light-beige: #e0d3c3;
    --medium-beige: #d4b896;
    --darker-beige: #c7ab89;
    --brown: #8b7355;
    --background-light: #f4f6f5;
    --background-cream: #E6DCD0;
    
    /* Colores de texto */
    --text-primary: #2c4a3d;
    --text-secondary: #666;
    --text-light: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(36, 54, 41, 0.7);
    
    /* Espaciado */
    --section-padding: 80px 20px;
    --container-max-width: 1200px;
    --border-radius-small: 10px;
    --border-radius-medium: 20px;
    --border-radius-large: 25px;
    --border-radius-pill: 50px;
    
    /* Transiciones */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.4s ease;
    --transition-smooth: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Sombras */
    --shadow-light: 0 8px 25px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 15px 40px rgba(0, 0, 0, 0.1);
    --shadow-green: 0 8px 25px rgba(44, 74, 61, 0.3);
    
    /* Tipografía */
    --font-size-small: 0.9rem;
    --font-size-medium: 1.1rem;
    --font-size-large: 1.5rem;
    --font-size-xlarge: 2.8rem;
    --font-size-hero: 3rem;
}

/* ========================================
   ELEMENTOS COMUNES REUTILIZABLES
======================================== */

/* Contenedores base */
.section-container,
.hero-container,
.beneficios-container,
.precio-container,
.testimonios-container,
.faq-container,
.contact-container,
.how-it-works-container,
.features-carousel-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
}

/* FIX OVERFLOW HORIZONTAL (solo página de inicio) */
body.page-template-page-inicio {
    overflow-x: hidden;
}

/* Headers de sección */
.section-header,
.section-header-timeline,
.section-header-features {
    text-align: left;
    margin-bottom: 50px;
}

.section-label {
    font-size: var(--font-size-small);
    color: var(--brown);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.section-title,
.timeline-title,
.features-title,
.faq-main-title {
    font-size: var(--font-size-xlarge);
    font-weight: 700;
    color: var(--primary-green);
    margin: 0 0 20px 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Estilos de botones base */
.btn-base,
.btn-primary,
.btn-secondary,
.control-btn,
.carousel-btn,
.tab-action-btn {
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    position: relative;
    z-index: 5;
}

.btn-primary {
    background: var(--light-beige);
    color: var(--primary-green) !important;
    padding: 15px 50px;
    border-radius: var(--border-radius-pill);
    font-size: var(--font-size-medium);
    min-width: 180px;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:visited {
    background: var(--darker-beige);
    color: var(--primary-green) !important;
    text-decoration: none !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-green);
}

.btn-secondary {
    background: transparent;
    color: var(--medium-beige);
    width: 60px;
    height: 60px;
    border: 2px solid var(--medium-beige);
    border-radius: 50%;
    font-size: 1.2rem;
    padding: 0;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active,
.btn-secondary:visited {
    background: var(--medium-beige);
    color: var(--primary-green) !important;
    text-decoration: none !important;
    transform: translateY(-2px) scale(1.05);
}

/* Botones de control circular */
.control-btn,
.carousel-btn,
.tab-action-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--background-cream);
    color: var(--primary-green);
    overflow: hidden;
}

.control-btn:hover,
.carousel-btn:hover,
.tab-action-btn:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-green);
}

/* Efecto de ondas común */
.control-btn::before,
.carousel-btn::before,
.tab-action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all var(--transition-medium);
}

.control-btn:hover::before,
.carousel-btn:hover::before,
.tab-action-btn:hover::before {
    width: 100px;
    height: 100px;
}

/* ========================================
   SECCIÓN HERO
======================================== */

.hero-section {
    display: flex;
    align-items: center;
    min-height: 60vh;
    background: var(--darker-green);
    position: relative;
    overflow: hidden;
    padding-top: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker-green);
    z-index: 1;
}

.hero-container {
    display: flex;
    gap: 80px;
    position: relative;
    z-index: 2;
    padding: 140px 20px 2px 20px;
    min-height: 60vh;
    align-items: center;
}

.hero-content {
    flex: 1;
    color: white;
}

.hero-title {
    font-size: var(--font-size-hero);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    display: inline;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.hero-image {
    flex: 1;
    position: relative;
    align-self: flex-end;
    margin-bottom: 0;
    margin-right: -20px;
    height: 60vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    object-position: bottom;
    display: block;
}

/* Sobrescribir estilos de WordPress que causan problemas */
.hero-buttons a,
.hero-buttons a:hover,
.hero-buttons a:focus,
.hero-buttons a:active,
.hero-buttons a:visited {
    text-decoration: none !important;
    box-shadow: none !important;
}

/* Asegurar que los botones no hereden estilos de WordPress */
.btn-primary:not(.wp-block-button__link),
.btn-secondary:not(.wp-block-button__link) {
    text-decoration: none !important;
}

/* Estilos específicos para los botones del hero */
.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
    text-decoration: none !important;
    outline: none !important;
}

.hero-buttons .btn-primary:hover,
.hero-buttons .btn-primary:focus,
.hero-buttons .btn-primary:active,
.hero-buttons .btn-secondary:hover,
.hero-buttons .btn-secondary:focus,
.hero-buttons .btn-secondary:active {
    text-decoration: none !important;
    outline: none !important;
}

/* Corregir el botón circular que puede estar roto */
.hero-buttons .btn-secondary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content > * {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-title { animation-delay: 0.2s; }
.hero-description { animation-delay: 0.4s; }
.hero-buttons { animation-delay: 0.6s; }
.hero-image { animation-delay: 0.3s; }

/* Header personalizado para esta página */
.page-template-page-inicio #masthead {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: rgba(44, 74, 61, 0.95);
    backdrop-filter: blur(10px);
    transition: all var(--transition-fast);
}

.page-template-page-inicio .site-branding .site-title a,
.page-template-page-inicio .main-navigation a {
    color: white;
}

.page-template-page-inicio .site-description {
    color: var(--text-light);
}

/* ========================================
   SECCIÓN DE BENEFICIOS CON PESTAÑAS
======================================== */

.beneficios-section {
    background: var(--background-light);
    padding: var(--section-padding);
    /* Prevenir overflow horizontal en toda la sección */
    overflow-x: hidden;
}

.beneficios-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    /* Prevenir overflow horizontal en el contenedor */
    overflow-x: hidden;
}

.tabs-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    /* Asegurar que el contenedor de tabs no cause overflow */
    width: 100%;
    overflow: hidden;
}

.tabs-nav {
    display: flex;
    flex-direction: row;
    gap: 5px;
    margin-bottom: 0;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE y Edge */
    /* Limitar el ancho para prevenir overflow en el padre */
    max-width: 100%;
    /* Agregar padding interno para compensar */
    padding: 0 0 5px 0;
}

/* Ocultar scrollbar en WebKit */
.tabs-nav::-webkit-scrollbar {
    display: none;
}

.tab-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 25px;
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: 15px 15px 0 0;
    font-size: var(--font-size-small);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
    min-height: 60px;
    position: relative;
    z-index: 2;
    /* Prevenir que los botones se encojan demasiado */
    flex-shrink: 0;
    white-space: nowrap;
}

.tab-button:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
}

.tab-button.active {
    background: white;
    color: var(--primary-green);
    transform: translateY(0);
    border-bottom: 1px solid white;
}

.tab-button .tab-icon {
    font-size: var(--font-size-medium);
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tabs-content {
    background: white;
    border-radius: 0 var(--border-radius-medium) var(--border-radius-medium) var(--border-radius-medium);
    padding: 0;
    box-shadow: var(--shadow-medium);
    min-height: 260px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.tab-content {
    display: none;
    padding: 40px 40px 0px 40px;
    height: 100%;
    min-height: 250px;
}

.tab-content.active {
    display: block;
}

.tab-info {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    height: 100%;
    position: relative;
    padding-bottom: 95px;
}

.tab-icon-large {
    font-size: 3rem;
    background: #f8f8f8;
    width: 90px;
    height: 90px;
    border-radius: var(--border-radius-medium);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tab-icon-large::after {
    content: '';
    position: absolute;
    left: 120px;
    top: 25%;
    transform: translateY(-50%);
    height: 60%;
    width: 2px;
    background: #e0e0e0;
    border-radius: 1px;
}

.tab-text {
    flex: 1;
    padding-left: 20px;
}

.tab-text h3 {
    font-size: var(--font-size-large);
    font-weight: 600;
    color: var(--primary-green);
    margin: 0 0 15px 0;
}

.tab-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.tab-action-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    flex-shrink: 0;
}

/* ========================================
   SECCIÓN DE PRECIOS
======================================== */

.precio-section {
    background: var(--background-light);
    padding: var(--section-padding);
    min-height: 100vh;
}

.precio-section .section-description {
    font-size: var(--font-size-medium);
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.pricing-card {
    background: white;
    border-radius: var(--border-radius-large);
    padding: 0;
    box-shadow: var(--shadow-heavy);
    overflow: hidden;
    margin: 0 auto;
}

.pricing-content {
    display: flex;
    align-items: center;
    gap: 0;
    min-height: 300px;
}

.pricing-icon {
    background: var(--primary-green);
    min-width: 200px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center; /* Centrar la imagen en desktop */
    border-radius: var(--border-radius-large) 0 0 var(--border-radius-large);
    overflow: hidden;
    padding: 0;
    position: relative;
}

.pricing-icon-text {
    display: none; /* Oculto por defecto en desktop */
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    text-align: left;
}

.pricing-icon img {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0;
}

.pricing-info {
    flex: 1;
    padding: 40px 30px;
}

.pricing-plan {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-green);
    margin: 0 0 15px 0;
    letter-spacing: 1px;
}

.pricing-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 25px 0;
}

.pricing-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-check {
    background: #E6DCD0;
    color: #24362A;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0;
}

.feature-text {
    font-size: var(--font-size-small);
    color: var(--text-secondary);
}

.pricing-price {
    min-width: 200px;
    padding: 30px 25px;
    border-left: 1px solid #f0f0f0; /* Mantener línea vertical en desktop */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0;
    border-top: none; /* Asegurar que no hay borde superior en desktop */
}

/* Solo en tablet y mobile cambiar a borde horizontal */
@media (max-width: 768px) {
    .pricing-price {
        border-left: none; /* Quitar línea vertical */
        border-top: 1px solid #f0f0f0; /* Agregar línea horizontal */
    }
}

.currency {
    font-size: var(--font-size-large);
    font-weight: 600;
    color: var(--primary-green);
}

.amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin: 0 5px;
}

.period {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.pricing-btn {
    background: var(--primary-green);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: var(--border-radius-large);
    font-weight: 600;
    font-size: var(--font-size-small);
    cursor: pointer;
    transition: all var(--transition-fast);
    letter-spacing: 0.5px;
    margin-top: 20px;
}

.pricing-btn:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-green);
}

/* Efecto especial para precio "Coming Soon" - VERSIÓN MEJORADA */
.price-amount.coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
}

.price-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.price-main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.price-label {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-green);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.price-animation {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.dot {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    border-radius: 50%;
    opacity: 0.3;
    animation: dotPulseAdvanced 2s infinite ease-in-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ripple 2s infinite ease-out;
    animation-delay: inherit;
}

.dot-1 {
    animation-delay: 0s;
}

.dot-2 {
    animation-delay: 0.3s;
}

.dot-3 {
    animation-delay: 0.6s;
}

@keyframes dotPulseAdvanced {
    0%, 80%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    40% {
        opacity: 1;
        transform: scale(1.3);
    }
}

@keyframes ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 20px;
        height: 20px;
        opacity: 0;
    }
}

/* Texto debajo del botón */
.price-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    opacity: 0.8;
    margin-top: 15px;
    text-align: center;
    display: block;
    width: 100%;
}

/* Mejorar el botón con efectos avanzados */
.pricing-btn {
    background: linear-gradient(135deg, var(--primary-green) 0%, #1a3d2e 100%);
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 
        0 4px 15px rgba(44, 74, 61, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.pricing-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.pricing-btn:hover::before {
    left: 100%;
}

.pricing-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(44, 74, 61, 0.4),
        0 4px 16px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #1a3d2e 0%, var(--primary-green) 100%);
}

.pricing-btn:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

/* Ajustar el contenedor de precio */
.pricing-price {
    min-width: 200px;
    padding: 30px 25px;
    border-left: 1px solid #f0f0f0; /* Mantener línea vertical en desktop */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0;
    border-top: none; /* Asegurar que no hay borde superior en desktop */
}

/* Solo en tablet y mobile cambiar a borde horizontal */
@media (max-width: 768px) {
    .pricing-price {
        border-left: none; /* Quitar línea vertical */
        border-top: 1px solid #f0f0f0; /* Agregar línea horizontal */
    }
}

/* ========================================
   SECCIÓN TESTIMONIOS
======================================== */

.testimonios-section {
    background: var(--background-light);
    padding: var(--section-padding);
}

.testimonios-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.rating-section {
    display: flex;
    justify-content: center;
}

.rating-card {
    background: var(--primary-green);
    color: white;
    padding: 40px 30px;
    border-radius: var(--border-radius-medium);
    text-align: center;
    min-width: 280px;
    box-shadow: 0 10px 30px rgba(44, 74, 61, 0.2);
}

.rating-score {
    font-size: 4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    line-height: 1;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 20px;
}

.star {
    font-size: var(--font-size-large);
    color: var(--text-secondary);
}

.star.filled {
    color: #ffd700;
}

.rating-text {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 15px;
}

.rating-subtitle {
    font-size: var(--font-size-small);
    color: var(--text-light);
    line-height: 1.4;
    margin-bottom: 25px;
}

.customer-avatars {
    display: flex;
    justify-content: center;
    gap: -5px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid white;
    overflow: hidden;
    margin-left: -5px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.avatar:first-child {
    margin-left: 0;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-section {
    display: flex;
    align-items: center;
}

.testimonial-card {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-medium);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.testimonial-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.testimonial-slide.active {
    display: block;
    opacity: 1;
}

.testimonial-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.testimonial-rating .star {
    font-size: 1.2rem;
    color: #ffd700;
}

.rating-number {
    font-size: var(--font-size-medium);
    font-weight: 600;
    color: var(--primary-green);
    margin-left: 5px;
}

.testimonial-text {
    margin-bottom: 30px;
}

.testimonial-text p {
    font-size: var(--font-size-medium);
    line-height: 1.6;
    color: #333;
    margin: 0;
    font-style: italic;
}

.testimonial-author {
    margin-bottom: 30px;
}

.author-info h4 {
    font-size: var(--font-size-medium);
    font-weight: 600;
    color: var(--primary-green);
    margin: 0 0 5px 0;
}

.author-info p {
    font-size: var(--font-size-small);
    color: var(--text-secondary);
    margin: 0;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.control-btn {
    font-size: 1.2rem;
}

.testimonial-indicators {
    display: flex;
    gap: 8px;
    align-items: center;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d0d0d0;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.indicator.active {
    background: var(--primary-green);
    transform: scale(1.3);
}

.indicator:hover {
    background: var(--brown);
    transform: scale(1.1);
}

/* ========================================
   SECCIÓN FAQ
======================================== */

.faq-section {
    background: var(--background-light);
    padding: var(--section-padding);
    color: white;
}

.faq-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: start;
}

.faq-title-section {
    position: sticky;
    top: 100px;
}

.faq-subtitle {
    font-size: var(--font-size-medium);
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 15px 0 0 0;
    opacity: 1;
    transform: translateY(0);
}

.faq-item {
    border-bottom: 2px solid rgba(36, 54, 41, 0.1);
    transition: border-color var(--transition-fast);
}

.faq-item:last-child {
    border-bottom: 2px solid rgba(36, 54, 41, 0.1);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--darker-green);
    font-size: var(--font-size-medium);
    font-weight: 600;
    padding: 25px 0;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-fast);
    line-height: 1.4;
}

.faq-question:hover {
    color: var(--dark-green);
    transform: translateX(5px);
}

.faq-icon {
    font-size: var(--font-size-large);
    font-weight: 300;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    margin-left: 20px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--medium-beige);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-medium);
    padding: 0;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 0 25px 0;
}

.faq-answer p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
    padding-right: 40px;
}

/* ========================================
   SECCIÓN DE CONTACTO
======================================== */

.contact-section {
    background: #f8f8f8;
    padding: var(--section-padding);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-icon {
    background: var(--primary-green);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-title {
    font-size: var(--font-size-medium);
    font-weight: 600;
    color: var(--primary-green);
    margin: 0;
}

.contact-description {
    font-size: var(--font-size-small);
    color: var(--text-secondary);
    margin: 0;
}

.contact-form {
    background: white;
    border-radius: var(--border-radius-medium);
    padding: 40px;
    box-shadow: var(--shadow-medium);
}

.form-group {
    margin-bottom: 20px;
}

.label {
    font-size: var(--font-size-small);
    color: var(--primary-green);
    margin-bottom: 5px;
    display: block;
}

.input, .textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--medium-beige);
    border-radius: var(--border-radius-small);
    font-size: 1rem;
    color: #333;
    transition: border-color var(--transition-fast);
}

.input:focus, .textarea:focus {
    border-color: var(--primary-green);
    outline: none;
}

.textarea {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    background: var(--primary-green);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: var(--border-radius-small);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-submit:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
}

/* ========================================
   SECCIÓN "HOW DOES THIS APP WORK?"
======================================== */

.how-it-works-section {
    background: var(--background-light);
    padding: var(--section-padding);
}

.how-it-works-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: center;
}

.mobile-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-mockup img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

.timeline-section {
    padding-left: 20px;
}

.section-header-timeline {
    margin-bottom: 40px;
    text-align: left;
}

.timeline-subtitle {
    font-size: var(--font-size-medium);
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    opacity: 1;
    transform: translateY(0);
}

/* Animaciones opcionales */
.timeline-section.animate .timeline-title {
    animation: titleFadeIn 1s ease forwards;
}

.timeline-section.animate .timeline-subtitle {
    animation: titleFadeIn 1s ease forwards;
    animation-delay: 0.3s;
}

@keyframes titleFadeIn {
    0% {
        opacity: 0.5;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 22px;
    bottom: 22px;
    width: 3px;
    background: white;
    border-radius: 2px;
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
}

.timeline.animate::before {
    animation: lineGrow 2s ease-out forwards;
}

@keyframes lineGrow {
    0% {
        transform: scaleY(0);
        opacity: 0;
    }
    100% {
        transform: scaleY(1);
        opacity: 1;
    }
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 20px;
    opacity: 0;
    transform: translateX(-30px);
}

.timeline.animate .timeline-item:nth-child(1) {
    animation: slideInFade 0.8s ease forwards;
    animation-delay: 0.5s;
}

.timeline.animate .timeline-item:nth-child(2) {
    animation: slideInFade 0.8s ease forwards;
    animation-delay: 1s;
}

.timeline.animate .timeline-item:nth-child(3) {
    animation: slideInFade 0.8s ease forwards;
    animation-delay: 1.5s;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

@keyframes slideInFade {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-icon {
    position: absolute;
    left: -22px;
    top: 0;
    z-index: 3;
    transform: scale(0);
    opacity: 0;
}

.timeline.animate .timeline-item:nth-child(1) .timeline-icon {
    animation: iconPop 0.6s ease forwards;
    animation-delay: 0.8s;
}

.timeline.animate .timeline-item:nth-child(2) .timeline-icon {
    animation: iconPop 0.6s ease forwards;
    animation-delay: 1.3s;
}

.timeline.animate .timeline-item:nth-child(3) .timeline-icon {
    animation: iconPop 0.6s ease forwards;
    animation-delay: 1.8s;
}

@keyframes iconPop {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    70% {
        transform: scale(1.2) rotate(-10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.icon-circle {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 12px; /* Cambio de 50% a 12px para forma cuadrada con esquinas redondeadas */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    
    box-shadow: 0 4px 12px rgba(44, 74, 61, 0.2);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.step-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-green);
    line-height: 1;
}

.timeline-content {
    padding-left: 10px;
}

.timeline-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-green);
    margin: 0 0 0px 0;
    position: relative;
    overflow: hidden;
}

.timeline-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 20px 0;
    transform: translateY(10px);
    opacity: 0.8;
    transition: all var(--transition-fast);
}

.download-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 2.2s;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.download-btn {
    background: var(--primary-green);
    color: white;
    padding: 12px 20px;
    border-radius: var(--border-radius-large);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all var(--transition-medium);
}

.download-btn:hover::before {
    width: 300px;
    height: 300px;
}

.download-btn:hover {
    background: var(--dark-green);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(44, 74, 61, 0.4);
}

.download-btn.google-play {
    background: var(--medium-beige);
    color: var(--primary-green);
}

.download-btn.google-play:hover {
    background: var(--darker-beige);
    color: var(--primary-green);
    box-shadow: 0 10px 25px rgba(212, 184, 150, 0.4);
}

.download-btn.start-now {
    background: var(--primary-green);
    color: white;
    padding: 15px 35px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius-large);
    min-width: 200px;
    justify-content: center;
}

.download-btn.start-now:hover {
    background: var(--dark-green);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(44, 74, 61, 0.5);
}

/* ========================================
   SECCIÓN "AWESOME APPS FEATURES" - CARRUSEL
======================================== */

.features-carousel-section {
    background: var(--background-light);
    padding: var(--section-padding);
    overflow: visible; /* Permitir que las tarjetas laterales se vean */
}

.section-header-features {
    text-align: center;
    margin-bottom: 60px;
}

.features-subtitle {
    font-size: var(--font-size-medium);
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

.features-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.features-track {
    display: flex;
    transition: transform var(--transition-smooth);
    gap: 30px;
    padding: 20px 0;
}

.feature-card {
    flex: 0 0 250px;
    background: white;
    padding: 40px 25px;
    border-radius: var(--border-radius-medium);
    text-align: center;
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transform: scale(0.9);
    opacity: 0.6;
}

.feature-card.active {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 15px 40px rgba(44, 74, 61, 0.15);
}

/* ========================================
   RESPONSIVE DESIGN OPTIMIZADO
======================================== */

/* Tablet */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 30px;
        --font-size-hero: 2.5rem;
        --font-size-xlarge: 2.5rem;
    }
    
    /* Header optimizado */
    .header-container { padding: 0 15px; }
    
    .main-navigation ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(44, 74, 61, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0;
        padding: 20px;
        margin-top: 10px;
        border-radius: var(--border-radius-small);
    }
    
    .main-navigation ul.show { display: flex; }
    .main-navigation li { width: 100%; text-align: center; }
    .main-navigation a { 
        display: block; 
        padding: 15px 0; 
        border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
    }
    .main-navigation a:last-child { border-bottom: none; }
    .menu-toggle { display: flex; }
    .header-cta { display: none; }
    .site-logo { width: 40px; height: 40px; }
    .site-name { font-size: 1.3rem; }
    
    /* Hero optimizado */
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .hero-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .hero-description {
        font-size: var(--font-size-medium);
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .btn-primary {
        padding: 12px 40px;
        font-size: 1rem;
        min-width: 160px;
    }
    
    .btn-secondary {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .hero-section {
        min-height: 70vh;
        padding: 20px;
    }

    /* Fix desplazamiento horizontal por margen negativo del hero */
    .hero-image { margin-right: 0; }
    
    /* Tabs optimizado */
    .tabs-nav {
        overflow-x: auto;
        overflow-y: hidden;
        gap: 3px;
        padding-bottom: 5px;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE y Edge */
    }
    
    /* Ocultar scrollbar en WebKit */
    .tabs-nav::-webkit-scrollbar {
        display: none;
    }
    
    .tab-button {
        min-width: 120px;
        flex-shrink: 0;
        padding: 12px 20px;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    .tab-info {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .tab-icon-large::after { display: none; }
    .tab-text { padding-left: 0; }
    .tab-icon-large { width: 80px; height: 80px; margin: 0 auto; }
    .tab-content { padding: 30px 20px; }
    .tabs-content { border-radius: var(--border-radius-medium); }
    
    /* Pricing optimizado */
    .pricing-content {
        flex-direction: column;
        min-height: auto;
    }
    
    .pricing-icon {
        min-width: 100%;
        height: 150px;
        border-radius: var(--border-radius-large) var(--border-radius-large) 0 0;
        justify-content: space-between;
        padding: 0 1px 0 20px;
    }
    
    .pricing-icon-text {
        display: block;
        position: static;
        transform: none;
        flex: 1;
        padding-right: 15px;
    }
    
    .pricing-icon img,
    .pricing-icon svg {
        max-width: 60px;
        max-height: 60px;
        flex-shrink: 0;
    }
    
    .pricing-info,
    .pricing-price {
        padding: 30px 20px;
    }
    
    /* Cambiar línea vertical por horizontal en mobile */
    .pricing-price {
        border-left: none;
        border-top: 1px solid #f0f0f0;
    }
    
    .currency { font-size: 1.2rem; }
    .amount { font-size: 2rem; }
    .period { font-size: var(--font-size-small); }
    
    /* Testimonials optimizado */
    .testimonios-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .rating-card {
        min-width: auto;
        max-width: 400px;
        margin: 0 auto;
        padding: 30px 25px;
    }
    
    .rating-score { font-size: 3rem; }
    .avatar { width: 35px; height: 35px; margin-left: -3px; }
    .testimonial-card { padding: 30px 25px; }
    
    /* FAQ optimizado */
    .faq-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .faq-title-section {
        position: static;
        text-align: center;
    }
    
    .faq-question {
        font-size: 1rem;
        padding: 20px 0;
    }
    
    .faq-icon {
        font-size: 1.3rem;
        margin-left: 15px;
    }
    
    .faq-answer p {
        font-size: var(--font-size-small);
        padding-right: 20px;
    }
    
    /* How it works optimizado */
    .how-it-works-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: left;
    }
    
    .timeline-content { padding-left: 20px; }
    .timeline-section { padding-left: 0; }
    .section-header-timeline { text-align: center; margin-bottom: 30px; }
    .timeline-title { font-size: 2.2rem; }
    .mobile-mockup { order: 2; }
    .timeline-section { order: 1; }
    .timeline { padding-left: 30px; }
    .timeline::before { left: 39px; }
    .timeline-icon { left: 0; }
    .icon-circle { width: 35px; height: 35px; }
    .download-buttons { justify-content: center; }
    
    /* Features Carousel optimizado */
    .features-carousel-section { padding: 60px 0; overflow: hidden; }
    .features-carousel-container { padding: 0 20px; }
    .features-carousel { overflow: hidden; }
    .features-track { gap: 20px; }
    .feature-card { flex: 0 0 min(85vw, 280px); padding: 30px 20px; }
    .feature-icon { width: 60px; height: 60px; margin-bottom: 20px; }
    .carousel-controls { margin-top: 30px; padding: 0 20px;text-align: center !important; }
}

/* Mobile */
@media (max-width: 480px) {
    :root {
        --section-padding: 60px 30px;
        --font-size-hero: 2rem;
        --font-size-xlarge: 2rem;
    }
    
    /* Elementos comunes mobile */
    .site-logo {         width: auto;
        height: 55px;
        margin-left: 5px;
        margin-top: 5px; }
    .site-name { font-size: 1.2rem; }
    .hero-buttons { gap: 15px; }
    .btn-primary { padding: 12px 35px; min-width: 140px; }
    .btn-secondary { width: 45px; height: 45px; }
    .tab-button { min-width: 100px; padding: 10px 15px; font-size: 0.7rem; }
    .pricing-icon { height: 120px; }
    .pricing-icon img, .pricing-icon svg { width: 50px; height: 50px; }
    .rating-score { font-size: 2.5rem; }
    .avatar { width: 30px; height: 30px; }
    .control-btn { width: 35px; height: 35px; }
    .faq-main-title { font-size: 2rem; }
    .timeline-title { font-size: 2rem; }
    .features-title { font-size: 2.2rem; }

    /* Features Carousel ajustes mobile para evitar overflow */
    .features-carousel-section { overflow: hidden; }
    .features-carousel { overflow: hidden; }
    .features-track { gap: 16px; }
    .feature-card { flex: 0 0 min(85vw, 260px); padding: 25px 15px; }
    .carousel-btn { width: 60px; height: 60px; }
    
    /* Ocultar mobile-mockup en mobile */
    .mobile-mockup { display: none; }
}

/* ========================================
   FOOTER PROFESIONAL
======================================== */

.site-footer {
    background: var(--primary-green);
    color: white;
    padding: 0;
    margin-top: 0;
}

.footer-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding: 80px 0 60px 0;
    align-items: start;
}

/* Columna 1: Marca */
.footer-brand {
    text-align: left;
}

.footer-brand .footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 25px;
}

.footer-logo-img {
    height: 70px;
    width: auto;
    margin-bottom: 0px;
    filter: brightness(0) invert(1); /* Hace el logo blanco para que se vea en fondo verde */
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--light-beige);
    font-weight: 400;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0;
    text-transform: uppercase;
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    max-width: 300px;
    text-align: left;
}

.footer-social {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
}

/* Columnas 2 y 3: Enlaces */
.footer-links,
.footer-support,
.footer-contact {
    text-align: left;
}

.footer-links h4,
.footer-support h4,
.footer-contact h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin: 0 0 25px 0;
    letter-spacing: 0.5px;
    text-align: left;
}

.footer-links ul,
.footer-support ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-support li {
    margin-bottom: 14px;
}

.footer-links a,
.footer-support a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    display: block;
    padding: 2px 0;
    text-align: left;
}

.footer-links a:hover,
.footer-support a:hover {
    color: var(--light-beige);
    text-decoration: none;
    transform: translateX(5px);
}

/* Columna 4: Contacto - Optimizada y más compacta */
.footer-contact {
    padding-left: 0;
}

.contact-info {
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    text-align: left;
}

.contact-item svg {
    color: var(--light-beige);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item span {
    line-height: 1.4;
}

/* Botones de descarga más compactos */
.footer-downloads {
    margin-top: 20px;
}

.footer-downloads h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    margin: 0 0 15px 0;
    letter-spacing: 0.5px;
    text-align: left;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 8px 12px;
    color: white;
    text-decoration: none;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
    width: fit-content;
    min-width: 140px;
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--light-beige);
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

.download-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.download-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: left;
}

.download-top {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1px;
}

.download-bottom {
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

/* Íconos sociales */
.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--light-beige);
    color: var(--primary-green);
    transform: translateY(-3px);
    text-decoration: none;
}

/* Separador */
.footer-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0;
}

/* Footer inferior */
.footer-bottom {
    padding: 30px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.4;
}

.footer-powered {
    margin-top: 5px !important;
}

.footer-powered strong {
    color: var(--light-beige);
    font-weight: 600;
}

.footer-legal {
    display: flex;
    gap: 25px;
    align-items: center;
}

.footer-legal a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-legal a:hover {
    color: var(--light-beige);
    text-decoration: none;
}

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

@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 0 40px 0;
        text-align: left;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-description {
        max-width: 100%;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-links,
    .footer-support,
    .footer-contact {
        text-align: left;
    }
    
    .download-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .download-btn {
        flex: 1;
        max-width: 160px;
        text-align: center;
        justify-content: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 0 15px;
    }
    
    .footer-main {
        padding: 50px 0 30px 0;
        gap: 35px;
        text-align: center; /* Centrar todo el contenido */
    }
    
    .footer-brand .footer-logo h3 {
        font-size: 1.8rem;
    }
    
    /* Centrar todo el contenido del footer en mobile */
    .footer-brand,
    .footer-links,
    .footer-support,
    .footer-contact {
        text-align: center;
    }
    
    /* Centrar logo y descripción */
    .footer-brand .footer-logo {
        align-items: center;
    }
    
    .footer-description {
        text-align: center;
        margin: 0 auto 30px auto;
    }
    
    /* Centrar títulos de secciones */
    .footer-links h4,
    .footer-support h4,
    .footer-contact h4 {
        text-align: center;
    }
    
    /* Centrar enlaces */
    .footer-links a,
    .footer-support a {
        text-align: center;
    }
    
    /* Centrar información de contacto */
    .contact-item {
        justify-content: center;
        text-align: center;
    }
    
    /* Centrar botones de descarga */
    .footer-downloads h5 {
        text-align: center;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .download-btn {
        max-width: 100%;
        justify-content: center;
        text-align: center;
    }
    
    .footer-legal {
        gap: 15px;
        justify-content: center;
    }
    
    .footer-legal a {
        font-size: 0.8rem;
        text-align: center;
    }
}

/* Animaciones de entrada */
.footer-brand,
.footer-links,
.footer-support,
.footer-contact {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.footer-brand { animation-delay: 0.1s; }
.footer-links { animation-delay: 0.2s; }
.footer-support { animation-delay: 0.3s; }
.footer-contact { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   PLANES ESPECIALIZADOS
======================================== */

.specialized-plans-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid rgba(44, 74, 61, 0.1);
}

.specialized-toggle {
    text-align: center;
    margin-bottom: 30px;
}

.specialized-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0 0 15px 0;
    font-weight: 500;
}

.specialized-btn {
    background: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    padding: 12px 25px;
    border-radius: var(--border-radius-large);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.specialized-btn:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-2px);
}

.toggle-icon {
    transition: transform var(--transition-fast);
}

.specialized-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0;
}

.specialized-plans-grid.expanded {
    max-height: 800px;
    opacity: 1;
    margin-top: 30px;
}

.specialized-card {
    background: white;
    border-radius: var(--border-radius-medium);
    padding: 30px 25px;
    box-shadow: var(--shadow-light);
    border: 2px solid transparent;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.specialized-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--dark-green));
    transform: scaleX(0);
    transition: transform var(--transition-fast);
}

.specialized-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-green);
}

.specialized-card:hover::before {
    transform: scaleX(1);
}

.specialized-header {
    text-align: center;
    margin-bottom: 25px;
}

.specialized-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    color: white;
    transition: all var(--transition-fast);
}

.specialized-icon.haras {
    background: linear-gradient(135deg, #d4af37, #ffd700);
}

.specialized-icon.club {
    background: linear-gradient(135deg, #4a90e2, #357abd);
}

.specialized-icon.veterinario {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.specialized-card:hover .specialized-icon {
    transform: scale(1.1) rotate(5deg);
}

.specialized-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-green);
    margin: 0 0 5px 0;
    letter-spacing: 0.5px;
}

.specialized-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    font-style: italic;
}

.specialized-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
}

.specialized-features .feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.specialized-features .feature-check {
    background: var(--background-cream);
    color: var(--primary-green);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    flex-shrink: 0;
}

.specialized-features .feature-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.specialized-price {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px 0;
    border-top: 1px solid #f0f0f0;
}

.price-coming {
    font-size: 1rem;
    font-weight: 600;
    color: var(--medium-beige);
    font-style: italic;
}

.specialized-cta {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: var(--border-radius-small);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.specialized-cta:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 74, 61, 0.3);
}

/* Animación de entrada escalonada para las tarjetas */
.specialized-plans-grid.expanded .specialized-card:nth-child(1) {
    animation: slideInUp 0.6s ease forwards;
    animation-delay: 0.1s;
}

.specialized-plans-grid.expanded .specialized-card:nth-child(2) {
    animation: slideInUp 0.6s ease forwards;
    animation-delay: 0.2s;
}

.specialized-plans-grid.expanded .specialized-card:nth-child(3) {
    animation: slideInUp 0.6s ease forwards;
    animation-delay: 0.3s;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE PARA PLANES ESPECIALIZADOS
======================================== */

@media (max-width: 768px) {
    .specialized-plans-section {
        margin-top: 40px;
        padding-top: 30px;
    }
    
    .specialized-text {
        font-size: 1rem;
    }
    
    .specialized-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .specialized-plans-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .specialized-card {
        padding: 25px 20px;
    }
    
    .specialized-icon {
        width: 50px;
        height: 50px;
    }
    
    .specialized-header h3 {
        font-size: 1.1rem;
    }
    
    .specialized-features .feature-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .specialized-plans-section {
        margin-top: 30px;
        padding-top: 25px;
    }
    
    .specialized-text {
        font-size: 0.95rem;
    }
    
    .specialized-btn {
        padding: 10px 18px;
        font-size: 0.8rem;
    }
    
    .specialized-card {
        padding: 20px 15px;
    }
    
    .specialized-icon {
        width: 45px;
        height: 45px;
    }
    
    .specialized-header h3 {
        font-size: 1rem;
    }
    
    .specialized-cta {
        padding: 10px 15px;
        font-size: 0.8rem;
    }
}