/*CLICK TO CALL*/
:root {
    --primary-color: #2563eb;
    --facebook-color: #1877f2;
    --mail-color: #ea4335;
    --phone-color: #34a853;
    --text-white: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 2000px;
    /* Solo para permitir scroll y ver el efecto flotante */
}

/* Contenedor Principal */
.ctc-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
}

/* Tooltip / Alertita "Contact us" */
.ctc-alert {
    position: absolute;
    left: 70px;
    bottom: 15px;
    background: #ffbb00;
    color: white;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.3s;
    pointer-events: none;
}

.ctc-alert::before {
    content: "";
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-right: 5px solid #ffbb00;
}

/* Botón Principal */
.ctc-main-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ctc-main-btn.active {
    transform: rotate(45deg);
    background-color: #ffbb00;
}

/* Botones Secundarios (Ocultos por defecto) */
.ctc-sub-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.ctc-sub-buttons.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.ctc-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.ctc-btn:hover {
    transform: scale(1.1);
}

/* Colores específicos */
.btn-phone {
    background-color: var(--phone-color);
}

.btn-fb {
    background-color: var(--facebook-color);
}

.btn-mail {
    background-color: var(--mail-color);
}

.btn-google {
    background: #ffffff;
    color: #4285F4;
}

/* Ocultar la alertita cuando el menú está abierto */
.hide-alert {
    opacity: 0 !important;
}

/* SECCIÓN */
.Masonry-gallery-section {
    background: url('assets/images/path.png');
    background-repeat: no-repeat;
    background-size: cover;
    padding: 95px 0 70px;
}

/* CONTENEDOR */
.container-gallery-all {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
}

/* GRID RESPONSIVE */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* TARJETA */
.gallery-item {
    background: #ffffff;
    padding: 8px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, .08),
        0 2px 4px rgba(0, 0, 0, .05);
    transition: all .35s ease;
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow:
        0 12px 24px rgba(0, 0, 0, .15),
        0 6px 12px rgba(0, 0, 0, .08);
}

/* IMAGEN */
.gallery-item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    transition: transform .5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* DESKTOP GRANDE */
@media (min-width: 1400px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* TABLET */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .gallery-item img {
        height: 280px;
    }
}

/* MÓVIL */
@media (max-width: 768px) {

    .Masonry-gallery-section {
        padding: 60px 0;
    }

    .container-gallery-all {
        padding: 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .gallery-item img {
        height: 250px;
    }
}

/* MÓVILES PEQUEÑOS */
@media (max-width: 480px) {

    .container-gallery-all {
        padding: .75rem;
    }

    .gallery-item {
        padding: 6px;
        border-radius: 12px;
    }

    .gallery-item img {
        height: 220px;
        border-radius: 8px;
    }
}

.container-banner {
    padding: 2rem;
    background-color: #f1630b;
    width: 100%;
}






/* --- Estilos Generales y Fixed --- */
/* --- Estilos Generales y Fixed --- */
.custom-header {
    background-color: #302e2e;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1050;
    padding: 25px 0;
    /* Un padding inicial más generoso en Web */
    transition: padding 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    /* Transición suave para el scroll */
}

/* CLASE ESPECIAL: Se activará con JavaScript al hacer scroll */
.custom-header.header-scrolled {
    padding: 10px 0;
    /* Reduce el espacio del header al hacer scroll */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Contenedor del Logo */
.brand-logo img {
    max-height: 100px;
    /* Tamaño ideal en móvil */
    width: auto;
    transition: max-height 0.3s ease;
    /* Transición suave de tamaño */
}

/* Lista de navegación */
.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-list a {
    text-decoration: none;
    color: #e8e8e8;
    font-weight: 500;
    padding: 10px 15px;
    display: block;
    transition: color 0.3s ease;
}

.btn-appointment {
    background-color: rgb(255, 136, 0);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
}

/* --- MODO WEB (Pantallas Grandes) --- */
@media (min-width: 992px) {
    .brand-logo img {
        max-height: 90px;
        /* ¡AQUÍ AGRANDAMOS EL LOGO! Ajusta este valor a tu gusto (80px, 90px, 100px) */
    }

    /* Si se hace scroll, el logo se encoge sutilmente para no ocupar tanta pantalla */
    .custom-header.header-scrolled .brand-logo img {
        max-height: 60px;
    }

    /* Forzamos que los elementos del menú se alineen perfectamente al centro del eje vertical del logo */
    .alignment-container {
        align-items: center;
        height: 100%;
    }
}

/* --- MODO RESPONSIVE (Móviles) --- */
@media (max-width: 991.98px) {
    .header-row {
        flex-direction: column;
    }
    
    .nav-list a {
    text-decoration: none;
    color: #242222;
    }

    .brand-logo {
        margin-bottom: 15px;
    }

    .alignment-container {
        width: 100%;
        position: relative;
    }

    .menu-toggle {
        background: none;
        border: none;
        font-size: 24px;
        color: #333;
        cursor: pointer;
        padding: 5px 15px;
    }

    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: max-height 0.4s ease-in-out, opacity 0.3s ease, transform 0.3s ease;
        z-index: 999;
    }

    .main-navigation.active {
        max-height: 400px;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-list {
        flex-direction: column;
        padding: 15px 0;
    }

    .nav-list a {
        padding: 12px 25px;
        border-bottom: 1px solid #f0f0f0;
    }

    .btn-appointment-mobile {
        background-color: #ff8800;
        color: #fff !important;
        text-align: center;
        margin: 10px 25px 0 25px;
        border-radius: 4px;
    }
}

/* --- MODO WEB (Pantallas Grandes) --- */
@media (min-width: 992px) {
    .brand-logo img {
        max-height: 150px;
        /* Un poco más estilizado en Web */
    }
}

/* --- MODO RESPONSIVE (Móviles y Tablets) --- */
@media (max-width: 991.98px) {

    /* Forzar que el logo y el menú se comporten en dos filas separadas */
    .header-row {
        flex-direction: column;

    }

    #home{
        margin-top: 2rem;
    }

    .brand-logo {
        margin-bottom: 15px;
    }

    .alignment-container {
        width: 100%;
        position: relative;
    }

    /* Botón Hamburguesa en la segunda fila */
    .menu-toggle {
        background: none;
        border: none;
        font-size: 24px;
        color: #e55800;
        cursor: pointer;
        padding: 5px 15px;
    }

    /* Menú colapsable oculto por defecto */
    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: max-height 0.4s ease-in-out, opacity 0.3s ease, transform 0.3s ease;
        z-index: 999;
    }

    /* Clase que activa la animación suave al abrir */
    .main-navigation.active {
        max-height: 400px;
        /* Altura máxima estimada para desplegar */
        opacity: 1;
        transform: translateY(0);
    }

    /* Menu ítems en vertical para móvil */
    .nav-list {
        flex-direction: column;
        padding: 15px 0;
    }

    .nav-list a {
        padding: 12px 25px;
        border-bottom: 1px solid #f0f0f0;
    }

    .btn-appointment-mobile {
        background-color: #ff8800;
        color: #fff !important;
        text-align: center;
        margin: 10px 25px 0 25px;
        border-radius: 4px;
    }
}