/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* --- Variables de Color (Tu Paleta) --- */
:root {
    --dark-blue: #002B5B;
    --orange: #FF7A00;
    --white: #ffffff;
    --light-gray: #f4f4f4;
    --text-dark: #333;
    --text-light: #fff;
}

/* --- Reseteo Básico y Estilos Globales --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    text-decoration: none;
    color: var(--orange);
}

img {
    max-width: 100%;
    display: block;
}

h1, h2, h3 {
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; color: var(--dark-blue); }
h3 { font-size: 1.5rem; }

section {
    padding: 4rem 0;
}

/* --- Botones --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
    background-color: var(--orange);
    color: var(--text-light);
}
.btn-primary:hover {
    background-color: #e66e00;
}

.btn-secondary {
    background-color: var(--dark-blue);
    color: var(--text-light);
}
.btn-secondary:hover {
    background-color: #001f44;
}

/* --- Encabezado y Navegación --- */
.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.main-nav .logo img {
    height: 50px; /* Ajusta según tu logo */
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li a {
    color: var(--dark-blue);
    padding: 1rem 1.5rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--orange);
}

/* --- Menú Móvil (Hamburguesa) --- */
.mobile-menu-toggle {
    display: none;
    font-size: 2rem;
    color: var(--dark-blue);
    cursor: pointer;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--white);
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    animation: slideDown 0.3s ease-out;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    color: var(--dark-blue);
    padding: 1rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--light-gray);
}
.mobile-menu a:hover {
    background-color: var(--light-gray);
    color: var(--orange);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Pie de Página (Footer) --- */
.main-footer {
    background-color: var(--dark-blue);
    color: var(--text-light);
    padding: 3rem 0;
    text-align: center;
}

.main-footer .social-links a {
    color: var(--white);
    margin: 0 0.5rem;
    font-size: 1.5rem; /* Necesitarás Font Awesome o SVGs */
}

.main-footer .copyright {
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* --- Botón Flotante de WhatsApp --- */
.whatsapp-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 100;
    transition: transform 0.3s ease;
}
.whatsapp-fab:hover {
    transform: scale(1.1);
}

/* --- PÁGINA: INICIO --- */
.hero {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: calc(100vh - 80px);
    max-height: 700px;
}

.hero-panel {
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 2rem;
}

.hero-panel::before { /* Overlay oscuro */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.hero-panel > * {
    position: relative; /* Pone el texto sobre el overlay */
    z-index: 2;
}

.hero-panel h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.intro-section {
    text-align: center;
    padding: 4rem 1rem;
}

/* --- PÁGINA: PRODUCTOS --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 2rem;
    text-align: center;
}

.product-card h3 {
    color: var(--dark-blue);
    border-bottom: 2px solid var(--orange);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.brand-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
    min-height: 60px;
}

.brand-logos img {
    height: 40px;
    opacity: 0.8;
}

.pdf-downloads {
    margin-top: 2rem;
    text-align: center;
}

/* --- PÁGINA: APLICACIONES --- */
.application-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.app-card {
    text-align: center;
}
.app-card img {
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* --- PÁGINA: CONTACTO --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info p {
    margin-bottom: 1rem;
}

.contact-info .map-container {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
}
.contact-info iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}
.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
}
.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

/* --- DISEÑO RESPONSIVE --- */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    .main-nav ul {
        display: none; /* Oculta menú de escritorio */
    }
    
    .mobile-menu-toggle {
        display: block; /* Muestra botón de hamburguesa */
    }

    .hero {
        grid-template-columns: 1fr; /* Apila el banner */
        height: auto;
    }
    .hero-panel {
        height: 300px;
    }
    
    .contact-layout {
        grid-template-columns: 1fr; /* Apila formulario y mapa */
    }
}