/* ================================
   FORJADIGITALAE - STYLES.CSS
   Versión Optimizada y Corregida
   ================================ */

/* ===== VARIABLES CSS ===== */
:root {
    /* Colores Corporativos */
    --azul-marino: #27325A;
    --azul-noche: #152E57;
    --azul-secundario: #33487A;
    --azul-profundo: #1D1A70;
    --naranja-energia: #EE8028;
    --purpura-innovacion: #8560C0;
    --turquesa-digital: #4CCED5;
    --turquesa-claro: #73CFCE;
    --rojo-forja: #AA2F0C;
    --naranja-suave: #EC8E48;
    
    /* Tipografía */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Lato', sans-serif;
    
    /* Espaciado */
    --section-padding: 100px 0;
    --container-padding: 0 20px;
    --border-radius: 15px;
    
    /* Sombras */
    --shadow-light: 0 5px 20px rgba(0,0,0,0.1);
    --shadow-medium: 0 10px 30px rgba(0,0,0,0.15);
    --shadow-heavy: 0 20px 40px rgba(0,0,0,0.2);
}

/* ===== RESET Y BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--azul-marino);
    overflow-x: hidden;
}

/* ===== UTILIDADES ===== */
.highlight-turquesa {
    color: var(--turquesa-digital);
}

.badge-gratis {
    font-size: 0.7rem;
    background: rgba(255,255,255,0.2);
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--azul-marino) 0%, var(--azul-noche) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease-out;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.orbit-loader {
    position: relative;
    width: 100px;
    height: 100px;
}

.orbit {
    position: absolute;
    border: 2px solid transparent;
    border-top: 2px solid var(--turquesa-digital);
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

.orbit:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 0;
    left: 0;
    animation-duration: 2s;
}

.orbit:nth-child(2) {
    width: 70px;
    height: 70px;
    top: 15px;
    left: 15px;
    border-top-color: var(--naranja-energia);
    animation-duration: 1.5s;
    animation-direction: reverse;
}

.orbit:nth-child(3) {
    width: 40px;
    height: 40px;
    top: 30px;
    left: 30px;
    border-top-color: var(--purpura-innovacion);
    animation-duration: 1s;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== HEADER Y NAVEGACIÓN OPTIMIZADO ===== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(39, 50, 90, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(39, 50, 90, 0.98);
    box-shadow: var(--shadow-medium);
}

/* ESTRUCTURA GRID DEFINITIVA */
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    max-width: 250px;
    height: auto;
}

/* MENÚ CENTRADO CON DISTRIBUCIÓN PERFECTA */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
    margin: 0;
    padding: 0;
}

/* Posicionamiento específico para distribución perfecta */
.nav-menu li:nth-child(1) { /* ¿Por qué Forja? */
    margin-right: auto;
}

.nav-menu li:nth-child(2) { /* Framework FORJA® */
    margin-right: 20px;
}

.nav-menu li:nth-child(4) { /* Casos de Éxito */
    margin-left: 20px;
}

.nav-menu li:nth-child(5) { /* Cómo Iniciamos */
    margin-left: auto;
}

.nav-item {
    position: relative;
    max-width:300px; 
    text-align: center; 
    justify-content: center; 
    display: flex; 
    align-items: center; 
    padding: 0.4rem 0.5rem; 
    margin: 0 0.1rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    height: 100%;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* BOTÓN RAYOS-X EMPRESARIAL - OPTIMIZADO */
.nav-link.destacado {
    background: linear-gradient(135deg, #4CCED5 0%, #5762C2 50%, #150D7A 100%);
    color: white;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(76, 206, 213, 0.3);
    animation: pulse-turquesa 2s infinite;
    min-width: 180px;
    justify-content: center;
    text-align: center;
}

.nav-link.destacado::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    transition: left 0.5s ease;
}

.nav-link.destacado:hover::before {
    left: 100%;
}

.nav-link.destacado:hover {
    background: linear-gradient(135deg, #3AB5BC 0%, #5762C2 50%, #150D7A 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 206, 213, 0.5);
}

.nav-link.destacado .badge-gratis {
    background: rgba(255, 255, 255, 0.25);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    margin-left: 8px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* BOTÓN HABLA CON UN FORJADOR - OPTIMIZADO */
.cta-button {
    background: linear-gradient(135deg, #EE8028 0%, #CC5E02 50%, #854009 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(238, 128, 40, 0.3);
    animation: pulse-naranja 2s infinite;
    min-width: 180px;
    justify-content: center;
    text-align: center;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: linear-gradient(135deg, #D6721F 0%, #CC5E02 50%, #854009 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 128, 40, 0.5);
}

/* ANIMACIONES PARA BOTONES */
@keyframes pulse-turquesa {
    0% {
        box-shadow: 0 4px 15px rgba(76, 206, 213, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(76, 206, 213, 0.6), 0 0 30px rgba(76, 206, 213, 0.4);
    }
    100% {
        box-shadow: 0 4px 15px rgba(76, 206, 213, 0.3);
    }
}

@keyframes pulse-naranja {
    0% {
        box-shadow: 0 4px 15px rgba(238, 128, 40, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(238, 128, 40, 0.6), 0 0 30px rgba(238, 128, 40, 0.4);
    }
    100% {
        box-shadow: 0 4px 15px rgba(238, 128, 40, 0.3);
    }
}

/* EFECTO BORDE LUMINOSO */
.nav-link.destacado::after,
.cta-button::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: 7px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link.destacado::after {
    background: linear-gradient(135deg, #4CCED5, #3AB5BC, #2A9CA3, #4CCED5);
    background-size: 400% 400%;
    animation: border-glow-turquesa 3s ease-in-out infinite;
}

.cta-button::after {
    background: linear-gradient(135deg, #EE8028, #D6721F, #BD6118, #EE8028);
    background-size: 400% 400%;
    animation: border-glow-naranja 3s ease-in-out infinite;
}

.nav-link.destacado:hover::after,
.cta-button:hover::after {
    opacity: 1;
}

@keyframes border-glow-turquesa {
    0% {
        background-position: 0% 50%;
        box-shadow: 0 0 20px rgba(76, 206, 213, 0.5);
    }
    50% {
        background-position: 100% 50%;
        box-shadow: 0 0 30px rgba(76, 206, 213, 0.8);
    }
    100% {
        background-position: 0% 50%;
        box-shadow: 0 0 20px rgba(76, 206, 213, 0.5);
    }
}

@keyframes border-glow-naranja {
    0% {
        background-position: 0% 50%;
        box-shadow: 0 0 20px rgba(238, 128, 40, 0.5);
    }
    50% {
        background-position: 100% 50%;
        box-shadow: 0 0 30px rgba(238, 128, 40, 0.8);
    }
    100% {
        background-position: 0% 50%;
        box-shadow: 0 0 20px rgba(238, 128, 40, 0.5);
    }
}

/* MENÚ DESPLEGABLE */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(39, 50, 90, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-heavy);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1001;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-link {
    color: white;
    text-decoration: none;
    display: block;
    font-weight: 400;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.dropdown-link:hover {
    color: var(--turquesa-digital);
    padding-left: 10px;
}

.dropdown-title {
    font-weight: 600;
    color: var(--turquesa-claro);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.dropdown-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

/* MENÚ MÓVIL */
.mobile-menu-toggle {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--azul-marino) 0%, var(--azul-noche) 100%);
    color: white;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    border: 3px solid rgba(76, 206, 213, 0.2);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    border: 2px solid rgba(238, 128, 40, 0.2);
    border-radius: 50%;
    animation: rotate 15s linear infinite reverse;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.5s forwards;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.9s forwards;
}

.hero-cta {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 1.1s forwards;
}

.btn-primary {
    background: linear-gradient(135deg, var(--naranja-energia), var(--rojo-forja));
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 15px 30px;
    border: 2px solid var(--turquesa-digital);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-secondary:hover {
    background: var(--turquesa-digital);
    transform: translateY(-3px);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 1.3s forwards;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--turquesa-digital);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateX(50px);
    animation: fadeInRight 1s ease 1s forwards;
}

.framework-circle {
    width: 400px;
    height: 400px;
}

.framework-circle svg {
    width: 100%;
    height: 100%;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== SECCIONES GENERALES ===== */
.section {
    padding: var(--section-padding);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--container-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--azul-marino);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--naranja-energia), var(--turquesa-digital));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--azul-secundario);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   REDISEÑO SECCIÓN RAYOS-X EMPRESARIAL
   Reemplazar en styles.css
   ======================================== */

/* ===== SECCIÓN RAYOS-X - NUEVO DISEÑO ===== */

/* Grid principal - Ahora más flexible */
.rayos-x-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 60px;
}

/* Cuadro azul de beneficios - Rediseñado */
.info-box {
    background: linear-gradient(135deg, var(--azul-marino), var(--azul-profundo));
    color: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(39, 50, 90, 0.3);
    position: relative;
    overflow: hidden;
}

.info-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(76, 206, 213, 0.1) 0%, transparent 70%);
    animation: pulse-bg 15s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-10%, -10%) scale(1.1); }
}

.info-box h3 {
    color: var(--turquesa-claro);
    margin-bottom: 30px;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Lista de beneficios - Nuevo estilo */
.benefits-list {
    list-style: none;
    padding: 0;
    position: relative;
    z-index: 1;
}

.benefits-list li {
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.3s ease;
    line-height: 1.6;
}

.benefits-list li:last-child {
    border-bottom: none;
}

.benefits-list li:hover {
    padding-left: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.benefits-list li strong {
    color: var(--turquesa-digital);
    font-weight: 600;
}

/* Caja naranja de beneficio inmediato */
.info-box + div {
    background: linear-gradient(135deg, var(--naranja-energia), var(--rojo-forja));
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-top: 30px;
    box-shadow: 0 8px 25px rgba(238, 128, 40, 0.3);
    position: relative;
    z-index: 1;
}

.info-box + div h4 {
    margin-bottom: 12px;
    font-size: 1.3rem;
    font-family: var(--font-heading);
}

.info-box + div p {
    margin: 0;
    font-weight: 600;
    line-height: 1.5;
}

/* Card de evaluación - Rediseñada */
.evaluation-card {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(39, 50, 90, 0.1);
    transition: all 0.3s ease;
}

.evaluation-card:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.evaluation-card h3 {
    color: var(--azul-marino);
    margin-bottom: 35px;
    text-align: center;
    font-size: 1.6rem;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Feature boxes - Mejoradas */
.feature-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 4px solid var(--turquesa-digital);
    transition: all 0.3s ease;
}

.feature-box:hover {
    border-left-width: 6px;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.feature-box h4 {
    color: var(--azul-secundario);
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-box p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* Lista de dimensiones - Mejorada */
.dimensions-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    color: #666;
}

.dimensions-list li {
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
    border-left: 3px solid var(--purpura-innovacion);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.dimensions-list li:hover {
    background: #f8f9fa;
    border-left-width: 5px;
    transform: translateX(3px);
}

/* Botón de evaluación - Mejorado */
.btn-full {
    width: 100%;
    justify-content: center;
    font-size: 1.1rem;
    padding: 20px 30px;
    margin-top: 30px;
    background: linear-gradient(135deg, var(--naranja-energia), var(--rojo-forja));
    box-shadow: 0 8px 20px rgba(238, 128, 40, 0.3);
    transition: all 0.3s ease;
}

.btn-full:hover {
    box-shadow: 0 12px 30px rgba(238, 128, 40, 0.4);
    transform: translateY(-3px);
}

/* ===== RESPONSIVE MEJORADO ===== */

/* Tablets */
@media (max-width: 1024px) {
    .info-box {
        padding: 40px;
    }
    
    .evaluation-card {
        padding: 40px;
    }
    
    .dimensions-list {
        grid-template-columns: 1fr;
    }
}

/* Móviles grandes */
@media (max-width: 768px) {
    .rayos-x-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .info-box {
        padding: 30px 25px;
    }
    
    .info-box h3 {
        font-size: 1.3rem;
        flex-direction: column;
        text-align: center;
    }
    
    .benefits-list li {
        padding: 15px 0;
        font-size: 0.95rem;
        flex-direction: column;
        gap: 8px;
    }
    
    .info-box + div {
        padding: 25px 20px;
    }
    
    .info-box + div h4 {
        font-size: 1.1rem;
    }
    
    .evaluation-card {
        padding: 30px 20px;
    }
    
    .evaluation-card h3 {
        font-size: 1.3rem;
        flex-direction: column;
    }
    
    .feature-box {
        padding: 20px;
    }
    
    .feature-box h4 {
        font-size: 1rem;
        flex-direction: column;
        gap: 5px;
    }
    
    .dimensions-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .btn-full {
        padding: 18px 25px;
        font-size: 1rem;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .info-box {
        padding: 25px 20px;
        border-radius: 15px;
    }
    
    .info-box h3 {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    
    .benefits-list li {
        padding: 12px 0;
        font-size: 0.9rem;
    }
    
    .info-box + div {
        padding: 20px 15px;
        border-radius: 12px;
    }
    
    .info-box + div h4 {
        font-size: 1rem;
    }
    
    .info-box + div p {
        font-size: 0.9rem;
    }
    
    .evaluation-card {
        padding: 25px 15px;
        border-radius: 15px;
    }
    
    .evaluation-card h3 {
        font-size: 1.2rem;
        margin-bottom: 25px;
    }
    
    .feature-box {
        padding: 18px 15px;
        margin-bottom: 20px;
    }
    
    .dimensions-list li {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    .btn-full {
        padding: 16px 20px;
        font-size: 0.95rem;
    }
}

/* Mejora de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .info-box::before,
    .benefits-list li,
    .feature-box,
    .dimensions-list li,
    .evaluation-card {
        animation: none;
        transition: none;
    }
}

/* ===== FRAMEWORK SECTION ===== */
.framework {
    background: white;
}

.framework-intro {
    text-align: center;
    max-width: 1200px; /* Aumentado de 800px a 1200px */
    margin: 0 auto 80px;
    padding: 40px 60px; /* Aumentado padding lateral de 40px a 60px */
    background: linear-gradient(135deg, var(--azul-marino), var(--azul-profundo));
    color: white;
    border-radius: var(--border-radius);
}

.framework-intro h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--turquesa-claro);
}

.framework-intro p {
    font-size: 1.05rem;
    line-height: 1.6;
}

.forja-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.forja-step {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.forja-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--turquesa-digital), var(--purpura-innovacion));
}

.forja-step:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.step-letter {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--turquesa-digital), var(--purpura-innovacion));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--azul-marino);
    margin-bottom: 15px;
}

.step-description {
    color: var(--azul-secundario);
    line-height: 1.6;
    margin-bottom: 20px;
}

.step-price {
    background: linear-gradient(135deg, var(--turquesa-digital), var(--purpura-innovacion));
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ===== BENEFICIOS SECTION ===== */
.beneficios {
    background: linear-gradient(135deg, var(--azul-marino) 0%, var(--azul-noche) 100%);
    color: white;
}

.beneficios .section-title {
    color: white;
}

.beneficios .section-subtitle {
    color: var(--turquesa-claro);
}

.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.beneficio-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.beneficio-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.beneficio-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--turquesa-digital), var(--purpura-innovacion));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.beneficio-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.roi-highlight {
    background: linear-gradient(135deg, var(--naranja-energia), var(--rojo-forja));
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    display: inline-block;
    margin-top: 15px;
}

/* ===== COMO INICIAMOS ===== */
.como-iniciamos {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.step-card {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    text-align: center;
    position: relative;
    border-top: 5px solid var(--turquesa-digital);
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--turquesa-digital), var(--purpura-innovacion));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-icon {
    font-size: 3rem;
    margin: 15px 0;
}

.step-card h3 {
    color: var(--azul-marino);
    font-family: var(--font-heading);
    margin-bottom: 15px;
}

.step-card p {
    color: var(--azul-secundario);
    line-height: 1.6;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--naranja-energia) 0%, var(--rojo-forja) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: rotate 25s linear infinite;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 1200px; /* Aumentado de 800px a 1200px */
    margin: 0 auto;
    padding: 0 40px; /* Agregado padding lateral */
}

.cta-section .section-title {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-text-large {
    font-size: 1.2rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-cta-primary {
    background: white;
    color: var(--azul-marino);
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.btn-cta-secondary {
    background: transparent;
    color: white;
    padding: 15px 30px;
    border: 2px solid white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-cta-secondary:hover {
    background: white;
    color: var(--naranja-energia);
    transform: translateY(-3px);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--azul-noche);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--turquesa-claro);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    line-height: 1.8;
    transition: color 0.3s ease;
    display: block;
}

.footer-section a:hover {
    color: var(--turquesa-digital);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--turquesa-digital), var(--purpura-innovacion));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== BOTONES CTA UNIFICADOS - DISEÑO CONSISTENTE ===== */
.btn-cta-unified {
    background: white;
    color: var(--azul-marino);
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    outline: none;
    position: relative;
    overflow: hidden;
}

/* Efecto de brillo al pasar el mouse */
.btn-cta-unified::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(76, 206, 213, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-cta-unified:hover::before {
    left: 100%;
}

.btn-cta-unified:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.95);
}

.btn-cta-unified:active {
    transform: translateY(-1px);
}

/* Eliminar borde negro al hacer clic */
.btn-cta-unified:focus {
    outline: none !important;
    border: none !important;
    box-shadow: 0 0 0 3px rgba(76, 206, 213, 0.4), 0 8px 30px rgba(255, 255, 255, 0.5) !important;
}

/* Icono con color específico */
.btn-cta-unified i {
    font-size: 1.2rem;
}

.btn-cta-unified:hover i {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}


/* ===== MODALES Y OVERLAYS ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10003;
    justify-content: center;
    align-items: center;
}

.modal-content { 
    background-color: white; 
    margin: auto; 
    padding: 0; /* padding se mueve al form */ 
    border: 1px solid #888; 
    width: 90%; /* Aumento de ancho para el diseño 2 columnas */ 
    max-width: 700px; /* Ancho máximo para el diseño elegante */ 
    max-height: 90vh; /* Limita la altura al 90% de la pantalla */ 
    overflow-y: auto; /* PERMITE EL SCROLL VERTICAL */ 
    border-radius: var(--border-radius); /* Usando tu variable */ 
    box-shadow: var(--shadow-medium); /* Usando tu variable */ 
}

.modal-content h4 {
    color: var(--azul-marino);
    font-family: var(--font-heading);
    margin-top: 20px;
    margin-bottom: 10px;
}

.modal-content ul {
    margin-left: 20px;
    color: var(--azul-secundario);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--azul-marino);
    transition: all 0.3s ease;
}

.modal-close:hover {
    transform: scale(1.2);
    color: var(--rojo-forja);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: none;
}

.cookie-notice {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    z-index: 10001;
    max-width: 500px;
    text-align: center;
    display: none;
}

.cookie-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.cookie-notice h4 {
    color: var(--azul-marino);
    font-family: var(--font-heading);
    margin-bottom: 15px;
}

.cookie-notice p {
    color: var(--azul-secundario);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-accept {
    background: var(--turquesa-digital);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-accept:hover {
    background: var(--turquesa-claro);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.btn-reject {
    background: transparent;
    color: var(--azul-marino);
    border: 1px solid var(--azul-marino);
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reject:hover {
    background: var(--azul-marino);
    color: white;
    transform: translateY(-2px);
}

/* ===== SCROLL ANIMATIONS ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE DESIGN OPTIMIZADO ===== */
@media (max-width: 1200px) {
    .nav-container {
        gap: 20px;
    }
    
    .nav-menu {
        gap: 15px;
    }
}

@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .framework-circle {
        width: 350px;
        height: 350px;
    }
    
    .nav-menu {
        gap: 12px;
    }
}

/* ===== RESPONSIVE DESIGN OPTIMIZADO - MENÚ MÓVIL ===== */

@media (max-width: 1024px) {
    .nav-menu {
        gap: 12px;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

/* ===== RESPONSIVE MÓVIL - HAMBURGUESA A LA IZQUIERDA ===== */

@media (max-width: 768px) {
    /* Header ajustado */
    .header {
        padding: 0;
    }
    
    /* ESTRUCTURA: Logo centro, Hamburguesa izquierda, Botón naranja derecha */
    .nav-container {
        display: grid;
        grid-template-columns: 50px 1fr 200px;
        align-items: center;
        padding: 0 10px;
        height: 70px;
        gap: 10px;
    }
    
    /* MENÚ HAMBURGUESA - LADO IZQUIERDO */
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        transition: all 0.3s ease;
        z-index: 1002;
        order: 1; /* PRIMERO - IZQUIERDA */
        grid-column: 1;
    }
    
    .mobile-menu-toggle:hover {
        background: rgba(255, 255, 255, 0.2);
    }
    
    .mobile-menu-toggle i {
        font-size: 1.3rem;
        transition: transform 0.3s ease;
        color: white;
    }
    
    /* LOGO - CENTRO */
    .logo {
        order: 2;
        grid-column: 2;
        text-align: left;
        padding-left: 10px;
    }
    
    .logo img {
        max-width: 160px;
        height: auto;
    }
    
    /* BOTÓN CTA NARANJA - DERECHA */
    .cta-button {
        order: 3;
        grid-column: 3;
        padding: 10px 15px !important;
        font-size: 0.85rem !important;
        min-width: auto !important;
        white-space: nowrap;
        animation: none !important;
    }
    
    .cta-button i {
        display: none; /* Ocultar icono en móvil para ahorrar espacio */
    }
    
    /* MENÚ MÓVIL - FULL SCREEN OVERLAY */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: linear-gradient(135deg, var(--azul-noche) 0%, var(--azul-marino) 100%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 40px 20px;
        gap: 0;
        overflow-y: auto;
        
        /* OCULTO POR DEFECTO - DESLIZA DESDE LA IZQUIERDA */
        opacity: 0;
        visibility: hidden;
        transform: translateX(-100%);
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: 1001;
    }
    
    /* MENÚ ACTIVO */
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }
    
    /* Items del menú */
    .nav-menu li {
        width: 100%;
        margin: 0 !important;
        padding: 0;
        opacity: 0;
        transform: translateX(-20px);
        animation: none;
    }
    
    .nav-menu.active li {
        animation: slideInLeft 0.5s ease forwards;
    }
    
    .nav-menu.active li:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { animation-delay: 0.2s; }
    .nav-menu.active li:nth-child(3) { animation-delay: 0.3s; }
    .nav-menu.active li:nth-child(4) { animation-delay: 0.4s; }
    .nav-menu.active li:nth-child(5) { animation-delay: 0.5s; }
    .nav-menu.active li:nth-child(6) { animation-delay: 0.6s; }
    
    @keyframes slideInLeft {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-link {
        width: 100%;
        padding: 18px 20px !important;
        justify-content: center;
        font-size: 1.1rem;
        border-radius: 0;
    }
    
    .nav-link:hover {
        background: rgba(255, 255, 255, 0.15);
    }
    
    /* Botón destacado dentro del menú */
    .nav-link.destacado {
        width: 90%;
        max-width: 300px;
        margin: 15px auto !important;
        padding: 15px 25px !important;
        border-radius: 30px;
        animation: none !important;
    }
    
    /* Dropdown en móvil */
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 0;
        border-radius: 0;
        background: rgba(0, 0, 0, 0.2);
        border: none;
        width: 100%;
    }
    
    .dropdown-item {
        padding: 15px 20px;
        text-align: left;
    }
    
    /* Hero responsive */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding-top: 100px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .framework-circle {
        width: 300px;
        height: 300px;
    }
    
    /* Secciones responsive */
    .section-title {
        font-size: 2.2rem;
    }
    
    .rayos-x-grid,
    .problema-grid,
    .forja-steps,
    .beneficios-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* ===== MÓVILES PEQUEÑOS (iPhone SE, etc) ===== */
@media (max-width: 480px) {
    .nav-container {
        grid-template-columns: 45px 1fr 160px;
        height: 65px;
        padding: 0 8px;
        gap: 8px;
    }
    
    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
    }
    
    .mobile-menu-toggle i {
        font-size: 1.2rem;
    }
    
    .logo img {
        max-width: 140px;
    }
    
    .cta-button {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
        border-radius: 20px;
    }
    
    .nav-menu {
        top: 65px;
        height: calc(100vh - 65px);
        padding: 30px 15px;
    }
    
    .nav-link {
        padding: 15px 15px !important;
        font-size: 1rem;
    }
    
    .nav-link.destacado {
        width: 95%;
        padding: 14px 20px !important;
        font-size: 0.95rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .framework-circle {
        width: 250px;
        height: 250px;
    }
}

/* ===== MÓVILES MUY PEQUEÑOS ===== */
@media (max-width: 375px) {
    .nav-container {
        grid-template-columns: 40px 1fr 140px;
    }
    
    .logo img {
        max-width: 120px;
    }
    
    .cta-button {
        padding: 6px 10px !important;
        font-size: 0.75rem !important;
    }
}

@media (max-width: 480px) {
    .nav-container {
        height: 65px;
        padding: 0 10px;
    }
    
    .logo img {
        max-width: 150px;
    }
    
    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
    }
    
    .nav-menu {
        top: 65px;
        height: calc(100vh - 65px);
        padding: 30px 15px;
    }
    
    .nav-link {
        padding: 15px 15px !important;
        font-size: 1rem;
    }
    
    .nav-link.destacado,
    .cta-button {
        width: 95%;
        padding: 14px 20px !important;
        font-size: 0.95rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .framework-circle {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .cta-section .section-title {
        color: white;
        font-size: 2.5rem;
        margin-bottom: 20px;
        line-height: 1.2;
        max-width: 100%;
    }
    
    .framework-circle {
        width: 250px;
        height: 250px;
    }
    
    .logo img {
        max-width: 180px;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-cta-primary,
    .btn-cta-secondary {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .problema-card,
    .forja-step,
    .beneficio-card,
    .step-card {
        padding: 30px 20px;
    }
    
    .info-box,
    .evaluation-card {
        padding: 30px 20px;
    }
}

/* ===== MEJORAS DE ACCESIBILIDAD ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .nav-link.destacado,
    .cta-button {
        animation: none;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .header,
    .mobile-menu-toggle,
    .preloader,
    .cookie-notice,
    .cookie-overlay,
    .modal {
        display: none !important;
    }
    
    body {
        color: #000;
    }
    
    .hero,
    .beneficios,
    .cta-section {
        background: white !important;
        color: #000 !important;
    }
}

.cta-section .container {
    max-width: 1400px;
    padding: 0 20px;
}
.cta-section p {
    max-width: 100%;
}
.cta-section .cta-content > div:last-child {
    margin-top: 30px;
    padding: 25px 40px; /* Aumentado padding lateral */
    max-width: 100%;
}

/* ================================================= */
/* SECCIÓN EL DOLOR REAL - CORREGIDA */
/* ================================================= */
.problema {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.problema-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.problema-card {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 5px solid var(--turquesa-digital);
}

.problema-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.problema-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--turquesa-digital), var(--purpura-innovacion));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.problema-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--azul-marino);
    margin-bottom: 20px;
}

.problema-description {
    color: var(--azul-secundario);
    line-height: 1.8;
    font-size: 1rem;
}
/* ========================================
   NUEVO DISEÑO EVALUACIÓN INTERACTIVA
   ======================================== */

.evaluation-card-new {
    background: white;
    padding: 0;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(39, 50, 90, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.evaluation-card-new:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

/* Header */
.eval-header {
    background: linear-gradient(135deg, var(--azul-marino), var(--azul-profundo));
    color: white;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.eval-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(76, 206, 213, 0.15) 0%, transparent 70%);
    animation: pulse-bg 15s ease-in-out infinite;
}

.eval-icon-badge {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--turquesa-digital), var(--purpura-innovacion));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(76, 206, 213, 0.3);
}

.eval-icon-badge i {
    font-size: 2rem;
    color: white;
}

.eval-header h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.eval-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Features */
.eval-features {
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.eval-feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border-left: 4px solid var(--turquesa-digital);
    transition: all 0.3s ease;
}

.eval-feature-item:hover {
    border-left-width: 6px;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--turquesa-digital), var(--purpura-innovacion));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    color: white;
    font-size: 1.3rem;
}

.feature-content h4 {
    color: var(--azul-secundario);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.feature-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Grid de dimensiones */
.dimensions-grid {
    padding: 0 40px 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.dimension-item {
    background: white;
    border: 2px solid #e9ecef;
    padding: 15px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    color: var(--azul-secundario);
    font-weight: 500;
}

.dimension-item:hover {
    border-color: var(--turquesa-digital);
    background: linear-gradient(135deg, rgba(76, 206, 213, 0.05), rgba(133, 96, 192, 0.05));
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(76, 206, 213, 0.2);
}

.dimension-item i {
    color: var(--purpura-innovacion);
    font-size: 1.2rem;
}

/* Botón CTA grande */
.btn-eval-start {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 0 40px 30px;
    padding: 25px 40px;
    background: linear-gradient(135deg, var(--naranja-energia), var(--rojo-forja));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(238, 128, 40, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-eval-start::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-eval-start:hover::before {
    left: 100%;
}

.btn-eval-start:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(238, 128, 40, 0.6);
}

.btn-arrow {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.btn-eval-start:hover .btn-arrow {
    transform: translateX(5px);
}

/* Trust badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 30px 40px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--azul-secundario);
    font-weight: 600;
    font-size: 0.95rem;
}

.trust-item i {
    color: var(--turquesa-digital);
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .eval-features {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }
    
    .dimensions-grid {
        grid-template-columns: 1fr;
        padding: 0 20px 30px;
    }
    
    .btn-eval-start {
        margin: 0 20px 20px;
        padding: 20px 30px;
        font-size: 1.1rem;
    }
    
    .trust-badges {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        padding: 20px;
    }
    
    .eval-header {
        padding: 30px 20px;
    }
    
    .eval-header h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .eval-icon-badge {
        width: 60px;
        height: 60px;
    }
    
    .eval-icon-badge i {
        font-size: 1.5rem;
    }
    
    .eval-feature-item {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .feature-icon {
        margin: 0 auto;
    }
}
/* ===== BOTÓN VER BENEFICIOS - HOVER CORREGIDO ===== */
button[onclick="openBenefitsModal()"] {
    background: linear-gradient(135deg, var(--turquesa-digital), var(--purpura-innovacion)) !important;
    color: white !important;
    border: none !important;
    padding: 18px 40px !important;
    border-radius: 30px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    font-size: 1.1rem !important;
    box-shadow: 0 5px 20px rgba(76, 206, 213, 0.4) !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    position: relative !important;
    z-index: 10 !important;
}

button[onclick="openBenefitsModal()"]:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 30px rgba(76, 206, 213, 0.6) !important;
    cursor: pointer !important;
}

button[onclick="openBenefitsModal()"]:active {
    transform: translateY(-1px) !important;
}

/* ===== ELIMINAR BORDES NEGROS DE BOTONES ===== */
button,
.btn-primary,
.btn-secondary,
.btn-cta-primary,
.btn-cta-secondary,
.cta-button,
.btn-accept,
.btn-reject,
.btn-eval-start,
button[type="submit"] {
    outline: none !important;
    border: none !important;
}

/* Eliminar borde al hacer focus (cuando haces clic) */
button:focus,
.btn-primary:focus,
.btn-secondary:focus,
.btn-cta-primary:focus,
.btn-cta-secondary:focus,
.cta-button:focus,
.btn-accept:focus,
.btn-reject:focus,
.btn-eval-start:focus,
button[type="submit"]:focus {
    outline: none !important;
    border: none !important;
    box-shadow: 0 0 0 3px rgba(76, 206, 213, 0.3) !important;
}

/* ===== FORZAR BORDE EN BOTÓN SECUNDARIO ===== */
a.btn-secondary,
.btn-secondary {
    background: transparent !important;
    color: white !important;
    padding: 15px 30px !important;
    border: 2px solid var(--turquesa-digital) !important;
    border-radius: 30px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    outline: none !important;
}

a.btn-secondary:hover,
.btn-secondary:hover {
    background: var(--turquesa-digital) !important;
    border: 2px solid var(--turquesa-digital) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 5px 20px rgba(76, 206, 213, 0.4) !important;
}

a.btn-secondary:focus,
.btn-secondary:focus {
    outline: none !important;
    border: 2px solid var(--turquesa-digital) !important;
    box-shadow: 0 0 0 3px rgba(76, 206, 213, 0.3) !important;
}

/* ============================================
   BOTÓN FLOTANTE DE WHATSAPP AVANZADO
   ============================================ */

.whatsapp-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.whatsapp-float {
    position: relative;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
}

.whatsapp-float i {
    animation: pulse-whatsapp 2s infinite;
}

/* Tooltip (mensaje emergente) */
.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    color: #075E54;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

/* Flecha del tooltip */
.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid white;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 80px;
}

/* Animación de pulso */
@keyframes pulse-whatsapp {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Animación de entrada al cargar la página */
@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.whatsapp-container {
    animation: slideInRight 0.6s ease-out 1s both;
}

/* Responsive: Ajustar en móviles */
@media (max-width: 768px) {
    .whatsapp-container {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 28px;
    }
    
    .whatsapp-tooltip {
        display: none; /* Ocultar tooltip en móviles */
    }
}

/* Ajuste para que no tape el footer */
@media (max-height: 600px) {
    .whatsapp-container {
        bottom: 15px;
        right: 15px;
    }
}
