/* Reset y base - ELIMINAR MÁRGENES GLOBALES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.catalogo-contenedor {
    min-height: 100vh;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1rem 2rem;
    position: relative;
}

/* Banner PEGADO ARRIBA - CORREGIDO */
.banner-fondo {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    margin: 0;
    z-index: 15; /* 👈 por encima de la glass-card (z-index: 10-20) */
}

.banner-fondo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    display: block;
    /* Eliminar espacio inferior de imagen */
}

.banner-fondo:hover img {
    transform: scale(1.08);
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
    pointer-events: none;
}

.glass-card {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2rem;
    width: 85%;
    max-width: 800px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 1px 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    text-align: center;
    position: relative;
    transition: all 0.4s ease;
    animation: slideUp 0.8s ease-out;
    animation-fill-mode: both;
}

/* Card central - Ajustar superposición */
.glass-card.central {
    top: -20px;
    /* Más superposición */
    margin-bottom: -80px;
    z-index: 20;
    animation-delay: 0s;
}

/* Logo perfil */
.logo-perfil {
    margin: -100px auto 25px;
    /* Ajustar al nuevo top */
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 8px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 30;
    transition: all 0.4s ease;
}

.logo-perfil:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 1);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 0 8px rgba(255, 255, 255, 0.2);
}

.logo-perfil img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Tipografía */
.titulo {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    margin: 0.5rem 0 1rem 0;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.descrip {
    font-size: clamp(1rem, 3vw, 1.3rem);
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

/* Cards secundarias con superposición escalonada  */
.glass-card.redes {
    top: 40px;
    margin-bottom: -40px;
    z-index: 15;
    animation-delay: 0.2s;
}

.glass-card.otros-enlaces {
    top: 60px;
    margin-bottom: -20px;
    z-index: 10;
    animation-delay: 0.4s;
}

.glass-card.mapa {
    top: 65px;
    margin-bottom: 0;
    z-index: 5;
    animation-delay: 0.6s;
}

/* Efectos hover para todas las cards */
.glass-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.4),
        inset 1px 1px 0 rgba(255, 255, 255, 0.3);
}

/* Redes sociales */
.social-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: 1rem;
}

.social-icons a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.social-icons img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-icons a:hover img {
    transform: scale(1.15) rotate(5deg);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Otros enlaces */
.otro {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.otrared {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 1.2rem 1.5rem;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    gap: 1rem;
    position: relative;
    overflow: hidden;

    /* Fondo dinámico */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

/* Overlay semitransparente */
.otrared::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    transition: background 0.4s ease;
    z-index: 1;
}

.otrared:hover::before {
    background: rgba(0, 0, 0, 0.45);
}

.otrared:hover {
    transform: translateX(8px) translateY(-3px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

/* Texto siempre encima del overlay */
.otrared p {
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
    color: inherit;
}

/* Mapa */
.glass-card.mapa h4 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.glass-card.mapa iframe {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.glass-card.mapa p {
    margin-top: 1.2rem;
    font-style: italic;
    opacity: 0.9;
}

/* Animaciones corregidas */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive corregido */
@media (max-width: 768px) {

    .banner-fondo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: transform 0.8s ease;
        display: block;
    }

    .catalogo-contenedor {
        padding: 0 0.5rem 1.5rem;
    }

    .banner-fondo {
        position: relative;
        width: 100%;
        height: auto;
        overflow: hidden;
        border-radius: 0 0 30px 30px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
        margin: 0;
    }

    .glass-card {
        width: 95%;
        padding: 1.5rem;
        border-radius: 20px;
    }

    .glass-card.central {
        top: -30px;
        margin-bottom: -60px;
    }

    .glass-card.redes {
        top:20px;
        margin-bottom: -30px;
    }

    .glass-card.otros-enlaces {
        top: 35px;
        margin-bottom: -15px;
    }

    .glass-card.mapa {
        top: 40px;
        margin-bottom: 0;
    }

    .logo-perfil {
        width: 120px;
        height: 120px;
        margin: -80px auto 20px;
    }

    .titulo {
        font-size: 1.6rem;
    }

    .descrip {
        font-size: 1.1rem;
    }

    .social-icons img {
        width: 60px;
        height: 60px;
    }

    .otrared {
        padding: 1rem 1.2rem;
    }
}

@media (max-width: 480px) {
    .banner-fondo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: transform 0.8s ease;
        display: block;
    }

    .banner-fondo {
        position: relative;
        width: 100%;
        height: auto;
        overflow: hidden;
        border-radius: 0 0 30px 30px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
        margin: 0;
    }

    .glass-card {
        padding: 1.2rem;
        border-radius: 18px;
    }

    .glass-card.central {
        top: -10px;
        margin-bottom: -40px;
    }

    .logo-perfil {
        width: 100px;
        height: 100px;
        margin: -60px auto 15px;
        border-width: 3px;
    }

    .titulo {
        font-size: 1.4rem;
    }

    .descrip {
        font-size: 1rem;
    }

    .social-icons {
        gap: 0.8rem;
    }

    .social-icons img {
        width: 50px;
        height: 50px;
    }

    .otrared {
        padding: 0.8rem 1rem;
    }

    .otrared p {
        font-size: 1rem;
    }
}

/* Mejorar contraste del texto */
.glass-card * {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Asegurar que el body no tenga márgenes */
body {
    margin: 0;
    padding: 0;
}