/* ============================================
   VARIABLES Y COLORES
   ============================================ */
:root {
    /* Colores principales - Gradientes modernos para estudiantes */
    --primary: #3b82f6;
    --primary-dark: #1e40af;
    --primary-light: #60a5fa;

    --secondary: #8b5cf6;
    --secondary-dark: #6d28d9;
    --secondary-light: #a78bfa;

    --accent: #f59e0b;
    --accent-dark: #d97706;
    --accent-light: #fbbf24;

    --success: #10b981;
    --danger: #ef4444;

    /* Neutrales */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;

    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;

    --border: #e5e7eb;
    --border-light: #f3f4f6;

    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #fad0c4 0%, #ffd1ff 100%);
    --gradient-blue: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-success: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);

    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transiciones */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}


/* ============================================
   RESET Y BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text-primary);
    background: var(--bg-secondary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ============================================
   NAVEGACIÓN DEL SLIDER
   ============================================ */

/* Botones de navegación lateral (izquierda y derecha) */
.nav-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradient-primary);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-xl);
    color: white;
    z-index: 2000;
    opacity: 0.9;
}

.nav-btn:hover {
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
    opacity: 1;
}

.nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

#prevBtn {
    left: 2rem;
}

#nextBtn {
    right: 2rem;
}

.nav-btn svg {
    width: 28px;
    height: 28px;
}

/* Footer solo con dots y contador */
.slider-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    padding: 0.75rem 1rem;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.dots-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all var(--transition-base);
}

.dot.active {
    background: var(--primary);
    transform: scale(1.4);
}

.dot:hover {
    background: var(--primary-light);
    transform: scale(1.2);
}

.slide-counter {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
}


/* ============================================
   CONTENEDOR DE SLIDES
   ============================================ */
.slider-container {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;  /* ← AÑADIR ESTO */
    transform: translateX(100%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2.5rem;
    padding-bottom: 7rem;
    overflow-y: auto;
    z-index: 0;
    pointer-events: none;  /* ← AÑADIR ESTA LÍNEA */
}

.slide.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
    z-index: 10 !important;  /* ← CAMBIADO: de 1 a 10 */
    pointer-events: auto !important;  /* ← AÑADIR */
}

/* Primer slide visible al cargar */
.slide:first-child {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    z-index: 10;  /* ← z-index alto */
    pointer-events: auto;
}

.slide.prev {
    transform: translateX(-100%);
}

.slide-content {
    max-width: 1360px;/*1200px*/
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ============================================
   SLIDE HEADER
   ============================================ */
.slide-header {
    text-align: center;
    padding: 1rem 0;
}

.slide-number {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
}

.slide-title {
    font-size: clamp(2.5rem, 6vw, 4rem) !important;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.slide-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    font-weight: 500;
}

/* ============================================
   SLIDE 1: HERO
   ============================================ */
.hero-slide {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    position: relative;
}

.hero-left {
    flex: 1;
    min-width: 0;
}

.hero-right {
    flex: 0 0 auto;
    width: min(400px, 40%);
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    animation: fadeInUp 0.6s ease-out;
}

.badge-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.badge-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 5rem) !important;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.brand-text {
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    display: block;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
    margin-top: 0.5rem;
    letter-spacing: normal;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem) !important;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.highlight {
    color: var(--primary);
    font-weight: 700;
}

.location-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

.location-info svg {
    color: var(--accent);
}

.cta-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    text-align: center;
    border: 2px solid var(--border-light);
    animation: fadeInUp 0.6s ease-out 0.8s both;
}

.cta-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-card h3 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.cta-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.qr-placeholder {
    margin: 1.5rem 0;
}

.qr-box {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    background: var(--bg-tertiary);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border);
}

.qr-icon {
    width: 100px;
    height: 100px;
    opacity: 0.4;
}

.qr-text {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.cta-button {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 2rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    width: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.cta-button:active {
    transform: translateY(0);
}

.slide-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background: var(--gradient-primary);
    top: -200px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

.circle-2 {
    width: 300px;
    height: 300px;
    background: var(--gradient-secondary);
    bottom: -150px;
    left: -100px;
    animation: float 8s ease-in-out infinite reverse;
}

.circle-3 {
    width: 200px;
    height: 200px;
    background: var(--gradient-accent);
    top: 50%;
    left: 50%;
    animation: float 10s ease-in-out infinite;
}

/* ============================================
   SLIDE 2: TIMELINE
   ============================================ */
.timeline-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem 0;
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    animation: fadeInLeft 0.6s ease-out both;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }

.timeline-dot {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-md);
    position: relative;
}

.timeline-dot::after {
    content: '';
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: calc(100% + 1.5rem);
    background: var(--border);
}

.timeline-item:last-child .timeline-dot::after {
    display: none;
}

.timeline-content {
    flex: 1;
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.time-label {
    display: inline-block;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.timeline-content h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.info-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #e0e7ff 0%, #cffafe 100%);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    color: var(--primary-dark);
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.info-badge.accent {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    color: var(--accent-dark);
}

.info-badge svg {
    flex-shrink: 0;
}

/* ============================================
   SLIDE 3: CARDS GRID
   ============================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    flex: 1;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    animation: fadeInUp 0.6s ease-out both;
    border: 2px solid transparent;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ============================================
   SLIDE 4: CURRICULUM
   ============================================ */
.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.curriculum-item {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-base);
    animation: scaleIn 0.6s ease-out both;
}

.curriculum-item:nth-child(1) { animation-delay: 0.1s; }
.curriculum-item:nth-child(2) { animation-delay: 0.2s; }
.curriculum-item:nth-child(3) { animation-delay: 0.3s; }
.curriculum-item:nth-child(4) { animation-delay: 0.4s; }

.curriculum-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.curriculum-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.curriculum-item h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.curriculum-item p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.highlight-box {
    background: var(--gradient-success);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    color: black;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

.highlight-box h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.highlight-box p {
    font-size: 1rem;
    opacity: 0.95;
}

/* ============================================
   SLIDE 5: JOBS
   ============================================ */
.jobs-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    flex: 1;
}

.job-category {
    background: white;
    padding: 1.8rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.6s ease-out both;
    transition: all var(--transition-base);
}

.job-category:nth-child(1) { animation-delay: 0.1s; }
.job-category:nth-child(2) { animation-delay: 0.2s; }
.job-category:nth-child(3) { animation-delay: 0.3s; }
.job-category:nth-child(4) { animation-delay: 0.4s; }

.job-category:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.job-category h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.job-category ul {
    list-style: none;
}

.job-category li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 1.1rem;
    position: relative;
    padding-left: 1.5rem;
}

.job-category li:last-child {
    border-bottom: none;
}

.job-category li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* ============================================
   SLIDE 6: DEMOS
   ============================================ */
.demo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.demo-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
    animation: fadeInUp 0.6s ease-out both;
}

.demo-card:nth-child(1) { animation-delay: 0.1s; }
.demo-card:nth-child(2) { animation-delay: 0.2s; }
.demo-card:nth-child(3) { animation-delay: 0.3s; }

.demo-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.demo-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-primary);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: var(--shadow-md);
}

.demo-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.demo-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 1.1rem !important;
}

.demo-tag {
    display: inline-block;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.project-showcase {
    background: var(--gradient-blue);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    color: white;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.project-showcase h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.project-showcase p {
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.video-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: var(--primary);
    padding: 1rem 2rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 700;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.video-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.note {
    display: block;
    margin-top: 1rem;
    font-size: 0.75rem;
    opacity: 0.8;
}

/* ============================================
   SLIDE 7: SALARY TABLE
   ============================================ */
.salary-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.salary-table-wrapper {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    overflow-x: auto;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.salary-table {
    width: 100%;
    border-collapse: collapse;
}

.salary-table thead {
    background: var(--gradient-primary);
    color: white;
}

.salary-table th {
    padding: 1.25rem;
    text-align: left;
    font-weight: 700;
    font-size: 1.2rem;
}

.salary-table td {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-light);
    font-size: 1.1rem;
}

.salary-table tbody tr {
    transition: all var(--transition-fast);
}

.salary-table tbody tr:hover {
    background: var(--bg-tertiary);
}

.salary-range {
    font-weight: 700;
    color: var(--primary);
}

.highlight-row {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
}

.highlight-row td {
    font-weight: 700;
}

.salary-notes {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.salary-notes p {
    margin-bottom: 0.5rem;
}

.salary-notes p:last-child {
    margin-bottom: 0;
}

/* ============================================
   SLIDE 8: CONTACT
   ============================================ */
.contact-slide {
    justify-content: center;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-base);
    animation: scaleIn 0.6s ease-out both;
}

.contact-card:nth-child(1) { animation-delay: 0.1s; }
.contact-card:nth-child(2) { animation-delay: 0.2s; }
.contact-card:nth-child(3) { animation-delay: 0.3s; }

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.contact-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
}

.contact-card a:hover {
    text-decoration: underline;
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.cta-final {
    background: var(--gradient-primary);
    padding: 3rem;
    border-radius: 1.5rem;
    text-align: center;
    color: white;
    box-shadow: var(--shadow-xl);
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.cta-final h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.cta-final p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.cta-button.large {
    font-size: 1.25rem;
    padding: 1.25rem 3rem;
    background: white;
    color: var(--primary);
    max-width: 400px;
}

.cta-button.large:hover {
    background: var(--bg-secondary);
}

.footer-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

.footer-note p {
    margin-bottom: 0.25rem;
}

.small {
    font-size: 0.75rem;
}

/* ============================================
   ANIMACIONES
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ============================================
   SCROLLBAR PERSONALIZADO
   ============================================ */
.slide::-webkit-scrollbar {
    width: 8px;
}

.slide::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

.slide::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

.slide::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ============================================
   SLIDE 3: RAMAS DE INGENIERÍA CON MODALES
   ============================================ */

.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.branch-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    animation: fadeInUp 0.6s ease-out both;
    border: 2px solid transparent;
    text-align: center;
    position: relative;
    cursor: pointer;
}

.branch-card:nth-child(1) { animation-delay: 0.1s; }
.branch-card:nth-child(2) { animation-delay: 0.2s; }
.branch-card:nth-child(3) { animation-delay: 0.3s; }
.branch-card:nth-child(4) { animation-delay: 0.4s; }
.branch-card:nth-child(5) { animation-delay: 0.5s; }
.branch-card:nth-child(6) { animation-delay: 0.6s; }
.branch-card:nth-child(7) { animation-delay: 0.7s; }
.branch-card:nth-child(8) { animation-delay: 0.8s; }

.branch-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.branch-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
}

.branch-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.branch-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.branch-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.branch-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   MODALES FULLSCREEN CON IMÁGENES
   ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Fullscreen */
.modal-fullscreen {
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 100%);
    border-radius: 0;
    padding: 0;
    max-width: 100vw;
    max-height: 100vh;
    width: 100vw;
    height: 100vh;
    position: relative;
    transform: scale(0.95);
    transition: all 0.3s ease;
    overflow-y: auto;
    box-shadow: none;
}

.modal-overlay.active .modal-fullscreen {
    transform: scale(1);
}

.modal-close {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    transition: all var(--transition-base);
    z-index: 10001;
    font-weight: 300;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.9);
    border-color: rgba(239, 68, 68, 1);
    transform: rotate(90deg) scale(1.1);
}

/* ============================================
   MODAL HEADER HORIZONTAL - Ícono a la izquierda
   ============================================ */

/* Header del modal fullscreen - COMPACTO */
.modal-header-full {
    padding: 2rem 4rem 1.5rem;  /* Reducido de 3rem a 2rem arriba */
    color: white;
    background: rgba(0, 0, 0, 0.2);
}

/* Wrapper para alinear ícono + texto horizontalmente */
.modal-title-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: center;  /* Alineado a la izquierda */
}

.modal-icon-large {
    font-size: 5rem;
    margin: 0;  /* Eliminar márgenes */
    flex-shrink: 0;  /* No permitir que se encoja */
    animation: float 3s ease-in-out infinite;
}

.modal-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;  /* Alineado a la izquierda */
}

.modal-header-full h2 {
    font-size: 2.5rem;  /* Reducido de 3rem a 2.5rem */
    color: white;
    margin: 0;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    text-align: center;
}

.modal-description {
    font-size: 1.2rem;  /* Reducido de 1.3rem a 1.2rem */
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    margin: 0;
    line-height: 1.4;
}

/* Body del modal - MÁS COMPACTO */
.modal-body-full {
    padding: 2rem 4rem 3rem;  /* Reducido de 3rem a 2rem arriba */
    max-width: 1600px;
    margin: 0 auto;
}

/* Grid de especialidades - MÁS COMPACTO */
.specialties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;  /* Reducido de 2rem a 1.5rem */
    margin-bottom: 2rem;  /* Reducido de 3rem a 2rem */
}

.specialty-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.specialty-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.specialty-img {
    width: 100%;
    height: 180px;  /* Reducido de 200px a 180px */
    object-fit: cover;
    display: block;
    transition: all var(--transition-base);
}

.specialty-card:hover .specialty-img {
    transform: scale(1.05);
}

.specialty-card h3 {
    padding: 1rem;  /* Reducido de 1.25rem a 1rem */
    margin: 0;
    font-size: 1rem;  /* Reducido de 1.1rem a 1rem */
    color: var(--text-primary);
    text-align: center;
    font-weight: 700;
    background: white;
    line-height: 1.3;
}

.modal-footer-full {
    text-align: center;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;  /* Reducido de 1.1rem a 1rem */
    margin-top: 1.5rem;  /* Reducido de 2rem a 1.5rem */
    padding-top: 1.5rem;  /* Reducido de 2rem a 1.5rem */
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

/* ============================================
   RESPONSIVE PARA HEADER HORIZONTAL
   ============================================ */

@media (max-width: 1200px) {
    .modal-title-wrapper {
        gap: 1.5rem;
    }

    .modal-icon-large {
        font-size: 4rem;
    }

    .modal-header-full h2 {
        font-size: 2rem;
    }

    .modal-description {
        font-size: 1.1rem;
    }

    .modal-header-full {
        padding: 2rem 3rem 1.5rem;
    }

    .modal-body-full {
        padding: 2rem 3rem 3rem;
    }

    .specialties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .modal-title-wrapper {
        flex-direction: column;  /* Stack en móvil */
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .modal-text {
        text-align: center;
    }

    .modal-icon-large {
        font-size: 3.5rem;
    }

    .modal-header-full {
        padding: 1.5rem 1.5rem 1.25rem;
    }

    .modal-header-full h2 {
        font-size: 1.75rem;
    }

    .modal-description {
        font-size: 1rem;
    }

    .modal-body-full {
        padding: 1.5rem 1.5rem 2rem;
    }

    .specialties-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .specialty-img {
        height: 160px;
    }

    .specialty-card h3 {
        font-size: 0.95rem;
        padding: 0.875rem;
    }
}

@media (max-width: 480px) {
    .modal-icon-large {
        font-size: 3rem;
    }

    .modal-header-full {
        padding: 1.25rem 1rem 1rem;
    }

    .modal-header-full h2 {
        font-size: 1.5rem;
    }

    .modal-description {
        font-size: 0.95rem;
    }

    .modal-body-full {
        padding: 1.25rem 1rem 1.5rem;
    }

    .specialty-img {
        height: 140px;
    }

    .specialty-card h3 {
        font-size: 0.9rem;
        padding: 0.75rem;
    }

    .modal-footer-full {
        font-size: 0.9rem;
        margin-top: 1rem;
        padding-top: 1rem;
    }
}

/* Estilos para imagen QR real */
.qr-image {
    width: 100%;
    max-width: 280px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 0.75rem;
    background: white;
    padding: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.qr-image:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.qr-text {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ============================================
   GALERÍA DE VIDEOS - ESTILOS CORREGIDOS
   ============================================ */

   .video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem 1.5rem;
    margin-top: 2rem;
    padding: 0 1rem;
  }

  /* Contenedor de cada item (thumbnail + título) */
    .video-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .video-thumb {
    position: relative;
    cursor: pointer;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    aspect-ratio: 16 / 9;
    background: #000;
  }
  
  .video-thumb:hover,
  .video-thumb:focus {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  }
  
  .video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
  }
  
  .video-thumb:hover img,
  .video-thumb:focus img {
    transform: scale(1.05);
  }
  
  .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    pointer-events: none;
    user-select: none;
    transition: all 0.3s ease;
  }
  
  .video-thumb:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.2);
  }
  
  /* ============================================
     MODAL DE VIDEO - 
     ============================================ */
  
  .video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 15000;
    padding: 1rem;
  }
  
  .video-modal.active {
    visibility: visible;
    opacity: 1;
  }
  
  .video-modal-content {
    position: relative;
    background: #000;
    width: 90vw;
    max-width: 1200px;
    border-radius: 0.75rem;
    box-shadow: 0 10px 50px rgba(0,0,0,0.8);
    overflow: hidden;
  }
  
  .video-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0,0,0,0.7);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    z-index: 16000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .video-modal-close:hover {
    background: rgba(239, 68, 68, 0.9);
    border-color: rgba(239, 68, 68, 1);
    transform: rotate(90deg);
  }
  
  .video-modal-title {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: white;
    font-size: 1rem;
    z-index: 16000;
    background: rgba(0,0,0,0.7);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    margin: 0;
  }
  
  /* Contenedor que mantiene ratio 16:9 */
  .video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 ratio = 9/16 = 0.5625 = 56.25% */
    height: 0;
    overflow: hidden;
    background: #000;
  }
  
  .video-container iframe,
  .video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: contain; /* Importante: mantiene aspecto sin recortar */
  }
  
  .video-modal-footer {
    padding: 0.75rem 1rem;
    background: #1a1a1a;
    text-align: right;
  }
  
  .video-youtube-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
  }
  
  .video-youtube-link:hover {
    color: #60a5fa;
    text-decoration: underline;
  }
  
  /* ============================================
     RESPONSIVE
     ============================================ */
  
  @media (max-width: 768px) {
    .video-gallery {
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1rem;
    }
  
    .video-modal-content {
      width: 95vw;
    }
  
    .play-icon {
      font-size: 2.5rem;
    }
  
    .video-modal-close {
      width: 40px;
      height: 40px;
      font-size: 1.25rem;
    }
  }
  
  @media (max-width: 480px) {
    .video-gallery {
      grid-template-columns: 1fr;
    }
  
    .play-icon {
      font-size: 2rem;
    }
  
    .video-modal-title {
      font-size: 0.875rem;
      padding: 0.375rem 0.75rem;
    }
  }


/* Título debajo del thumbnail */
.video-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin: 0;
    line-height: 1.4;
    padding: 0 0.5rem;
    transition: color 0.3s ease;
}

.video-item:hover .video-title {
    color: var(--primary);
}

/* ============================================
   VARIANTES DE ESTILO PARA EL TÍTULO
   ============================================ */

/* Variante 1: Título alineado a la izquierda */
.video-title.align-left {
    text-align: left;
  }
  
  /* Variante 2: Título con subtítulo/descripción */
  .video-title.with-subtitle {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
  }
  
  .video-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
    margin: 0;
    padding: 0 0.5rem;
  }
  
  /* Variante 3: Título con badge/categoría */
  .video-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }

  .video-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

/* ============================================
   RESPONSIVE
   ============================================ */

   @media (max-width: 768px) {
    .video-gallery {
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1.5rem 1rem;
    }
  
    .video-title {
      font-size: 0.9rem;
    }
  
    .play-icon {
      font-size: 2.5rem;
    }
  }
  
  @media (max-width: 480px) {
    .video-gallery {
      grid-template-columns: 1fr;
      gap: 2rem;
    }
  
    .video-title {
      font-size: 0.95rem;
    }
  
    .play-icon {
      font-size: 2rem;
    }
  }

  .job-images {
  display: flex;
  justify-content: center;
  padding-top: 0.7rem;
}

.job-images img {
  width: 94%;
  max-width: 320px;
  /*height: auto;*/
  height: 250px;
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(60, 60, 60, 0.12);
  cursor: zoom-in;
  object-fit: cover;
  transition: box-shadow 0.2s, transform 0.18s;
  background: #fff;
  border: 2px solid #e5e7eb;
}

.job-images img:hover {
  transform: scale(1.015);
  box-shadow: 0 8px 28px rgba(59, 130, 246, 0.14);
  border-color: #3b82f6;
}

/* Responsive para pantallas pequeñas */
@media (max-width: 767px) {
  .job-images img {
    max-width: 98vw;
    width: 97%;
  }
}

.img-modal {
  display: none;
  position: fixed;
  z-index: 25000;
  padding-top: 40px;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background-color: rgba(20, 20, 23, 0.92);
  align-items: center;
  justify-content: center;
}

.img-modal-content {
  margin: auto;
  display: block;
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.32);
  background: #fff;
}

.img-modal-close {
  position: absolute;
  right: 3vw;
  top: 36px;
  color: #fff;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 25001;
}

.img-modal-close:hover {
  color: #fbbf24;
}

.demo-tag:hover {
  text-decoration: underline;
  cursor: pointer;
  opacity: 0.9;
}

.cta-final-container.cta-horizontal {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: var(--gradient-primary, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(60,60,120,0.12);
  padding: 1rem;
  max-width: 1180px;
  margin: auto;
  gap: 2.5rem;
}

.cta-final-text {
  flex: 1 1 70%;
  text-align: center;
  color: #fff;
}

.cta-final-text h3 {
  font-size: 2.14rem;
  font-weight: bold;
  margin-bottom: 0.8rem;
  color: #fff;
}
.cta-final-text p {
  color: #e8dfff;
  font-size: 1.11rem;
  margin-bottom: 0.1rem;
}

.cta-final-qr {
  flex: 0 0 200px;
  display: flex;
  justify-content: flex-end;
}

.cta-final-qr .qr-image,
.qr-image-final {
  max-width: 190px;
  min-width: 120px;
  border-radius: 1rem;
  background: #fff;
  padding: 10px;
  box-shadow: 0 8px 32px rgba(60,60,130,0.18);
  margin: 0;
  display: block;
  transition: transform 0.18s;
}

.cta-final-qr .qr-image:hover {
  transform: scale(1.1);
}

@media (max-width: 900px) {
  .cta-final-container.cta-horizontal {
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 0.7rem;
    gap: 1.3rem;
  }
  .cta-final-qr { justify-content: center; }
  .cta-final-text { text-align: center; }
  .cta-final-qr .qr-image { max-width: 170px; }
}

