/* ==========================================================================
   ESTILOS GENERALES Y VARIABLES
   ========================================================================== */
:root {
    --primary-blue: #1c4485;      /* Azul del logo */
    --accent-red: #cc3333;        /* Rojo del logo */
    --light-blue: #eef5fc;       /* Fondo claro para secciones */
    --text-dark: #2c3e50;         /* Texto principal */
    --text-light: #7f8c8d;        /* Texto secundario */
    --white: #ffffff;
    --dark-footer: #112542;       /* Fondo footer azul oscuro */
    --whatsapp-green: #25d366;    /* Verde WhatsApp */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Contenedor alineado estándar */
.section-container, .header-container, .footer-container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Títulos estándar de sección */
.section-subtitle {
    color: var(--accent-red);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}

.section-subtitle-center {
    color: var(--accent-red);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    display: block;
    text-align: center;
    margin-bottom: 5px;
}

.section-title-center {
    font-size: 2rem;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title-center::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-red);
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

/* ==========================================================================
   1. HEADER / CABECERA
   ========================================================================== */
.site-header {
    background-color: var(--white);
    padding: 15px 0;
    border-bottom: 4px solid var(--primary-blue);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container {
    display: table;
    width: 100%;
}

.logo-area {
    display: table-cell;
    text-align: center;
    vertical-align: middle;
}

.main-logo {
    height: 90px; /* Subimos de 75px a 90px para que tenga más presencia */
    width: auto;
    max-width: 100%;
    display: inline-block;
}

/* ==========================================================================
   2. PRESENTACIÓN (HERO BANNER - SOLO IMÁGENES)
   ========================================================================== */
.hero-banner {
    position: relative;
    width: 100%;
    height: 550px; /* Altura ideal en computadoras para que se luzca tu diseño */
    overflow: hidden;
    background-color: #f0f4f8; /* Fondo gris claro de respaldo */
}

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

.hero-bg-carousel .carousel-track {
    width: 100%;
    height: 100%;
}

/* Las imágenes se adaptan para cubrir todo el espacio */
.hero-bg-carousel .carousel-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ajusta la imagen para que llene la caja sin deformarse */
    object-position: center; /* Centra la imagen para que no se corte lo importante */
}

/* Estilos de las flechas sobre el banner */
.hero-bg-carousel .carousel-btn {
    background-color: rgba(28, 68, 133, 0.5); /* Azul del logo semitransparente */
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-bg-carousel .carousel-btn:hover {
    background-color: var(--accent-red); /* Cambia a rojo al pasar el mouse */
}

/* Adaptación para pantallas de celulares */
@media (max-width: 768px) {
    .hero-banner {
        height: 250px; /* Más petiso en celulares para que no scrollee de más */
    }
}

/* ==========================================================================
   3. SECCIÓN: QUIÉNES SOMOS
   ========================================================================== */
.about-section {
    padding: 80px 0;
    background-color: var(--white);
}

.about-content {
    display: table;
    width: 100%;
}

.about-text {
    display: table-cell;
    width: 55%;
    vertical-align: middle;
    padding-right: 50px;
}

.about-text h2 {
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
    color: #4f5f6f;
    font-size: 1.05rem;
}

.about-badges {
    margin-top: 30px;
}

.badge {
    display: inline-block;
    background-color: var(--light-blue);
    color: var(--primary-blue);
    padding: 8px 15px;
    border-radius: 4px;
    margin-right: 10px;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    border-left: 3px solid var(--accent-red);
}

.badge i {
    margin-right: 6px;
    color: var(--accent-red);
}

.about-image {
    display: table-cell;
    width: 45%;
    vertical-align: middle;
}

.img-responsive {
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    width: 100%;
}

/* ==========================================================================
   4. SECCIÓN: CONTACTO Y FORMULARIO
   ========================================================================== */
.contact-section {
    padding: 80px 0;
    background-color: var(--light-blue);
}

.contact-grid {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.contact-info {
    display: table-cell;
    width: 50%;
    vertical-align: top;
    padding-right: 40px;
}

.contact-form-container {
    display: table-cell;
    width: 50%;
    vertical-align: top;
    background-color: var(--white);
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.contact-info h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.contact-info > p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.info-item {
    display: block;
    margin-bottom: 25px;
}

.info-item i {
    font-size: 2.2rem;
    color: var(--primary-blue);
    float: left;
    margin-right: 15px;
    margin-top: 3px;
}

.info-item div {
    margin-left: 50px;
}

.info-item h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.info-item p, .info-item a {
    color: #556677;
    font-weight: 600;
}

.info-item a:hover {
    color: var(--accent-red);
}

/* Estilos de los campos del formulario */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-family);
    font-size: 1rem;
    color: var(--text-dark);
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.btn-submit {
    width: 100%;
    background-color: var(--accent-red);
    color: var(--white);
    border: none;
    padding: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #b32424;
}

/* ==========================================================================
   5. PIE DE PÁGINA (FOOTER)
   ========================================================================== */
.site-footer {
    background-color: var(--dark-footer);
    color: var(--white);
    padding: 50px 0 0 0;
}

.footer-container {
    display: table;
    width: 100%;
    padding-bottom: 30px;
}

.footer-brand {
    display: table-cell;
    width: 50%;
    vertical-align: top;
}

.footer-brand h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: var(--white);
}

.footer-brand p {
    color: #a4b3c6;
    max-width: 350px;
}

.footer-socials {
    display: table-cell;
    width: 50%;
    vertical-align: top;
    text-align: right;
}

.footer-socials h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--white);
}

.social-icons a {
    display: inline-block;
    background-color: rgba(255,255,255,0.1);
    color: var(--white);
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    margin-left: 10px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--accent-red);
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: #0b1a30;
    text-align: center;
    padding: 20px 0;
    font-size: 0.85rem;
    color: #71859e;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ==========================================================================
   6. BOTÓN FLOTANTE WHATSAPP
   ========================================================================== */
.whatsapp-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--whatsapp-green);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: all 0.3s;
}

.whatsapp-floating:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

/* Responsive básico para emular columnas en pantallas chicas */
@media (max-width: 768px) {
    .hero-text, .hero-image-container, .about-text, .about-image, .contact-info, .contact-form-container, .footer-brand, .footer-socials {
        display: block !important;
        width: 100% !important;
        padding-right: 0 !important;
        text-align: center !important;
        margin-bottom: 30px;
    }
    .info-item i {
        float: none;
        display: inline-block;
        margin-right: 0;
    }
    .info-item div {
        margin-left: 0;
    }
    .footer-socials {
        text-align: center !important;
    }
    .social-icons a {
        margin: 0 5px;
    }
}
/* ==========================================================================
   NUEVOS ESTILOS PARA EL MAPA DE COBERTURA
   ========================================================================== */
.contact-map-container {
    display: table-cell;
    width: 50%;
    vertical-align: top;
}

.map-wrapper {
    background-color: var(--white);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(28, 68, 133, 0.1);
}

.map-img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

.map-overlay-text {
    background-color: var(--light-blue);
    color: var(--primary-blue);
    text-align: center;
    padding: 10px;
    margin-top: 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Ajuste responsive para celulares */
@media (max-width: 768px) {
    .contact-map-container {
        display: block !important;
        width: 100% !important;
        margin-top: 20px;
    }
}
/* ==========================================================================
   ESTILOS DE LOS CARRUSELES (SLIDERS)
   ========================================================================== */
.carousel {
    position: relative;
    width: 100%;
    max-width: 500px; /* Evita que las fotos se deformen */
    margin: 0 auto;
    overflow: hidden;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 350px; /* Altura fija para que la web no salte al cambiar de foto */
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Mantiene la proporción de la foto sin recortar */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

/* En Quiénes Somos usamos 'cover' para que llene el espacio como una foto de fondo */
.about-image .carousel-img {
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.carousel-img.active {
    opacity: 1;
    z-index: 2;
}

/* Botones / Flechas */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(28, 68, 133, 0.7); /* Azul del logo con transparencia */
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background-color: var(--accent-red); /* Rojo al pasar el mouse */
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

/* Ajuste para pantallas chicas */
@media (max-width: 768px) {
    .carousel-track {
        height: 250px; /* Más petiso en celulares */
    }
}

