:root {
    /* Color Palette - Light Corporate Industrial (Basado en la web original) */
    --bg-color: #FFFFFF;
    --bg-color-alt: #F8FAFC; /* Gris muy claro para alternar secciones */
    --text-primary: #0B1E36; /* Azul oscuro casi negro para títulos (del logo/web) */
    --text-secondary: #475569; /* Gris oscuro para textos */
    
    /* Acentos */
    --accent-color: #0B1E36; /* Azul corporativo */
    --accent-hover: #1A365D;
    --accent-green: #25D366; /* Verde tipo WhatsApp para CTA principal si se requiere */
    
    /* Tarjetas y Sombras (Reemplazando el Glassmorphism) */
    --card-bg: #FFFFFF;
    --card-border: #E2E8F0;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    --card-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.08);
    
    /* Typography */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Roboto', sans-serif;
    
    /* Spacing & Layout */
    --section-padding: 6rem 2rem;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-secondary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

/* Utilities (Cards) */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
    border-color: #CBD5E1;
}

/* Typography Utilities */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-primary-small {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-green);
    color: #fff;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.btn-primary:hover {
    background-color: #20BA56;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: var(--text-primary);
}

.btn-primary-small {
    padding: 0.5rem 1.2rem;
    background-color: var(--accent-green);
    color: #fff;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.btn-primary-small:hover {
    background-color: #20BA56;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: #FFFFFF;
    border-bottom: 1px solid var(--card-border);
    transition: var(--transition);
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover:not(.btn-primary-small) {
    color: var(--text-primary);
}

/* Hero Section (Keep Dark like the screenshot) */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    background: linear-gradient(rgba(11, 30, 54, 0.8), rgba(11, 30, 54, 0.9)), url('assets/hero.png') center/cover no-repeat;
    position: relative;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    z-index: 2;
    margin-top: 4rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    color: #fff;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #E2E8F0;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Layout Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--section-padding);
}

/* Tesis / Mensaje Comercial */
.tesis {
    background-color: var(--bg-color-alt);
}

.tesis-grid {
    display: flex;
    justify-content: center;
}

.tesis-text {
    max-width: 800px;
}

.highlight-text {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-weight: 700;
    line-height: 1.3;
}

.tesis-list {
    list-style: none;
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.tesis-list li {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

/* Cards Grid (Oportunidades & Paquetes) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.cards-grid h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cards-grid p {
    color: var(--text-secondary);
}

/* Señales de Dolor */
.dolor {
    background-color: var(--bg-color);
}

.dolor-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.dolor-item {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.dolor-item:hover {
    background: #FEE2E2;
    transform: translateY(-3px);
}

.dolor-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.dolor-item p {
    color: #991B1B;
    font-weight: 600;
}

/* Proceso Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--card-border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    margin-bottom: 2rem;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    right: -20px;
    background-color: #fff;
    border: 3px solid var(--accent-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--accent-color);
    font-family: var(--font-heading);
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -20px;
}

.timeline-content h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Materiales e Imágenes Antes/Después */
.materiales {
    background-color: var(--bg-color-alt);
}

.materiales-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.materiales-info ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.materiales-info li {
    margin-bottom: 0.8rem;
}

.materiales-info li strong {
    color: var(--text-primary);
}

.enfasis {
    padding-left: 1rem;
    border-left: 3px solid var(--accent-color);
    font-style: italic;
    color: var(--text-primary);
}

.before-after-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.image-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

.image-wrapper .label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(255,255,255,0.9);
    color: var(--text-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Paquetes */
.paquetes {
    background-color: var(--bg-color);
}

.paquete-card {
    position: relative;
    padding-top: 3rem;
}

.badge-urgencia, .badge-recomendado, .badge-volumen {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.badge-urgencia { background: #DC2626; color: white; }
.badge-recomendado { background: var(--accent-color); color: white; }
.badge-volumen { background: #2563EB; color: white; }

.paquete-card.destacado {
    border: 2px solid var(--accent-color);
    transform: scale(1.05);
    background: #fff;
    box-shadow: var(--card-shadow-hover);
}

.paquete-card ul {
    list-style: none;
    margin-top: 1.5rem;
}

.paquete-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--card-border);
    color: var(--text-secondary);
}

/* FAQ */
.faq {
    background-color: var(--bg-color-alt);
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Casos */
.casos-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.casos-split.invertido .before-after-container {
    order: -1;
}

@media (min-width: 901px) {
    .casos-split.invertido {
        /* Para asegurar que en desktop la imagen esté a la izquierda */
        grid-template-columns: 1fr 1fr;
    }
}

.caso-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.caso-header {
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.caso-sector {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
}

.caso-body p {
    margin-bottom: 0.8rem;
}

/* Contacto */
.contacto {
    background-color: var(--bg-color-alt);
}

.contacto-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contacto-info h2 {
    color: var(--text-primary);
}

.info-items {
    margin-top: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item .icon {
    font-size: 1.5rem;
}

.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contacto-form input, .contacto-form textarea {
    width: 100%;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-body);
}

.contacto-form input:focus, .contacto-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(11, 30, 54, 0.1);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--card-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
    background-color: #fff;
}

/* Animaciones Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 900px) {
    .materiales-split, .contacto-wrapper, .casos-split {
        grid-template-columns: 1fr;
    }
    .timeline::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-item:nth-child(even) {
        left: 0%;
    }
    .timeline-icon {
        left: 11px;
    }
    .timeline-item:nth-child(even) .timeline-icon {
        left: 11px;
    }
    .tesis-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar { padding: 1rem; }
    .nav-links { 
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-color);
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        text-align: center;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links a {
        margin: 0.5rem 0;
    }
    .menu-toggle {
        display: block !important;
    }
    .hero h1 { font-size: 2.5rem; }
    .hero-ctas { flex-direction: column; }
    .paquete-card.destacado { transform: scale(1); }
    
    .casos-split.invertido .before-after-container {
        order: 0; /* En móviles vuelve al flujo normal */
    }
}
