/* ============================================
   AMECYD - DISEÑO PROFESIONAL EJECUTIVO
   Para Rectores y Autoridades Universitarias
   ============================================ */

/* === SMOOTH SCROLL ESTILO APPLE === */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* {
    -webkit-tap-highlight-color: transparent;
}

/* === ANIMACIONES GLOBALES ESTILO APPLE === */
@keyframes appleSlideUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes appleFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes appleScaleIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* === ESTILOS GLOBALES UNIFICADOS PARA TODAS LAS SECCIONES === */
/* Todos los títulos principales (h1, h2, h3) desde Participa en adelante */
.registration-gallery h1,
.registration-gallery h2,
.registration-gallery h3,
.seccion-fondo2 h1,
.seccion-fondo2 h2,
.seccion-fondo2 h3,
.carousel-content-box h1,
.carousel-content-box h2,
.carousel-content-box h3,
.service-item h1,
.service-item h2,
.service-item h3,
.service-item h5,
.container-xxl h1,
.container-xxl h2,
.container-xxl h3 {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #2c5282 !important;
    letter-spacing: -1.5px !important;
    line-height: 1.05 !important;
    will-change: transform, opacity;
}

/* Todos los párrafos desde Participa en adelante */
.registration-gallery p,
.seccion-fondo2 p,
.carousel-content-box p,
.service-item p,
.container-xxl p {
    font-family: 'Poppins', sans-serif !important;
    font-size: 17px !important;
    font-weight: 400 !important;
    color: #4a5568 !important;
    line-height: 1.8 !important;
    letter-spacing: 0.3px !important;
    will-change: transform, opacity;
}

/* Excepción para textos blancos en carousel */
.carousel-content-box h1,
.carousel-content-box h2,
.carousel-content-box h3 {
    color: #ffffff !important;
}

.carousel-content-box p {
    color: rgba(255, 255, 255, 0.92) !important;
}

/* Ocultar Google Translate */
.goog-te-banner-frame,
.goog-te-balloon-frame,
.skiptranslate,
#goog-gt-tt,
.goog-te-gadget,
.goog-te-combo {
    display: none !important;
}

body {
    top: 0 !important;
}

/* === HEADER PROFESIONAL === */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(4, 27, 82, 0.96) 0%, rgba(15, 63, 154, 0.96) 100%);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
    transition: all 0.4s var(--transition-apple);
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 40px !important;
}

header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(244, 196, 48, 0.4), rgba(255, 255, 255, 0.2));
    opacity: 0.8;
}

header.scroll {
    background: linear-gradient(135deg, rgba(4, 27, 82, 0.9) 0%, rgba(15, 63, 154, 0.9) 100%);
    box-shadow: none;
}

.logo-container {
    padding: 8px 0 !important;
}

.logo img {
    height: 70px;
    transition: all 0.3s var(--transition-apple);
    filter: none;
}

header.scroll .logo img {
    height: 60px;
}

/* === NAVEGACIÓN VISIBLE === */
.navbar {
    display: flex !important;
    align-items: center !important;
}

.navbar ul {
    display: flex !important;
    list-style: none !important;
    gap: 5px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.navbar ul li {
    position: relative;
}

.navbar ul li a {
    display: inline-block !important;
    padding: 10px 16px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    text-decoration: none !important;
    letter-spacing: 0.3px !important;
    transition: all 0.3s var(--transition-apple) !important;
    position: relative;
}

.navbar ul li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: #f4c430;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0;
}

.navbar ul li a:hover,
.navbar ul li a.active {
    color: #ffffff !important;
}

.navbar ul li a:hover::after,
.navbar ul li a.active::after {
    transform: scaleX(1);
}

/* Submenú */
.navbar ul li ul.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #2c5282 !important;
    min-width: 200px;
    padding: 12px 0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    display: block !important;
    pointer-events: none;
    margin-top: 8px;
}

.navbar ul li:hover ul.submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.navbar ul li ul.submenu li {
    margin: 0;
}

.navbar ul li ul.submenu li a {
    padding: 10px 20px !important;
    display: block !important;
    font-size: 0.875rem !important;
    color: rgba(255, 255, 255, 0.95) !important;
    transition: all 0.2s ease !important;
}

.navbar ul li ul.submenu li a::after {
    display: none;
}

.navbar ul li ul.submenu li a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
    padding-left: 24px !important;
}

/* Header right */
.header-right {
    display: flex !important;
    align-items: center !important;
    gap: 20px;
}

.social-icons {
    display: flex !important;
    gap: 8px;
}

/* === HERO SECTION PROFESIONAL === */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 180px 0 120px;
    background: #ffffff;
    overflow: visible;
    margin-top: 0;
    padding-bottom: 150px;
}

/* Textura de fondo con líneas diagonales sutiles */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 35px,
            rgba(0, 0, 0, 0.02) 35px,
            rgba(0, 0, 0, 0.02) 70px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 35px,
            rgba(0, 0, 0, 0.015) 35px,
            rgba(0, 0, 0, 0.015) 70px
        );
    pointer-events: none;
    z-index: 1;
}

.hero::after {
    display: none;
}

.hero-overlay {
    position: relative;
    width: 100%;
    background: transparent;
    z-index: 2;
}

.hero-overlay::before {
    display: none;
}

/* === LAYOUT GRID HERO === */
.hero-content-wrapper {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 80px !important;
    align-items: start !important;
    max-width: 1320px !important;
    margin: 0 auto !important;
    padding: 40px 40px 0 40px !important;
    position: relative !important;
    overflow: visible !important;
}

/* === CONTENIDO IZQUIERDO - TÍTULO === */
.hero-text-content {
    padding-right: 20px;
    position: relative;
    overflow: visible;
}

.hero-text-content::before,
.hero-text-content::after {
    display: none;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
    color: #1a1a1a;
    text-align: left;
}

/* Palabras con colores institucionales elegantes */
.text-blue {
    color: #2c5282;
    font-weight: 700;
}

.text-gold {
    color: #b8860b;
    font-weight: 800;
}

.hero-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.125rem;
    color: #4a5568;
    line-height: 1.65;
    margin-bottom: 32px;
    font-weight: 400;
    text-align: left;
}

/* === BOTÓN CTA PROFESIONAL === */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: #2c5282;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(44, 82, 130, 0.25);
    position: relative;
    overflow: visible;
}

.cta-button:hover {
    background: #1e3a5f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 82, 130, 0.35);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-button i {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(3px);
}

/* === IMAGEN DERECHA CON TRANSICIÓN === */
.hero-image-content {
    position: relative;
    margin-top: 60px;
    height: fit-content;
    max-height: 650px;
    overflow: hidden;
}

.hero-image-wrapper {
    position: sticky;
    top: 100px;
    border-radius: 16px;
    overflow: visible;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    max-width: 450px;
    margin: 0 auto;
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 16px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-image-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.hero-image-wrapper:hover img {
    transform: scale(1.03);
}

/* === BADGE FLOTANTE === */
.hero-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    font-size: 0.875rem;
    font-weight: 600;
    color: #2c5282;
    z-index: 10;
}

.hero-badge i {
    color: #b8860b;
    margin-right: 6px;
}

/* === LÍNEA DIVISORIA ELEGANTE === */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, 
        transparent 0%, 
        rgba(44, 82, 130, 0.15) 20%, 
        rgba(44, 82, 130, 0.3) 50%, 
        rgba(44, 82, 130, 0.15) 80%, 
        transparent 100%
    );
    margin: 60px 0;
    position: relative;
}

.section-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #2c5282;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
}

/* === ESTADÍSTICAS === */
.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 2.75rem;
    font-weight: 700;
    color: #2c5282;
    display: block;
    margin-bottom: 4px;
    font-family: 'Montserrat', sans-serif;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: #718096;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === SECCIÓN PARTICIPA === */
/* === SECCIÓN PARTICIPA ESTILO APPLE === */
.registration-gallery {
    padding: 120px 0;
    background: #fbfbfd;
    position: relative;
    overflow: hidden;
}

.registration-gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(44, 82, 130, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(184, 134, 11, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.registration-gallery .container {
    position: relative;
    z-index: 2;
}

.section-title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #2c5282 !important;
    margin-bottom: 20px;
    letter-spacing: -1.5px !important;
    line-height: 1.05 !important;
    will-change: transform, opacity;
}

.section-title::before,
.section-title::after {
    display: none !important;
}

.section-description {
    font-family: 'Poppins', sans-serif !important;
    font-size: 17px !important;
    font-weight: 400 !important;
    color: #4a5568 !important;
    max-width: 900px;
    margin: 0 auto 80px;
    line-height: 1.8 !important;
    letter-spacing: 0.3px !important;
    will-change: transform, opacity;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === IMÁGENES CON EFECTO APPLE === */
.main-image,
.secondary-image {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(0, 0, 0, 0.04);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    background: #fff;
    opacity: 0;
    transform: translateY(60px) scale(0.92);
}

.main-image.scroll-animate,
.secondary-image.scroll-animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.main-image {
    transition-delay: 0.2s;
}

.secondary-image {
    transition-delay: 0.35s;
}

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.main-image img,
.secondary-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.main-image:hover,
.secondary-image:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 68px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(0, 0, 0, 0.06);
}

.main-image:hover img,
.secondary-image:hover img {
    transform: scale(1.05);
}

/* === BOTONES ESTILO APPLE === */
.btn-hover-apple {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 36px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif !important;
    background: linear-gradient(180deg, #8B1E3F 0%, #6d1830 100%) !important;
    color: #ffffff !important;
    border-radius: 980px !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 17px !important;
    letter-spacing: -0.022em !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 
        0 4px 16px rgba(139, 30, 63, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    border: none !important;
    position: relative !important;
    overflow: hidden !important;
    cursor: pointer !important;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
}

.btn-hover-apple::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-hover-apple:hover::before {
    opacity: 1;
}

.btn-hover-apple:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 
        0 8px 24px rgba(139, 30, 63, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.btn-hover-apple:active {
    transform: translateY(0) scale(0.98) !important;
    box-shadow: 
        0 4px 12px rgba(139, 30, 63, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.btn-hover-apple i {
    font-size: 18px;
    margin-bottom: 4px;
}

.btn-hover-apple span {
    line-height: 1.4;
}

/* === MISIÓN Y VISIÓN ESTILO APPLE MODERNO === */
.seccion-fondo2 {
    padding: 80px 0;
    background: transparent !important;
    position: relative;
    overflow: hidden;
}

.seccion-fondo2::before {
    display: none !important;
}

.seccion-fondo2 .container {
    position: relative;
    z-index: 1;
}

/* === ESTRUCTURA ORGANIZACIONAL CON TEXTURA === */
.estructura-org-section {
    padding: 80px 0;
    background: #f8f9fa !important;
    position: relative;
    overflow: hidden;
}

.estructura-org-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, #ffffff 25%, transparent 25%),
        linear-gradient(225deg, #ffffff 25%, transparent 25%),
        linear-gradient(45deg, #ffffff 25%, transparent 25%),
        linear-gradient(315deg, #ffffff 25%, #f0f0f0 25%);
    background-position: 0 0, 0 0, 0 0, 0 0;
    background-size: 80px 80px;
    background-repeat: repeat;
    opacity: 0.4;
    z-index: 0;
}

.estructura-org-section .container {
    position: relative;
    z-index: 1;
}

/* Contenedor de texto individual con tarjeta Apple */
.seccion-fondo2 .col-lg-6 {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.seccion-fondo2 .col-lg-6.scroll-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Contenedor de texto con efecto Apple Card */
.course-content {
    position: relative;
    padding: 0;
    margin-bottom: 30px;
    margin-top: 40px;
}

.course-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: #2c5282;
    font-weight: 700;
    margin-bottom: 0;
    letter-spacing: -1.5px;
    line-height: 1.05;
    position: relative;
    display: inline-block;
    padding: 0;
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    transition: all 1.3s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.course-content h3.scroll-animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Efecto de fondo sutil al hacer scroll (opcional) */
.course-content h3::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -15px;
    right: -15px;
    bottom: -10px;
    background: linear-gradient(135deg, rgba(44, 82, 130, 0.04) 0%, rgba(44, 82, 130, 0.01) 100%);
    border-radius: 16px;
    z-index: -1;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.course-content h3.scroll-animate::before {
    opacity: 1;
    transform: scale(1);
}

/* SIN línea decorativa */
.course-content h3::after {
    display: none !important;
}

/* Párrafos con efecto de fade gradual como Apple */
.seccion-fondo2 p {
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    line-height: 1.8;
    color: #4a5568;
    font-weight: 400;
    letter-spacing: 0.3px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.25s;
    will-change: transform, opacity;
    max-width: 95%;
    margin-bottom: 35px;
}

.seccion-fondo2 p.scroll-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Efecto de blur inicial para transición más suave */
.seccion-fondo2 p:not(.scroll-animate) {
    filter: blur(2px);
}

.seccion-fondo2 p.scroll-animate {
    filter: blur(0);
}

/* Imagen con efecto Apple moderno */
.seccion-fondo2 img {
    border-radius: 20px;
    box-shadow: 
        0 8px 40px rgba(0, 0, 0, 0.12),
        0 2px 12px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(60px) scale(0.92);
    will-change: transform, opacity;
}

.seccion-fondo2 img.scroll-animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Hover effect elegante estilo Apple */
.seccion-fondo2 .position-relative:hover img {
    transform: translateY(-6px) scale(1.015);
    box-shadow: 
        0 24px 70px rgba(0, 0, 0, 0.18),
        0 8px 20px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(0, 0, 0, 0.08);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Contenedor de imagen con overflow */
.seccion-fondo2 .position-relative {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Animación de entrada más dramática */
@keyframes appleSlideFromRight {
    from {
        opacity: 0;
        transform: translateX(60px) scale(0.92);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}





/* === SERVICE ITEMS ESTILO APPLE === */
/* === TARJETAS DE SERVICIOS MODERNAS 2025 === */
.service-card-link {
    text-decoration: none;
    display: block;
}

.service-item {
    background: #ffffff;
    border-radius: 20px;
    padding: 45px 30px;
    text-align: center;
    box-shadow: 
        0 2px 8px rgba(44, 82, 130, 0.08),
        0 0 0 1px rgba(44, 82, 130, 0.05);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    position: relative;
    overflow: visible;
    opacity: 1;
    transform: translateY(0);
    will-change: transform, box-shadow, background;
}

.service-item.scroll-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Delays escalonados para cada item */
.service-item:nth-child(1) {
    transition-delay: 0s;
}

.service-item:nth-child(2) {
    transition-delay: 0.1s;
}

.service-item:nth-child(3) {
    transition-delay: 0.2s;
}

.service-item:nth-child(4) {
    transition-delay: 0.3s;
}

/* BOTTOM SHADOW LIFT - Solo sombra proyectada, sin movimiento, con fondo suave */
.service-item:hover {
    transform: none !important;
    background: linear-gradient(135deg, #2c5282 0%, #1e3a5f 100%) !important;
    box-shadow: 
        0 28px 50px -12px rgba(44, 82, 130, 0.35),
        0 18px 35px -15px rgba(44, 82, 130, 0.4),
        0 0 0 1px rgba(44, 82, 130, 0.1) !important;
}

/* Icono simple sin efectos complejos */
.service-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(44, 82, 130, 0.08) 0%, rgba(44, 82, 130, 0.03) 100%);
    border-radius: 20px;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-icon-wrapper i {
    font-size: 2.5rem;
    color: #2c5282;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-item:hover .service-icon-wrapper {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.service-item:hover .service-icon-wrapper i {
    color: #ffffff;
    transform: scale(1.05);
}

/* Título moderno */
.service-item h5,
.service-item .service-title,
h5.service-title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1.375rem !important;
    font-weight: 300 !important;
    color: #2c5282 !important;
    margin: 0;
    letter-spacing: -0.3px;
    line-height: 1.3;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-item:hover h5,
.service-item:hover .service-title,
.service-item:hover h5.service-title {
    color: #ffffff !important;
}

/* === CAROUSEL ESTILO APPLE === */
.owl-carousel-item {
    position: relative;
    border-radius: 0;
    overflow: hidden;
}

.owl-carousel-item img {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.owl-carousel-item:hover img {
    transform: scale(1.05);
}

.owl-carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 82, 130, 0.35), rgba(29, 29, 31, 0.25));
    z-index: 1;
    transition: background 0.6s ease;
}

.owl-carousel-item:hover::before {
    background: linear-gradient(135deg, rgba(44, 82, 130, 0.25), rgba(29, 29, 31, 0.15));
}

.carousel-content-box {
    position: relative;
    z-index: 2;
    padding: 60px 50px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(40px);
    animation: appleSlideUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.carousel-content-box:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-6px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.carousel-content-box h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
    line-height: 1.05;
    opacity: 1 !important;
    animation: none !important;
}

.carousel-content-box p {
    color: rgba(255, 255, 255, 0.92);
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    line-height: 1.8;
    letter-spacing: 0.3px;
    opacity: 1 !important;
    animation: none !important;
}

.carousel-content-box a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: #2c5282;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(44, 82, 130, 0.35);
    position: relative;
    overflow: visible;
    margin-top: 20px;
}

.carousel-content-box a::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.carousel-content-box a:hover {
    background: #1e3a5f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 82, 130, 0.45);
    color: #ffffff;
}

.carousel-content-box a:hover::after {
    transform: translateX(3px);
}

.carousel-content-box a:active {
    transform: translateY(0);
}

/* === BOTÓN VER NOTICIAS === */
.btn-primary {
    background: #2c5282 !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 16px 42px !important;
    font-weight: 600 !important;
    font-size: 1.0625rem !important;
    box-shadow: 0 6px 20px rgba(3, 34, 110, 0.25) !important;
    transition: all 0.4s var(--transition-apple) !important;
    letter-spacing: 0.3px;
}

.btn-primary:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 32px rgba(3, 34, 110, 0.35) !important;
}

/* === FOOTER === */
footer {
    background: linear-gradient(135deg, var(--amecyd-blue) 0%, #1a3a7d 100%);
    padding: 60px 0 30px;
    border-top: 4px solid var(--amecyd-gold);
}

footer small {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
}

/* === SOCIAL ICONS === */
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    color: white;
    margin: 0 6px;
    transition: all 0.3s var(--transition-apple);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.social-icons a:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .hero-content-wrapper {
        gap: 60px;
        padding: 0 30px;
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-title {
        font-size: clamp(2rem, 4vw, 3rem);
    }
}

@media (max-width: 768px) {
    /* Prevenir overflow horizontal */
    body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    html {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    /* Header mobile */
    header {
        padding: 0 20px !important;
        height: 70px;
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    .logo-container img {
        height: 45px;
    }
    
    /* Mostrar menú hamburguesa */
    .menu-toggle {
        display: block !important;
        position: relative;
        z-index: 1001;
    }
    
    /* Ocultar iconos sociales en móvil */
    .social-icons {
        display: none;
    }
    
    /* Navbar móvil - Fondo sólido forzado */
    header .navbar,
    header nav.navbar,
    nav#navbar,
    .navbar {
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background-color: #13357C !important;
        background-image: none !important;
        background: #13357C !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.4s ease !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
        z-index: 999 !important;
        display: block !important;
        opacity: 1 !important;
    }
    
    header .navbar.show,
    header nav.navbar.show,
    nav#navbar.show,
    .navbar.show {
        max-height: 600px !important;
        overflow-y: auto !important;
        background-color: #13357C !important;
        background: #13357C !important;
    }
    
    header .navbar ul,
    nav#navbar ul,
    .navbar ul {
        flex-direction: column !important;
        padding: 20px 0 !important;
        gap: 0 !important;
        display: flex !important;
        background-color: #13357C !important;
        background: #13357C !important;
        margin: 0 !important;
        list-style: none !important;
        width: 100% !important;
    }
    
    header .navbar ul li,
    nav#navbar ul li,
    .navbar ul li {
        width: 100% !important;
        border-bottom: none !important;
        border: none !important;
        background-color: transparent !important;
        background: transparent !important;
        display: block !important;
    }
    
    header .navbar ul li:last-child,
    nav#navbar ul li:last-child,
    .navbar ul li:last-child {
        border-bottom: none !important;
        border: none !important;
    }
    
    header .navbar ul li a,
    nav#navbar ul li a,
    .navbar ul li a,
    .navbar .menu-item {
        padding: 18px 30px !important;
        display: block !important;
        width: 100% !important;
        font-size: 1.125rem !important;
        text-align: left !important;
        color: #ffffff !important;
        font-weight: 500 !important;
        background-color: transparent !important;
        background: transparent !important;
        transition: all 0.3s ease !important;
    }
    
    header .navbar ul li a:hover,
    nav#navbar ul li a:hover,
    .navbar ul li a:hover,
    .navbar .menu-item:hover {
        background-color: rgba(255, 255, 255, 0.15) !important;
        background: rgba(255, 255, 255, 0.15) !important;
        padding-left: 40px !important;
        color: #ffffff !important;
    }
    
    header .navbar ul li a.active,
    nav#navbar ul li a.active,
    .navbar ul li a.active,
    .navbar .menu-item.active {
        background-color: rgba(255, 255, 255, 0.1) !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border: none !important;
        border-left: none !important;
        color: #ffffff !important;
    }
    
    /* Hero section */
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    .hero-content-wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px;
        padding: 0 24px;
        width: 100% !important;
        max-width: 100vw !important;
    }
    
    .hero-text-content {
        padding-right: 0;
        order: 1 !important;
        text-align: center;
        width: 100%;
    }
    
    .hero-image-content {
        order: 3 !important;
        margin-top: 20px;
        width: 100%;
    }
    
    .hero-title {
        font-size: 1.875rem;
        margin-bottom: 20px;
        line-height: 1.25;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 28px;
        text-align: center;
    }
    
    .cta-button {
        order: 2 !important;
        margin: 0 auto 20px;
        display: inline-flex;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
        margin-top: 32px;
        padding-top: 24px;
    }
    
    .stat-item {
        flex: 1 1 calc(50% - 12px);
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .cta-button {
        width: auto;
        justify-content: center;
        padding: 14px 32px;
    }
    
    .hero-image-content {
        margin-top: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .hero-image-wrapper {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }
    
    .hero-image-wrapper img {
        width: 100%;
        height: auto;
        max-width: 450px;
        margin: 0 auto;
        display: block;
    }
    
    .hero-overlay {
        display: flex;
        align-items: center;
        width: 100%;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 8px 16px;
    }
    
    /* Prevenir scroll horizontal en todas las secciones */
    .container,
    .container-fluid,
    .container-xxl,
    section,
    .registration-gallery,
    .seccion-fondo2,
    .service-item {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    /* Ajustar padding en secciones */
    .registration-gallery,
    .seccion-fondo2 {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* === ANIMACIONES === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* === ACCESIBILIDAD === */
*:focus-visible {
    outline: 2px solid var(--amecyd-gold);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Eliminar outline azul en navegación */
.navbar ul li a:focus,
.navbar ul li a:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

::selection {
    background: var(--amecyd-blue);
    color: white;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 14px;
}

::-webkit-scrollbar-track {
    background: #f0f0f0;
}

::-webkit-scrollbar-thumb {
    background: #2c5282;
    border-radius: 7px;
    border: 3px solid #f0f0f0;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e3a5f;
}

/* === LOADING STATE === */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    border: 3px solid var(--amecyd-light-gray);
    border-top-color: var(--amecyd-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* === OVERRIDES FUERTES PARA HEADER === */
header {
    min-height: 80px !important;
    background: linear-gradient(135deg, rgba(4, 27, 82, 0.96) 0%, rgba(15, 63, 154, 0.96) 100%) !important;
}

.navbar {
    background: transparent !important;
}

.navbar ul,
.navbar ul li,
.navbar ul li a {
    background: transparent !important;
}

.menu-toggle {
    display: none;
    font-size: 28px;
    color: #ffffff;
    cursor: pointer;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 1001;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.menu-toggle:active {
    transform: scale(0.95);
}

/* === ELIMINAR TODOS LOS FONDOS Y BORDES === */
.navbar ul li a,
.navbar ul li a:link,
.navbar ul li a:visited,
.navbar ul li a:focus,
.navbar ul li a:active,
.navbar ul li a:hover {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
}

/* Eliminar el fondo azul específicamente */
.navbar a.active,
.navbar a:focus,
.navbar a:active {
    background: none !important;
    background-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Override total para el submenu item */
.navbar ul li:hover a,
.navbar ul li.submenu:hover > a {
    background: transparent !important;
    background-color: transparent !important;
}

/* Prevenir cualquier fondo en estados de interacción */
a:focus,
a:active,
button:focus,
button:active,
*:focus,
*:active {
    outline: none !important;
    box-shadow: none !important;
}

@media (min-width: 769px) {
    .navbar {
        display: flex !important;
    }
    
    .navbar ul {
        display: flex !important;
    }
}

/* === PARALLAX HEADER === */
.parallax-header {
    position: relative;
    background-image: url('../img/quienes/1.webp');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.parallax-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(19, 53, 124, 0.85) 0%, rgba(44, 82, 130, 0.75) 100%);
    z-index: 1;
}

.parallax-header .container {
    position: relative;
    z-index: 2;
}

.parallax-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
    margin: 0;
}

@media (max-width: 768px) {
    .parallax-header {
        background-attachment: scroll;
        min-height: 300px;
    }
    
    .parallax-header h1 {
        font-size: 2.5rem;
    }
}

/* === FIX ESPECÍFICO PARA GALERÍA === */
.navbar ul li a[data-page="eventos"],
.navbar ul li a[href*="galeria"],
.navbar ul li.submenu a {
    background: none !important;
    background-color: transparent !important;
}

.logo-box .logo-text {
    font-size: 15px !important;
    line-height: 1.5 !important;
}