/* ============================================
   RESPONSIVE DESIGN
   Mobile-First Approach
   ============================================ */

/* ============================================
   TABLETS (768px - 1024px)
   ============================================ */
@media (max-width: 1024px) {
    .slide-content {
        max-width: 100%;
        padding: 0 1rem;
    }

    .slide-title {
        font-size: clamp(1.75rem, 4vw, 2.5rem);
    }

    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.25rem;
    }

    .hero-slide {
        flex-direction: column;
        justify-content: center;
    }

    .hero-right {
        width: 100%;
        max-width: 400px;
    }

    .timeline-container {
        padding: 0.5rem 0;
    }
}

/* ============================================
   MOBILE LANDSCAPE (568px - 767px)
   ============================================ */
@media (max-width: 767px) {
    .slider-nav {
        padding: 0.75rem;
    }

    .nav-container {
        gap: 1rem;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
    }

    .nav-btn svg {
        width: 20px;
        height: 20px;
    }

    .dots-container {
        gap: 0.35rem;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .slide {
        padding: 1.5rem 1rem;
        padding-bottom: 5rem;
    }

    .slide-header {
        padding: 0.5rem 0;
    }

    .slide-number {
        padding: 0.4rem 1.2rem;
        font-size: 0.75rem;
    }

    .slide-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .slide-subtitle {
        font-size: clamp(0.875rem, 2vw, 1rem);
    }

    /* Hero Slide Mobile */
    .hero-slide {
        gap: 2rem;
    }

    .badges {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    .hero-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        margin-bottom: 1rem;
    }

    .subtitle {
        font-size: clamp(1rem, 3vw, 1.25rem);
    }

    .hero-description {
        font-size: clamp(0.9rem, 2vw, 1rem);
        margin-bottom: 1rem;
    }

    .location-info {
        font-size: 0.75rem;
    }

    .cta-card {
        padding: 1.5rem;
    }

    .cta-icon {
        font-size: 2.5rem;
    }

    .cta-card h3 {
        font-size: 1.25rem;
    }

    .cta-card p {
        font-size: 0.875rem;
    }

    .qr-box {
        width: 150px;
        height: 150px;
    }

    .qr-icon {
        width: 80px;
        height: 80px;
    }

    .cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    /* Timeline Mobile */
    .timeline-container {
        gap: 1.25rem;
    }

    .timeline-item {
        gap: 1rem;
    }

    .timeline-dot {
        width: 20px;
        height: 20px;
    }

    .timeline-dot::after {
        top: 20px;
    }

    .timeline-content {
        padding: 1.25rem;
    }

    .time-label {
        padding: 0.2rem 0.6rem;
        font-size: 0.7rem;
    }

    .timeline-content h3 {
        font-size: 1.1rem;
    }

    .timeline-content p {
        font-size: 0.875rem;
    }

    .info-badge {
        padding: 0.875rem 1.25rem;
        font-size: 0.8rem;
        gap: 0.5rem;
    }

    .info-badge svg {
        width: 18px;
        height: 18px;
    }

    /* Cards Grid Mobile */
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .card-icon {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .feature-card p {
        font-size: 0.875rem;
    }

    /* Curriculum Mobile */
    .curriculum-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .curriculum-item {
        padding: 1.5rem;
    }

    .curriculum-icon {
        font-size: 3rem;
    }

    .curriculum-item h3 {
        font-size: 1.25rem;
    }

    .curriculum-item p {
        font-size: 0.875rem;
    }

    .highlight-box {
        padding: 1.5rem;
    }

    .highlight-box h3 {
        font-size: 1.25rem;
    }

    .highlight-box p {
        font-size: 0.9rem;
    }

    /* Jobs Mobile */
    .jobs-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .job-category {
        padding: 1.5rem;
    }

    .job-category h3 {
        font-size: 1.25rem;
    }

    .job-category li {
        font-size: 0.875rem;
        padding: 0.6rem 0;
        padding-left: 1.25rem;
    }

    /* Demos Mobile */
    .demo-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .demo-card {
        padding: 1.5rem;
        padding-right: 4rem;
    }

    .demo-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .demo-card h3 {
        font-size: 1.25rem;
    }

    .demo-card p {
        font-size: 0.875rem;
    }

    .demo-tag {
        font-size: 0.7rem;
    }

    .project-showcase {
        padding: 1.5rem;
    }

    .project-showcase h3 {
        font-size: 1.25rem;
    }

    .project-showcase p {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }

    .video-link {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    /* Salary Table Mobile */
    .salary-table-wrapper {
        padding: 1rem;
    }

    .salary-table th,
    .salary-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }

    .salary-table th {
        font-size: 0.95rem;
    }

    .salary-notes {
        padding: 1.25rem;
        font-size: 0.8rem;
    }

    /* Contact Mobile */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .contact-icon {
        font-size: 2.5rem;
    }

    .contact-card h3 {
        font-size: 1.1rem;
    }

    .contact-card a {
        font-size: 1rem;
    }

    .contact-card p {
        font-size: 0.95rem;
    }

    .cta-final {
        padding: 2rem 1.5rem;
    }

    .cta-final h3 {
        font-size: 1.5rem;
    }

    .cta-final p {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

    .cta-button.large {
        font-size: 1.1rem;
        padding: 1rem 2rem;
    }

    .footer-note {
        font-size: 0.8rem;
        padding-top: 1.5rem;
    }

    /* Decorations Mobile */
    .circle-1 {
        width: 300px;
        height: 300px;
    }

    .circle-2 {
        width: 250px;
        height: 250px;
    }

    .circle-3 {
        width: 150px;
        height: 150px;
    }

    /* Forzar que el slide-content del slide 9 sea más compacto */
    .slide[data-slide="9"] .slide-content {
        padding: 0 0.5rem !important;
        gap: 1rem !important;
    }
    
    /* Ajustar header del slide 9 */
    .slide[data-slide="9"] .slide-header {
        padding: 0.5rem 0 !important;
        margin-bottom: 0.8rem !important;
    }
    
    .slide[data-slide="9"] .slide-number {
        padding: 0.3rem 0.9rem !important;
        font-size: 0.7rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .slide[data-slide="9"] .slide-title {
        font-size: 1.4rem !important;
        margin-bottom: 0.3rem !important;
    }
    
    .slide[data-slide="9"] .slide-subtitle {
        font-size: 0.85rem !important;
    }
    
    /* Contact cards más compactas en slide 9 */
    .slide[data-slide="9"] .contact-container {
        gap: 0.8rem !important;
        margin-bottom: 1rem !important;
    }
    
    .slide[data-slide="9"] .contact-card {
        padding: 1.2rem !important;
    }
    
    .slide[data-slide="9"] .contact-icon {
        font-size: 2.2rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .slide[data-slide="9"] .contact-card h3 {
        font-size: 1rem !important;
        margin-bottom: 0.4rem !important;
    }
    
    .slide[data-slide="9"] .contact-card a,
    .slide[data-slide="9"] .contact-card p {
        font-size: 0.9rem !important;
    }
    
    /* CTA Final Container en móvil - slide 9 */
    .slide[data-slide="9"] .cta-final-container.cta-horizontal {
        flex-direction: column !important;
        align-items: center !important;
        padding: 1rem 0.5rem !important;
        margin: 0.5rem 0.2rem 0.8rem 0.2rem !important;
        gap: 0.8rem !important;
        max-width: 99vw !important;
    }
    
    .slide[data-slide="9"] .cta-final-text {
        text-align: center !important;
        width: 100% !important;
    }
    
    .slide[data-slide="9"] .cta-final-text h3 {
        font-size: 1.15rem !important;
        margin-bottom: 0.4rem !important;
    }
    
    .slide[data-slide="9"] .cta-final-text p {
        font-size: 0.9rem !important;
    }
    
    .slide[data-slide="9"] .cta-final-qr {
        justify-content: center !important;
        width: 100% !important;
    }
    
    .slide[data-slide="9"] .qr-image-final {
        max-width: 130px !important;
    }
    
    /* Footer más compacto slide 9 */
    .slide[data-slide="9"] .footer-note {
        padding-top: 0.8rem !important;
        font-size: 0.75rem !important;
    }
}

/* ============================================
   SMALL MOBILE (320px - 567px)
   ============================================ */
@media (max-width: 567px) {
    .slide {
        padding: 1rem 0.75rem;
        padding-bottom: 5rem;
    }

    .slide-content {
        gap: 1.5rem;
    }

    .slide-number {
        padding: 0.35rem 1rem;
        font-size: 0.7rem;
        margin-bottom: 0.75rem;
    }

    .slide-title {
        font-size: 1.5rem;
        margin-bottom: 0.35rem;
    }

    .slide-subtitle {
        font-size: 0.875rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .cta-card {
        padding: 1.25rem;
    }

    .cta-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .cta-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .cta-card p {
        font-size: 0.8rem;
        margin-bottom: 1.25rem;
    }

    .qr-box {
        width: 130px;
        height: 130px;
    }

    .qr-icon {
        width: 70px;
        height: 70px;
    }

    .cta-button {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .timeline-content {
        padding: 1rem;
    }

    .timeline-content h3 {
        font-size: 1rem;
    }

    .timeline-content p {
        font-size: 0.8rem;
    }

    .feature-card,
    .curriculum-item,
    .job-category,
    .demo-card,
    .contact-card {
        padding: 1.25rem;
    }

    .card-icon,
    .curriculum-icon,
    .contact-icon {
        font-size: 2.25rem;
    }

    .feature-card h3,
    .curriculum-item h3,
    .job-category h3,
    .demo-card h3,
    .contact-card h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .feature-card p,
    .curriculum-item p,
    .demo-card p {
        font-size: 0.8rem;
    }

    .job-category li {
        font-size: 0.8rem;
    }

    .highlight-box {
        padding: 1.25rem;
    }

    .highlight-box h3 {
        font-size: 1.1rem;
    }

    .highlight-box p {
        font-size: 0.85rem;
    }

    .project-showcase {
        padding: 1.25rem;
    }

    .project-showcase h3 {
        font-size: 1.1rem;
    }

    .project-showcase p {
        font-size: 0.85rem;
    }

    .video-link {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    .video-link svg {
        width: 20px;
        height: 20px;
    }

    .note {
        font-size: 0.7rem;
    }

    .salary-table th,
    .salary-table td {
        padding: 0.6rem 0.4rem;
        font-size: 0.8rem;
    }

    .cta-final {
        padding: 1.5rem 1.25rem;
    }

    .cta-final h3 {
        font-size: 1.25rem;
    }

    .cta-final p {
        font-size: 0.9rem;
    }

    .cta-button.large {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }

    .nav-btn {
        width: 36px;
        height: 36px;
    }

    .nav-btn svg {
        width: 18px;
        height: 18px;
    }

    .dot {
        width: 7px;
        height: 7px;
    }

    .slide-counter {
        font-size: 0.8rem;
    }
}

/* ============================================
   LANDSCAPE ORIENTATION (Mobile)
   ============================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .slide {
        padding: 1rem;
        padding-bottom: 5rem;
    }

    .slide-header {
        padding: 0.5rem 0;
    }

    .slide-number {
        padding: 0.3rem 1rem;
        margin-bottom: 0.5rem;
    }

    .slide-title {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }

    .slide-subtitle {
        font-size: 0.875rem;
    }

    .hero-slide {
        flex-direction: row;
        gap: 2rem;
    }

    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .hero-description {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }

    .cta-card {
        padding: 1rem;
    }

    .qr-box {
        width: 120px;
        height: 120px;
    }

    .timeline-container {
        gap: 1rem;
    }

    .timeline-content {
        padding: 0.875rem;
    }

    .cards-grid,
    .curriculum-grid,
    .jobs-container,
    .demo-cards,
    .contact-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .feature-card,
    .curriculum-item,
    .job-category,
    .demo-card,
    .contact-card {
        padding: 1rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .slider-nav {
        display: none;
    }

    .slide {
        position: static;
        opacity: 1;
        transform: none;
        page-break-after: always;
        padding: 2rem;
    }

    .slide-decoration {
        display: none;
    }

    body {
        background: white;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary: #0000ff;
        --text-primary: #000000;
        --bg-primary: #ffffff;
        --border: #000000;
    }

    .nav-btn,
    .cta-button,
    .feature-card,
    .timeline-content {
        border: 2px solid var(--text-primary);
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
        --text-muted: #9ca3af;
        --bg-primary: #111827;
        --bg-secondary: #1f2937;
        --bg-tertiary: #374151;
        --border: #4b5563;
        --border-light: #374151;
    }

    body {
        background: var(--bg-secondary);
    }

    .nav-btn {
        background: var(--primary);
    }

    .feature-card,
    .timeline-content,
    .curriculum-item,
    .job-category,
    .demo-card,
    .contact-card,
    .cta-card,
    .salary-table-wrapper {
        background: var(--bg-primary);
        border: 1px solid var(--border);
    }
}