/* root.css - variables globales y utilidades para todo el sitio */
:root {
  /* Colores principales */
  --color-bg: #0f1724;
  --color-surface: #0b1220;
  --color-primary: #0ea5a4; /* teal */
  --color-primary-600: #08939a;
  --color-accent: #ffb020;
  --color-muted: #94a3b8;
  --color-text: #e6eef8;
  --color-danger: #ef4444;
  --color-success: #10b981;

  /* Tipografía */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, 'Roboto Mono', 'Courier New', monospace;
  --base-font-size: 16px;
  --heading-weight: 700;
  --body-weight: 400;

  /* Espaciado */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;

  /* Bordes y radios */
  --radius-sm: 6px;
  --radius-md: 12px;
  --card-elevation: 0 6px 20px rgba(2,6,23,0.6);

  /* Duraciones de animaciones */
  --anim-fast: 150ms;
  --anim-medium: 350ms;
  --anim-slow: 700ms;

  /* Sombra para focos */
  --focus-ring: 0 0 0 4px rgba(14,165,164,0.15);
}

/* Tipos de letra por defecto (puedes cambiarlos aquí) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

/* Reset ligero y base global */
*{box-sizing:border-box}
html,body{height:100%;}
body{
  margin:0;
  font-family:var(--font-sans);
  font-size:var(--base-font-size);
  color:var(--color-text);
  background:var(--color-bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Enlaces */
a{color:var(--color-primary);text-decoration:none}
a:hover{opacity:0.9}

/* Cabeceras */
h1,h2,h3,h4,h5{color:var(--color-text);font-weight:var(--heading-weight);margin:0 0 var(--space-sm) 0}

/* Contenedores y tarjetas */
.card{
  background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius:var(--radius-md);
  box-shadow:var(--card-elevation);
  padding:var(--space-md);
}

/* Botones comunes */
.btn{display:inline-flex;align-items:center;gap:8px;border:0;padding:10px 14px;border-radius:8px;cursor:pointer;background:var(--color-primary);color:var(--color-bg);transition:all var(--anim-fast) ease}
.btn.secondary{background:transparent;border:1px solid rgba(255,255,255,0.06);color:var(--color-text)}
.btn:focus{outline:none;box-shadow:var(--focus-ring)}

/* Inputs */
input,textarea,select{background:transparent;border:1px solid rgba(255,255,255,0.06);color:var(--color-text);padding:8px;border-radius:6px}
input:focus,textarea:focus,select:focus{outline:none;box-shadow:var(--focus-ring)}

/* Animaciones reutilizables */
@keyframes fadeInUp{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.animate-fade-up{animation:fadeInUp var(--anim-medium) ease both}

/* Helper utilities */
.text-muted{color:var(--color-muted)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Small theme helper to demonstrate changing accent quickly */
.theme-accent{color:var(--color-accent)}

/* ===================================== */
/* Footer - Estilo Cyberpunk Simplificado */
/* ===================================== */
footer, #main-footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 80px !important;
    background: linear-gradient(135deg, #0f151d 0%, #1a2332 50%, #0f151d 100%) !important;
    border-top: 2px solid cyan !important;
    color: cyan !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 30px !important;
    z-index: 999999 !important;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 255, 255, 0.1) !important;
    font-family: 'Segoe UI', sans-serif !important;
    visibility: visible !important;
    opacity: 1 !important;
    backdrop-filter: blur(15px);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, cyan, transparent);
    animation: footerGlow 3s ease-in-out infinite alternate;
}

@keyframes footerGlow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.social-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.social-icons i {
    margin: 0;
    cursor: pointer;
    transition: all 0.4s ease;
    padding: 12px;
    border-radius: 8px;
    font-size: 1.3rem;
    border: 1px solid transparent;
    background: rgba(0, 255, 255, 0.05);
}

.social-icons i:hover {
    color: #00d4aa;
    text-shadow: 0 0 15px #00d4aa;
    background: rgba(0, 212, 170, 0.15);
    border-color: #00d4aa;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 212, 170, 0.3);
}

.social-icons .fab:nth-child(1):hover { /* Twitter */
    color: #1da1f2;
    text-shadow: 0 0 15px #1da1f2;
    background: rgba(29, 161, 242, 0.15);
    border-color: #1da1f2;
}

.social-icons .fab:nth-child(2):hover { /* Instagram */
    color: #e1306c;
    text-shadow: 0 0 15px #e1306c;
    background: rgba(225, 48, 108, 0.15);
    border-color: #e1306c;
}

.social-icons .fab:nth-child(3):hover { /* Vimeo */
    color: #1ab7ea;
    text-shadow: 0 0 15px #1ab7ea;
    background: rgba(26, 183, 234, 0.15);
    border-color: #1ab7ea;
}

.social-icons .fab:nth-child(4):hover { /* GitHub */
    color: #fff;
    text-shadow: 0 0 15px #fff;
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}

.social-icons .fab:nth-child(5):hover { /* GitLab */
    color: #fc6d26;
    text-shadow: 0 0 15px #fc6d26;
    background: rgba(252, 109, 38, 0.15);
    border-color: #fc6d26;
}

footer span {
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
    letter-spacing: 0.5px;
}

/* ===================================== */
/* RESPONSIVE UTILITIES */
/* ===================================== */

/* Breakpoints:
   - Mobile: < 576px
   - Tablet: 576px - 768px
   - Desktop: 768px - 1024px
   - Large: > 1024px
*/

/* Mobile First - Tablet (576px+) */
@media (max-width: 768px) {
    :root {
        --base-font-size: 14px;
        --space-md: 12px;
        --space-lg: 16px;
        --space-xl: 24px;
    }

    body {
        padding-bottom: 100px;
    }

    footer, #main-footer {
        flex-direction: column !important;
        height: auto !important;
        min-height: 80px !important;
        padding: 15px 20px !important;
        gap: 10px;
    }

    footer span {
        font-size: 0.85rem !important;
        text-align: center;
    }

    .social-icons {
        gap: 15px;
    }

    .social-icons i {
        font-size: 1.1rem;
        padding: 8px;
    }
}

/* Small Mobile (< 480px) */
@media (max-width: 480px) {
    :root {
        --base-font-size: 13px;
        --space-md: 10px;
        --space-lg: 14px;
        --space-xl: 20px;
    }

    .social-icons {
        gap: 10px;
    }

    .social-icons i {
        font-size: 1rem;
        padding: 6px;
    }
}

/* Utility classes for responsive design */
.hide-mobile { display: block; }
.show-mobile { display: none; }

@media (max-width: 768px) {
    .hide-mobile { display: none !important; }
    .show-mobile { display: block !important; }
}

/* Container responsive */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-lg);
    }
}

/* End of root.css */
