/* Estilos premium para landing page - Vigara FP */
:root {
    --primary-blue: #1E4D8B;
    --primary-blue-dark: #153a6b;
    --primary-blue-light: #2a6bb8;
    --text-dark: #1a1a1a;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --shadow-xl: 0 12px 48px rgba(0,0,0,0.20);
}

/* Hero Section Premium: color navbar #1E4D8B, 100vh, contenido centrado */
.hero-section {
    background: linear-gradient(135deg, #1E4D8B 0%, #153a6b 50%, #0d2a4a 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Opcional: imagen de fondo con overlay azul. Añadir en vista: class="hero-section hero-section--with-bg" y en CSS .hero-section--with-bg { background-image: url(...); } */
.hero-section--with-bg {
    background-size: cover;
    background-position: center;
    background-image: url('/assets/imgs/bg.jpg');
}
.hero-section--with-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 77, 139, 0.85) 0%, rgba(21, 58, 107, 0.9) 100%);
    z-index: 1;
}

.hero-section--centered .hero-section__inner {
    position: relative;
    z-index: 2;
}
.hero-section--centered .hero-section__title {
    line-height: 1.1;
}
.hero-section--centered .hero-section__subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.95;
}
.hero-section--centered .hero-section__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out;
}

.hero-image {
    position: relative;
    z-index: 2;
    animation: fadeInRight 1s ease-out;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Botones Premium */
.btn-premium {
    padding: 14px 32px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    font-size: 0.875rem;
    box-shadow: var(--shadow-md);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-premium-outline {
    border: 2px solid white;
    background: transparent;
    color: white;
}

.btn-premium-outline:hover {
    background: white;
    color: var(--primary-blue);
}

.btn-premium-solid {
    background: white;
    color: var(--primary-blue);
    border: 2px solid white;
}

.btn-premium-solid:hover {
    background: var(--primary-blue-light);
    border-color: var(--primary-blue-light);
    color: white;
}

/* Tarjetas Premium */
.card-premium {
    border: none;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    background: white;
}

.card-premium:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-premium .card-img-top {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 220px;
    object-fit: cover;
}

.card-premium:hover .card-img-top {
    transform: scale(1.05);
}

.card-premium .card-body {
    padding: 1.75rem;
}

/* Badges Premium */
.badge-premium {
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    box-shadow: var(--shadow-sm);
}

/* Títulos Premium */
.title-premium {
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    border-radius: 2px;
}

/* Animaciones de scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mejoras de espaciado */
.section-spacing {
    padding: 100px 0;
}

/* Iconos premium */
.icon-premium {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

/* Curso card hover effect mejorado */
.card.curso {
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card.curso:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-lg);
}

/* Cards de titulaciones con ligero glass en section-with-bg */
.section-with-bg .card.curso {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}
.section-with-bg .card.curso .card-body {
    background: transparent;
}

/* Titulaciones - cards uniformes */
.titulacion-img-wrap {
    height: 200px;
    overflow: hidden;
    background: #f0f4f8;
}
.titulacion-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card.curso .titulacion-img-wrap {
    border-radius: 0.375rem 0.375rem 0 0;
}

/* Marquee logos empresas */
.empresas-marquee-wrap { max-width: 100%; }
.empresas-marquee {
    display: flex;
    gap: 3rem;
    animation: marquee-logos 25s linear infinite;
}
.empresas-marquee__item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 60px;
}
.empresas-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.85;
}
@keyframes marquee-logos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Gradiente de texto */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Sección video Vimeo 9:16 (reel) */
.section-video {
    background: #fff;
}
.video-vimeo-aspect {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}
.video-vimeo-aspect--9-16 {
    aspect-ratio: 9 / 16;
    max-width: 320px;
    margin: 0 auto;
}
.video-vimeo-aspect iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.video-vimeo-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.video-vimeo-scroll-hint {
    color: var(--primary-blue);
    font-size: 0.9rem;
}
.video-vimeo-scroll-hint:hover {
    color: var(--primary-blue-dark);
}
.video-vimeo-scroll-hint i {
    font-size: 1.25rem;
    animation: bounceY 2s ease-in-out infinite;
}
@keyframes bounceY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* Secciones de la landing: flujo normal, sin scroll snap */
.landing-section {
    scroll-margin-top: 1rem;
}
.landing-section--video {
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.landing-section--video .video-vimeo-aspect--9-16 {
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 992px) {
    .landing-section--video .video-vimeo-aspect--9-16 {
        max-width: 320px;
    }
}

/* Botón activar audio debajo del video: oculto cuando el audio está activo (JS) */
.video-unmute-wrap {
    text-align: center;
}
.video-unmute-wrap .btn {
    font-size: 0.8rem;
}

/* Valores simplificados (4 ítems, izq de la banda Por qué) */
.valores-simplificados {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.valores-simplificados__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.valores-simplificados__icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.valores-simplificados__item strong {
    color: var(--primary-blue);
}
.valores-simplificados__item .small {
    line-height: 1.4;
}

/* ==========================================================================
   Welcome - Glassmorphism y sección 5 razones
   ========================================================================== */
.glass-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}
.glass-card:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 40px rgba(30, 77, 139, 0.15);
    transform: translateY(-2px);
}

.section-with-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.section-with-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(240, 244, 248, 0.97) 100%);
    z-index: 0;
}
.section-with-bg > .container {
    position: relative;
    z-index: 1;
}

.razon-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.35s ease;
}
.razon-card:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 40px rgba(30, 77, 139, 0.12);
    transform: translateY(-4px);
}
.razon-card__img-wrap {
    height: 140px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(30, 77, 139, 0.08) 0%, rgba(30, 77, 139, 0.04) 100%);
}
.razon-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.razon-card:hover .razon-card__img-wrap img {
    transform: scale(1.05);
}
.razon-card__img-wrap--bottom img {
    object-position: center 81%;
}
.razon-card__num {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    color: #fff;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.razon-profesor {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.razon-profesor__foto {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(30, 77, 139, 0.2);
}
.razon-profesor__nombre { font-weight: 600; color: var(--primary-blue); }
.razon-profesor__empresas { font-size: 0.75rem; color: var(--text-light); }

