/* ==========================================================================
   Estilos CSS Avanzados - Campaña de Admisión 2026-II
   I.E.S.T.P. “Buenaventura Mestanza Morí”
   Diseño: Moderno, Elegante y Premium (Glassmorphism & Gold Theme)
   ========================================================================== */

/* Importación de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* Variables CSS */
:root {
    /* Paleta de Colores - Rediseñada a Blanco, Vino y Oro */
    --bg-main: #FFFFFF;
    --bg-secundario: #FAF6F7; /* Un tono crema-vino muy suave para alternar secciones */
    --card-glass: rgba(255, 255, 255, 0.95);
    --border-glass: rgba(109, 28, 50, 0.12);
    
    /* Tonos Dorados */
    --gold-primary: #D4AF37;
    --gold-light: #F3E5AB;
    --gold-dark: #AA7C11;
    --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #AA7C11 100%);
    --gold-gradient-hover: linear-gradient(135deg, #F3E5AB 0%, #D4AF37 100%);
    --gold-shadow: 0 8px 25px rgba(212, 175, 55, 0.25);
    --gold-border-glow: rgba(212, 175, 55, 0.15);

    /* Tonos Vino */
    --wine-primary: #800020;
    --wine-light: #9E1B3B;
    --wine-dark: #4A0E17;
    --wine-gradient: linear-gradient(135deg, #800020 0%, #4A0E17 100%);
    --wine-shadow: 0 8px 25px rgba(128, 0, 32, 0.15);

    /* Tonos de Gris y Neutros */
    --text-primary: #1F2937;
    --text-secondary: #4B5563;
    --text-dark: #111827;
    --white: #FFFFFF;
    --error: #EF4444;
    --success: #10B981;

    /* Fuentes */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;

    /* Transiciones */
    --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset y Estilos Globales */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* Componentes de Tipografía */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
}

.text-gold {
    color: var(--gold-primary);
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Scrollbar Personalizada */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: #1F2937;
    border-radius: 4px;
    border: 2px solid var(--bg-main);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

/* Layout y Espaciado */
.section {
    padding: 80px 20px;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold-primary);
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-size: 36px;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.section-subtitle {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 15px;
}

/* Estilos de Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gold-gradient);
    color: var(--wine-dark);
    box-shadow: var(--gold-shadow);
}

.btn-primary:hover {
    background: var(--gold-gradient-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--border-glass);
}

.btn-outline:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1);
}

/* Efectos de Vidrio (Glassmorphism) */
.glass-panel {
    background: var(--card-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    transition: var(--transition-normal);
}

.glass-panel:hover {
    border-color: var(--gold-border-glow);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Header & Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 20px;
    background: linear-gradient(135deg, #4A0E17 0%, #800020 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: var(--transition-normal);
}

.navbar.scrolled {
    padding: 10px 20px;
    background: linear-gradient(135deg, #380810 0%, #630018 100%);
    border-bottom-color: var(--gold-border-glow);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.brand-logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.brand-logo span {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--gold-primary);
    display: block;
    margin-top: -3px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.nav-link:hover, .nav-link.active {
    color: var(--gold-primary);
}

.nav-cta {
    font-size: 12px;
    padding: 8px 20px;
}

/* Menú Hamburguesa Móvil */
.hamburger {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--white);
    position: absolute;
    transition: var(--transition-normal);
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { top: 22px; }

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 11px;
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 11px;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding-top: 120px;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 70% 30%, rgba(212, 175, 55, 0.15) 0%, var(--wine-primary) 70%),
                linear-gradient(var(--wine-dark), var(--wine-dark));
    position: relative;
    overflow: hidden;
}

/* Efecto de partículas de luz decorativas */
.hero-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--gold-primary);
    filter: blur(150px);
    opacity: 0.15;
    top: 20%;
    right: 10%;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    z-index: 10;
}

.hero-badge {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--gold-border-glow);
    padding: 6px 15px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-primary);
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 56px;
    line-height: 1.15;
    margin-bottom: 25px;
    color: var(--white);
}

.hero-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 35px;
    max-width: 520px;
}

.hero-section .countdown-title {
    color: var(--white);
}

.hero-section .countdown-label {
    color: rgba(255, 255, 255, 0.7);
}

.hero-section .countdown-footer {
    color: rgba(255, 255, 255, 0.8);
}

.hero-actions {
    display: flex;
    gap: 15px;
}

/* Countdown Card */
.countdown-box {
    padding: 40px;
    text-align: center;
    border-color: var(--gold-border-glow);
    position: relative;
}

.countdown-box::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), transparent);
    pointer-events: none;
}

.countdown-title {
    font-size: 18px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--font-body);
    font-weight: 600;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    padding: 15px 5px;
    text-align: center;
}

.countdown-number {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--gold-primary);
    display: block;
    line-height: 1;
    margin-bottom: 5px;
    font-weight: bold;
}

.countdown-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    display: block;
}

.countdown-footer {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Pillars Section (Nosotros) */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pillar-card {
    padding: 40px 30px;
    text-align: center;
}

.pillar-icon-box {
    width: 70px;
    height: 70px;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid var(--gold-border-glow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
    font-size: 28px;
    color: var(--gold-primary);
    transition: var(--transition-normal);
}

.pillar-card:hover .pillar-icon-box {
    background: var(--gold-gradient);
    color: var(--bg-main);
    box-shadow: var(--gold-shadow);
    transform: scale(1.1);
}

.pillar-title {
    font-size: 20px;
    margin-bottom: 15px;
    font-family: var(--font-body);
    font-weight: 600;
}

.pillar-description {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Carreras Section */
.carreras-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.carrera-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.carrera-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold-gradient);
    transform: scaleX(0);
    transition: var(--transition-normal);
    transform-origin: left;
}

.carrera-card:hover::after {
    transform: scaleX(1);
}

.carrera-body {
    padding: 35px;
    flex-grow: 1;
}

.carrera-icon-wrapper {
    font-size: 32px;
    color: var(--gold-primary);
    margin-bottom: 20px;
}

.carrera-name {
    font-size: 22px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.carrera-details {
    margin-bottom: 25px;
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.carrera-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.carrera-detail-item svg {
    color: var(--gold-primary);
    width: 16px;
    height: 16px;
}

.carrera-description {
    font-size: 14px;
    color: var(--text-secondary);
}

.carrera-footer {
    padding: 0 35px 35px 35px;
}

.carrera-footer .btn {
    width: 100%;
}

.carrera-footer .btn-outline {
    color: var(--wine-primary);
    border-color: var(--wine-primary);
}

.carrera-footer .btn-outline:hover {
    background: var(--wine-primary);
    color: var(--white);
    border-color: var(--wine-primary);
}

/* Beneficios Section */
.beneficios-section {
    background-color: var(--bg-secundario);
}

.beneficios-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.beneficios-content h2 {
    font-size: 36px;
    margin-bottom: 25px;
}

.beneficios-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.beneficio-item {
    display: flex;
    gap: 15px;
}

.beneficio-check {
    width: 24px;
    height: 24px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 3px;
}

.beneficio-text h4 {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.beneficio-text p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    padding: 30px;
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 48px;
    color: var(--gold-primary);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

/* Formulario Section */
.form-section {
    position: relative;
}

.form-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 50px;
    align-items: flex-start;
}

.form-info {
    position: sticky;
    top: 100px;
}

.form-info-title {
    font-size: 32px;
    margin-bottom: 20px;
}

.form-info-desc {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 14px;
}

.form-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-step-item {
    display: flex;
    gap: 15px;
}

.form-step-number {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--gold-primary);
    flex-shrink: 0;
}

.form-step-content h4 {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 3px;
}

.form-step-content p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Formulario Principal */
.admission-form-wrapper {
    padding: 40px;
    border-color: var(--gold-border-glow);
}

.form-group-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    background-color: var(--white);
    border: 1px solid var(--border-glass);
    border-radius: 4px;
    padding: 12px 15px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--wine-primary);
    background-color: var(--white);
    box-shadow: 0 0 10px rgba(128, 0, 32, 0.1);
}

select.form-control option {
    background-color: var(--white);
    color: var(--text-primary);
}

.form-control[readonly] {
    background-color: var(--bg-secundario);
    color: var(--text-secondary);
    cursor: not-allowed;
}

/* Feedback de validación en tiempo real */
.invalid-feedback {
    display: none;
    font-size: 11px;
    color: var(--error);
    margin-top: 5px;
}

.form-control.is-invalid {
    border-color: var(--error) !important;
}

.form-control.is-valid {
    border-color: var(--success) !important;
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Checkbox/Radios */
.radio-group {
    display: flex;
    gap: 20px;
    padding-top: 5px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.radio-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    cursor: pointer;
}

.radio-option input[type="radio"]:checked {
    border-color: var(--gold-primary);
}

.radio-option input[type="radio"]::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--gold-primary);
    transform: scale(0);
    transition: var(--transition-fast);
}

.radio-option input[type="radio"]:checked::before {
    transform: scale(1);
}

.form-footer {
    margin-top: 30px;
    text-align: center;
}

.form-footer .btn {
    width: 100%;
    padding: 15px;
}

.form-disclaimer {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 15px;
}

/* Testimonios Section */
.testimonials-section {
    background-color: var(--bg-secundario);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.testimonial-quote {
    font-size: 15px;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 25px;
    position: relative;
}

.testimonial-quote::before {
    content: '“';
    font-family: var(--font-heading);
    font-size: 60px;
    color: rgba(212, 175, 55, 0.15);
    position: absolute;
    top: -30px;
    left: -15px;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gold-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--bg-main);
    font-size: 18px;
    font-family: var(--font-heading);
}

.testimonial-info h4 {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.testimonial-info span {
    font-size: 11px;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* FAQs Section */
.faqs-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    overflow: hidden;
    background-color: var(--bg-secundario);
    transition: var(--transition-fast);
}

.faq-header {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: var(--transition-fast);
}

.faq-header:hover {
    background-color: rgba(128, 0, 32, 0.03);
}

.faq-question {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-icon {
    font-size: 20px;
    color: var(--gold-primary);
    transition: var(--transition-normal);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq-content p {
    padding: 0 25px 25px 25px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-item.active {
    border-color: var(--gold-border-glow);
}

.faq-item.active .faq-header {
    background-color: rgba(128, 0, 32, 0.05);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-item.active .faq-content {
    max-height: 200px; /* Ajuste según contenido */
}

/* Footer */
.footer {
    background-color: var(--wine-dark);
    padding: 60px 20px 30px 20px;
    border-top: 1px solid var(--border-glass);
}

.footer-links a,
.footer-contact-item,
.footer-info-desc,
.footer-bottom {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--gold-primary);
}

.footer-social-icon {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.15);
}

.footer-social-icon:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info-logo {
    margin-bottom: 15px;
}

.footer-info-desc {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 20px;
    max-width: 320px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-social-icon {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.footer-social-icon:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    transform: translateY(-3px);
}

.footer-column h4 {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: var(--gold-primary);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--gold-primary);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.footer-contact-item svg {
    color: var(--gold-primary);
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid var(--border-glass);
    padding-top: 30px;
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
}

.footer-bottom a {
    color: var(--gold-primary);
}

/* Scroll To Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: var(--wine-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    box-shadow: var(--gold-shadow);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px) scale(1.05);
}

/* Scroll-based Animations (Intersection Observer clases) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Loader overlay */
.form-loader {
    position: absolute;
    inset: 0;
    background: rgba(11, 14, 20, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

.form-loader.show {
    opacity: 1;
    visibility: visible;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(212, 175, 55, 0.2);
    border-top: 3px solid var(--gold-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   Media Queries (Diseño Mobile-First)
   ========================================================================== */

/* Dispositivos Móviles y Tablets pequeñas (< 768px) */
@media screen and (max-width: 767px) {
    .section {
        padding: 60px 15px;
    }
    
    .section-title {
        font-size: 28px;
    }

    /* Menú Móvil Abierto */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: linear-gradient(135deg, #4A0E17 0%, #800020 100%);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        gap: 35px;
        transition: var(--transition-normal);
        border-left: 1px solid var(--border-glass);
        padding: 50px;
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }

    .hamburger {
        display: block;
    }

    /* Hero Section */
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        padding-top: 40px;
    }

    .hero-title {
        font-size: 38px;
        text-align: center;
    }

    .hero-badge {
        margin: 0 auto 20px auto;
        display: table;
    }

    .hero-description {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .countdown-box {
        padding: 25px;
    }

    /* Pillars */
    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* Carreras */
    .carreras-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* Beneficios */
    .beneficios-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Formulario */
    .form-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form-info {
        position: relative;
        top: 0;
    }

    .admission-form-wrapper {
        padding: 25px;
    }

    .form-group-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    /* Testimonios */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Tablets grandes e iPad (> 768px y < 1024px) */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .section-title {
        font-size: 32px;
    }

    .hero-title {
        font-size: 46px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .pillars-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .pillar-card {
        padding: 25px 15px;
    }

    .carreras-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .beneficios-grid {
        gap: 30px;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .testimonial-card:nth-child(3) {
        grid-column: span 2;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form-info {
        position: relative;
        top: 0;
    }
}

/* ==========================================================================
   Ajustes Específicos de Contraste y Visibilidad para Zonas Oscuras
   ========================================================================== */

/* Correcciones para la cuenta regresiva en el Hero (fondo oscuro) */
.hero-section .countdown-box {
    background: rgba(109, 28, 50, 0.35) !important; /* fondo traslúcido vino */
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.hero-section .countdown-title {
    color: var(--white) !important;
}

.hero-section .countdown-item {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.hero-section .countdown-number {
    color: var(--gold-primary) !important;
}

.hero-section .countdown-label {
    color: rgba(255, 255, 255, 0.8) !important;
}

.hero-section .countdown-footer, 
.hero-section .countdown-footer strong {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Correcciones de visibilidad para el Footer (fondo oscuro vino) */
.footer {
    background-color: var(--wine-dark) !important;
}

.footer-column h4 {
    color: var(--gold-primary) !important;
}

.footer-info-desc,
.footer-contact-item,
.footer-contact-item span,
.footer-links a,
.footer-bottom,
.footer-bottom p {
    color: rgba(255, 255, 255, 0.8) !important;
}

.footer-links a:hover {
    color: var(--gold-primary) !important;
}

.footer-social-icon {
    color: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.footer-social-icon:hover {
    border-color: var(--gold-primary) !important;
    color: var(--gold-primary) !important;
}

/* DNI Search Input layout */
.input-with-btn {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-search-dni {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 46px; /* align with standard input height */
    width: 46px;
    padding: 0 !important;
    border-radius: 4px;
    flex-shrink: 0;
}

/* Modal de Política de Privacidad */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 14, 20, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    background: var(--white);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--wine-shadow);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-box {
    transform: translateY(0);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid rgba(109, 28, 50, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--wine-primary) !important;
    font-family: var(--font-body);
    font-weight: 700;
}

.modal-close-btn {
    background: transparent;
    border: none;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-fast);
}

.modal-close-btn:hover {
    color: var(--wine-primary);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    font-size: 14px;
    color: var(--text-primary) !important;
    line-height: 1.6;
    text-align: left;
}

.modal-body h4 {
    color: var(--wine-primary) !important;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 600;
}

.modal-body ul {
    list-style-type: disc !important;
    margin-left: 20px !important;
    margin-bottom: 15px !important;
    padding-left: 10px !important;
}

.modal-body ul li {
    margin-bottom: 5px !important;
    color: var(--text-primary) !important;
}

.modal-body p {
    margin-bottom: 15px;
    color: var(--text-primary) !important;
}

.modal-body .effective-date {
    font-style: italic;
    color: var(--text-secondary) !important;
    margin-bottom: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(109, 28, 50, 0.1);
    display: flex;
    justify-content: flex-end;
}

.modal-footer .btn {
    padding: 10px 25px;
}

/* Campus Virtual Section */
.campus-section {
    background-color: var(--bg-main);
    overflow: hidden;
}

.campus-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.campus-lead-text {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.7;
}

.campus-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.campus-feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.campus-feature-item .feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(128, 0, 32, 0.08);
    color: var(--wine-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(128, 0, 32, 0.15);
    transition: var(--transition-fast);
}

.campus-feature-item:hover .feature-icon {
    background: var(--wine-gradient);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--wine-shadow);
}

.campus-feature-item .feature-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.campus-feature-item .feature-info p {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Mockup Campus Visual */
.campus-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mockup-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    padding: 10px;
}

.mockup-container::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    border: 2px dashed var(--gold-primary);
    border-radius: 12px;
    z-index: 0;
    opacity: 0.3;
    pointer-events: none;
}

.mockup-frame {
    position: relative;
    z-index: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(74, 14, 23, 0.15), 0 0 0 1px rgba(109, 28, 50, 0.12);
    background: var(--white);
    transition: var(--transition-normal);
}

.mockup-frame:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 50px rgba(74, 14, 23, 0.25), 0 0 0 1px rgba(109, 28, 50, 0.2);
}

.mockup-frame img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.glass-tag {
    position: absolute;
    z-index: 2;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(109, 28, 50, 0.15);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--wine-primary);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tag-top {
    top: 20px;
    right: -20px;
}

.tag-bottom {
    bottom: 20px;
    left: -20px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: var(--success);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(3); opacity: 0; }
}

@media screen and (max-width: 767px) {
    .campus-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .tag-top {
        right: 10px;
    }
    
    .tag-bottom {
        left: 10px;
    }
}

/* Lightbox para zoom de imágenes */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 14, 20, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox-overlay.show .lightbox-img {
    transform: scale(1);
}

.lightbox-close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 40px;
    color: var(--white);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-fast);
}

.lightbox-close-btn:hover {
    color: var(--gold-primary);
}

.mockup-frame img {
    cursor: zoom-in;
}
