/* Paleta de colores de la marca */
:root {
    --color-morado: #73316e;
    --color-magenta: #c5256e;
    --color-rosa: #ea504e;
    --color-naranja-rojo: #e65232;
    --color-naranja: #f7941d;
    --color-cyan: #81c4ca;
    
    --primary-color: #73316e;
    --secondary-color: #81c4ca;
    --accent-color: #f7941d;
    --text-dark: #333;
    --text-light: #666;
}

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

html {
    background: #ffffff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    /* Imagen de fondo colorida */
    background-image: url(img/fondo/FORUM.webp);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Overlay colorido sobre la imagen de fondo */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(115, 49, 110, 0.7) 0%,
        rgba(197, 37, 110, 0.6) 25%,
        rgba(234, 80, 78, 0.6) 50%,
        rgba(247, 148, 29, 0.6) 75%,
        rgba(129, 196, 202, 0.7) 100%
    );
    z-index: 0;
    pointer-events: none;
}

/* ===== NAVBAR ===== */
.navbar-home {
    background: linear-gradient(135deg, var(--color-morado), var(--color-magenta));
    padding: 1.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 100;
}

.logo-container-home {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-container-home img{
    height: 100px;
    width: auto;
}


/* ===== CONTENEDOR PRINCIPAL ===== */
.main-container-home {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
    position: relative;
    z-index: 10;
}


/* ===== CONTENEDOR GLASS ===== */
.glass-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 3rem 2.5rem;
    box-shadow: 
        0 8px 32px 0 rgba(31, 38, 135, 0.37),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.18);
    max-width: 1200px;
    margin: 0 auto;
}


/* ===== HEADER DENTRO DEL GLASS ===== */
.header-glass {
    text-align: center;
    margin-bottom: 3rem;
}


.titulo-home {
    font-size: 3.5rem;
    font-weight: 900;
    /*background: linear-gradient(135deg, var(--color-morado), var(--color-magenta), var(--color-rosa));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;*/
    margin-bottom: 0.8rem;
    line-height: 1.2;
    color: white;
    text-shadow: 
        3px 3px 6px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(247, 148, 29, 0.4);
    margin-bottom: 0.3rem;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.subtitulo-home {
    font-size: 1.4rem;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* ===== GRID DE SUCURSALES ===== */
.sucursales-container {
    padding: 2rem 0 3rem;
    position: relative;
    z-index: 10;
    min-height: 50vh;
    display: flex;
    align-items: center;
    margin-left: 5%;
    margin-right: 5%;
}

.sucursal-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 5;

}

.sucursal-card:hover {
    transform: translateY(-10px);
}



.sucursal-link-glass {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.sucursal-card-glass {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 5;
}

.sucursal-card-glass:hover {
    transform: translateY(-15px);
}

/* Círculo de la sucursal con efecto glass COLORIDO */
.sucursal-circle-glass {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    /* Fondo con gradiente colorido */
    background: linear-gradient(135deg, 
        rgba(115, 49, 110, 0.3) 0%,
        rgba(197, 37, 110, 0.3) 50%,
        rgba(129, 196, 202, 0.3) 100%
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* Borde con gradiente colorido */
    border: 4px solid transparent;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.15)),
        linear-gradient(135deg, 
            var(--color-morado) 0%, 
            var(--color-magenta) 25%, 
            var(--color-rosa) 50%, 
            var(--color-naranja) 75%, 
            var(--color-cyan) 100%
        );
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 
        0 10px 40px rgba(197, 37, 110, 0.4),
        0 0 20px rgba(247, 148, 29, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.4s ease;
    cursor: pointer;
    padding: 5px;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% {
        box-shadow: 
            0 10px 40px rgba(197, 37, 110, 0.4),
            0 0 20px rgba(247, 148, 29, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }
    50% {
        box-shadow: 
            0 10px 40px rgba(129, 196, 202, 0.5),
            0 0 30px rgba(234, 80, 78, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.6);
    }
}

.sucursal-card-glass:hover .sucursal-circle-glass {
    box-shadow: 
        0 20px 60px rgba(197, 37, 110, 0.6),
        0 0 40px rgba(247, 148, 29, 0.5),
        0 0 0 8px rgba(255, 255, 255, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.7);
    transform: scale(1.08) rotate(5deg);
    animation: none;
}

/* Círculos específicos con diferentes colores dominantes */
.sucursal-card-glass:nth-child(1) .sucursal-circle-glass {
    background: linear-gradient(135deg, 
        rgba(115, 49, 110, 0.35) 0%,
        rgba(197, 37, 110, 0.35) 100%
    );
}

.sucursal-card-glass:nth-child(2) .sucursal-circle-glass {
    background: linear-gradient(135deg, 
        rgba(234, 80, 78, 0.35) 0%,
        rgba(230, 82, 50, 0.35) 100%
    );
}

.sucursal-card-glass:nth-child(3) .sucursal-circle-glass {
    background: linear-gradient(135deg, 
        rgba(247, 148, 29, 0.35) 0%,
        rgba(230, 82, 50, 0.35) 100%
    );
}

.sucursal-card-glass:nth-child(4) .sucursal-circle-glass {
    background: linear-gradient(135deg, 
        rgba(129, 196, 202, 0.35) 0%,
        rgba(115, 49, 110, 0.35) 100%
    );
}

/* Imagen dentro del círculo */
.sucursal-image-glass {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.4s ease, filter 0.3s ease;
}

.sucursal-card-glass:hover .sucursal-image-glass {
    transform: scale(1.15);
    filter: brightness(1.1) saturate(1.2);
}

/* ===== MASCOTA QUE SE ASOMA ===== */
.mascota-peek-glass {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: visible;
    z-index: 10;
}

.mascota-img-glass {
    position: absolute;
    width: 120px;
    height: auto;

    filter: drop-shadow(0 12px 35px rgba(0, 0, 0, 0.6)) 
            drop-shadow(0 0 20px rgba(247, 148, 29, 0.4));
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Posiciones iniciales - fuera del círculo en diferentes direcciones */
.sucursal-card-glass:nth-child(1) .mascota-img-glass {
    bottom: -70px;
    left: 50%;
    transform: translate(-50%, 100%) scale(0.8);
    opacity: 0;
}

.sucursal-card-glass:nth-child(2) .mascota-img-glass {
    left: -70px;
    top: 50%;
    transform: translate(-100%, -50%) scale(0.8);
    opacity: 0;
}

.sucursal-card-glass:nth-child(3) .mascota-img-glass {
    top: -70px;
    left: 50%;
    transform: translate(-50%, -100%) scale(0.8);
    opacity: 0;
}

.sucursal-card-glass:nth-child(4) .mascota-img-glass {
    right: -70px;
    top: 50%;
    transform: translate(100%, -50%) scale(0.8);
    opacity: 0;
}

/* Posiciones al hacer hover - se asoman desde atrás con más efecto */
.sucursal-card-glass:nth-child(1):hover .mascota-img-glass {
    bottom: -50px;
    left: 50%;
    transform: translate(-50%, 0) scale(1.1);
    opacity: 1;
    filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.7)) 
            drop-shadow(0 0 30px rgba(197, 37, 110, 0.6));
}

.sucursal-card-glass:nth-child(2):hover .mascota-img-glass {
    left: -50px;
    top: 50%;
    transform: translate(0, -50%) scale(1.1);
    opacity: 1;
    filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.7)) 
            drop-shadow(0 0 30px rgba(234, 80, 78, 0.6));
}

.sucursal-card-glass:nth-child(3):hover .mascota-img-glass {
    top: -50px;
    left: 50%;
    transform: translate(-50%, 0) scale(1.1);
    opacity: 1;
    filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.7)) 
            drop-shadow(0 0 30px rgba(247, 148, 29, 0.6));
}

.sucursal-card-glass:nth-child(4):hover .mascota-img-glass {
    right: -50px;
    top: 50%;
    transform: translate(0, -50%) scale(1.1);
    opacity: 1;
    filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.7)) 
            drop-shadow(0 0 30px rgba(129, 196, 202, 0.6));
}

/* Información de la sucursal CON GRADIENTE COLORIDO */
.sucursal-info-glass {
    margin-top: 1.5rem;
    text-align: center;
    /* Fondo con gradiente colorido glass */
    /*background: linear-gradient(135deg, 
        rgba(197, 37, 110, 0.3) 0%,
        rgba(247, 148, 29, 0.3) 100%
    );*/
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 0.5rem 1.8rem;
    border-radius: 25px;
    border: 3px solid transparent;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)),
        linear-gradient(90deg, 
            var(--color-magenta) 0%, 
            var(--color-rosa) 50%, 
            var(--color-naranja) 100%
        );
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 
        0 8px 25px rgba(197, 37, 110, 0.4),
        0 0 15px rgba(247, 148, 29, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    min-width: 180px;
}

.sucursal-card-glass:hover .sucursal-info-glass {
    background: linear-gradient(135deg, 
        rgba(234, 80, 78, 0.4) 0%,
        rgba(129, 196, 202, 0.4) 100%
    );
    box-shadow: 
        0 12px 35px rgba(247, 148, 29, 0.5),
        0 0 25px rgba(197, 37, 110, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
} 

/* Info con colores específicos por sucursal */
.sucursal-card-glass:nth-child(1) .sucursal-info-glass {
    background: linear-gradient(135deg, 
        rgba(115, 49, 110, 0.35) 0%,
        rgba(197, 37, 110, 0.35) 100%
    );
}

.sucursal-card-glass:nth-child(2) .sucursal-info-glass {
    background: linear-gradient(135deg, 
        rgba(234, 80, 78, 0.35) 0%,
        rgba(230, 82, 50, 0.35) 100%
    );
}

.sucursal-card-glass:nth-child(3) .sucursal-info-glass {
    background: linear-gradient(135deg, 
        rgba(247, 148, 29, 0.35) 0%,
        rgba(230, 82, 50, 0.35) 100%
    );
}

.sucursal-card-glass:nth-child(4) .sucursal-info-glass {
    background: linear-gradient(135deg, 
        rgba(129, 196, 202, 0.35) 0%,
        rgba(115, 49, 110, 0.35) 100%
    );
}

.sucursal-nombre-glass {
    font-size: 1.7rem;
    font-weight: 900;
    color: white;
    text-shadow: 
        3px 3px 6px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(247, 148, 29, 0.4);
    margin-bottom: 0.3rem;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.sucursal-card-glass:hover .sucursal-nombre-glass {
    text-shadow: 
        4px 4px 8px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(247, 148, 29, 0.6),
        0 0 40px rgba(197, 37, 110, 0.4);
    transform: scale(1.08);
}

.sucursal-ciudad-glass {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    margin: 0;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.4),
        0 0 10px rgba(129, 196, 202, 0.3);
    letter-spacing: 0.5px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px){
.sucursal-circle-glass {
        width: 180px;
        height: auto;
    }
}
@media (max-width: 991px) {
    .titulo-home{
        font-size: 3rem;
    }
    .subtitulo-home{
        font-size: 1.3rem;
    }
    .sucursal-circle-glass {
        width: 250px;
        height: auto;
    }
    .sucursal-card-glass{
        padding-bottom: 2rem;
    }
    
    .mascota-img-glass {
        width: 110px;
    }
    
    .sucursal-nombre-glass {
        font-size: 1.5rem;
    }
    
    .sucursal-ciudad-glass {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .logo-container-home img{
        height: 85px;
    } 
    .sucursal-circle-glass {
        width: 200px;
        height: 200px;
    }
    
    .mascota-img-glass {
        width: 100px;
    }
    
    .sucursal-nombre-glass {
        font-size: 1.4rem;
    }
    
    .sucursal-info-glass {
        padding: 1rem 1.4rem;
        min-width: 150px;
    }
}

@media (max-width: 576px) {
    .logo-container-home img{
        height: 75px;
    } 
    .titulo-home{
        font-size: 2.8rem;
    }
    .sucursal-circle-glass {
        width: 300px;
        height: auto;
    }
    
    .sucursal-nombre-glass {
        font-size: 1.3rem;
    }
    
    .sucursal-ciudad-glass {
        font-size: 1rem;
    }
    .sucursal-info-glass {
        padding: 1rem 1.4rem;
        min-width: 200px;
    }
}

/* ===== FOOTER SIMPLE ===== */
.footer-simple {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.9);
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--color-morado), var(--color-magenta), var(--color-rosa), var(--color-naranja), var(--color-cyan)) 1;
    text-align: center;
    position: relative;
    z-index: 10;
}

.footer-simple p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.social-links-simple {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-links-simple a {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--color-morado), var(--color-magenta));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links-simple a:hover {
    transform: translateY(-5px) scale(1.1);
    background: linear-gradient(135deg, var(--color-rosa), var(--color-naranja));
    box-shadow: 0 5px 20px rgba(197, 37, 110, 0.5);
}

/* ===== RESPONSIVE ===== */
@media (max-width:1280px) {
    .sucursal-circle {
        width: 220px;
        height: 220px;
    }
}
@media (max-width: 991px) {
    .sucursal-circle {
        width: 250px;
        height: 250px;
    }
    
    .mascota-emoji {
        font-size: 90px;
    }

    .logo-box-home img {
        height: 150px;
    }
}

@media (max-width: 768px) {
    .titulo-principal {
        font-size: 2.5rem;
    }
    
    .subtitulo-principal {
        font-size: 1.2rem;
    }
    
    .logo-text-home {
        font-size: 2rem;
    }
    
    .sucursales-container {
        min-height: auto;
        padding: 1rem 0 2rem;
    }
    
    .sucursal-circle {
        width: 200px;
        height: 200px;
    }
    
    .mascota-emoji {
        font-size: 80px;
    }
    
    .sucursal-nombre {
        font-size: 1.4rem;
    }

     .logo-box-home img {
        height: 100px;
    }
    
    /* Ajustar posiciones de mascota en móvil */
    .sucursal-card:nth-child(n) .mascota-emoji {
        bottom: -30px;
        left: 50%;
        top: auto;
        right: auto;
        transform: translate(-50%, 100%) scale(0.8);
    }
    
    .sucursal-card:nth-child(n):hover .mascota-emoji {
        bottom: -20px;
        transform: translate(-50%, 0) scale(1);
    }
}

@media (max-width: 576px) {
    .sucursal-circle {
        width: 180px;
        height: 180px;
    }
    
    .mascota-emoji {
        font-size: 70px;
    }
    
    .sucursal-nombre {
        font-size: 1.2rem;
    }
}
