/* Estilos generales */
.glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.text-gradient {
    background: linear-gradient(135deg, #7B2D5F 0%, #d4508a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-brand {
    background: linear-gradient(135deg, #7B2D5F 0%, #5f2249 100%);
}

.logo-official {
    height: 55px;
    width: auto;
    object-fit: contain;
    display: block;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    color: white;
}

.social-icon:hover {
    transform: translateY(-4px) scale(1.1);
    background: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.social-icon.facebook:hover { color: #1877F2; }
.social-icon.instagram:hover { 
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    border-color: transparent;
}
.social-icon.linkedin:hover { color: #0A66C2; }

/* Hero */
.hero-overlay {
    background: linear-gradient(135deg, rgba(123, 45, 95, 0.85) 0%, rgba(61, 21, 48, 0.75) 100%);
}

.pattern-dots {
    background-image: radial-gradient(#7B2D5F 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
}

/* Servicios */
.service-card {
    background: linear-gradient(145deg, #ffffff 0%, #f9f4f7 100%);
    border: 2px solid transparent;
    transition: all 0.4s ease;
}
.service-card:hover {
    border-color: #7B2D5F;
    background: linear-gradient(145deg, #ffffff 0%, #fce7f3 100%);
}

.icon-wrapper {
    background: linear-gradient(135deg, #7B2D5F 0%, #d4508a 100%);
    box-shadow: 0 10px 30px -10px rgba(123, 45, 95, 0.5);
}

.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(123, 45, 95, 0.25);
}

/* Normas */
.normas-overlay {
    background: linear-gradient(135deg, rgba(253, 244, 249, 0.92) 0%, rgba(252, 231, 243, 0.88) 100%);
}

/* Enfoque */
.audit-image-wrapper {
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(123, 45, 95, 0.3);
}
.audit-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(123, 45, 95, 0.15) 0%, rgba(95, 34, 73, 0.1) 100%);
    z-index: 1;
}
.audit-image-wrapper img {
    transition: transform 0.6s ease;
}
.audit-image-wrapper:hover img {
    transform: scale(1.05);
}

.floating-badge {
    position: absolute;
    z-index: 2;
    background: white;
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    animation: float 4s ease-in-out infinite;
}

/* Sectores */
.sectores-bg {
    position: relative;
    overflow: hidden;
}
.sectores-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(123, 45, 95, 0.92) 0%, rgba(61, 21, 48, 0.88) 100%);
    z-index: 1;
}
.sectores-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=800&q=80') center left/cover no-repeat,
        url('https://images.unsplash.com/photo-1579566346927-c68383817a25?w=800&q=80') center center/cover no-repeat,
        url('https://images.unsplash.com/photo-1587351021759-3e566b2af1cc?w=800&q=80') center right/cover no-repeat;
    background-size: 33.33% 100%, 33.33% 100%, 33.33% 100%;
    background-position: left center, center center, right center;
    z-index: 0;
}

.sector-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}
.sector-card:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Eventos */
.event-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    cursor: pointer;
    aspect-ratio: 4/3;
}
.event-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.event-card:hover img {
    transform: scale(1.1);
}
.event-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(123, 45, 95, 0.95) 0%, rgba(123, 45, 95, 0.3) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}
.event-card:hover .event-overlay {
    opacity: 1;
}
.event-overlay .zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    transition: all 0.4s ease;
}
.event-card:hover .event-overlay .zoom-icon {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    backdrop-filter: blur(10px);
}
.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 1rem;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}
.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-nav:hover {
    background: rgba(123, 45, 95, 0.8);
    border-color: rgba(123, 45, 95, 1);
}
.lightbox-prev { left: 2rem; }
.lightbox-next { right: 2rem; }

.event-counter {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.875rem;
    background: rgba(0,0,0,0.5);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
}