/* CSS Reset y Variables */
:root {
    --primary-blue: #0A427F;     /* Azul profundo corporativo */
    --primary-light: #186ed1;    /* Azul claro / hover */
    --accent-blue: #D6E8FB;      /* Fondo azul muy claro para contraste */
    --white: #ffffff;
    --text-main: #333333;
    --text-muted: #666666;
    --border-color: #e0e0e0;
    
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utilidades */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-light);
    color: var(--white);
    border: 2px solid var(--primary-light);
    box-shadow: 0 4px 15px rgba(24, 110, 209, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 66, 127, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-text {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-text:hover {
    color: var(--primary-light);
    gap: 0.8rem;
}

/* Header & Navbar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    transition: height 0.3s ease;
}

.header.scrolled .navbar {
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-img {
    height: 65px;
    width: auto;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
}

.logo-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-arrow {
    font-size: 0.7rem;
    margin-left: 0.2rem;
    color: var(--text-muted);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-blue);
    background: none;
    border: none;
    cursor: pointer;
}

/* Footer Section */
.footer {
    background-color: var(--primary-blue);
    color: var(--accent-blue);
    padding: 5rem 0 0 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent-blue));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.8rem;
    color: var(--white);
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.footer-col p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-light);
}

.footer .footer-links li, .footer .footer-contact li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a {
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-links a i {
    font-size: 0.8rem;
    color: var(--primary-light);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-links a:hover i {
    color: var(--white);
}

.footer-contact li i {
    color: var(--primary-light);
    margin-top: 0.3rem;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(24, 110, 209, 0.4);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* WhatsApp Button */
.btn-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
}

.btn-whatsapp:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

/* Nuevas Secciones */
.section-padding {
    padding: 6rem 0;
}

.bg-light {
    background-color: #f9f9f9;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.w-100 { width: 100%; }

/* Redes Sociales Contacto */
.footer-col .social-links.social-blue a {
    color: var(--primary-blue);
    background-color: var(--accent-blue);
    border-color: rgba(10, 66, 127, 0.2);
}
.footer-col .social-links.social-blue a:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}



/* Responsive Design */
@media (max-width: 992px) {
    .nav-menu { gap: 1rem; }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 2rem 0;
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); /* Hidden */
        transition: clip-path 0.4s ease-in-out;
        gap: 0;
    }
    
    .nav-menu.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); /* Visible */
    }
    
    .nav-link {
        display: block;
        padding: 1rem 5%;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .header .btn-outline {
        display: none; /* Hide on mobile to simplify header */
    }
}

@media (max-width: 480px) {
    .section-title { font-size: 2rem; }
    .section-padding { padding: 4rem 0; }
}

/* Animaciones Dinámicas Globales */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-animate] {
    opacity: 0;
}

[data-animate].animate-now {
    animation: fadeInUp 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Tiempos para página de inicio */
.hero-content .subtitle.animate-now { animation-delay: 0.1s; }
.hero-content .title.animate-now { animation-delay: 0.2s; }
.hero-content .description.animate-now { animation-delay: 0.3s; }
.hero-buttons.animate-now { animation-delay: 0.4s; }

.grid-productos .card-producto:nth-child(1).animate-now { animation-delay: 0.1s; }
.grid-productos .card-producto:nth-child(2).animate-now { animation-delay: 0.2s; }
.grid-productos .card-producto:nth-child(3).animate-now { animation-delay: 0.3s; }
.grid-productos .card-producto:nth-child(4).animate-now { animation-delay: 0.4s; }
.grid-productos .card-producto:nth-child(5).animate-now { animation-delay: 0.5s; }
