:root {
    /* Paleta de Colores Corporativa (Regla 60-30-10) */
    --oxford-blue: #1E293B; /* 30% - Estructura */
    --vial-orange: #FF6B00; /* 10% - Conversión/CTA */
    --steel-gray: #64748B;  /* Secundario */
    --light-gray: #F8FAFC;  /* 60% - Fondo dominante */
    --white: #FFFFFF;       /* 60% - Fondo limpio */
    
    /* Tipografía Core */
    --font-main: 'Inter', Arial, sans-serif;
    
    /* Variables Visuales */
    --shadow-sm: 0 4px 6px -1px rgba(30, 41, 59, 0.05);
    --shadow-md: 0 12px 24px -4px rgba(30, 41, 59, 0.08);
    --shadow-lg: 0 20px 30px -5px rgba(30, 41, 59, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--oxford-blue);
    background-color: var(--light-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-white { color: var(--white); }
.text-dark { color: var(--oxford-blue); }
.text-light { color: rgba(255, 255, 255, 0.85); }
.text-vial { color: var(--vial-orange); }

h1, h2, h3, h4 {
    color: var(--oxford-blue);
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

h2.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 3.5rem;
}

p.section-desc {
    text-align: center;
    color: var(--steel-gray);
    max-width: 600px;
    margin: -2.5rem auto 3.5rem;
    font-size: 1.125rem;
}

p {
    color: var(--steel-gray);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

/* =========================================
   BOTONES Y BADGES
   ========================================= */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--vial-orange);
    color: var(--white);
    font-weight: 700;
    padding: 0.85rem 1.75rem;
    border-radius: 4px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary:hover {
    background-color: #E05E00;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px var(--vial-orange);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--white);
    font-weight: 700;
    padding: 0.85rem 1.75rem;
    border-radius: 4px;
    text-decoration: none;
    border: 2px solid var(--white);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--oxford-blue);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

.btn-glow {
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.4);
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(255, 107, 0, 0.8);
}

.badge-accent {
    display: inline-block;
    background-color: var(--vial-orange);
    color: var(--white);
    font-weight: 900;
    font-size: 0.85rem;
    padding: 0.35rem 1rem;
    letter-spacing: 1px;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.badge-centered {
    margin: 0 auto 1rem;
    display: table;
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
    background-color: var(--white);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 4px solid var(--oxford-blue);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 25%;
    height: 4px;
    background: var(--vial-orange);
    transition: var(--transition);
}

.navbar.scrolled::after {
    width: 100%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a:not(.btn-primary) {
    text-decoration: none;
    color: var(--oxford-blue);
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--vial-orange);
    transition: var(--transition);
}

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

.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* =========================================
   HERO CONTAINER (SPLIT)
   ========================================= */
.hero-split {
    background-color: var(--oxford-blue);
    position: relative;
    padding: 160px 0 140px;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0; right: 0; width: 100%; height: 100%;
    z-index: 1;
}

.hero-bg-image img {
    width: 100%; height: 100%; object-fit: cover;
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(30, 41, 59, 0.95) 0%, rgba(30, 41, 59, 0.7) 45%, rgba(30, 41, 59, 0.2) 100%);
}

.hero-container-split {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text-split h1 {
    color: var(--white);
}

.hero-text-split .highlight {
    color: var(--vial-orange);
}

.hero-text-split p {
    color: rgba(255, 255, 255, 0.85);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-divider {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 3;
}

.hero-divider svg {
    width: 100%;
    height: 120px;
    display: block;
}

/* =========================================
   FORMULARIOS (GENERAL)
   ========================================= */
.form-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    border-top: 6px solid var(--vial-orange);
    position: relative;
}

.form-title {
    color: var(--oxford-blue);
    font-size: 1.75rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--oxford-blue);
    margin-bottom: 0.5rem;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid #E2E8F0;
    border-radius: 4px;
    background-color: #F1F5F9;
    color: var(--oxford-blue);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--vial-orange);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.success-message {
    text-align: center;
    padding: 2rem 0;
}

.success-message.hidden {
    display: none;
}

.success-icon {
    width: 64px;
    height: 64px;
    stroke: #10B981;
    margin: 0 auto 1rem;
}

/* =========================================
   VALUE PROPOSITION
   ========================================= */
.value-prop {
    padding: 80px 0 120px;
    background-color: var(--light-gray);
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: center;
}

.value-item {
    padding: 2.5rem 2rem;
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-bottom: 4px solid var(--vial-orange);
}

.value-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.icon-box {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 107, 0, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box svg {
    width: 36px;
    height: 36px;
}

.value-item h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
}

/* =========================================
   CATÁLOGO DE PRODUCTOS
   ========================================= */
.products {
    background-color: var(--white);
    padding: 100px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid #E2E8F0;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-featured {
    border: 3px solid var(--vial-orange);
}

.card-featured:hover {
    transform: translateY(-10px);
}

.product-image-link {
    position: relative;
    display: block;
    height: 240px;
    background: #E2E8F0;
    overflow: hidden;
}

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

.product-card:hover .product-image-link img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--white);
    font-weight: 900;
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    z-index: 2;
}

.bg-vial { background: var(--vial-orange); }
.bg-dark { background: var(--oxford-blue); }

.product-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.bg-tinted {
    background-color: #FFF9F5;
}

.product-context {
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--steel-gray);
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.product-content h3 {
    font-size: 1.65rem;
    margin-bottom: 1rem;
}

.product-desc {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.product-specs {
    margin-bottom: 2rem;
    margin-top: auto;
}

.specs-title {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--steel-gray);
    margin-bottom: 0.5rem;
}

.specs-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.specs-tags span {
    background: var(--light-gray);
    border: 1px solid #CBD5E1;
    color: var(--oxford-blue);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.tags-light span {
    background: var(--white);
}

/* Modificamos el .btn-outline de las cards para que sea dark */
.product-card .btn-outline {
    border-color: var(--oxford-blue);
    color: var(--oxford-blue);
}
.product-card .btn-outline:hover {
    background: var(--oxford-blue);
    color: var(--white);
}

/* =========================================
   MAYOREO Y MENUDEO SPLIT
   ========================================= */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.split-half {
    padding: 80px 10%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.light-half {
    background-color: var(--white);
    border-right: 1px solid #E2E8F0;
}

.dark-half {
    background-color: var(--oxford-blue);
}

.relative-bg {
    position: relative;
    overflow: hidden;
}

.bg-pattern-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background: repeating-linear-gradient(45deg, #000, #000 10px, var(--vial-orange) 10px, var(--vial-orange) 20px);
}

.relative-content {
    position: relative;
    z-index: 2;
}

.split-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    color: var(--steel-gray);
}

.split-icon.text-vial {
    color: var(--vial-orange);
}

.split-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.split-desc {
    margin-bottom: 2rem;
}

.check-list {
    list-style: none;
    text-align: left;
    margin: 0 auto 2.5rem;
    max-width: 300px;
}

.check-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.check-list svg {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.dark-checks svg { color: #10B981; }
.dark-checks li { color: var(--oxford-blue); font-weight: 600; }

.vial-checks svg { color: var(--vial-orange); }
.vial-checks li { color: rgba(255, 255, 255, 0.9); }

.light-half .btn-outline {
    border-color: var(--oxford-blue);
    color: var(--oxford-blue);
}
.light-half .btn-outline:hover {
    background-color: var(--oxford-blue);
    color: var(--white);
}

/* =========================================
   URGENCY STRIP
   ========================================= */
.urgency-strip {
    background-color: var(--vial-orange);
    padding: 1rem 0;
}

.strip-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.strip-text {
    display: flex;
    align-items: center;
    color: var(--white);
    font-weight: 900;
    font-size: 1.15rem;
}

.strip-text svg {
    width: 28px;
    height: 28px;
    margin-right: 0.75rem;
}

.strip-link {
    display: flex;
    align-items: center;
    color: var(--white);
    font-weight: 900;
    font-size: 1.25rem;
    text-decoration: underline;
}

.strip-link svg {
    width: 24px;
    height: 24px;
    margin-right: 0.5rem;
}

.strip-link:hover {
    color: var(--oxford-blue);
}

/* =========================================
   FAQ SECTION
   ========================================= */
.faq-section-wrapper {
    background-color: var(--white);
    padding: 100px 0;
    border-top: 1px solid #E2E8F0;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #E2E8F0;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 700;
    padding: 1.5rem 0;
    color: var(--oxford-blue);
    list-style: none;
    position: relative;
    padding-right: 40px;
    font-size: 1.125rem;
    transition: var(--transition);
}

.faq-item summary:hover {
    color: var(--vial-orange);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 900;
    color: var(--vial-orange);
    font-size: 1.5rem;
}

.faq-item[open] summary::after {
    content: "-";
    color: var(--oxford-blue);
}

.faq-content {
    padding-bottom: 1.5rem;
    color: var(--steel-gray);
    line-height: 1.6;
}

.faq-list {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.faq-list li {
    margin-bottom: 0.5rem;
}

.faq-list strong {
    color: var(--oxford-blue);
}

/* =========================================
   CONTACTO SECTION
   ========================================= */
.contact-section {
    background-color: var(--light-gray);
    padding: 100px 0;
    border-top: 1px solid #E2E8F0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.contact-desc {
    margin-bottom: 3rem;
}

.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.channel-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.channel-icon {
    background: var(--white);
    border: 1px solid #E2E8F0;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--oxford-blue);
}

.channel-icon svg {
    width: 28px;
    height: 28px;
}

.channel-text h4 {
    font-size: 1.125rem;
    font-weight: 900;
    margin-bottom: 0.25rem;
}

.channel-text p {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.channel-link {
    color: #2563EB;
    font-weight: 700;
    text-decoration: none;
}

.channel-link:hover {
    text-decoration: underline;
}

.channel-address {
    max-width: 350px;
    line-height: 1.4;
}

/* =========================================
   FOOTER INSTITUCIONAL
   ========================================= */
.footer {
    background-color: var(--oxford-blue);
    color: var(--white);
    position: relative;
    padding-top: 40px;
}

.footer-divider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

.footer-divider svg {
    width: 100%;
    height: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 5rem;
    padding: 80px 2rem 60px;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
}

.footer h4 {
    color: var(--white);
    margin-bottom: 1.75rem;
    font-size: 1.125rem;
    font-weight: 700;
}

.contact-info, .footer-links {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.contact-info svg {
    flex-shrink: 0;
    color: var(--vial-orange);
    margin-top: 2px;
}

.contact-info a, .footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info a:hover, .footer-links a:hover {
    color: var(--vial-orange);
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 2rem 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* =========================================
   BOTONES FLOTANTES & MOBILE BAR
   ========================================= */
.floating-wa {
    display: none; /* Hide on mobile */
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25D366;
    color: var(--white);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-wa svg {
    width: 36px;
    height: 36px;
}

.floating-wa:hover {
    transform: scale(1.15);
}

.mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    border-top: 1px solid #E2E8F0;
    padding: 0.5rem;
    gap: 0.5rem;
    z-index: 1001;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
}

.mobile-sticky-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    color: var(--white);
    font-size: 0.9rem;
}

.btn-dark { background-color: var(--oxford-blue); }
.btn-green { background-color: #25D366; }

/* =========================================
   MEDIA QUERIES (RESPONSIVE)
   ========================================= */
@media (min-width: 769px) {
    .floating-wa {
        display: flex;
    }
}

@media (max-width: 992px) {
    .hero-container-split {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }

    .hero-bg-image {
        width: 100%;
    }

    .hero-overlay {
        background: linear-gradient(0deg, rgba(30,41,59,0.95) 0%, rgba(30,41,59,0.6) 100%);
    }

    .hero-form-wrapper {
        margin: 0 auto;
        width: 100%;
        max-width: 500px;
    }

    .split-section {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .contact-info li {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* Navbar móvil */
    .nav-links {
        display: none;
        position: absolute;
        top: 85px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-md);
        border-top: 1px solid #E2E8F0;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }

    /* Tipografía móvil */
    h1 {
        font-size: 2.25rem;
    }

    .strip-container {
        flex-direction: column;
        text-align: center;
    }

    /* Padding inferior extra para que la barra móvil no tape el footer */
    body {
        padding-bottom: 70px;
    }
    
    .mobile-sticky-bar {
        display: flex;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}
