/* Aplicar box-sizing globalmente para un manejo consistente del tamaño de los elementos */
* {
    box-sizing: border-box;
}

/* Estilos personalizados y variables de color de la marca */
:root {
    --brand-dark-blue: #1038cd; /* Primario: Nueva base oscura */
    --brand-yellow: #01bdeb;    /* Resalte: Nuevo acento brillante */
    --brand-red-accent: #01bdeb; /* Secundario: Mismo acento brillante */
    --brand-light-gray: #f5f5f5; /* Fondo: Honestidad (se mantiene) */
    --brand-darkest-blue: #1038cd; /* Un azul aún más oscuro para el footer (ahora el mismo que el primario) */
    --brand-dark-text: var(--brand-dark-blue);
}

/* Asegura que html y body ocupen el 100% de la altura del viewport */
html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Aplica Flexbox al body para un "sticky footer" */
body {
    display: flex;
    flex-direction: column;
    font-family: 'Barlow', sans-serif;
    background-color: var(--brand-light-gray);
    color: var(--brand-dark-text);
    padding-bottom: 70px; /* Espacio para el footer si es fijo o para evitar solapamiento */
    padding-top: 0;
    /* QUITAMOS OVERFLOW HIDDEN AQUI. SE MANEJA EN JS PARA MODALES */
}

@media (max-width: 767px) {
    body {
        padding-top: 95px; /* Espacio para el encabezado móvil fijo */
    }
}

/* --- ESTILOS PARA EL MENÚ FIJO (STICKY) --- */
#main-navbar.sticky-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Asegura que el menú se muestre sobre el resto del contenido */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* Añade una sombra sutil para darle profundidad */
    animation: slideDown 0.35s ease-out; /* Efecto de aparición suave */
}

/* Animación opcional para que el menú se deslice desde arriba */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}
/* Estilo de fuente para títulos y elementos destacados */
h1, h2, h3, .font-heading {
    font-family: 'Barlow', sans-serif;
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Animación de Pulso Sutil para Botones */
@keyframes pulse-subtle {
    0% { transform: scale(1); box-shadow: 0 6px 12px rgba(0,0,0,0.2); }
    50% { transform: scale(1.03); box-shadow: 0 12px 25px rgba(0,0,0,0.4); }
    100% { transform: scale(1); box-shadow: 0 6px 12px rgba(0,0,0,0.2); }
}

/* Componentes Personalizados: Botones */
.btn {
    padding: 1.25rem 2.5rem;
    border-radius: 0.75rem;
    font-weight: 900;
    font-size: 1.5rem;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-transform: uppercase;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    animation: pulse-subtle 2.5s infinite ease-in-out;
}

.btn-primary {
    background-color: var(--brand-yellow);
    color: var(--brand-dark-blue);
    border: 2px solid var(--brand-yellow);
}
.btn-primary:hover {
    background-color: var(--brand-dark-blue);
    color: var(--brand-yellow);
    border-color: var(--brand-dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    animation: none;
}

.btn-secondary {
    background-color: var(--brand-red-accent);
    color: white;
    border: 2px solid var(--brand-red-accent);
}
.btn-secondary:hover {
    filter: brightness(115%);
    animation: none;
}

/* Estilos para títulos y subtítulos de sección */
.section-title { font-size: 3rem; line-height: 1; text-align: center; margin-bottom: 0.5rem; }
@media (min-width: 640px) { .section-title { font-size: 3.5rem; } }
@media (min-width: 768px) { .section-title { font-size: 4rem; } }
.section-subtitle { font-size: 1.2rem; line-height: 1.2; text-align: center; font-family: 'Barlow', sans-serif; font-weight: 900 !important; text-transform: uppercase; }
@media (min-width: 640px) { .section-subtitle { font-size: 1.5rem; } }

/* Esquemas de color para títulos y subtítulos */
.title-light { color: var(--brand-dark-blue); }
.subtitle-light { color: var(--brand-red-accent); }
.title-dark { color: white; }
.subtitle-dark { color: var(--brand-yellow); }

/* Estilos para campos de formulario */
.form-input {
    width: 100%;
    background-color: white !important;
    color: #000;
    border: 2px solid #ccc;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-weight: 700;
    transition: all 0.3s ease;
}
.form-input::placeholder { color: #888; }
.form-input:focus {
    outline: none;
    border-color: var(--brand-yellow);
    box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.5);
}

/* Estilo para la tarjeta de servicio */
.service-card {
    background: white;
    border-radius: 0.75rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.15), 0 6px 8px -2px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}
.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 35px -5px rgba(0, 0, 0, 0.15), 0 12px 15px -5px rgba(0, 0, 0, 0.06);
}
.service-card .icon {
    font-size: 4.5rem;
    color: var(--brand-red-accent);
    margin-bottom: 1.5rem;
}
.service-card .title {
    font-size: 1.8rem;
    color: var(--brand-dark-blue);
    font-weight: 900 !important;
    text-transform: uppercase;
}
.service-card p {
    font-size: 1rem;
}

/* Estilo para las imágenes divisorias */
.section-divider-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    margin: 0;
    padding: 0;
    border-radius: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
@media (max-width: 767px) {
    .section-divider-img {
        height: 250px;
    }
}

/* Clases de utilidad para Tailwind */
.bg-brand-yellow { background-color: var(--brand-yellow); }
.bg-brand-dark-blue { background-color: var(--brand-dark-blue); }
.text-brand-yellow { color: var(--brand-yellow); }
.text-brand-dark-blue {color: #000;}

/* Fondos de sección con imagen */
.hero-section-bg { background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)), url('img/BG01.jpg'); background-size: cover; background-position: center; color: white; }
.solution-section-bg { background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)), url('img/BG02.jpg'); background-size: cover; background-position: center; color: white; }
.why-choose-us-bg { background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)), url('img/BG03.jpg'); background-size: cover; background-position: center; color: white; }
.how-it-works-bg { background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)), url('img/BG04.jpg'); background-size: cover; background-position: center; color: white; }

/* --- ESTILOS CORREGIDOS PARA LA GALERÍA --- */
.gallery-main-display {
    display: flex;
    justify-content: center;
    align-items: center;
}
.gallery-main-display img {
    width: 100%;
    max-width: 700px;
    height: 400px;
    object-fit: cover;
    border-radius: 0.75rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Estilos para la galería en pantallas de escritorio (md y superiores) */
@media (min-width: 768px) {
    .gallery-thumbnails-grid {
        grid-template-columns: repeat(5, 1fr);
        max-width: 700px;  /* <-- Esta línea es clave para centrar la cuadrícula */
        margin-left: auto;
        margin-right: auto;
    }
}

.gallery-thumbnail-card {
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gallery-thumbnail-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.75rem;
}

.gallery-thumbnail-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.25);
    border-color: var(--brand-red-accent);
}

.gallery-thumbnail-card.active {
    border-color: var(--brand-yellow);
    box-shadow: 0 0 0 5px rgba(1, 189, 235, 0.9); /* Sombra de color actualizada */
    transform: scale(1.08);
}

/* Tarjetas Por Qué Elegirnos */
.why-choose-card { background: white; border-radius: 0.75rem; padding: 2rem; text-align: center; box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; }
.why-choose-card:hover { transform: translateY(-8px); box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15); }
.why-choose-card .icon { font-size: 3.5rem; color: var(--brand-yellow); margin-bottom: 1rem; }
.why-choose-card .title { font-size: 1.5rem; color: var(--brand-dark-blue); font-weight: 900 !important; margin-bottom: 0.75rem; }
.why-choose-card p { font-size: 0.95rem; color: #555; flex-grow: 1; }

/* Tarjetas de contacto */
.contact-info-section { background-color: white; color: var(--brand-dark-text); padding: 6rem 1.5rem; text-align: center; box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1); }
.contact-cards-container { display: flex; flex-direction: column; gap: 2rem; margin-top: 3rem; justify-content: center; align-items: center; }
@media (min-width: 768px) { .contact-cards-container { flex-direction: row; } }
.contact-card { background-color: white; padding: 1rem 1.25rem; border-radius: 1rem; box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15); display: flex; flex-direction: row; align-items: center; justify-content: flex-start; flex: 1; max-width: 380px; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; border: 3px solid var(--brand-dark-blue); text-align: left; }
.contact-card:hover { transform: translateY(-5px) scale(1.01); box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25); border-color: var(--brand-red-accent); }
.contact-card .icon-large { font-size: 3.5rem; margin-right: 0.75rem; line-height: 1; flex-shrink: 0; color: var(--brand-dark-blue); }
.contact-card .text-content { display: flex; flex-direction: column; align-items: flex-start; flex-grow: 1; }
.contact-card .contact-label { font-size: 1.1rem; font-weight: 900; text-transform: uppercase; margin-bottom: 0.25rem; color: var(--brand-dark-blue); }
.contact-card .contact-value { font-size: 1.4rem; font-weight: 900; display: block; text-decoration: none; transition: color 0.3s ease; color: var(--brand-red-accent); }
.contact-card .contact-value:hover { color: var(--brand-dark-blue); }

/* AJUSTE PARA EL CORREO ELECTRÓNICO LARGO */
.contact-card.email-card .contact-value {
    font-size: 1.15rem; 
    word-break: break-all; 
}

/* ESTILOS ORIGINALES DEL FOOTER - SIN CAMBIOS */
footer {
    background-color: var(--brand-darkest-blue);
    color: white;
    padding: 1.5rem 1.5rem;
    text-align: center;
}
footer .footer-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}


footer .footer-logo-container img {
    width: 150px;
    height: auto;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

footer .footer-logo-container .company-name {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--brand-yellow);
    text-transform: uppercase;
    letter-spacing: 1px;
}
footer .social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
    font-weight: 700;
}
footer .social-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    transition: color 0.3s ease;
}
footer .social-links a:hover {
    color: var(--brand-yellow);
}
footer .footer-copyright,
footer .footer-disclaimer {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
}
@media (min-width: 768px) {
    footer .footer-logo-container { flex-direction: row; justify-content: center; gap: 1rem; }
    footer .footer-logo-container img { margin-bottom: 0; }
    footer .social-links { justify-content: center; }
}


/* Botón flotante y Modal */
#openAgendaModalDesktop { position: fixed; right: 0; top: 50%; transform: translateY(-50%); background-color: var(--brand-red-accent); color: white; padding: 1.5rem 0.75rem; border-radius: 0.75rem 0 0 0.75rem; box-shadow: 0 5px 15px rgba(0,0,0,0.3); z-index: 1000; cursor: pointer; border: none; outline: none; display: none; }
@media (min-width: 768px) { #openAgendaModalDesktop { display: flex; flex-direction: column; align-items: center; justify-content: center; } }
#openAgendaModalDesktop span { font-size: 1.25rem; font-weight: 900; text-transform: uppercase; writing-mode: vertical-lr; text-orientation: mixed; white-space: nowrap; transform: rotate(180deg); }
#openAgendaModalDesktop i { font-size: 2.5rem; margin-top: 0.5rem; }
#openAgendaModalDesktop:hover { transform: translateY(-50%) translateX(-5px) scale(1.02); box-shadow: 0 8px 20px rgba(0,0,0,0.4); }
#agendaModal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background-color: rgba(0, 0, 0, 0.75); display: flex; justify-content: flex-end; align-items: stretch; z-index: 1001; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
#agendaModal.active { opacity: 1; visibility: visible; }
#agendaModalContent { background-color: white; padding: 2.5rem; border-radius: 0; box-shadow: -15px 0 30px rgba(0, 0, 0, 0.4); width: 50vw; min-width: 450px; height: 100%; position: relative; transform: translateX(100%); transition: transform 0.3s ease-out; display: flex; flex-direction: column; overflow-y: auto; }
#agendaModal.active #agendaModalContent { transform: translateX(0); }
@media (max-width: 768px) { #agendaModalContent { min-width: 100%; width: 100vw; border-radius: 0; position: fixed; bottom: 0; left: 0; right: 0; height: 100%; max-height: calc(100vh - 95px); transform: translateY(100%); box-shadow: 0 -15px 30px rgba(0, 0, 0, 0.4); padding: 1.5rem; box-sizing: border-box; } #agendaModal.active #agendaModalContent { transform: translateY(0); } #agendaModal { align-items: flex-end; justify-content: center; } #agenda-form { flex-grow: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 1rem; } }
#closeAgendaModal { position: absolute; top: 1rem; right: 1.2rem; font-size: 2.5rem; font-weight: bold; color: #888; cursor: pointer; transition: color 0.2s ease; }
#closeAgendaModal:hover { color: #333; }
header nav ul li a:hover { color: var(--brand-yellow) !important; }

/* Menú Móvil */
.mobile-menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.75); z-index: 1000; display: none; opacity: 0; transition: opacity 0.3s ease; }
.mobile-menu-overlay.active { display: block; opacity: 1; }
.mobile-menu { position: fixed; top: 0; left: -100vw; width: 100vw; height: 100%; background-color: var(--brand-dark-blue); color: white; z-index: 1001; box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5); transition: left 0.3s ease-out; display: flex; flex-direction: column; padding: 1.5rem; overflow-y: auto; }
.mobile-menu.active { left: 0; }
.mobile-menu-header { display: flex; flex-direction: column; align-items: center; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.2); margin-bottom: 1.5rem; }
.mobile-menu-header img { width: 80%; max-width: 250px; height: auto; object-fit: contain; margin-bottom: 0.75rem; }
.mobile-menu-nav ul { list-style: none; padding: 0; margin: 0; flex-grow: 1; }
.mobile-menu-nav li { margin-bottom: 1rem; }
.mobile-menu-nav a { display: flex; align-items: center; gap: 0.75rem; color: white; font-size: 1.3rem; font-weight: 700; text-transform: uppercase; padding: 0.5rem 0; transition: color 0.2s ease; }
.mobile-menu-nav a:hover { color: var(--brand-yellow); }
.mobile-menu-footer { padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.2); text-align: center; font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); }
.hamburger-icon { display: block; cursor: pointer; font-size: 2.5rem; color: var(--brand-dark-blue); margin-left: auto; padding: 0.5rem; transition: color 0.2s ease; }
.hamburger-icon:hover { color: var(--brand-red-accent); }
.btn-mobile-header { background-color: var(--brand-red-accent); color: white; padding: 0.5rem 1rem; border-radius: 0.5rem; font-weight: 700; font-size: 1rem; display: flex; align-items: center; gap: 0.5rem; text-transform: uppercase; transition: all 0.2s ease; border: none; outline: none; animation: none; }
.btn-mobile-header:hover { background-color: var(--brand-dark-blue); color: var(--brand-yellow); box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
@media (min-width: 768px) { .hamburger-icon, .btn-mobile-header { display: none; } }
#fixedBottomQuoteBtn { background-color: var(--brand-yellow); color: var(--brand-dark-blue); padding: 1rem 0; font-weight: 900; font-size: 1.25rem; text-transform: uppercase; box-shadow: 0 -5px 15px rgba(0,0,0,0.2); position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; display: none; }
@media (max-width: 767px) { #fixedBottomQuoteBtn { display: flex; align-items: center; justify-content: center; gap: 0.75rem; } }
#fixedBottomQuoteBtn:hover { background-color: var(--brand-dark-blue); color: var(--brand-yellow); }