/* Contenedor principal */
.visitanos-container {
    min-height: 100vh;
    position: relative;
    background: radial-gradient(circle at 30% 50%, color-mix(in srgb, var(--uesca-primary) 15%, transparent) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, color-mix(in srgb, var(--uesca-primary-light) 10%, transparent) 0%, transparent 50%),
        linear-gradient(135deg, var(--uesca-light) 0%, var(--uesca-neutral) 100%);
    padding: 6rem 2rem;
    overflow: hidden;
}

/* Fondo animado */
.visitanos-fondo-animado {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.visitanos-particula {
    position: absolute;
    background: var(--uesca-accent);
    border-radius: 50%;
    opacity: 0.08;
    animation: flotar-visitanos 25s linear infinite;
}

.visitanos-particula:nth-child(1) {
    width: 3px;
    height: 3px;
    left: 15%;
    animation-delay: 0s;
}

.visitanos-particula:nth-child(2) {
    width: 5px;
    height: 5px;
    left: 35%;
    animation-delay: 3s;
}

.visitanos-particula:nth-child(3) {
    width: 4px;
    height: 4px;
    left: 55%;
    animation-delay: 6s;
}

.visitanos-particula:nth-child(4) {
    width: 6px;
    height: 6px;
    left: 75%;
    animation-delay: 9s;
}

.visitanos-particula:nth-child(5) {
    width: 3px;
    height: 3px;
    left: 85%;
    animation-delay: 12s;
}

@keyframes flotar-visitanos {

    0%,
    100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10%,
    90% {
        opacity: 0.08;
    }

    50% {
        opacity: 0.15;
    }
}

/* Formas decorativas */
.visitanos-forma-decorativa {
    position: absolute;
    width: 400px;
    height: 400px;
    background: linear-gradient(45deg, var(--uesca-accent), var(--uesca-secondary));
    border-radius: 50%;
    opacity: 0.06;
    top: 10%;
    right: -200px;
    z-index: 1;
    animation: rotar-visitanos 30s linear infinite;
}

.visitanos-forma-decorativa-2 {
    position: absolute;
    width: 250px;
    height: 250px;
    background: linear-gradient(-45deg, var(--uesca-primary), var(--uesca-accent));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.05;
    bottom: 20%;
    left: -125px;
    z-index: 1;
    animation: rotar-visitanos 20s linear infinite reverse;
}

@keyframes rotar-visitanos {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.visitanos-contenido-principal {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* Header */
.visitanos-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: aparecer-arriba 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.visitanos-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: color-mix(in srgb, var(--uesca-primary) 10%, transparent);
    color: var(--uesca-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid color-mix(in srgb, var(--uesca-primary) 20%, transparent);
}

.visitanos-titulo {
    font-size: 3.6rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--uesca-dark) 0%, var(--uesca-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.visitanos-titulo-highlight {
    background: linear-gradient(135deg, var(--uesca-primary), var(--uesca-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.visitanos-descripcion {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Grid de tarjetas */
.visitanos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.visitanos-tarjeta {
    background: var(--uesca-light);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 124, 145, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 124, 145, 0.1);
    backdrop-filter: blur(20px);
    position: relative;
    animation: aparecer-escala 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.visitanos-tarjeta:nth-child(1) {
    animation-delay: 0.1s;
}

.visitanos-tarjeta:nth-child(2) {
    animation-delay: 0.2s;
}

.visitanos-tarjeta:nth-child(3) {
    animation-delay: 0.3s;
}

.visitanos-tarjeta:nth-child(4) {
    animation-delay: 0.4s;
}

.visitanos-tarjeta:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(134, 47, 46, 0.15);
}

.visitanos-tarjeta-icono {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--uesca-primary), var(--uesca-accent));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--uesca-light);
    margin: 2rem auto 1.5rem;
    box-shadow: 0 8px 25px rgba(134, 47, 46, 0.25);
    transition: all 0.3s ease;
}

.visitanos-tarjeta:hover .visitanos-tarjeta-icono {
    transform: scale(1.1) rotate(5deg);
}

.visitanos-tarjeta-contenido {
    padding: 0 2rem 2rem;
    text-align: center;
}

.visitanos-tarjeta-titulo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--uesca-dark);
    margin-bottom: 1rem;
}

.visitanos-tarjeta-texto {
    color: #64748b;
    line-height: 1.7;
    font-size: 0.95rem;
}

.visitanos-tarjeta-link {
    color: var(--uesca-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 0.5rem;
}

.visitanos-tarjeta-link:hover {
    color: var(--uesca-accent);
    transform: translateX(5px);
}

/* Mapa */
.visitanos-mapa-container {
    background: var(--uesca-light);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 124, 145, 0.08);
    border: 1px solid rgba(0, 124, 145, 0.1);
    animation: aparecer-escala 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
    opacity: 0;
}

.visitanos-mapa-header {
    padding: 2rem;
    text-align: center;
}

.visitanos-mapa-titulo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--uesca-dark);
    margin-bottom: 0.5rem;
}

.visitanos-mapa-subtitulo {
    color: #64748b;
    font-size: 1rem;
}

.visitanos-mapa {
    width: 100%;
    height: 500px;
    border: none;
    display: block;
}

/* Redes sociales */
.visitanos-redes {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem 2rem;
    background: var(--uesca-light);
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 124, 145, 0.08);
    border: 1px solid rgba(0, 124, 145, 0.1);
    animation: aparecer-escala 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
    opacity: 0;
}

.visitanos-redes-titulo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--uesca-dark);
    margin-bottom: 1rem;
}

.visitanos-redes-descripcion {
    color: #64748b;
    margin-bottom: 2rem;
}

.visitanos-redes-iconos {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.visitanos-red-icono {
    width: 60px;
    height: 60px;
    background: var(--uesca-neutral);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--uesca-primary);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.visitanos-red-icono:hover {
    background: linear-gradient(135deg, var(--uesca-primary), var(--uesca-accent));
    color: var(--uesca-light);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(134, 47, 46, 0.3);
}

/* Animaciones */
@keyframes aparecer-arriba {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes aparecer-escala {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .visitanos-container {
        padding: 4rem 1rem;
    }

    .visitanos-titulo {
        font-size: 2.5rem;
    }

    .visitanos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .visitanos-mapa {
        height: 350px;
    }

    .visitanos-red-icono {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .visitanos-tarjeta-contenido {
        padding: 0 1.5rem 1.5rem;
    }

    .visitanos-mapa {
        height: 300px;
    }
}