@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Anton&display=swap');


/* All-Out Attack Animation */
#allOutAttack {
  position: fixed;
  inset: 0;
  background: var(--primary, #ff003c);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 9999;
  overflow: hidden;
  animation: fadeOut 1s ease 3s forwards;
}

/* Fondo tipo explosión diagonal */
.aoa-bg {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(0, 0, 0, 0.2) 0 10px,
    transparent 10px 20px
  );
  animation: bgMove 1s linear infinite;
}

@keyframes bgMove {
  from { background-position: 0 0; }
  to { background-position: 100px 100px; }
}

/* Texto tipo cómic */
.aoa-text {
  font-family: 'Bangers', sans-serif;
  font-size: 4rem;
  color: white;
  text-shadow: 4px 4px 0 black, -4px -4px 0 black;
  z-index: 2;
  transform: scale(0) rotate(-15deg);
  animation: popIn 0.8s ease-out forwards 0.5s;
}

@keyframes popIn {
  0% { transform: scale(0) rotate(-15deg); opacity: 0; }
  80% { transform: scale(1.1) rotate(5deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); }
}

/* Desvanecimiento total */
@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}


* {
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

/* ============================================
   VARIABLES CSS: Colores estilo Persona 5
   ============================================ */
:root {
    /* Colores de fondo */
    --bg: #0a0a0a;              /* Negro profundo */
    --panel: #1a1a1a;           /* Panel oscuro */
    --panel-light: #252525;     /* Panel gris oscuro */
    
    /* Colores de texto */
    --muted: #8a8a8a;           /* Texto secundario gris */
    --text: #e8e8e8;            /* Texto principal blanco-gris */
    --accent: #d4d4d4;          /* Texto con énfasis */
    --accent-bright: #ffffff;   /* Texto blanco puro */
    
    /* Colores de marca - Rojo Persona 5 */
    --primary: #e60012;         /* Rojo intenso característico */
    --primary-hover: #c20010;   /* Rojo oscuro al hover */
    --primary-dark: #a30010;    /* Rojo muy oscuro */
    --success: #ff6b6b;         /* Rojo-rosa para éxitos */
    --accent-red: #ff0033;      /* Rojo brillante */
    
    /* Espaciados y medidas */
    --gap: 28px;
    --radius: 8px;
    --radius-sm: 4px;
    
    /* Animaciones */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET: Elimina estilos por defecto del navegador
   ============================================ */
* {
    box-sizing: border-box;  /* Incluye padding y border en el ancho total */
    margin: 0;               /* Elimina márgenes por defecto */
    padding: 0;              /* Elimina padding por defecto */
}

/* ============================================
   CONFIGURACIÓN BASE DEL HTML
   ============================================ */
html {
    scroll-behavior: smooth;  /* Desplazamiento suave al hacer clic en enlaces */
    font-size: 16px;         /* Tamaño base de fuente */
}

html,
body {
    height: 100%;  /* Altura completa de la ventana */
}

/* ============================================
   ESTILOS DEL BODY
   ============================================ */
body {
    background: var(--bg);              /* Color de fondo oscuro */
    color: var(--text);                 /* Color de texto principal */
    font-family: 'Space Mono', monospace;  /* Fuente monoespaciada */
    -webkit-font-smoothing: antialiased;   /* Suaviza fuentes en WebKit */
    -moz-osx-font-smoothing: grayscale;    /* Suaviza fuentes en Firefox */
    padding: 20px;                      /* Espacio alrededor del contenido */
    line-height: 1.6;                   /* Altura de línea para legibilidad */
    background-image:
    radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px),
    repeating-linear-gradient(135deg, rgba(230,0,18,0.1) 0 2px, transparent 2px 8px);
  background-size: 8px 8px, 10px 10px;
}

body.persona3 {
  --bg: #0b1a3d;
  --text: #e0f0ff;
  --primary: #00aaff;
  --accent: #0050b8;
}

body.persona4 {
  --bg: #1a1a00;
  --text: #fff;
  --primary: #ffd300;
  --accent: #ff8800;
}

/* ============================================
   HEADER Y NAVEGACIÓN
   ============================================ */
.main-header {
    max-width: 900px;        /* Ancho máximo del header */
    margin: 0 auto 30px;     /* Centrado horizontal + espacio abajo */
    padding: 20px 0;         /* Espacio arriba y abajo */
    
}

.nav-container {
    display: flex;           /* Flexbox para alinear enlaces */
    gap: 24px;              /* Espacio entre enlaces */
    justify-content: center; /* Centra los enlaces */
    flex-wrap: wrap;        /* Permite que se envuelvan en pantallas pequeñas */
}

.nav-link {
    color: var(--muted);           /* Color gris apagado */
    text-decoration: none;         /* Sin subrayado */
    font-size: 13px;              /* Tamaño de fuente pequeño */
    letter-spacing: 0.5px;        /* Espaciado entre letras */
    transition: var(--transition); /* Animación suave */
    position: relative;            /* Para posicionar el ::after */
    padding: 4px 0;               /* Espacio arriba y abajo */
}

.nav-link:hover {
    color: var(--accent-bright);  /* Cambia a blanco al pasar el mouse */
}

/* Línea animada debajo del enlace */
.nav-link::after {
    content: '';                    /* Elemento vacío */
    position: absolute;             /* Posicionamiento absoluto */
    bottom: 0;                      /* Pegado al fondo */
    left: 0;                        /* Alineado a la izquierda */
    width: 0;                       /* Comienza sin ancho */
    height: 2px;                    /* Altura de la línea */
    background: var(--primary);     /* Color azul */
    transition: width 0.3s ease;    /* Animación del ancho */
}

.nav-link:hover::after {
    width: 100%;  /* Se expande al 100% al pasar el mouse */
}

/* ============================================
   CARD PRINCIPAL (Contenedor del portfolio)
   ============================================ */
.card {
    width: 90%;
    max-width: 915px;              /* Ancho máximo */
    margin: 0 auto;                /* Centrado horizontal */
    padding: 48px;                 /* Espacio interno */
    
    
    /* Gradiente sutil de fondo */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    
    border-radius: var(--radius);  /* Bordes redondeados */
    
    /* Grid de 2 columnas: sidebar (240px) + contenido (resto) */
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 56px;                     /* Espacio entre columnas */
    
    /* Sombra para dar profundidad */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    
    min-height: 600px;             /* Altura mínima */
    border: 1px solid rgba(255, 255, 255, 0.05);  /* Borde sutil */

    
}

.card:hover {
  box-shadow: 0 0 15px rgba(230, 0, 18, 0.5);
  transform: translateY(-4px);
}


/* ============================================
   SIDEBAR (Barra lateral)
   ============================================ */
.sidebar {
    display: flex;              /* Flexbox vertical */
    flex-direction: column;     /* Elementos en columna */
    gap: var(--gap);           /* Espacio entre secciones */
    position: sticky;           /* Se queda fijo al hacer scroll */
    top: 20px;                 /* Distancia desde arriba */
    height: fit-content;       /* Altura ajustada al contenido */
}

/* ============================================
   SECCIÓN DE PERFIL
   ============================================ */
.profile-section {
    display: flex;
    flex-direction: column;
    gap: 12px;  /* Espacio entre elementos */
}

/* Avatar circular con icono */
.avatar {
    width: 100px;          /* ajusta el tamaño que desees */
    height: 100px;
    border-radius: 50%;    /* hace el contenedor circular */
    overflow: hidden;      /* recorta la imagen a un círculo */
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #ccc;
    width: 80px;
    height: 80px;
    border-radius: 50%;  /* Hace el círculo */
    
    /* Gradiente azul */
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    
    display: flex;
    align-items: center;      /* Centra verticalmente */
    justify-content: center;  /* Centra horizontalmente */
    
    font-size: 28px;         /* Tamaño del icono */
    font-weight: 700;        /* Negrita */
    color: var(--accent-bright);  /* Color blanco */
    margin-bottom: 8px;      /* Espacio abajo */
    
    /* Sombra azul brillante */
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
}

/* Nombre */
.name {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-bright);
    line-height: 1.2;  /* Altura de línea ajustada */
}

/* Rol/Profesión */
.role {
    font-size: 14px;
    color: var(--primary);  /* Color azul */
    font-weight: 700;
    margin-bottom: 4px;
}

/* Información de contacto */
.contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
}

.contact a {
    color: var(--muted);
    text-decoration: none;
    transition: var(--transition);
}

.contact a:hover {
    color: var(--primary);  /* Cambia a azul al pasar el mouse */
}

/* ============================================
   REDES SOCIALES
   ============================================ */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--panel-light);
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    color: var(--muted);
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-link:hover {
    background: var(--primary);      /* Fondo azul */
    color: var(--accent-bright);     /* Texto blanco */
    transform: translateY(-2px);     /* Se eleva ligeramente */
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);  /* Sombra azul */
}

/* ============================================
   ETIQUETAS DECORATIVAS
   ============================================ */
.labels {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
    width: 100%;
}

.label {
    writing-mode: vertical-rl;  /* Texto vertical */
    transform: rotate(180deg);  /* Rota el texto */
    color: var(--muted);
    letter-spacing: 4px;
    font-size: 11px;
    text-transform: uppercase;  /* Mayúsculas */
    opacity: 0.5;              /* Semi-transparente */
}

/* ============================================
   ICONOS EN ELEMENTOS
   ============================================ */
/* Iconos en navegación */
.nav-link i {
    margin-right: 6px;
    font-size: 12px;
}

/* Icono del avatar */
.avatar i {
    font-size: 32px;
}

/* Iconos en contacto */
.contact i {
    margin-right: 6px;
    font-size: 11px;
    color: var(--primary);
}

/* Iconos en redes sociales */
.social-link i {
    font-size: 14px;
}

/* Iconos en etiquetas */
.label i {
    margin-bottom: 8px;
    font-size: 14px;
}

/* ============================================
   RESPONSIVE: Adaptación a pantallas pequeñas
   ============================================ */
@media (max-width: 860px) {
    /* En tablets y móviles, cambia a una sola columna */
    .card {
        grid-template-columns: 1fr;
        padding: 32px;
        gap: 32px;
    }

    /* El sidebar ya no es sticky */
    .sidebar {
        position: static;
    }

    /* Las etiquetas se muestran horizontalmente */
    .labels {
        flex-direction: row;
        gap: 16px;
        justify-content: flex-start;
        flex-wrap: wrap;
        margin-top: 24px;
    }

    .label {
        writing-mode: horizontal-tb;  /* Texto horizontal */
        transform: none;              /* Sin rotación */
    }

    /* Navegación más compacta */
    .nav-container {
        gap: 16px;
    }

    .nav-link {
        font-size: 12px;
    }
}

@media (max-width: 600px) {
    /* En móviles pequeños */
    body {
        padding: 12px;
    }

    .card {
        padding: 24px;
    }

    .card:hover {
  box-shadow: 0 0 15px rgba(230, 0, 18, 0.5);
  transform: translateY(-4px);
}


    .main-header {
        margin-bottom: 20px;
    }
}


/* ============================================
   SECCIÓN: SOBRE MÍ
   ============================================ */

.comic-title {
  font-family: 'Bangers', sans-serif;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 2px 2px 0 #000; /* sombra más sutil */
  letter-spacing: 1.5px;
  display: inline-block;
  transform: skew(-4deg) rotate(-1deg);
  background: var(--primary);
  padding: 0.2em 0.45em; /* 🔹 reduce espacio interno */
  font-size: 1.6rem; /* 🔹 controla el tamaño total del texto */
  margin-bottom: 0.5em; /* 🔹 separa el título del contenido inferior */
}

.comic-title:hover {
    animation: glitch 0.4s steps(3, end) infinite;
  text-shadow:
    3px 3px 0 #ff0055,
    -3px -3px 0 #00ffff;
}

.content {
    padding-top: 4px;  /* Pequeño espacio arriba */
}

.section {
    margin-bottom: 48px;  /* Espacio entre secciones */
}

/* Título de sección principal */
.section-title-main {
    color: var(--accent-bright);  /* Blanco brillante */
    margin: 0 0 24px 0;
    font-family: 'Bangers', 'Anton', sans-serif;;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 3px 3px 0 #000, -1px -1px 0 #000;
    font-size: 18px;
    font-weight: 700;
    position: relative;           /* Para posicionar el ::after */
    padding-bottom: 12px;
}

.section-title-main:hover {
  text-shadow: 0 0 10px rgba(230, 0, 18, 0.8);
}


/* Línea decorativa debajo del título */
.section-title-main::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;              /* Ancho de la línea */
    height: 3px;              /* Grosor de la línea */
    background: var(--primary);  /* Color azul */
    border-radius: 2px;       /* Bordes redondeados */
}

/* Iconos en títulos de sección */
.section-title-main i {
    margin-right: 8px;
    color: var(--primary);
}

/* Texto de presentación */
.about-text {
    color: var(--muted);      /* Gris apagado */
    line-height: 1.7;         /* Altura de línea para legibilidad */
    font-size: 14px;
    max-width: 500px;         /* Ancho máximo para mejor lectura */
}

/* Iconos de comillas */
.quote-icon {
    color: var(--primary);
    opacity: 0.3;             /* Semi-transparente */
    font-size: 12px;
    margin: 0 4px;
}

/* ============================================
   HIGHLIGHTS: Logros destacados en grid
   ============================================ */
.highlights {
    /* Grid responsive: mínimo 150px, máximo 1fr (fracción disponible) */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 26px;
    margin-top: 24px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--panel-light);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);  /* Animación suave */
    
}

/* Efecto hover en highlights */
.highlight-item:hover {
    transform: translateY(-2px);  /* Se eleva ligeramente */
    border-color: rgba(74, 158, 255, 0.3);  /* Borde azul */
}

/* Icono del highlight */
.highlight-item i {
    font-size: 24px;
    color: var(--primary);
}

/* Contenedor de texto */
.highlight-item div {
    display: flex;
    flex-direction: column;
}

/* Número o texto principal */
.highlight-item strong {
    color: var(--accent-bright);
    font-size: 18px;
    line-height: 1;
    margin-bottom: 4px;
}

/* Descripción */
.highlight-item span {
    color: var(--muted);
    font-size: 11px;
}

/* ============================================
   SECCIÓN: EXPERIENCIA/LOGROS
   ============================================ */
.job {
    margin-bottom: 32px;
    padding: 24px;
    background: var(--panel-light);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    
}

/* Efecto hover en tarjetas de trabajo */
.job:hover {
    border-color: rgba(74, 158, 255, 0.3);  /* Borde azul */
    transform: translateX(4px);              /* Se mueve a la derecha */
}

/* Header del trabajo/logro */
.job-header {
    display: flex;
    justify-content: space-between;  /* Título a la izq, fecha a la der */
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;                 /* Se envuelve en pantallas pequeñas */
    gap: 8px;
}

/* Título del puesto/logro */
.job-title {
    font-weight: 700;
    color: var(--accent-bright);
    font-size: 15px;
    display: block;
    margin-bottom: 4px;
}

/* Iconos en título y empresa */
.job-title i,
.company i {
    margin-right: 6px;
    font-size: 13px;
}

/* Nombre de la empresa */
.company {
    font-weight: 700;
    color: var(--primary);  /* Azul */
    font-size: 14px;
}

/* Fechas */
.dates {
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;  /* No se rompe en varias líneas */
}

.dates i {
    margin-right: 4px;
}

/* Descripción del trabajo */
.job-description {
    color: var(--muted);
    line-height: 1.6;
    font-size: 13px;
    margin-bottom: 12px;
}

/* ============================================
   LISTA DE LOGROS/ACHIEVEMENTS
   ============================================ */
.achievements {
    list-style: none;  /* Sin viñetas por defecto */
    margin: 16px 0;
    padding: 0;
}

.achievements li {
    color: var(--muted);
    font-size: 13px;
    padding-left: 24px;      /* Espacio para el icono */
    position: relative;       /* Para posicionar el icono */
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Icono personalizado como viñeta */
.achievements li i {
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 12px;
    top: 2px;  /* Ajuste vertical */
}

/* ============================================
   TAGS: Etiquetas de tecnologías/habilidades
   ============================================ */
.tags {
    display: flex;
    flex-wrap: wrap;  /* Se envuelven en varias líneas si es necesario */
    gap: 8px;
    margin-top: 16px;
    text-decoration: none; /* ❌ Quita el subrayado */
    color: inherit;
}

.tag {
    background: rgba(74, 158, 255, 0.1);  /* Fondo azul semi-transparente */
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 12px;  /* Bordes muy redondeados (píldora) */
    font-size: 11px;
    font-weight: 700;
    border: 1px solid rgba(74, 158, 255, 0.2);
    transition: var(--transition);
    text-decoration: none; /* ❌ Quita el subrayado */
}

/* Icono en tag */
.tag i {
    margin-right: 4px;
    font-size: 10px;
}

/* Efecto hover en tags */
.tag:hover {
    background: rgba(74, 158, 255, 0.2);
    transform: translateY(-1px);
}

/* ============================================
   ANIMACIONES
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);  /* Comienza abajo */
    }
    to {
        opacity: 1;
        transform: translateY(0);     /* Termina en posición normal */
    }
}

/* Aplica animación a las secciones */
.section {
    animation: fadeIn 0.6s ease-out;
}

/* ============================================
   RESPONSIVE: Adaptaciones para móviles
   ============================================ */
@media (max-width: 860px) {
    .highlights {
        grid-template-columns: 1fr;  /* Una sola columna */
    }

    .job-header {
        flex-direction: column;  /* Título y fecha en columna */
    }
}

@media (max-width: 600px) {
    .highlight-item {
        padding: 12px;
    }

    .highlight-item i {
        font-size: 20px;
    }
}


/* ============================================
   SECCIÓN: PROYECTOS
   ============================================ */
.project-card {
    background: var(--panel-light);
    padding: 24px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    animation: comicIn 0.6s ease-out forwards;
    box-shadow: 6px 6px 0 #000;
}

/* Efecto hover en tarjetas de proyecto */
.project-card:hover {
    border-color: rgba(74, 158, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);  /* Sombra más pronunciada */
}

/* Header del proyecto */
.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
    animation: comicIn 0.6s ease-out forwards;
    box-shadow: 6px 6px 0 #000;
}

/* Título del proyecto */
.project-title {
    color: var(--accent-bright);
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

/* Año del proyecto */
.project-year {
    color: var(--muted);
    font-size: 12px;
}

/* Descripción del proyecto */
.project-description {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* ============================================
   ESTADÍSTICAS DEL PROYECTO
   ============================================ */
.project-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Icono de estadística */
.stat-icon {
    color: var(--primary);
    font-size: 16px;
    margin-bottom: 4px;
}

/* Valor de la estadística */
.stat-value {
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

/* Etiqueta de la estadística */
.stat-label {
    color: var(--muted);
    font-size: 11px;
}

/* ============================================
   LISTA DE CARACTERÍSTICAS
   ============================================ */
.features-list {
    margin-top: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);  /* Fondo sutil */
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.features-list h4 {
    color: var(--accent);
    font-size: 13px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.features-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    color: var(--muted);
    font-size: 12px;
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
    line-height: 1.5;
}

/* Icono como viñeta */
.features-list li i {
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 11px;
    top: 8px;
}

/* ============================================
   ENLACES DEL PROYECTO
   ============================================ */
.project-links {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.project-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.project-link:hover {
    color: var(--primary-hover);
    gap: 8px;  /* Aumenta el espacio al hacer hover */
}

.project-link i {
    font-size: 11px;
}

/* ============================================
   ANIMACIONES PARA PROYECTOS
   ============================================ */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card {
    animation: slideInUp 0.6s ease-out;
}

/* Retraso en animación para cada proyecto */
.project-card:nth-child(2) {
    animation-delay: 0.1s;
}

.project-card:nth-child(3) {
    animation-delay: 0.2s;
}

/* Animación del icono al hacer hover */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

.project-card:hover .project-title i {
    animation: float 1s ease-in-out infinite;
}

/* ============================================
   RESPONSIVE: Proyectos
   ============================================ */
@media (max-width: 860px) {
    .project-stats {
        gap: 16px;
    }
    
    .features-list {
        padding: 12px;
    }
}

@media (max-width: 600px) {
    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .project-links {
        flex-direction: column;
    }
    
    .project-link {
        text-align: center;
    }
}


/* ============================================
   LAYOUT DE DOS COLUMNAS
   ============================================ */
.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;  /* Dos columnas iguales */
    gap: 32px;
    margin-bottom: 48px;
}

/* ============================================
   SECCIÓN: EDUCACIÓN
   ============================================ */
.education-item {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.education-item:last-of-type {
    border-bottom: none;  /* Último elemento sin borde */
}

/* Nombre de la escuela */
.education-school {
    color: var(--accent-bright);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
}

/* Título del grado */
.education-degree {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 4px;
}

/* Año de estudio */
.education-year {
    color: var(--muted);
    font-size: 12px;
    opacity: 0.7;
}

/* Iconos en educación */
.education-school i,
.education-degree i,
.education-year i {
    margin-right: 6px;
    color: var(--primary);
    font-size: 12px;
}

/* Descripción de la educación */
.education-description {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
    margin-top: 8px;
    padding-left: 24px;
}

/* ============================================
   CERTIFICACIONES
   ============================================ */
.certifications {
    margin-top: 24px;
}

.subsection-title {
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
}

.subsection-title i {
    margin-right: 6px;
    color: var(--primary);
    font-size: 13px;
}

.cert-list {
    list-style: none;
    padding: 0;
}

.cert-list li {
    color: var(--muted);
    font-size: 13px;
    padding-left: 16px;
    position: relative;
    margin-bottom: 8px;
}

.cert-list li i {
    margin-right: 8px;
    color: var(--success);  /* Verde para certificaciones */
    font-size: 14px;
}

/* Año de certificación */
.cert-year {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-top: 2px;
    opacity: 0.7;
}

/* ============================================
   SECCIÓN: HABILIDADES
   ============================================ */
.skill-category {
    margin-bottom: 24px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: var(--panel);
    color: var(--accent);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
}

.skill-tag:hover {
    background: var(--panel-light);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px) rotate(2deg);  /* Efecto divertido */
}

.skill-tag i {
    margin-right: 6px;
    font-size: 11px;
}

/* Animación del icono al hacer hover */
.skill-tag:hover i {
    transform: scale(1.2);
    transition: transform 0.2s ease;
}

/* ============================================
   SECCIÓN: CONTACTO
   ============================================ */
.contact-text {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 600px;
}

.contact-text i {
    color: var(--primary);
    margin-right: 6px;
}

/* Botones de contacto */
.contact-methods {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.contact-button {
    padding: 12px 24px;
    background: var(--primary);
    color: var(--accent-bright);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    transition: var(--transition);
    border: 2px solid var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.contact-button:hover {
    background: var(--primary-hover);
    transform: scale(1.03);
    box-shadow: 0 0 10px rgba(230, 0, 18, 0.6),
              0 0 20px rgba(230, 0, 18, 0.3);
}

.contact-button i {
    font-size: 12px;
}

.contact-button i:hover {
    background: var(--primary-hover);
    transform: scale(1.03);
    box-shadow: 0 0 10px rgba(230, 0, 18, 0.6),
              0 0 20px rgba(230, 0, 18, 0.3);
              
}

/* Botón secundario (outline) */
.contact-button.secondary {
    background: transparent;
    color: var(--primary);
}

.contact-button.secondary:hover {
    background: var(--primary);
    color: var(--accent-bright);
     transform: scale(1.03);
    box-shadow: 0 0 10px rgba(230, 0, 18, 0.6),
              0 0 20px rgba(230, 0, 18, 0.3);
              
}

/* Animación del icono al hacer hover */
.contact-button:hover i {
    transform: translateX(3px);
    transition: transform 0.3s ease;
    
}

/* ============================================
   GRID DE INFORMACIÓN DE CONTACTO
   ============================================ */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--panel-light);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info-item i {
    font-size: 20px;
    color: var(--primary);
    margin-top: 2px;
}

.contact-info-item div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-info-item strong {
    color: var(--accent-bright);
    font-size: 13px;
}

.contact-info-item span {
    color: var(--muted);
    font-size: 12px;
}

/* ============================================
   SECCIÓN CTA (Call To Action)
   ============================================ */
.cta-section {
    margin-top: 40px;
    padding: 24px;
    background: var(--panel-light);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-section h3 {
    color: var(--accent-bright);
    font-size: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.cta-item {
    text-align: center;
    padding: 16px;
    background: var(--panel);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.cta-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.cta-item i {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 12px;
    display: block;
}

.cta-item h4 {
    color: var(--accent-bright);
    font-size: 14px;
    margin-bottom: 8px;
}

.cta-item p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

/* Redes sociales en el footer */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--panel-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--accent-bright);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
}

.footer-social a i {
    font-size: 16px;
}

/* Animación de rotación al hacer hover */
.social-link:hover i {
    transform: rotate(360deg);
    transition: transform 0.5s ease;
}

/* Texto del footer */
.footer p {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 8px;
}

.footer i {
    margin: 0 4px;
}

/* Corazón animado */
.footer .fa-heart {
    color: #ff4757;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1);
    }
}

/* Nota del footer */
.footer-note {
    opacity: 0.6;
    font-size: 11px;
}

/* Enlaces del footer */
.footer-links {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 11px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-links span {
    color: var(--muted);
    opacity: 0.5;
}

/* ============================================
   SCROLL PERSONALIZADO
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--panel-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--muted);
}

/* ============================================
   ACCESIBILIDAD: Estados de enfoque
   ============================================ */
a:focus,
button:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ============================================
   RESPONSIVE: Adaptaciones finales
   ============================================ */
@media (max-width: 860px) {
    .two-cols {
        grid-template-columns: 1fr;  /* Una sola columna */
    }
    
    .cta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .cta-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-methods {
        flex-direction: column;
    }
    
    .contact-button {
        text-align: center;
        justify-content: center;
    }
    
    .footer-social a {
        width: 36px;
        height: 36px;
    }
    
    .footer-social a i {
        font-size: 14px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 8px;
    }
    
    .footer-links span {
        display: none;  /* Oculta los separadores en móvil */
    }
}

/* ============================================
   MODO IMPRESIÓN
   ============================================ */
@media print {
    body {
        background: white;
        color: black;
        padding: 0;
    }

    .card {
        box-shadow: none;
        border: none;
        max-width: 100%;
    }

    .card:hover {
  box-shadow: 0 0 15px rgba(230, 0, 18, 0.5);
  transform: translateY(-4px);
}


    .main-header,
    .social-links,
    .contact-button,
    .labels,
    .cta-section {
        display: none;  /* Oculta elementos no necesarios para imprimir */
    }

    .sidebar {
        position: static;
    }

    .job,
    .project-card {
        page-break-inside: avoid;  /* Evita cortar elementos entre páginas */
    }
}

@keyframes glitch {
  0% { clip-path: inset(0 0 0 0); transform: translate(0); }
  20% { clip-path: inset(0 0 10% 0); transform: translate(-3px, 3px); }
  40% { clip-path: inset(10% 0 0 0); transform: translate(3px, -3px); }
  60% { clip-path: inset(0 0 5% 0); transform: translate(-2px, 2px); }
  80% { clip-path: inset(5% 0 0 0); transform: translate(2px, -2px); }
  100% { clip-path: inset(0 0 0 0); transform: translate(0); }
}

@keyframes comicIn {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-10deg) skew(-5deg);
    filter: brightness(0.3);
  }
  60% {
    opacity: 1;
    transform: scale(1.05) rotate(2deg);
    filter: brightness(1.2);
  }
  80% {
    transform: scale(0.95) rotate(-1deg);
  }
  100% {
    transform: scale(1) rotate(0);
    filter: brightness(1);
  }
}

.mode-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  background: var(--primary);
  color: var(--text);
  border: 2px solid rgba(255,255,255,0.06);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}
.mode-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,0.6); }

.lang-btn {
  position: fixed;
  bottom: 70px; /* un poco arriba del botón de modo */
  right: 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 15px;
  font-family: 'Space Mono', monospace;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 100, 255, 0.6);
  transition: all 0.3s ease;
  z-index: 9999;
}

.lang-btn:hover {
  background: #42a5f5;
  transform: scale(1.1);
}

/* Panel dinámico con bordes diagonales animados tipo Persona */
.panel-anim {
  background: var(--bg, #0b0b0b);
  border: 3px solid var(--accent, #ff003c);
  padding: 1.5rem;
  border-radius: 8px;
  color: var(--text, #fff);
  clip-path: polygon(0 0, 90% 0, 100% 10%, 100% 100%, 10% 100%, 0 90%);
  transition: clip-path 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 0, 60, 0.5);
}

.panel-anim:hover {
  clip-path: polygon(0 0, 100% 0, 100% 20%, 95% 100%, 0 100%, 0 80%);
  transform: scale(1.05) rotate(-1deg);
  box-shadow: 0 0 25px var(--accent, #ff003c);
}

/* (Opcional) Para que el ícono y el texto se vean equilibrados */
.panel-anim i {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  color: var(--accent, #ff003c);
  transition: color 0.3s ease;
}

.panel-anim:hover i {
  color: var(--primary, #ff3366);
}

/* efecto Slash tipo Persona 5 para tarjetas informativas */
.contact-info-item {
  position: relative;
  background: var(--bg, #0b0b0b);
  border: 3px solid var(--accent, #ff003c);
  padding: 1rem 1.5rem;
  color: var(--text, #fff);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 0;
}

.contact-info-item:hover {
  transform: scale(1.05) rotate(-1deg);
  box-shadow: 0 0 20px var(--accent, #ff003c);
}

/* Fondo diagonal “slash” animado */
.contact-info-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 120%;
  height: 100%;
  background: var(--accent, #ff003c);
  transform: skewX(-25deg);
  transition: left 0.4s ease-in-out;
  z-index: -1;
}

.contact-info-item:hover::before {
  left: 0;
}

/* Reflejo brillante diagonal (efecto slash visual) */
.contact-info-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-25deg);
  transition: left 0.5s ease;
  z-index: 1;
  pointer-events: none;
}

.contact-info-item:hover::after {
  left: 125%;
}

/* Iconos dentro */
.contact-info-item i {
  font-size: 1.8rem;
  color: var(--accent, #ff003c);
  margin-right: 1rem;
  transition: color 0.3s ease;
}

.contact-info-item:hover i {
  color: white;
}

/* Texto */
.contact-info-item strong {
  display: block;
  font-family: 'Bangers', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.phantom-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-5deg);
  z-index: 10;
  text-align: center;
  opacity: 0;
  animation: textEnter 1s ease-out 1s forwards, textExit 0.6s ease-in 4s forwards;
}

.phantom-text span {
  font-family: 'Bangers', 'Impact', sans-serif;
  font-size: 6rem;
  color: white;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow:
    6px 6px 0 #000,
    -2px -2px 0 #ff003c,
    2px -2px 0 #ff003c,
    -2px 2px 0 #ff003c,
    2px 2px 0 #ff003c;
  display: inline-block;
  transform: scale(0) rotate(-15deg);
  animation: popIn 0.8s cubic-bezier(0.5, 1.8, 0.4, 1) forwards;
  animation-delay: 1.2s;
}

@keyframes popIn {
  0% {
    transform: scale(0) rotate(-15deg);
    opacity: 0;
  }
  60% {
    transform: scale(1.3) rotate(2deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

/* Aparece con rebote */
@keyframes textEnter {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8) rotate(-10deg); }
  60% { opacity: 1; transform: translate(-50%, -50%) scale(1.1) rotate(0deg); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-5deg); }
}

/* Desaparece con corte diagonal */
@keyframes textExit {
  0% { opacity: 1; transform: translate(-50%, -50%) rotate(-5deg) scale(1); }
  100% { opacity: 0; transform: translate(-150%, -200%) rotate(-30deg) scale(0.5); }

}

/* ========== BOTÓN DE CAMBIO DE IDIOMA ========== */
.lang-btn {
  position: fixed;
  bottom: 20px;
  right: 80px; /* Separado del botón de tema */
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid var(--primary-color, #e74c3c);
  background: var(--bg-color, #1a1a2e);
  color: var(--text-color, #ecf0f1);
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.lang-btn:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 25px var(--primary-color, #e74c3c);
}

/* ========== AJUSTE DEL BOTÓN DE TEMA ========== */
.mode-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid var(--primary-color, #e74c3c);
  background: var(--bg-color, #1a1a2e);
  color: var(--text-color, #ecf0f1);
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mode-btn:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 6px 25px var(--primary-color, #e74c3c);
}

/* 🔹 Ajustes para tablets */
@media (max-width: 768px) {
  .job {
    grid-template-columns: 1fr; /* una sola columna */
    text-align: center;
  }

  .comic-title {
    font-size: 1.5rem; /* título más pequeño */
  }
}

/* 🔹 Ajustes para celulares */
@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  .job-header {
    flex-direction: column;
    align-items: center;
  }

  .tags {
    flex-wrap: wrap;
    justify-content: center;
  }

  .lang-btn, .mode-btn {
    bottom: 10px;
    right: 10px;
    font-size: 0.9rem;
  }
}

/* 🔹 Ajustes para pantallas pequeñas (celulares) */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .container, .card, .profile, .section {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 10px;
  }

  img, video, iframe {
    max-width: 100%;
    height: auto;
  }

  h1, h2, h3, p {
    text-align: center;
  }

  .tags {
    flex-direction: column;
    align-items: center;
  }

  .tag {
    width: 90%;
    text-align: center;
  }

  /* Si tienes grid, ajusta columnas */
  .highlights {
    grid-template-columns: 1fr; /* solo una columna en móvil */
  }
}
