/* --- Variables y Reseteo Básico --- */
:root {
    --primary-color: #005A9E; /* Azul corporativo, inspirado en AXA */
    --secondary-color: #FF6F00; /* Naranja para CTAs, inspirado en Global (ajustar) */
    --accent-color: #00A8C6; /* Un turquesa o celeste para detalles */
    --light-bg-color: #f8f9fa;
    --dark-text-color: #333;
    --light-text-color: #fff;
    --muted-text-color: #6c757d;
    --font-family: 'Arial', sans-serif; /* Considera Google Fonts como Roboto, Open Sans, Montserrat */
    --border-radius: 5px;
    --box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--dark-text-color);
    line-height: 1.6;
    background-color: #fff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

.section-padding {
    padding: 60px 0;
}

.bg-light {
    background-color: var(--light-bg-color);
}
.bg-brand {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}
.bg-brand .section-title, .bg-brand .section-subtitle {
    color: var(--light-text-color);
}
.bg-brand .section-subtitle {
    color: rgba(255,255,255,0.8);
}


.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: var(--muted-text-color);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.text-white { color: var(--light-text-color) !important; }
.text-white-muted { color: rgba(255,255,255,0.8) !important; }


/* --- Botones --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--light-text-color);
}
.btn-primary:hover {
    background-color: #e65c00; /* Naranja más oscuro */
    color: var(--light-text-color);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--light-text-color);
}
.btn-secondary:hover {
    background-color: #008C9F; /* Accent más oscuro */
    color: var(--light-text-color);
}

.btn-primary-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.btn-primary-outline:hover {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}


.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}
.btn-sm {
    padding: 8px 15px;
    font-size: 0.9rem;
}
.btn-block {
    display: block;
    width: 100%;
}

/* --- Header y Navegación --- */
.navbar {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}
.logo img {
    max-height: 50px; /* Ajusta según tu logo */
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: var(--dark-text-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}
.nav-links a.active, .nav-links a:hover {
    color: var(--primary-color);
}
.nav-links a.active::after, .nav-links a:hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.nav-phone {
    font-size: 0.9rem;
    color: var(--muted-text-color);
}
.nav-phone i {
    margin-right: 5px;
    color: var(--primary-color);
}
.nav-phone:hover::after { display: none; }


.nav-cta {
    margin-left: 25px;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: var(--box-shadow);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    padding: 10px 0;
    min-width: 200px;
    z-index: 1001;
}
.dropdown:hover .dropdown-menu {
    display: block;
}
.dropdown-menu li {
    margin-left: 0;
}
.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--dark-text-color);
    white-space: nowrap;
}
.dropdown-menu li a:hover {
    background-color: var(--light-bg-color);
    color: var(--primary-color);
}
.dropdown-menu li a::after { display:none !important; } /* Evitar doble subrayado */
.dropdown > a i { margin-left: 5px; font-size: 0.8em; }


.menu-toggler {
    display: none; /* Oculto en escritorio */
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
}


/* --- Hero Section --- */
.hero {
    background-image: url('../images/hero-background.jpg'); /* REEMPLAZA ESTA IMAGEN */
    background-size: cover;
    background-position: center;
    color: var(--light-text-color);
    text-align: center;
    padding: 120px 0;
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 58, 100, 0.7); /* Overlay oscuro sobre la imagen */
}

.hero-content {
    position: relative; /* Para estar sobre el overlay */
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.contact-info-hero {
    margin-top: 30px;
    font-size: 1.1rem;
}
.contact-info-hero span { margin: 0 10px; }
.contact-info-hero i { margin-right: 5px; color: var(--secondary-color); }

/* --- Why Us Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-item i {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark-text-color);
}

/* --- Allies Section --- */
.ally-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}
.ally-logo-item {
    text-align: center;
}
.ally-logo-item img {
    display: block;
    margin: 0 auto 15px auto;
    filter: grayscale(50%);
    transition: filter 0.3s ease;
}
.ally-logo-item:hover img {
    filter: grayscale(0%);
}

/* --- Products Overview --- */
.product-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.product-card-img {
    width: 100%;
    height: 200px; /* Altura fija para las imágenes */
    object-fit: cover; /* Asegura que la imagen cubra el espacio sin distorsionarse */
}
.product-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.product-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}
.product-card p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* --- Quote Form Section --- */
.quote-form {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 800px;
    margin: 0 auto;
}
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}
.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--dark-text-color);
}
.quote-form-section .form-group label { /* Para el form sobre fondo de marca */
     color: var(--dark-text-color); /* Asegura que las etiquetas sean legibles */
}


.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-size: 1rem;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0,90,158,0.25);
}

.form-group textarea {
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: center;
}
.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    width: auto; /* Para que no ocupe todo el ancho */
}
.checkbox-group label {
    font-weight: normal;
    margin-bottom: 0;
    font-size: 0.9rem;
}
.checkbox-group label a {
    color: var(--primary-color);
    text-decoration: underline;
}

.form-status-message {
    margin-top: 20px;
    text-align: center;
    font-weight: bold;
}

/* --- Footer --- */
.site-footer {
    background-color: #222;
    color: #ccc;
    font-size: 0.9rem;
}
.site-footer a {
    color: #eee;
}
.site-footer a:hover {
    color: var(--secondary-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: var(--light-text-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--muted-text-color);
    padding-bottom: 10px;
}
.footer-col ul li {
    margin-bottom: 8px;
}
.footer-col p i, .footer-col ul li i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.social-links a {
    display: inline-block;
    margin-right: 10px;
    font-size: 1.5rem;
    color: #ccc;
}
.social-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
}
.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
}
.footer-bottom .fa-heart {
    color: var(--secondary-color);
}


/* --- Responsive --- */
@media (max-width: 992px) {
    .section-title { font-size: 2rem; }
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1.1rem; }

    .nav-links {
        position: absolute;
        top: 100%; /* Debajo del header */
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        display: none; /* Oculto por defecto */
        max-height: calc(100vh - 70px); /* 70px es altura aproximada del navbar */
        overflow-y: auto;
    }
    .nav-links.active { /* Clase que se añade con JS */
        display: flex;
    }
    .nav-links li {
        width: 100%;
        margin-left: 0;
        text-align: left;
    }
    .nav-links li a {
        display: block;
        padding: 15px 25px;
        width: 100%;
    }
    .nav-links a.active::after, .nav-links a:hover::after {
        display:none; /* No queremos subrayado en móvil */
    }
    .nav-links a.active {
         background-color: var(--light-bg-color);
    }
    .nav-cta {
        display: none; /* Ocultar el botón de cotizar en la barra en móvil, ya está en el menú */
    }
    .menu-toggler {
        display: block; /* Mostrar el botón hamburguesa */
    }

    /* Dropdown en móvil */
    .dropdown-menu {
        position: static; /* No absoluto */
        box-shadow: none;
        border-radius: 0;
        padding-left: 20px; /* Indentación */
        background-color: #fdfdfd; /* Un poco diferente para distinguir */
        display: none; /* Oculto por defecto */
        width: 100%;
    }
    .dropdown.open .dropdown-menu { /* Clase 'open' se añade con JS */
        display: block;
    }
    .dropdown > a i { transition: transform 0.3s ease; }
    .dropdown.open > a i { transform: rotate(180deg); }

    .form-row {
        flex-direction: column;
        gap: 0; /* Se maneja con margin-bottom de form-group */
    }
}

@media (max-width: 768px) {
    .hero { padding: 80px 0; min-height: 60vh;}
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .contact-info-hero { font-size: 0.9rem; display: flex; flex-direction: column; gap: 10px; }
    .contact-info-hero span { margin: 0; }


    .features-grid {
        grid-template-columns: 1fr; /* Una columna */
    }
    .ally-logos {
        flex-direction: column;
        gap: 30px;
    }
    .product-cards-grid {
        grid-template-columns: 1fr; /* Una columna */
    }
}