/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #fff;
    color: #333;
}

/* Barra superior */
.top-bar {
    background-color: #555555;
    color: white;
    padding: 10px 20px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* ESTILOS PARA LOS ICONOS DEL TOP-BAR */
.top-bar .contact-left span,
.top-bar .contact-right span {
    display: flex;
    align-items: center;
    margin-right: 15px;
}
.top-bar .contact-left span i,
.top-bar .contact-right span i {
    font-size: 16px;
    margin-right: 8px;
    color: #ffffff;
}
.top-bar .contact-left strong {
    font-weight: bold;
}

@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}


/* Estilos del menú de navegación */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    padding-top: 1rem;
    padding-bottom: 1rem;
    z-index: 1000;
}

.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.navbar-brand .logo {
    height: 60px;
    width: auto;
    transition: height 0.3s ease;
}

.navbar-scrolled .navbar-brand .logo {
    height: 40px;
}

.navbar-nav .nav-link {
    font-weight: bold;
    color: #333;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2px solid transparent;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #ffc107;
    border-bottom: 2px solid #ffc107;
}

/* Hero section */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: background-image 1s ease-in-out;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Sombra semi-transparente */
}

.hero-content {
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Botón "Agenda una Consulta" en el Hero */
.hero-btn {
    background-color: #cfb125 !important;
    border-color: #cfb125 !important;
    color: white !important;
    font-weight: bold;
    padding: 12px 25px;
    font-size: 18px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.hero-btn:hover {
    background-color: #a38c1f !important;
    border-color: #a38c1f !important;
}

/* Estilos de las secciones */
section {
    padding: 60px 0;
}

section:nth-child(even) {
    background-color: #f8f9fa;
}

/* Estilos de los títulos */
h2.display-4, h5.card-title {
    color: #1f2a44;
}

.card-title {
    color: #1f2a44;
}

/* Estilos de los servicios y botones generales (si los hubiera, ajustados para no interferir) */
.btn-primary {
    background-color: #1f2a44;
    border-color: #1f2a44;
}

.btn-primary:hover {
    background-color: #0d121f;
    border-color: #0d121f;
}

.btn-primary:active {
    background-color: #0d121f !important;
    border-color: #0d121f !important;
}

/* Estilos de las tarjetas de servicios */
.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.servicio-img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.servicio-img:hover {
    transform: scale(1.05);
}

/* Estilos de testimonios */
#testimonios .carousel-indicators button {
    background-color: #ffc107;
}
#testimonios .carousel-control-prev-icon,
#testimonios .carousel-control-next-icon {
    background-color: #ffc107;
    border-radius: 50%;
}

/* Estilos de FAQ */
.accordion-button:not(.collapsed) {
    color: #fff;
    background-color: #1f2a44;
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

/* Estilos del formulario de contacto */
#contact-form .form-control:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

.contact-submit-btn {
    background-color: #1f2a44 !important;
    border-color: #1f2a44;
    font-weight: 700;
    padding: 12px 25px;
    font-size: 18px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    color: white !important;
    font-weight: bold;
}

.contact-submit-btn:hover {
    background-color: #0d121f;
    border-color: #0d121f;
}

.contact-submit-btn:active {
    background-color: #0d121f !important;
    border-color: #0d121f !important;
}

/* Estilos del footer */
.footer-logo {
    height: 80px;
    width: auto;
}

.social-icons a {
    font-size: 24px;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #ffc107;
}

/* Colores específicos para los íconos de redes sociales */
.social-icons .fa-facebook-f {
    color: #1778F2; /* Color oficial de Facebook */
}

.social-icons .fa-instagram {
    /* Instagram utiliza un gradiente, pero un solo color representativo es #c13584 */
    color: #E1306C;
}

.social-icons .fa-whatsapp {
    color: #25D366; /* Color oficial de WhatsApp */
}

/* Lightbox */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1050;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1060;
}

/* Nuevo: Estilos para el botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    text-decoration: none;
    transition: background-color 0.3s ease;
    
    /* Animación de flotar */
    animation: float 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    background-color: #1DA851;
}

.whatsapp-icon {
    font-size: 30px;
}

/* Definición de la animación de flotar */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* =========================================== */
/* === NUEVO ESTILO PARA BOTÓN CORPORATIVO === */
/* =========================================== */
.btn-corporate {
    /* Color de fondo: El color de acento brillante (Yellow/Orange) */
    background-color: #ffc107 !important; 
    /* Color de texto: El color oscuro de la marca (Dark Blue/Black) */
    color: #0d121f !important;         
    /* Borde: El mismo color de acento */
    border-color: #ffc107 !important; 
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-corporate:hover,
.btn-corporate:focus {
    /* Efecto al pasar el ratón (Hover): Un tono más oscuro del acento para feedback */
    background-color: #e6b000 !important; /* Un amarillo/naranja un poco más oscuro */
    border-color: #e6b000 !important;
    color: #0d121f !important;
}

/* ================================================= */
/* === ESTILOS PARA EL BOTÓN DE CIERRE DE LA POLÍTICA === */
/* ================================================= */
.btn-cerrar-politica {
    /* Estilos base del botón */
    background: none;
    border: none;
    color: #dc3545; /* Rojo de Bootstrap para advertencias/errores */
    font-size: 1.5rem; /* Hace la 'x' y el texto más grandes */
    font-weight: bold;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.2s ease-in-out;
    display: flex; /* Alineación de la X y el texto */
    align-items: center;
    margin-left: auto; /* Mantiene el botón a la derecha */
}

.btn-cerrar-politica:hover {
    color: #891d28; /* Rojo más oscuro al pasar el ratón */
    background-color: #f8d7da; /* Fondo suave para resaltar */
}

/* ================================================= */
/* === ESTILOS PARA LA PÁGINA DE AGRADECIMIENTO (gracias.html) === */
/* ================================================= */

/* Contenedor principal para centrar el contenido en toda la vista */
.thank-you-page-body {
    /* Usamos el color de fondo de la sección normal */
    background-color: #fff; 
    /* Altura mínima de la ventana para centrar verticalmente */
    min-height: 100vh;
    display: flex;
    align-items: center; /* Centrado vertical */
    justify-content: center; /* Centrado horizontal */
    text-align: center;
    flex-direction: column; 
    padding: 20px;
}

/* Estilo para el ícono de éxito (usaremos el color verde de WhatsApp para el check) */
.thank-you-icon {
    /* El color verde es el de WhatsApp / éxito */
    color: #25D366; 
    font-size: 5rem;
    margin-bottom: 1rem;
}

/* Estilo para el botón principal (reutilizamos el look del botón primario) */
.thank-you-btn {
    /* Color de fondo: El color oscuro de la marca (Dark Blue) */
    background-color: #1f2a44 !important;
    border-color: #1f2a44 !important;
    color: white !important;
    font-weight: 700;
    padding: 12px 25px;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.thank-you-btn:hover {
    background-color: #0d121f !important;
    border-color: #0d121f !important;
}