/* ==================== 1. FUENTES LOCALES ==================== */
@font-face {
    font-family: 'Montserrat';
    src: url('/fonts/Montserrat-Light.woff2') format('woff2'),
         url('/fonts/Montserrat-Light.woff') format('woff'),
         url('/fonts/Montserrat-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/fonts/Montserrat-Regular.woff2') format('woff2'),
         url('/fonts/Montserrat-Regular.woff') format('woff'),
         url('/fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/fonts/Montserrat-SemiBold.woff2') format('woff2'),
         url('/fonts/Montserrat-SemiBold.woff') format('woff'),
         url('/fonts/Montserrat-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/fonts/Montserrat-Bold.woff2') format('woff2'),
         url('/fonts/Montserrat-Bold.woff') format('woff'),
         url('/fonts/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


/* ==================== 2. RESET Y BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
    background: #0A0A0A;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 80px; /* Espacio para la cabecera */
}

/* Base de Contenedores */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 80px 20px;  /* 80px para coincidir con altura del header */
}

/* Estilos para el flujo de contenido */
.hero, 
.value-proposition, 
.catalogo-section, 
.comparison-section, 
.process-section, 
.cta-section {
    flex-shrink: 0;
}

/* ==================== 3. CABECERA FIJA (con Glassmorphism corregido) ==================== */
.cabecera {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /* Estado Inicial: Fondo opaco. Eliminado backdrop-filter: blur(7px) */
    background: rgba(35, 30, 25 1.0);
    border-bottom: 1px solid rgba(42, 42, 42, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    height: 80px;
    box-sizing: border-box;
    /* Añadida transición para el filtro */
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

/* Centrado del logo */
.cabecera .logo-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    height: 100%;
}

.cabecera .logo-container img.logo {
    max-width: 200px;
    width: 100%;
    height: auto;
    display: block;
}

/* Estado Scrolled: Glassmorphism activo */
.cabecera.scrolled {
    background: rgba(35, 30, 25, 0.7);
    backdrop-filter: blur(10px);
}

.cabecera .burger {
    position: static;
    margin-left: auto;
}


/* ==================== 4. HEADER Y TIPOGRAFÍA ==================== */
.header {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px 0;
}

.hero-title {
    font-size: clamp(36px, 8vw, 72px);
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: clamp(18px, 3vw, 24px);
    color: #B0B0B0;
    line-height: 1.6;
    margin-bottom: 50px;
    font-weight: 300;
}

/* ==================== 5. COMPONENTES DE TARIFAS ==================== */

.packages-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 60px;
    margin-bottom: 30px;
    align-items: start;
}

.package-card {
    background: #0F0F0F;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #2A2A2A;
    display: flex; /* Para forzar el footer al final en desktop */
    flex-direction: column;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(201, 162, 125, 0.2);
    border-color: #C9A27D;
}

.package-card.recommended {
    border: 3px solid #C9A27D;
    transform: scale(1.05);
    background: linear-gradient(135deg, #0F0F0F 0%, #1A1A1A 100%);
}

.recommended-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #C9A27D 0%, #B89068 100%);
    color: #0A0A0A;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.package-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.package-card.recommended .package-title {
    margin-top: 25px; /* Compensar el badge */
}

.package-description {
    margin-bottom: 20px;
    color: #B0B0B0;
}

.package-description p {
    color: #B0B0B0;
}

/* Features List */
.package-features {
    list-style: none;
    margin-bottom: 25px;
    padding: 0;
}

.package-features li {
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
    color: #B0B0B0;
}

.package-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #C9A27D;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Pricing */
.pricing {
    background: #1A1A1A;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #2A2A2A;
}

.pricing h4 {
    color: #C9A27D;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.price-item {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.price-item span:first-child {
    display: block;
    margin-bottom: 4px;
    color: #909090;
}

.ad-info {
    color: #B0B0B0;
    border: none;
    display: block;
    margin-top: 15px;
    font-size: 0.9rem;
}


.price-total {
    color: #C9A27D;
    font-size: 1.1rem;
    display: block;
    font-weight: 700;
}

.ideal-for {
    background: #1A1A1A;
    border-left: 4px solid #C9A27D;
    padding: 15px;
    margin-top: 15px;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #B0B0B0;
}

/* Call to Action Button */
.cta-container {
    text-align: center;
    margin-top: auto; /* Empuja el CTA al final de la tarjeta */
    padding-top: 20px;
    border-top: 1px solid #2A2A2A;
}

.package-cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #C9A27D 0%, #B89068 100%);
    color: #FFFFFF;
    padding: 16px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(201, 162, 125, 0.3);
    letter-spacing: 0.5px;
}

.package-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 162, 125, 0.5);
}

/* Información Adicional */
.additional-info {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
}

.additional-info > .info-section {
    flex: 1 1 calc(50% - 15px);
}

.info-section {
    background: #0F0F0F;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    border: 1px solid #2A2A2A;
}

.info-section h3 {
    color: #C9A27D;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.info-section ul {
    list-style: none;
}

.info-section ul li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    color: #B0B0B0;
}

.info-section ul li:before {
    content: "▪";
    position: absolute;
    left: 0;
    color: #C9A27D;
    font-weight: bold;
}

.info-section ul li strong {
    color: #FFFFFF;
}

/* ==================== 6. FOOTER ==================== */
.footer {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background: #0F0F0F;
    border-radius: 15px;
    border: 1px solid #2A2A2A;
    width: 100%;
    box-sizing: border-box;
}

.footer h3 {
    color: #C9A27D !important;
    margin-bottom: 15px;
}

.footer p {
    color: #B0B0B0;
    margin-bottom: 20px;
}


/* ==================== 7. ESTILOS GENERALES (Mover a un archivo base si es posible) ==================== */
/* NOTA: Estos estilos deberían estar en un archivo base, pero se mantienen aquí para que el archivo funcione */

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Placeholder styles - revisar si son necesarios */
.hero, 
.value-proposition, 
.catalogo-section, 
.comparison-section, 
.process-section, 
.cta-section {
    flex-shrink: 0;
}


/* ==================== 8. RESPONSIVE / MEDIA QUERIES ==================== */

/* Tablet y Desktop Pequeño */
@media (min-width: 1024px) {
    .packages-container {
        align-items: stretch;
    }
}

/* Móvil */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .packages-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .package-card.recommended {
        transform: none; /* Desactivar la escala extra en móvil */
    }

    .additional-info {
        flex-direction: column;
        gap: 20px;
    }

    .additional-info > .info-section {
        flex: 1 1 100%;
    }

    /* Ajustes para tablas de comparación (si se usan) */
    .comparison-header,
    .comparison-row {
        grid-template-columns: 1fr;
        text-align: left !important;
    }

    .comparison-col.traditional::before {
        content: 'Tradicional: ';
        font-weight: 600;
        color: #C9A27D;
    }

    .comparison-col.ai::before {
        content: 'Con IA: ';
        font-weight: 600;
        color: #2E7D32;
    }
}

@media (max-width: 900px) {
    .process-steps {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Pantallas muy grandes */
@media (min-width: 1200px) {
    .packages-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

/* ==================== BOTÓN FLOTANTE WHATSAPP ==================== */
.whatsapp-float {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 70px !important;
    height: 70px !important;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5) !important;
    transition: all 0.3s ease !important;
    z-index: 999999 !important;
    text-decoration: none !important;
    animation: pulse 2s infinite !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.whatsapp-float:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 8px 35px rgba(37, 211, 102, 0.7) !important;
}

.whatsapp-float img {
    width: 28px !important;
    height: 28px !important;
    filter: none !important;
}

@keyframes pulse {
    0% { transform: scale(1) !important; }
    50% { transform: scale(1.05) !important; }
    100% { transform: scale(1) !important; }
}

/* Responsive para móvil */
@media (max-width: 600px) {
    .whatsapp-float {
        bottom: 20px !important;
        right: 20px !important;
        width: 65px !important;
        height: 65px !important;
    }
    
    .whatsapp-float img {
        width: 26px !important;
        height: 26px !important;
    }
}

/* ==================== RESPONSIVE LOGO ==================== */
/* Logo responsive para tablet (max 1024px) */
@media (max-width: 1024px) {
    .cabecera .logo-container img.logo {
        max-width: 320px;
    }
    
    .logo, .logo-container img.logo {
        max-width: 320px; /* Tablet */
    }
}

/* Logo responsive para móvil (max 768px) */
@media (max-width: 768px) {
    .cabecera .logo-container img.logo {
        max-width: 280px;
    }
    
    .logo, .logo-container img.logo {
        max-width: 280px; /* Móvil */
    }
}

/* Logo responsive para pantallas muy pequeñas (max 480px) */
@media (max-width: 480px) {
    .cabecera .logo-container img.logo {
        max-width: 150px;
    }
    
    .logo, .logo-container img.logo {
        max-width: 200px; /* Pantallas muy pequeñas */
    }
}
/* ==================== ESTILOS ADICIONALES PARA LOGO ==================== */
/* Estilos para el logo del contenido principal */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    max-width: 400px; /* Estandarizado */
    margin: 0 auto;
}

.logo-container img.logo {
    max-width: 350px; /* Estandarizado para contenido principal */
    width: 100%;
    height: auto;
    display: block;
}