@import "sections/nav.css";
@import "sections/hero.css";
@import "sections/services.css";
@import "sections/projects.css";
@import "sections/experience.css";
@import "sections/education.css";
@import "sections/contact.css";
@import "sections/skills.css";



/* ===================================
   DESKTOP-FIRST Design (1280px+)
   =================================== */

/* Variables CSS */
:root {
    /* Light Theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --border: #c3cad1;

    /* Colores Vibrantes */
    --gradient-start: #0066ff;
    --gradient-mid: #00d4ff;
    --gradient-end: #ff00ff;
    --accent: #0066ff;

    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 40px rgba(0, 102, 255, 0.4);
    --shadow-glow-pink: 0 0 40px rgba(255, 0, 255, 0.3);
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-primary: #0a0e27;
    --bg-secondary: #111827;
    --bg-card: #1a1f3a;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border: #334155;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 60px rgba(0, 102, 255, 0.6);
    --shadow-glow-pink: 0 0 60px rgba(255, 0, 255, 0.4);
}

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-width: 320px;
    /* Changed from 1280px to allow mobile */
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Typography */
.font-inter {
    font-family: 'Inter', sans-serif;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Utility */
.hidden {
    display: none !important;
}

/* =================================
   SECTIONS
   ================================= */
.section {
    padding: 4rem 0;
    position: relative;
}

.section.alt {
    background: var(--bg-secondary);
}

.section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin: 1rem 0;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

/* =================================
   CAROUSEL TRACK & LAYOUT
   ================================= */
.carousel-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    width: 100%;
    margin: 3rem 0;
    padding: 1rem 0;
}

.services-track-container {
    overflow: hidden;
    width: 100%;
    padding: 2rem;
    /* Espacio vertical base */
}

.services-track,
.projects-track,
.experience-track {
    display: flex;
    gap: 2rem;
    padding: 2.5rem 1rem;
    /* Padding generoso para el hover */
    margin: -2.5rem -1rem;
    /* Margen negativo para compensar el padding visualmente */
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.services-track::-webkit-scrollbar,
.projects-track::-webkit-scrollbar,
.experience-track::-webkit-scrollbar {
    display: none;
}

/* Cálculo exacto para 3 columnas en escritorio */
.services-track .service-card,
.experience-track .service-card {
    min-width: 300px;
    flex: 0 0 calc(33.333% - 1.33rem);
    /* (100% - 2 gaps de 2rem) / 3 items */
    scroll-snap-align: start;
}

.projects-track {
    gap: 2.5rem;
    /* Espacio equilibrado */
}

/* Proyectos: 2 columnas */
.projects-track .solution-card {
    min-width: 300px;
    flex: 0 0 calc(50% - 1.25rem);
    /* Ajustado para gap de 2.5rem */
    scroll-snap-align: start;
    height: auto;
    margin: 0;
}

/* Botones de Navegación */
.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.4);
}

/* Estilos de tarjetas movidos a:
   - assets/css/sections/services.css
   - assets/css/sections/projects.css
   - assets/css/sections/experience.css
*/

/* =================================
   FOOTER
   ================================= */
.footer {
    background: var(--bg-secondary);
    border-top: 2px solid var(--border);
    padding: 3rem 0 2rem;
}

[data-theme="dark"] .footer {
    border-top-color: rgba(0, 102, 255, 0.3);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-top: 1rem;
}

.footer-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.4s ease;
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
    color: white;
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-glow);
    border-color: transparent;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ===================================
   RESPONSIVE MEDIA QUERIES
   =================================== */

/* Tablet (768px - 1279px) */
@media (max-width: 1279px) and (min-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 0 1.5rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-visual {
        height: 450px;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-container {
        padding: 0 1.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    /* Carousel: 1 Card at a time */
    .services-track .service-card,
    .projects-track .solution-card,
    .experience-track .service-card {
        flex: 0 0 100%;
        /* Ocupa todo el ancho disponible */
        scroll-snap-align: center;
        /* Centrar la tarjeta al deslizar */
    }
}

/* Estilos de Tech Stack movidos a assets/css/sections/skills.css */

/* Mobile (Less than 768px) */
@media (max-width: 767px) {
    body {
        min-width: auto;
        width: 100%;
    }

   

    .logo-text {
        font-size: 1.25rem;
    }

    /* Hero */
    .hero {
        padding-top: 100px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .hero-visual {
        height: 300px;
    }

    /* Sections */
    .section {
        padding: 2rem 0;
    }

    .section-container {
        padding: 0 1rem;
    }

    .section-title {
        font-size: 1.875rem;
    }

    /* Carousel Mobile - Disable Carousel, Stack Vertically */
    .carousel-btn {
        display: none;
    }

    .services-track-container {
        overflow: visible;
        /* Allow content to flow naturally */
        padding: 0;
    }

    .services-track,
    .projects-track,
    .experience-track {
        display: grid;
        /* Change from flex to grid */
        grid-template-columns: 1fr;
        /* Single column */
        gap: 1.5rem;
        /* Space between cards */
        overflow-x: visible;
        /* Disable horizontal scroll */
        scroll-snap-type: none;
        /* Disable snap */
        padding: 0;
        /* Remove padding */
        margin: 0;
        /* Reset margin */
    }

    .services-track .service-card,
    .projects-track .solution-card,
    .experience-track .service-card {
        min-width: 0;
        /* Reset min-width */
        flex: none;
        /* Reset flex */
        width: 100%;
        /* Full width */
        scroll-snap-align: none;
        padding: 1.5rem;
        /* Reduce padding on mobile */
    }

    /* Other Grids */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .tech-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Contact */
    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 1rem;
    }

    .footer-col:first-child {
        grid-column: span 2;
        text-align: center;
    }

    .footer-col:last-child {
        grid-column: span 2;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Extra Small Mobile */
@media (max-width: 479px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.625rem;
    }
}