﻿/**
 * ESTILOS PRINCIPALES - ACMA PORTFOLIO
 * CSS puro, escalable, sin dependencias de preprocesadores
 * 
 * Estructura:
 * - Variables CSS: Paleta de colores y diseño
 * - Reset & Base: Estilos básicos de elementos
 * - Header: Navegación y logo
 * - Secciones: Hero, Proyectos, Habilidades, Contacto
 * - Footer: Pie de página
 * - Utilidades: Botones, tipografías, espaciados
 * - Accesibilidad: Preferencias de usuario
 */

:root {
  /* Colores - Paleta principal */
  --color-fondo-claro: #ebe7d9;
  --color-fondo-oscuro: #111212;
  --color-oscuro-alto: #0f0e0ee5;
  --color-oscuro-transp: #0202027b;
  --color-acento-primario: #f55139;
  --color-acento-shadow: #f5513980;
  --color-acento-primario-brillo: #fd0800;
  --color-acento-primario-transp: #f551391a;
  --color-acento-secundario: #3AB7BF;
  --color-acento-secundario-alto: #2d6868;
  /*==== Tema Oscuro ====*/
  --bg-main: #111212;
  --bg-surface: var(--color-oscuro-alto);
  --bg-overlay: var(--color-oscuro-transp);
  --text-main: var(--color-fondo-claro);
  --text-muted: rgb(235, 231, 217);
  --text-skill: var(--color-acento-secundario);
  --border-soft: rgba(255, 255, 255, 0.15);
  --particles-color: rgb(33, 250, 250);
  --particles-circle: rgb(253, 8, 0);
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: default;
}

html[data-theme='light'] {
  --bg-main: #02020263;
  --bg-surface: #7e7b7bda;
  --bg-overlay: rgba(255, 255, 255, 0.6);
  --text-main: var(--color-fondo-oscuro);
  --text-muted: rgba(30, 31, 34, 0.7);
  --text-skill: var(--color-acento-secundario-alto);
  --border-soft: rgba(0, 0, 0, 0.15);
  --particles-color: rgb(3, 96, 96);
  --particles-circle: rgb(253, 8, 0);
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  /* Safari / iOS */
  -moz-tap-highlight-color: transparent;
  /* Firefox móvil */
  user-select: none;
  /* Evita selección de texto */
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow: hidden;
}

/* ======================
   RESET & ELEMENTOS BASE
   ====================== */

button,
a {
  cursor: pointer;
  border: none;
  text-decoration: none;
  color: inherit;
}

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

/* - Selección de texto transparente - */
::selection {
  background: transparent;
  color: inherit;
}

#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}


/* ===================
   HEADER Y NAVEGACIÓN
   =================== */

header {
  width: 100%;
  height: auto;
  position: fixed;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;

}

nav {
  width: 90%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5rem;
  border-radius: 30px;
  margin-top: 1.5rem;
  background: var(--color-oscuro-transp);
  box-shadow: 0 6px 20px var(--color-oscuro-alto);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  max-width: 150px;
  cursor: pointer;
  margin-inline: 2rem;
}

.navbar-brand {
  font-size: clamp(1.5rem, 3vw, 1.8rem);
  font-weight: 700;
  font-style: italic;
  color: var(--color-fondo-claro);
  text-decoration: none;
}

a.navbar-brand-symbol {
  color: var(--color-acento-primario);
  font-size: clamp(1.95rem, 3vw, 2.1rem);
  font-style: italic;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.neon {
  color: inherit;
  font-weight: 800;
  text-shadow:
    0 0 5px var(--color-acento-primario-brillo),
    0 0 10px var(--color-acento-primario-brillo);
  animation: neon-flicker 4s ease-in-out infinite;
}

@keyframes neon-flicker {

  0%,
  100% {
    opacity: 1;
    text-shadow:
      0 0 2px var(--color-acento-primario),
      0 0 5px var(--color-acento-primario);
  }

  50% {
    opacity: 1;
    text-shadow:
      0 0 10px var(--color-acento-primario-brillo),
      0 0 20px var(--color-acento-primario-brillo),
      0 0 30px var(--color-acento-primario);
  }
}

.nav-menu {
  display: flex;
  justify-content: right;
  align-items: center;
  gap: 1.1rem;
  list-style: none;
  margin-right: 2rem;
  padding: 0;
  width: 100%;
}

.nav-menu a {
  color: var(--text-main);
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
  text-decoration: none;
  font-size: clamp(1.1rem, 3vw, 1.2rem);
}

.bi.bi-download {
  margin-right: .5rem;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-acento-primario);
  transition: width 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--color-acento-primario);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

abbr {
  text-decoration: none;
}

.hamburguer {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  margin-right: 1rem;
}

.bar {
  width: 30px;
  height: 4px;
  background-color: var(--color-acento-primario);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburguer.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburguer.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburguer.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 1155px) {
  .logo {
    margin-inline: .5rem;
  }

  .navbar-brand {
    font-size: clamp(1.8rem, 3vw, 2rem);
  }

  .hamburguer {
    display: flex;
  }

  .bar {
    width: 35px;
    height: 4px;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    width: 85%;
    max-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 0;
    border-radius: 10px 10px 30px 30px;
    background: var(--bg-surface);
    box-shadow: 0 6px 20px var(--color-oscuro-alto);
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-menu.show {
    max-height: 400px;
    padding: 2rem 1rem;
  }

  .nav-menu a::after {
    display: none;
  }
}

/* =====================
   SECCIONES PRINCIPALES
   ===================== */

main {
  width: 100%;
  height: 90vh;
}

.section {
  /* position: absolute; */
  opacity: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none !important;
}

.section.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto !important;
}


/* SECCIÓN SEO OCULTA */
.seo-content {
  position: absolute;
  left: -9999px;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.seo-text {
  font-size: 0.9rem;
  opacity: 0.8;
  max-width: 60ch;
}

/* =====================
   SECCIÓN HERO (Inicio)
   ===================== */

.hero {
  position: absolute;
  color: var(--color-fondo-claro);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 1rem;
  margin-inline: 1rem;
  animation: fadeIn 1.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.hero-title {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 700;
  color: var(--color-acento-primario);
  letter-spacing: 1px;
  margin-bottom: 2rem;
  height: 70px;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 3vw, 1.7rem);
  font-weight: 600;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 3rem;
}

.ctas {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 1rem;

}

.neon-button {

  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--color-acento-primario);
  border-radius: 4rem !important;
  padding: 12px 25px;
  font-size: clamp(1.05rem, 3vw, 1.2rem);
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow:
    0 0 5px var(--color-acento-primario),
    0 0 10px var(--color-acento-primario),
    0 0 20px var(--color-acento-primario),
}

.neon-button::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--color-acento-primario-brillo) 0%, transparent 70%);
  animation: pulse 2s infinite ease-in-out;
  opacity: 0.4;
  filter: blur(40px);
  z-index: -1;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.4;
  }

  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}

.neon-button:hover {
  background: var(--color-acento-primario-brillo);
  color: var(--color-fondo-claro);
  box-shadow:
    0 0 5px var(--color-acento-primario),
    0 0 10px var(--color-acento-primario),
    0 0 20px var(--color-acento-primario),
    0 0 30px var(--color-acento-primario-brillo);
}

.card_video {
  max-width: 100%;
  width: 180px;
  height: 180px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  border: 5px solid var(--color-acento-primario);
  position: absolute;
  left: 15%;
  bottom: 0;
  transform: translate(-50%, -50%);

}

.video-hero {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  rotate: -20deg;
}

@media(max-width:700px) {
  .hero {
    justify-content: start;
    align-items: center;
    padding-top: 10rem;
  }

  .card_video {
    width: 190px;
    height: 190px;
    top: 73%;
    left: 50%;

  }
}

/* ====================================
   SECCIÓN PROYECTOS (Carrusel externo)
   ==================================== */
.projects {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

.see-more {
  display: flex;
  justify-content: right;
  gap: 1rem;
  position: absolute;
  right: 5%;
  bottom: clamp(2rem, 7vh, 5rem);
  z-index: 1000;
}

@media (max-width:800px) {
  .see-more {
    flex-direction: column;
    bottom: clamp(2rem, 10vh, 5rem);
  }
}

.see-more a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(45px, 6vw, 60px);
  height: clamp(45px, 6vw, 60px);
  font-size: clamp(20px, 3vw, 24px);
  border-radius: 50%;
  background: var(--color-acento-primario-transp);
  border: 2px solid var(--color-acento-primario);
  color: var(--color-acento-primario);
  transition: all 0.3s ease;
}

.see-more a:hover {
  background: var(--color-acento-primario);
  color: var(--color-fondo-oscuro);
  transform: scale(1.1);
}

.tooltip {
  position: relative;
}

.tooltip-text {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  background: var(--color-oscuro-alto);
  color: var(--color-fondo-claro);
  border-radius: 0.4rem;
  font-weight: 500;
  font-size: clamp(5px, 3vw, 12px);
  padding: 0.4rem 0.7rem;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.25s ease;
  text-shadow: none;
  animation: none;
}

.tooltip:hover .tooltip-text {
  opacity: 1;
}

/* ====================
   SECCIÓN HABILIDADES
   ==================== */

section#skills {
  position: absolute;
  color: var(--color-fondo-claro);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

.skills-spotlight {
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  width: 100%;
}

/*Selector*/
.skill-selector {
  display: flex;
  flex-direction: column;
  justify-content: left;
  align-items: center;
  row-gap: .5rem;
  padding: .5rem;
  padding-left: 1rem;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  direction: rtl;
  scrollbar-color: var(--color-acento-secundario) transparent;
  width: 35%;
  height: calc(7 * (3rem + 0.5rem));
}

.skill-selector::-webkit-scrollbar {
  width: 6px;
  /* vertical scrollbar ancho */
}

.skill-selector::-webkit-scrollbar-track {
  background: transparent;
}

.skill-selector::-webkit-scrollbar-thumb {
  background-color: var(--color-acento-secundario);
  border-radius: 3px;
}

.skill-btn {
  width: 85%;
  background: none;
  border: 2px solid var(--color-acento-secundario);
  border-radius: 15px;
  color: var(--text-muted);
  display: block;
  align-items: center;
  text-align: center;
  gap: .9rem;
  font-size: clamp(.9rem, 2vw, 1.1rem);
  cursor: pointer;
  padding: 0.6rem;
  transition: all 0.3s ease;
  scale: .9;
  font-weight: 550;
  direction: ltr;
}

.skill-btn:hover {
  color: var(--text-skill);
  text-shadow:
    0 0 6px var(--color-acento-secundario),
    0 0 12px var(--color-acento-secundario);
  box-shadow: 0 0 5px var(--color-acento-secundario-alto);
  scale: 1;
}

.skill-btn.active,
.skill-btn:focus-visible {
  color: var(--text-skill);
  text-shadow:
    0 0 6px var(--color-acento-secundario);
  transform: translateXY(3%);
  scale: 1;
  box-shadow: 0 0 5px var(--color-acento-secundario-alto);
}

/* Card */
.skill-card {
  display: flex;
  flex-direction: column;
  justify-content: initial;
  align-items: center;
  gap: 1rem;
  background: var(--color-oscuro-transp);
  box-shadow: 0 6px 20px var(--color-oscuro-alto);
  padding: 2rem 2.5rem;
  border-radius: 16px;
  max-width: 50%;
  width: 500px;
  height: 90%;
  transition: all 300ms ease-in-out;
}

.skill-card.is-animating {
  opacity: 0;
  transform: translateY(6px);
  box-shadow: 0 0 40px var(--color-acento-secundario-alto);
}

/* Glow pulsante en la card */
.skill-card.glow {
  animation: cardGlow 400ms ease-in-out;
  box-shadow: 0 0 12px var(--color-acento-secundario), 0 0 24px var(--color-acento-secundario);
}

@keyframes cardGlow {

  0%,
  100% {
    box-shadow: 0 0 0px var(--color-acento-secundario);
  }

  50% {
    box-shadow: 0 0 12px var(--color-acento-secundario), 0 0 24px var(--color-acento-secundario);
  }
}

/* Tablet Responsive */
@media (max-width:800px) {
  section#skills {
    margin-top: -5rem;
  }

  .skills-spotlight {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 2rem;
    gap: 2rem;
    
  }

  .skill-selector {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 90%;
    height: auto;
    /* dejar que crezca según contenido */
    overflow-y: visible;
    /* quitar scroll vertical */
    overflow-x: auto;
    /* mantener scroll horizontal si es necesario */
    direction: ltr;
  }

  .skill-btn {
    width: fit-content;
    direction: ltr;
  }

  .skill-card {
    max-width: 100%;
    width: 80%;
    height: fit-content;
    padding: 2rem 2.5rem;
    row-gap: .5rem;
  }

  .skill-level {
    margin: .5rem 0;
  }

  .skill-connector {
    display: none;
  }
}

@media(max-width:440px) {
  section#skills {
    margin-top: 0;
  }

  .skills-spotlight {
    row-gap: 2rem;
  }

  .skill-card {
    padding: 1.5rem;
    height: fit-content;
  }
}

/* Icono */
.skill-icon {
  font-size: clamp(2rem, 6vw, 4rem);
}

.skill-btn.active i,
.skill-btn:focus-visible i,
.skill-card .neon i {
  text-shadow:
    0 0 4px var(--color-acento-secundario),
    0 0 10px var(--color-acento-secundario);
}

/* Nivel */
.skill-level {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 1rem 0;
}

.pip {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-acento-secundario);
  opacity: 0.25;
  transition: all 200ms ease;
}

.pip.active {
  background: var(--color-acento-secundario);
  opacity: 1;
}

.pip.neon-progress {
  background: var(--color-acento-secundario);
  opacity: 1;
  animation: neon-pip 2s ease-in-out infinite;
}

@keyframes neon-pip {

  0%,
  100% {
    opacity: 0.8;
    box-shadow:
      0 0 2px var(--color-acento-secundario),
      0 0 5px var(--color-acento-secundario);
  }

  50% {
    opacity: 0.4;
  }
}

.level-text {
  font-size: 1rem;
  color: var(--color-fondo-claro);
}

/* Texto */
.skill-use {
  font-size: 0.95rem;
  color: var(--color-fondo-claro);
  line-height: 1.4;
}

.skill-connector {
  position: absolute;
  width: 0;
  height: 5px;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, var(--color-acento-secundario), #0ff0);
  /* base azul neón */
  box-shadow: 0 0 8px var(--color-acento-secundario), 0 0 16px var(--color-acento-secundario);
  border-radius: 0 10px;
  transform-origin: left center;
  z-index: -1;
}

.skill-connector.active {
  opacity: 1;
  animation: lightningZig 250ms ease forwards;
}

@keyframes lightningZig {
  0% {
    width: 0;
  }

  20% {
    width: calc(var(--conn-length) * 0.2);
    transform: rotate(var(--angle)deg) translateY(-2px);
  }

  40% {
    width: calc(var(--conn-length) * 0.4);
    transform: rotate(var(--angle)deg) translateY(2px);
  }

  60% {
    width: calc(var(--conn-length) * 0.6);
    transform: rotate(var(--angle)deg) translateY(-2px);
  }

  80% {
    width: calc(var(--conn-length) * 0.8);
    transform: rotate(var(--angle)deg) translateY(2px);
  }

  100% {
    width: var(--conn-length);
    transform: rotate(var(--angle)deg) translateY(0);
  }
}

/* =================
   SECCIÓN SOBRE MI
   ================= */

section#sobre-mi {
  position: absolute;
  color: var(--text-main);
  margin-top: 0;
}

.about-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  margin: 0 auto;
  text-align: center;
}

.name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.initial {
  font-size: 40px;
  font-weight: 500;
  color: #fd0800;
  line-height: 1;
}

.svg-text {
  width: 160px;
  height: 70px;
  display: block;
}


.about-description {
  content: "";
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 700px;
  font-weight: 500;
  font-size: clamp(1rem, 3vw, 1.2rem);
  padding-bottom: 2.5rem;
}

.about-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.about-container .see-more {
  bottom: 15%;
}

@media(max-width:440px) {
  .about-container .see-more {
    display: none;
    bottom: 8%;
  }
}

/* =======================
   SECCIÓN CONTACTO (Card)
   ======================= */

#contacto {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 4rem;
}

.container {
  height: 100vh;
  margin-inline: 1.5rem;
  display: grid;
  place-items: center;
}

.card {
  background: var(--color-oscuro-transp);
  box-shadow: 2px 4px 10px var(--color-acento-secundario-alto);
  padding: 4rem 4rem 2rem;
  border-radius: 1rem;
  text-align: center;
  position: relative;
  perspective: 1000px;
}

.card-inner {
  position: absolute;
  bottom: 30%;
  top: -30%;
  left: 30%;
  width: 120px;
  height: 120px;
  margin: 0 auto 0.75rem;
  transform-style: preserve-3d;
  transition: transform 2s ease-in-out;
}

.card_img {
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 50%;
  border: 2px solid var(--color-acento-secundario-alto);
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  object-fit: contain;
}

.card_img.back {
  transform: rotateY(180deg);
}

section#contacto.active .card:hover .card-inner {
  transition: transform 3s ease-in-out;
  transform: rotateY(540deg);
}

.card_name {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-fondo-claro);
  margin-bottom: 0.25rem;
}

.card_web {
  font-weight: 600;
  font-size: .875rem;
  margin-bottom: 2rem;
  color: var(--color-fondo-claro);
}

.btncontact {
  position: relative;
  background-color: var(--bg-main);
  border: 2px solid var(--color-acento-primario);
  outline: none;
  padding: 0.9rem 1.5rem;
  border-radius: 4rem;
  cursor: pointer;
  color: var(--color-fondo-claro);
  font-size: 1.1rem;
}

.button_social {
  display: flex;
  column-gap: 0.4rem;
  z-index: 1;
}

.button_social a {
  font-size: 1.55rem;
  transition: transform .5s cubic-bezier(0.2, 0.9, 0.2, 1.2);
  transition: scale .1s ease, color .3s ease;
  transform: translateY(1.1rem) scale(1);
  color:  var(--color-acento-primario);
}

.button_social a:hover {
  animation: pulse 2s infinite ease-in-out;
  color: var(--color-acento-primario-brillo);
  scale: .9;
}

.button_social a:nth-child(1) {
  transition-delay: 0.1s;
}

.button_social a:nth-child(2) {
  transition-delay: 0.15s;
}

.button_social a:nth-child(3) {
  transition-delay: 0.2s;
}

.button_social a:nth-child(4) {
  transition-delay: 0.25s;
}

.btncontact .button_content {
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--color-acento-primario);
  width: 100%;
  height: 100%;
  border-radius: 4rem;
  display: grid;
  place-items: center;
  transform: scale(1.03);
  transition: transform .5s cubic-bezier(0.2, 0.9, 0.2, 1.2);
  z-index: 5;
}

.btncontact .button_content span {
  color: var(--color-fondo-claro);
  font-weight: 700 600 500;
}

.btncontact:hover .button_content {
  transform: translateY(-40px) scale(0.6);
}

.btncontact:hover .button_social a {
  transform: translateY(0) scale(1);
}

/* =======
   FOOTER
   ======= */

footer#footer-global {
  display: block;
  margin-top: 4rem;
  padding: .5rem;
  text-align: center;
  background: var(--color-oscuro-transp, rgba(0, 0, 0, 0.5));
  border-top: 1px solid rgba(253, 8, 0, 0.3);
  bottom: 0;
  z-index: 1000;
  position: absolute;
  width: 100%;
  box-shadow: 0 8px 32px var(--color-oscuro-alto);
}

footer p {
  color: var(--color-fondo-claro);
  margin: 0;
  font-size: 0.875rem;
}

/* =======================================
   ACCESIBILIDAD Y EXPERIENCIA DE USUARIO
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-reduced-motion: reduce) {

  .acma-identity,
  .name-part,
  .about-description {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    gap: 1rem !important;
  }
}

/* ========================================
   MEJORAS DE ACCESIBILIDAD
   ======================================== */

/* Skip link para teclado */
.skip-link {
  position: absolute;
  top: -50px;
  left: 0;
  background: var(--primary-color, #fd0800);
  color: #fff;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 600;
  z-index: 10000;
  border-radius: 0 0 4px 0;
}

.skip-link:focus {
  top: 0;
}

/* Mejora foco visible en todos los elementos interactivos */
a:focus,
button:focus,
input:focus,
textarea:focus,
[tabindex]:focus {
  outline: 1px solid transparent;
  outline-offset: 2px;
}

/* Foco visible en navegación */
.nav-menu a:focus {
  outline: 2px solid transparent;
  outline-offset: 4px;
}

/* Asegura que elementos con inert no sean accesibles */
[inert] {
  pointer-events: none;
  user-select: none;
}

[inert] * {
  pointer-events: none;
}

/* Asegura alto contraste en modo oscuro */
[data-theme="dark"] .seo-text,
[data-theme="dark"] footer p {
  color: #e0e0e0;
}

/* Indicador visual para elementos deshabilitados */
button:disabled,
a[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Mejora área de click en elementos táctiles (mínimo 44x44px) */
.nav-menu a,
.skill-btn,
.neon-button {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}