/* ===========================================
   PORTFOLIO - David Garrido Quiles
   Paleta de colores:
   - Azul primario: #3B82F6
   - Cyan secundario: #06B6D4
   - Fondo oscuro: #0a0e17
   - Fondo claro: #ffffff
   =========================================== */

/* Google Fonts ya importadas en HTML */

/* ===== Variables CSS ===== */
:root {
    /* Colores principales */
    --color-primary: #3B82F6;
    --color-secondary: #06B6D4;
    --color-success: #22c55e;
    
    /* Tema claro */
    --bg-light: #ffffff;
    --bg-light-alt: #f8fafc;
    --text-light: #0f172a;
    --text-light-muted: #64748b;
    --border-light: #e2e8f0;
    --card-light: #ffffff;
    
    /* Tema oscuro */
    --bg-dark: #0a0e17;
    --bg-dark-alt: #0f1623;
    --text-dark: #f8fafc;
    --text-dark-muted: #94a3b8;
    --border-dark: #1e293b;
    --card-dark: #0f1623;
    
    /* Tipografía */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Espaciado */
    --container-max: 1200px;
    --section-padding: 5rem;
    
    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Sombras */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Tema oscuro (por defecto) */
body.dark {
    background-color: var(--bg-dark);
    color: var(--text-dark);
}

/* Tema claro */
body.light {
    background-color: var(--bg-light);
    color: var(--text-light);
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ===== Utilidades ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Header ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
}

header.scrolled {
    box-shadow: var(--shadow-md);
}

body.dark header.scrolled {
    background-color: rgba(10, 14, 23, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-dark);
}

body.light header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: opacity var(--transition-fast);
}

.logo:hover {
    opacity: 0.8;
}

/* Navegación desktop */
.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav-desktop a {
    font-size: 0.875rem;
    font-weight: 500;
    position: relative;
    transition: color var(--transition-fast);
}

body.dark .nav-desktop a {
    color: var(--text-dark-muted);
}

body.light .nav-desktop a {
    color: var(--text-light-muted);
}

.nav-desktop a:hover {
    color: var(--color-primary);
}

.nav-desktop a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-normal);
}

.nav-desktop a:hover::after {
    width: 100%;
}

/* Botón tema */
.theme-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

body.dark .theme-btn {
    color: var(--text-dark);
}

body.light .theme-btn {
    color: var(--text-light);
}

body.dark .theme-btn:hover {
    background-color: var(--border-dark);
}

body.light .theme-btn:hover {
    background-color: var(--border-light);
}

/* Controles móvil */
.nav-mobile-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.menu-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: background-color var(--transition-fast);
}

body.dark .menu-btn {
    color: var(--text-dark);
}

body.light .menu-btn {
    color: var(--text-light);
}

body.dark .menu-btn:hover {
    background-color: var(--border-dark);
}

body.light .menu-btn:hover {
    background-color: var(--border-light);
}

/* Menú móvil */
.nav-mobile {
    position: fixed;
    top: 4rem;
    right: 0;
    width: 16rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal), padding var(--transition-normal);
    border-radius: 0 0 0 1rem;
}

body.dark .nav-mobile {
    background-color: var(--bg-dark-alt);
    border: 1px solid var(--border-dark);
    border-top: none;
}

body.light .nav-mobile {
    background-color: var(--bg-light);
    border: 1px solid var(--border-light);
    border-top: none;
    box-shadow: var(--shadow-lg);
}

.nav-mobile.open {
    max-height: 30rem;
    padding: 1rem 0;
}

.nav-mobile a {
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

body.dark .nav-mobile a {
    color: var(--text-dark-muted);
}

body.light .nav-mobile a {
    color: var(--text-light-muted);
}

.nav-mobile a:hover {
    color: var(--color-primary);
}

body.dark .nav-mobile a:hover {
    background-color: var(--border-dark);
}

body.light .nav-mobile a:hover {
    background-color: var(--border-light);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 4rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

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

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--color-primary);
}

.hero-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--color-primary);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

body.dark .hero-description {
    color: var(--text-dark-muted);
}

body.light .hero-description {
    color: var(--text-light-muted);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding-bottom: 4rem;
}

.scroll-indicator {
    position: relative;
    margin-top: 2rem;
    animation: bounce 2s infinite;
    font-size: 1.5rem;
    text-align: center;
}

body.dark .scroll-indicator {
    color: var(--text-dark-muted);
}

body.light .scroll-indicator {
    color: var(--text-light-muted);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ===== Botones ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-cyan {
    background: var(--color-secondary);
    color: white;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-cyan:hover {
    background: #0891b2;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.btn-outline {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

.btn-email {
    background: linear-gradient(135deg, #ea4335, #fbbc04);
    color: white;
    box-shadow: 0 4px 15px rgba(234, 67, 53, 0.3);
}

.btn-email:hover {
    background: linear-gradient(135deg, #d33426, #e5a800);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 67, 53, 0.4);
}

.btn-full {
    width: 100%;
}

/* ===== Secciones ===== */
.section {
    padding: var(--section-padding) 0;
}

.section-alt {
    position: relative;
}

body.dark .section-alt {
    background-color: var(--bg-dark-alt);
}

body.light .section-alt {
    background-color: var(--bg-light-alt);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.section-divider {
    width: 5rem;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

body.dark .section-subtitle {
    color: var(--text-dark-muted);
}

body.light .section-subtitle {
    color: var(--text-light-muted);
}

/* ===== Sobre Mí ===== */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1rem;
}

body.dark .about-text p {
    color: var(--text-dark-muted);
}

body.light .about-text p {
    color: var(--text-light-muted);
}

/* ===== Habilidades ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.skill-card {
    padding: 1.25rem;
    border-radius: 0.75rem;
    text-align: center;
    transition: all var(--transition-normal);
    cursor: default;
}

body.dark .skill-card {
    background: var(--card-dark);
    border: 1px solid var(--border-dark);
}

body.light .skill-card {
    background: var(--card-light);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.skill-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.skill-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    font-size: 1.5rem;
    color: var(--color-primary);
}

.skill-name {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.skill-level {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 1rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-primary);
}

/* ===== Timeline (Experiencia y Formación) ===== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 0;
}

.timeline-line {
    display: none;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-dot {
    display: none;
}

.timeline-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 0.75rem;
    transition: all var(--transition-normal);
}

body.dark .timeline-card {
    background: var(--card-dark);
    border: 1px solid var(--border-dark);
}

body.light .timeline-card {
    background: var(--card-light);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.timeline-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-xl);
}

.timeline-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-primary);
    font-size: 1.25rem;
}

.timeline-icon-cyan {
    background: rgba(6, 182, 212, 0.1);
    color: var(--color-secondary);
}

.timeline-content {
    flex: 1;
}

.timeline-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.timeline-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
}

.timeline-duration,
.timeline-date {
    font-size: 0.875rem;
}

body.dark .timeline-duration,
body.dark .timeline-date {
    color: var(--text-dark-muted);
}

body.light .timeline-duration,
body.light .timeline-date {
    color: var(--text-light-muted);
}

.timeline-date i {
    margin-right: 0.25rem;
}

.timeline-company {
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.timeline-company-cyan {
    color: var(--color-secondary);
}

.timeline-period {
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

body.dark .timeline-period {
    color: var(--text-dark-muted);
}

body.light .timeline-period {
    color: var(--text-light-muted);
}

.timeline-description {
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

body.dark .timeline-description {
    color: var(--text-dark-muted);
}

body.light .timeline-description {
    color: var(--text-light-muted);
}

.timeline-responsibilities {
    margin-top: 0.5rem;
}

.timeline-responsibilities li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.timeline-responsibilities i {
    color: var(--color-secondary);
    margin-top: 0.25rem;
}

body.dark .timeline-responsibilities span,
body.dark .timeline-responsibilities li {
    color: var(--text-dark-muted);
}

body.light .timeline-responsibilities span,
body.light .timeline-responsibilities li {
    color: var(--text-light-muted);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 1rem;
    margin-top: 0.5rem;
}

.badge-primary {
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--color-success);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

/* ===== Proyectos ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.project-card {
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all var(--transition-normal);
}

body.dark .project-card {
    background: var(--card-dark);
    border: 1px solid var(--border-dark);
}

body.light .project-card {
    background: var(--card-light);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.project-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(6, 182, 212, 0.1));
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transition: color var(--transition-fast);
}

.project-card:hover .project-title {
    color: var(--color-primary);
}

.project-description {
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

body.dark .project-description {
    color: var(--text-dark-muted);
}

body.light .project-description {
    color: var(--text-light-muted);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 1rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-primary);
}

.project-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.project-buttons .btn {
    flex: 1;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
}

/* ===== Contacto ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto 2rem;
}

.contact-card {
    padding: 1.5rem;
    border-radius: 0.75rem;
    transition: all var(--transition-normal);
}

body.dark .contact-card {
    background: var(--card-dark);
    border: 1px solid var(--border-dark);
}

body.light .contact-card {
    background: var(--card-light);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.contact-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.contact-card-cyan:hover {
    border-color: var(--color-secondary);
}

.contact-icon {
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-primary);
    font-size: 2rem;
    margin-bottom: 1rem;
    transition: all var(--transition-normal);
}

.contact-card:hover .contact-icon {
    background: var(--color-primary);
    color: white;
}

.contact-icon-cyan {
    background: rgba(6, 182, 212, 0.1);
    color: var(--color-secondary);
}

.contact-card-cyan:hover .contact-icon-cyan {
    background: var(--color-secondary);
    color: white;
}

.contact-icon-email {
    background: rgba(234, 67, 53, 0.1);
    color: #ea4335;
}

.contact-card-email:hover {
    border-color: #ea4335;
}

.contact-card-email:hover .contact-icon-email {
    background: linear-gradient(135deg, #ea4335, #fbbc04);
    color: white;
}

.contact-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.contact-info p {
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

body.dark .contact-info p {
    color: var(--text-dark-muted);
}

body.light .contact-info p {
    color: var(--text-light-muted);
}

.contact-location {
    text-align: center;
    padding: 2rem;
    border-radius: 0.75rem;
    max-width: 700px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(6, 182, 212, 0.05));
}

body.dark .contact-location {
    border: 1px solid var(--border-dark);
}

body.light .contact-location {
    border: 1px solid var(--border-light);
}

.contact-location i {
    margin-right: 0.5rem;
}

.contact-location span {
    font-weight: 500;
}

.contact-location p {
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

body.dark .contact-location p {
    color: var(--text-dark-muted);
}

body.light .contact-location p {
    color: var(--text-light-muted);
}

/* ===== Footer ===== */
footer {
    padding: 2rem 0;
}

body.dark footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-dark);
}

body.light footer {
    background: var(--bg-light);
    border-top: 1px solid var(--border-light);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer-name {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.footer-info p {
    font-size: 0.875rem;
}

body.dark .footer-info p {
    color: var(--text-dark-muted);
}

body.light .footer-info p {
    color: var(--text-light-muted);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-size: 1.25rem;
    transition: all var(--transition-normal);
}

body.dark .footer-social a {
    background: var(--border-dark);
    color: var(--text-dark);
}

body.light .footer-social a {
    background: var(--border-light);
    color: var(--text-light);
}

.footer-social a:first-child:hover {
    background: var(--color-primary);
    color: white;
    transform: scale(1.1);
}

.footer-social a:last-child:hover {
    background: var(--color-secondary);
    color: white;
    transform: scale(1.1);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
}

body.dark .footer-bottom {
    border-top: 1px solid var(--border-dark);
    color: var(--text-dark-muted);
}

body.light .footer-bottom {
    border-top: 1px solid var(--border-light);
    color: var(--text-light-muted);
}

/* ===== Media Queries ===== */

/* Tablet */
@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
    
    .nav-mobile-controls {
        display: none;
    }
    
    .hero-buttons {
        flex-direction: row;
    }
    
    .hero-photo {
        width: 180px;
        height: 180px;
    }
    
    .timeline {
        padding-left: 5rem;
    }
    
    .timeline-line {
        display: block;
        position: absolute;
        left: 2rem;
        top: 0;
        bottom: 0;
        width: 3px;
        background: linear-gradient(to bottom, var(--color-primary), var(--color-secondary));
        border-radius: 2px;
    }
    
    .timeline-line-cyan {
        background: linear-gradient(to bottom, var(--color-secondary), var(--color-primary));
    }
    
    .timeline-dot {
        display: block;
        position: absolute;
        left: -4.5rem;
        top: 2rem;
        width: 1rem;
        height: 1rem;
        border-radius: 50%;
        background: var(--color-primary);
    }
    
    body.dark .timeline-dot {
        border: 4px solid var(--bg-dark-alt);
    }
    
    body.light .timeline-dot {
        border: 4px solid var(--bg-light-alt);
    }
    
    .timeline-dot-cyan {
        background: var(--color-secondary);
    }
    
    .timeline-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .footer-info {
        text-align: left;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .hero-photo {
        width: 200px;
        height: 200px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Reducir movimiento para usuarios que lo prefieran */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}