/* =====================================================
   GLOBAL STYLESHEET
   Contains layout, responsive design, animations and sections
   ===================================================== */

@charset "utf-8";

@font-face {
  font-family: "fuenteH1";
  src: url("Fonts/AnthonyHunter.ttf");
}

:root {
  --bg: #000;
  --blue: #0083fe;
  --blue-soft: rgba(0, 131, 254, 0.35);
  --blue-panel: rgba(0, 20, 40, 0.78);
  --green: #9cff28;
  --white: #fff;
  --text: #dcecff;
  --nav-h: 80px;
  --glow-blue: 0 0 8px #0083fe, 0 0 2px #0083fe, 0 0 10px #0083fe, 0 0 6px #0083fe, 0 0 20px #0083fe, 0 0 1px #0083fe;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

img,
video {
  max-width: 100%;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 10px clamp(12px, 3vw, 32px);
  background: rgba(4, 25, 255, 0.575);
  text-shadow: var(--glow-blue);
  transition: transform 0.35s ease;
  backdrop-filter: blur(8px);
}

.navbar.is-hidden {
  transform: translateY(-110%);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(6px, 1.4vw, 20px);
}

.nav-link {
  display: inline-block;
  padding: 8px clamp(4px, 1vw, 14px);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(0.78rem, 1.4vw, 1.25rem);
  opacity: 1;
  transition: transform 0.25s ease, opacity 0.25s ease, text-shadow 0.25s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  transform: scale(1.14);
  opacity: 0.65;
  outline: none;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.language-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.language-button img {
  display: block;
  height: 34px;
  width: auto;
}

#bateria {
  position: fixed;
  top: 4px;
  right: 6px;
  z-index: 60;
  width: 72px;
  height: 72px;
  pointer-events: none;
}

.hero {
  min-height: 100svh;
  padding: calc(var(--nav-h) + 60px) 20px 60px;
  display: grid;
  place-items: center;
  background-image: url("img/fondo_principal.png");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
}

.hero-content {
  width: min(100%, 1100px);
  text-align: center;
}

h1 {
  margin: 0 auto 24px;
  padding: 18px 14px 32px;
  width: min(820px, 100%);
  font: normal clamp(3rem, 9vw, 6.5rem) "fuenteH1", cursive;
  color: var(--white);
  text-align: center;
  text-shadow: var(--glow-blue);
}

h2 {
  margin: 0;
  text-align: center;
  color: var(--blue);
  font-size: clamp(1.2rem, 3vw, 2.5rem);
  font-weight: 700;
}

.letras_animadas,
.typed-text {
  color: var(--white);
  font-style: normal;
  text-shadow: var(--glow-blue);
}

.typed-cursor {
  color: var(--white);
  animation: blink 0.8s infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.section {
  width: 100%;
  height: auto;
  min-height: auto;
  padding: clamp(72px, 9vw, 130px) 20px;
  background: black;
  overflow: visible;
}

.section-container {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.section-title {
  margin: 0 0 clamp(34px, 5vw, 70px);
  color: var(--white);
  text-align: center;
  font-size: clamp(2.7rem, 7vw, 5rem);
  font-weight: 700;
  text-shadow: var(--glow-blue);
}

.about-section {
  padding-top: clamp(80px, 10vw, 120px);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 420px);
  grid-template-areas:
    "video image"
    "text image";
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}

.about-video-wrapper {
  grid-area: video;
  display: flex;
  justify-content: center;
}

#imagen_cuadro_sobreMi {
  width: min(720px, 100%);
  border-radius: 12px;
}

.about-texts {
  grid-area: text;
  display: grid;
  gap: 18px;
}

.about-texts p {
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  line-height: 1.55;
}

.texto_azul_iluminado {
  color: var(--white);
  text-shadow: var(--glow-blue);
}

.texto_gris_iluminado {
  color: #d4d4d4;
  text-shadow: 0 0 8px #a5a5a5, 0 0 12px #0083fe;
}

.temblor {
  display: inline-block;
  color: var(--white);
}

.about-image {
  grid-area: image;
  display: flex;
  justify-content: center;
}

.about-image img {
  width: min(420px, 100%);
  filter: drop-shadow(0 0 18px var(--blue-soft));
}

.projects-section {
  position: relative;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 131, 254, 0.18), transparent 34%),
    radial-gradient(circle at 12% 24%, rgba(23, 245, 110, 0.1), transparent 20%),
    radial-gradient(circle at 88% 28%, rgba(255, 61, 93, 0.1), transparent 20%),
    linear-gradient(180deg, #02050d 0%, #030913 48%, #02060e 100%);
}

.projects-header {
  display: grid;
  gap: 16px;
  justify-items: center;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.projects-header .section-title {
  margin-bottom: 0;
}

.projects-intro {
  max-width: 760px;
  margin: 0;
  color: rgba(220, 236, 255, 0.84);
  text-align: center;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.65;
}

.projects-stage {
  --project-gap: clamp(16px, 2vw, 22px);
  --cards-per-view: 4;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(10px, 1.8vw, 24px);
  align-items: center;
}

.projects-viewport {
  min-width: 0;
  overflow: hidden;
}

.projects-track {
  display: flex;
  gap: var(--project-gap);
  overflow-x: auto;
  padding: 10px 2px 18px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.projects-track::-webkit-scrollbar {
  display: none;
}

.projects-arrow {
  width: clamp(44px, 4vw, 56px);
  height: clamp(44px, 4vw, 56px);
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(0, 131, 254, 0.55);
  border-radius: 50%;
  background: rgba(4, 14, 28, 0.88);
  color: var(--blue);
  box-shadow: 0 0 0 1px rgba(0, 131, 254, 0.12), 0 0 18px rgba(0, 131, 254, 0.22);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.projects-arrow span {
  font-size: clamp(1.6rem, 2vw, 2.2rem);
  line-height: 1;
  transform: translateY(-1px);
}

.projects-arrow:hover,
.projects-arrow:focus-visible {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 0 0 1px rgba(0, 131, 254, 0.24), 0 0 24px rgba(0, 131, 254, 0.35);
  outline: none;
}

.projects-arrow:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.project-card {
  --project-accent: var(--blue);
  --project-soft: rgba(0, 131, 254, 0.3);
  flex: 0 0 calc((100% - (var(--cards-per-view) - 1) * var(--project-gap)) / var(--cards-per-view));
  min-width: 0;
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto minmax(170px, 1fr) auto;
  gap: 16px;
  min-height: 100%;
  padding: 24px clamp(18px, 2vw, 24px);
  border: 1px solid var(--project-soft);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(7, 13, 24, 0.94), rgba(3, 8, 18, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 50px rgba(0, 0, 0, 0.38), 0 0 28px var(--project-soft);
  overflow: hidden;
  isolation: isolate;
  scroll-snap-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, filter 0.3s ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 28%);
  pointer-events: none;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 14% 12% auto;
  height: 120px;
  background: radial-gradient(circle, var(--project-soft) 0%, transparent 72%);
  opacity: 0.75;
  filter: blur(34px);
  z-index: -1;
}

.project-green {
  --project-accent: #17f56e;
  --project-soft: rgba(23, 245, 110, 0.24);
  --project-strong: rgba(23, 245, 110, 0.62);
}

.project-orange {
  --project-accent: #ff9a1f;
  --project-soft: rgba(255, 154, 31, 0.24);
  --project-strong: rgba(255, 154, 31, 0.62);
}

.project-red {
  --project-accent: #ff3d5d;
  --project-soft: rgba(255, 61, 93, 0.24);
  --project-strong: rgba(255, 61, 93, 0.62);
}

.project-silver {
  --project-accent: #d7e2f2;
  --project-soft: rgba(215, 226, 242, 0.22);
  --project-strong: rgba(215, 226, 242, 0.58);
}

.project-blue {
  --project-accent: #18b8ff;
  --project-soft: rgba(24, 184, 255, 0.24);
  --project-strong: rgba(24, 184, 255, 0.62);
}

.project-violet {
  --project-accent: #a954ff;
  --project-soft: rgba(169, 84, 255, 0.24);
  --project-strong: rgba(169, 84, 255, 0.62);
}

.project-cyan {
  --project-accent: #26f1ff;
  --project-soft: rgba(38, 241, 255, 0.24);
  --project-strong: rgba(38, 241, 255, 0.62);
}

.project-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  justify-self: center;
  border: 1px solid var(--project-soft);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--project-accent);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 0 18px var(--project-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.project-icon svg,
.feature-icon svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-copy {
  display: grid;
  grid-template-rows: auto auto;
  gap: 10px;
  justify-items: center;
  text-align: center;
}

.project-copy h4,
.project-copy p,
.project-feature h4,
.project-feature p {
  margin: 0;
}

.project-copy h4 {
  font-size: clamp(1.35rem, 1.7vw, 1.6rem);
  font-weight: 700;
  line-height: 1.1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  min-height: 1.1em;
  max-height: 1.1em;
}

.project-copy p {
  color: rgba(220, 236, 255, 0.78);
  font-size: clamp(0.84rem, 1vw, 0.96rem);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: calc(2 * 1.45em);
  max-height: calc(2 * 1.45em);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  align-content: flex-start;
  min-height: 66px;
  max-height: 66px;
  overflow: hidden;
}

.project-tags span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #eff7ff;
  font-size: clamp(0.68rem, 0.78vw, 0.76rem);
  line-height: 1;
  white-space: nowrap;
}

.project-image {
  --project-shot-ratio: 406 / 745;
  --project-shot-width: 100%;
  --project-shot-frame-padding: 12px;
  --project-shot-radius: 24px;
  position: relative;
  width: var(--project-shot-width);
  max-width: 100%;
  min-height: 0;
  height: auto;
  aspect-ratio: var(--project-shot-ratio);
  justify-self: center;
  margin-inline: auto;
  display: grid;
  place-items: center;
  padding: var(--project-shot-frame-padding);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--project-shot-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03) 18%, rgba(9, 14, 25, 0.94) 18%, rgba(5, 10, 20, 0.98));
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.project-image::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 14px;
  width: 46px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.12));
  opacity: 0.95;
  pointer-events: none;
}

.project-image::after {
  content: "";
  position: absolute;
  inset: auto 16px 10px;
  height: 18px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.55), transparent 70%);
  filter: blur(10px);
}

.project-image img {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center top;
  border-radius: calc(var(--project-shot-radius) - 8px);
  background: rgba(3, 7, 16, 0.72);
  filter: drop-shadow(0 20px 26px rgba(0, 0, 0, 0.55));
  transform: translateY(0) scale(1.01);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.project-card:hover .project-image img,
.project-card:has(:focus-visible) .project-image img {
  transform: translateY(0) scale(1.03);
  filter: drop-shadow(0 24px 32px rgba(0, 0, 0, 0.65));
}

.project-card:hover,
.project-card:has(:focus-visible) {
  transform: translateY(-8px);
  border-color: var(--project-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 24px 60px rgba(0, 0, 0, 0.48),
    0 0 42px var(--project-strong);
  filter: saturate(1.14);
}

.project-card:hover::after,
.project-card:has(:focus-visible)::after {
  opacity: 1;
  filter: blur(40px);
}

.project-card:hover .project-icon,
.project-card:has(:focus-visible) .project-icon {
  transform: scale(1.05);
  border-color: var(--project-strong);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 0 28px var(--project-strong);
}

.project-card:hover .project-copy h4,
.project-card:has(:focus-visible) .project-copy h4 {
  text-shadow: 0 0 18px var(--project-strong);
}

.project-card:hover .project-tags span,
.project-card:has(:focus-visible) .project-tags span {
  border-color: color-mix(in srgb, var(--project-accent) 40%, rgba(255, 255, 255, 0.1));
  background: color-mix(in srgb, var(--project-accent) 10%, rgba(255, 255, 255, 0.03));
}

.project-card:hover .project-image,
.project-card:has(:focus-visible) .project-image {
  border-color: color-mix(in srgb, var(--project-accent) 40%, rgba(255, 255, 255, 0.06));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 0 32px rgba(255, 255, 255, 0.04);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(9, 14, 25, 0.96));
}

.project-link {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 18px;
  border: 1px solid var(--project-soft);
  border-radius: 16px;
  color: var(--project-accent);
  text-decoration: none;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.project-card:hover .project-link,
.project-card:has(:focus-visible) .project-link {
  border-color: var(--project-strong);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 24px var(--project-soft);
}

.project-link:hover,
.project-link:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 20px var(--project-soft);
  outline: none;
}

.projects-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 clamp(28px, 4vw, 42px);
}

.projects-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(123, 165, 204, 0.35);
  cursor: pointer;
  transition: width 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.projects-dot.is-active {
  width: 28px;
  background: var(--blue);
  box-shadow: 0 0 16px rgba(0, 131, 254, 0.45);
}

.projects-features {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  padding: clamp(18px, 2vw, 24px);
  border: 1px solid rgba(0, 131, 254, 0.14);
  border-radius: 24px;
  background: rgba(3, 11, 23, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 12px 35px rgba(0, 0, 0, 0.24);
}

.project-feature {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-width: 0;
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 131, 254, 0.28);
  border-radius: 16px;
  background: rgba(0, 131, 254, 0.08);
  color: var(--blue);
  box-shadow: 0 0 15px rgba(0, 131, 254, 0.16);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.project-feature h4 {
  margin-bottom: 6px;
  font-size: 0.98rem;
}

.project-feature p {
  color: rgba(220, 236, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.5;
}



.career-section {
  padding-top: clamp(80px, 9vw, 120px);
  padding-bottom: clamp(80px, 10vw, 150px);
  background: radial-gradient(circle at center, #061b34 0%, #020814 45%, #000 100%);
}

.career-header {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 60px);
}

.career-header .section-title {
  margin-bottom: 12px;
}

.career-header p {
  margin: 0;
  color: var(--text);
  font-size: clamp(1rem, 2vw, 1.4rem);
}

.career-header span {
  color: var(--green);
}

.career-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}

.career-timeline {
  position: relative;
  display: grid;
  gap: 32px;
}

.career-timeline::before {
  content: "";
  position: absolute;
  left: 124px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #00aaff;
  box-shadow: 0 0 15px #00aaff;
}

.career-card {
  display: grid;
  grid-template-columns: 115px 62px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  min-width: 0;
}

.career-year {
  color: var(--green);
  font-weight: 700;
  text-align: right;
  font-size: 0.98rem;
}

.career-icon {
  z-index: 1;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid #00aaff;
  border-radius: 14px;
  background: rgba(0, 170, 255, 0.08);
  box-shadow: 0 0 15px rgba(0, 170, 255, 0.7);
  font-size: 1.45rem;
}

.career-content {
  min-width: 0;
  padding: clamp(18px, 2.6vw, 26px);
  border: 1px solid rgba(0, 170, 255, 0.5);
  border-radius: 14px;
  background: var(--blue-panel);
  box-shadow: 0 0 18px rgba(0, 170, 255, 0.25);
}

.career-skills{
  line-height: 1.2;
}

.career-content h4,
.career-content h5,
.career-content p {
  margin-top: 0;
}

.career-content h4 {
  margin-bottom: 6px;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.career-content h5 {
  margin-bottom: 12px;
  color: #00aaff;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
}

.career-content p {
  margin-bottom: 14px;
  color: var(--text);
  line-height: 1.5;
}

.career-content span {
  display: inline-block;
  max-width: 100%;
  padding: 6px 12px;
  border: 1px solid var(--green);
  border-radius: 8px;
  color: var(--green);
  background: rgba(156, 255, 40, 0.08);
  font-size: 0.85rem;
  overflow-wrap: break-word;
}

.career-android {
  position: sticky;
  top: 110px;
  display: flex;
  justify-content: center;
}

.android-figure {
  --android-shift: 0px;
  position: relative;
  width: 210px;
  height: 315px;
  transform: translate3d(0, var(--android-shift), 0) scale(0.86);
  transform-origin: top center;
  transition: transform 180ms linear;
  will-change: transform;
  filter: drop-shadow(0 0 25px #52ff4f);
}

.android-head {
  width: 180px;
  height: 90px;
  margin: auto;
  background: linear-gradient(#9cff28, #18a818);
  border-radius: 90px 90px 15px 15px;
}

.android-body {
  width: 190px;
  height: 170px;
  margin: 10px auto 0;
  background: linear-gradient(#39d433, #067a18);
  border-radius: 0 0 25px 25px;
}

.android-arm,
.android-leg {
  position: absolute;
  background: linear-gradient(#6cff4f, #087c18);
  border-radius: 30px;
}

.android-arm {
  width: 38px;
  height: 140px;
  top: 115px;
}

.android-arm.left { left: -10px; }
.android-arm.right { right: -10px; }

.android-leg {
  width: 42px;
  height: 75px;
  bottom: 0;
}

.android-leg.left { left: 65px; }
.android-leg.right { right: 65px; }

.contact-section {
  padding-top: clamp(80px, 9vw, 120px);
  padding-bottom: clamp(80px, 9vw, 120px);
}

.contact-header .section-title {
  margin-bottom: 40px;
}

.contact-wrapper {
  display: flex;
  justify-content: center;
}

.contact-form {
  width: min(620px, 100%);
  display: grid;
  gap: 14px;
  padding: clamp(24px, 4vw, 42px);
  background: rgba(51, 68, 255, 0.575);
  border: 3px solid var(--white);
  box-shadow: var(--white) 5px 5px 10px;
}

#h4_contacto {
  margin: 0 0 16px;
  color: var(--white);
  text-align: center;
  font-size: clamp(2rem, 5vw, 3rem);
}

.contact-form label {
  color: var(--white);
  text-shadow: var(--glow-blue);
  font-size: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 2px solid transparent;
  border-radius: 6px;
  font: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 10px var(--blue-soft);
}

#enviar {
  justify-self: center;
  min-width: 130px;
  margin-top: 12px;
  padding: 10px 22px;
  background-color: var(--white);
  border: 4px solid var(--white);
  border-radius: 25px;
  color: #000;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

#enviar:hover,
#enviar:focus-visible {
  box-shadow: 0 0 16px var(--white);
}

@media (min-width: 1401px) {
  .project-image {
    --project-shot-width: 178px;
    --project-shot-frame-padding: 10px;
  }
}

@media (max-width: 1400px) and (min-width: 1301px) {
  .project-image {
    --project-shot-width: 170px;
    --project-shot-frame-padding: 10px;
  }
}

@media (max-width: 1300px) and (min-width: 1181px) {
  .project-image {
    --project-shot-width: 160px;
    --project-shot-frame-padding: 10px;
  }
}

@media (max-width: 1180px) {
  .projects-stage {
    --cards-per-view: 3;
  }

  .project-image {
    --project-shot-width: 186px;
    --project-shot-frame-padding: 10px;
  }
}

@media (max-width: 1080px) and (min-width: 981px) {
  .project-image {
    --project-shot-width: 176px;
  }
}

@media (max-width: 980px) and (min-width: 901px) {
  .project-image {
    --project-shot-width: 166px;
  }
}

@media (max-width: 900px) {
  :root { --nav-h: 72px; }
  
  .projects-stage {
    --cards-per-view: 2;
  }

  .projects-track {
    padding-bottom: 16px;
  }

  .project-card {
    flex-basis: calc((100% - var(--project-gap)) / 2);
    grid-template-rows: auto auto auto minmax(155px, 1fr) auto;
    gap: 15px;
    padding: 22px 18px;
  }

  .project-copy h4 {
    font-size: 1.28rem;
    min-height: 1.1em;
    max-height: 1.1em;
  }

  .project-copy p {
    font-size: 0.86rem;
    line-height: 1.4;
    min-height: calc(2 * 1.4em);
    max-height: calc(2 * 1.4em);
  }

  .project-tags {
    min-height: 58px;
    max-height: 58px;
  }

  .project-tags span {
    padding: 5px 9px;
    font-size: 0.68rem;
  }

  .project-image {
    --project-shot-width: 248px;
    --project-shot-frame-padding: 11px;
  }

  .projects-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .navbar {
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
  }

  .nav-inner {
    flex: 1;
    gap: 3px;
  }

  .language-switcher {
    gap: 4px;
  }

  .language-button img {
    height: 24px;
  }

  #bateria {
    display: none;
  }

  .hero {
    min-height: 82svh;
    background-position: center 88px;
    background-size: min(95%, 520px);
    padding-top: calc(var(--nav-h) + 80px);
  }

  .about-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "video"
      "text"
      "image";
    text-align: center;
  }

  .about-image img {
    width: min(320px, 80vw);
  }

  .career-layout {
    grid-template-columns: 1fr;
  }

  .career-android {
    order: -1;
    position: relative;
    top: auto;
    margin-bottom: 8px;
  }

  .android-figure {
    transform: translate3d(0, var(--android-shift), 0) scale(0.58);
    height: 210px;
  }

  .career-timeline::before {
    left: 56px;
  }

  .career-card {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 0 28px;
    align-items: start;
  }

  .career-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .career-year {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 8px;
    text-align: left;
  }

  .career-content {
    grid-column: 2;
    grid-row: 2;
  }
}

@media (max-width: 820px) and (min-width: 741px) {
  .project-image {
    --project-shot-width: 232px;
  }
}

@media (max-width: 740px) and (min-width: 662px) {
  .project-image {
    --project-shot-width: 214px;
  }
}

@media (max-width: 720px) {
  .project-card {
    gap: 13px;
    padding: 20px 16px;
  }

  .project-copy h4 {
    font-size: 1.18rem;
  }

  .project-copy p {
    font-size: 0.8rem;
    line-height: 1.35;
    min-height: calc(2 * 1.35em);
    max-height: calc(2 * 1.35em);
  }

  .project-tags {
    min-height: 52px;
    max-height: 52px;
  }

  .project-tags span {
    padding: 4px 8px;
    font-size: 0.62rem;
  }

  .project-image {
    --project-shot-width: 206px;
  }
}

@media (max-width: 661px) and (min-width: 591px) {
  .project-card {
    gap: 12px;
    padding: 18px 15px;
  }

  .project-copy h4 {
    font-size: 1.12rem;
  }

  .project-copy p {
    font-size: 0.76rem;
    line-height: 1.3;
    min-height: calc(2 * 1.3em);
    max-height: calc(2 * 1.3em);
  }

  .project-tags {
    min-height: 48px;
    max-height: 48px;
  }

  .project-tags span {
    padding: 4px 7px;
    font-size: 0.58rem;
  }

  .project-image {
    --project-shot-width: 194px;
    --project-shot-frame-padding: 10px;
  }
}

@media (max-width: 590px) {
  :root { --nav-h: 66px; }
  
 .toast-message {
    left: 12px;
    right: 12px;
    bottom: 16px;
    max-width: none;
    text-align: center;
  }

  .projects-header {
    gap: 12px;
  }

  .projects-intro {
    font-size: 0.95rem;
  }

  .projects-stage {
    --cards-per-view: 1;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr);
  }

  .projects-arrow {
    display: none;
  }

  .projects-track {
    gap: 12px;
    padding-inline: 8px;
    scroll-padding-inline: 8px;
  }

  .project-card {
    flex-basis: calc(100% - 16px);
    max-width: calc(100% - 16px);
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "icon"
      "copy"
      "image"
      "tags"
      "link";
    grid-template-rows: auto auto auto auto auto;
    align-items: start;
    justify-items: center;
    gap: 12px;
    padding: 18px 14px;
    border-radius: 24px;
  }

  .project-icon {
    grid-area: icon;
    width: 68px;
    height: 68px;
    border-radius: 18px;
    align-self: center;
  }

  .project-icon svg {
    width: 30px;
    height: 30px;
  }

  .project-copy {
    grid-area: copy;
    gap: 8px;
    justify-self: stretch;
    align-self: start;
    position: relative;
    z-index: 1;
  }

  .project-copy h4 {
    font-size: 1.16rem;
    min-height: 1.1em;
    max-height: 1.1em;
  }

  .project-copy p {
    font-size: 0.8rem;
    line-height: 1.35;
    min-height: calc(2 * 1.35em);
    max-height: calc(2 * 1.35em);
  }

  .project-tags {
    grid-area: tags;
    justify-self: stretch;
    gap: 6px;
    position: relative;
    z-index: 1;
    min-height: 50px;
    max-height: 50px;
  }

  .project-tags span {
    padding: 4px 7px;
    font-size: 0.6rem;
  }

  .project-image {
    grid-area: image;
    width: var(--project-shot-width);
    min-width: 0;
    height: auto;
    aspect-ratio: var(--project-shot-ratio);
    border-radius: var(--project-shot-radius);
    justify-self: center;
    align-self: start;
    z-index: 0;
    margin-inline: auto;
  }

  .project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
    transform: scale(1.01);
  }

  .project-link {
    grid-area: link;
    justify-self: stretch;
    width: 100%;
    position: relative;
    z-index: 1;
  }

  .projects-features {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .project-feature {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
  }

  .feature-icon {
    width: 44px;
    height: 44px;
  }

  .navbar {
    min-height: var(--nav-h);
    padding: 6px 6px;
  }

  .nav-link {
    padding: 6px 2px;
    font-size: 0.68rem;
  }

  .language-switcher {
    flex-direction: column;
    gap: 0;
  }

  .language-button img {
    height: 18px;
  }

  .hero {
    min-height: 74svh;
    padding-inline: 12px;
  }

  h1 {
    width: min(320px, 100%);
  }

  .section {
    padding: 56px 12px;
  }

  .section-title {
    margin-bottom: 30px;
  }

  
  .career-section {
    padding-top: 62px;
    padding-bottom: 68px;
  }

  .career-header {
    margin-bottom: 34px;
  }

  .career-android {
    display: none;
  }

  .career-timeline {
    gap: 26px;
  }

  .career-timeline::before {
    left: 48px;
  }

  .career-card {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 0 22px;
  }

  .career-icon {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .career-content {
    padding: 16px;
  }

  .contact-form {
    padding: 22px 16px;
  }
}

@media (max-width: 590px) and (min-width: 521px) {
  .project-image {
    --project-shot-width: 254px;
    --project-shot-frame-padding: 11px;
  }
}

@media (max-width: 520px) and (min-width: 461px) {
  .project-image {
    --project-shot-width: 236px;
    --project-shot-frame-padding: 11px;
  }
}

@media (max-width: 460px) and (min-width: 421px) {
  .project-image {
    --project-shot-width: 220px;
    --project-shot-frame-padding: 10px;
  }
}

@media (max-width: 420px) {
  .projects-track {
    gap: 10px;
    padding-inline: 6px;
    scroll-padding-inline: 6px;
  }

  .project-card {
    flex-basis: calc(100% - 12px);
    max-width: calc(100% - 12px);
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 16px 12px;
    border-radius: 22px;
  }

  .project-icon {
    width: 62px;
    height: 62px;
    border-radius: 16px;
  }

  .project-icon svg {
    width: 27px;
    height: 27px;
  }

  .project-copy h4 {
    font-size: 1.05rem;
    min-height: 1.1em;
    max-height: 1.1em;
  }

  .project-copy p {
    font-size: 0.74rem;
    line-height: 1.3;
    min-height: calc(2 * 1.3em);
    max-height: calc(2 * 1.3em);
  }

  .project-tags {
    min-height: 42px;
    max-height: 42px;
  }

  .project-tags span {
    padding: 3px 6px;
    font-size: 0.56rem;
  }

  .project-image {
    --project-shot-width: 204px;
    --project-shot-frame-padding: 9px;
    --project-shot-radius: 20px;
  }

  .project-link {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 0.9rem;
  }
}

@media (max-width: 390px) and (min-width: 351px) {
  .project-image {
    --project-shot-width: 192px;
  }
}

@media (max-width: 350px) {
  .project-image {
    --project-shot-width: 178px;
    --project-shot-frame-padding: 8px;
    --project-shot-radius: 18px;
  }
}

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

.toast-message {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  max-width: 320px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(0, 20, 40, 0.95);
  color: white;
  border: 1px solid #0083fe;
  box-shadow: 0 0 18px rgba(0, 131, 254, 0.6);
  text-shadow: 0 0 8px #0083fe;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.toast-message.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-message.success {
  border-color: #9cff28;
  box-shadow: 0 0 18px rgba(156, 255, 40, 0.45);
}

.toast-message.error {
  border-color: #ff4d4d;
  box-shadow: 0 0 18px rgba(255, 77, 77, 0.45);
}

/* ==========================================================
   ANDROID TECH BUBBLES
   ----------------------------------------------------------
   Iconos tecnológicos que aparecen al mover el ratón.
   Empiezan pequeños, se hinchan como globos y desaparecen.
   ========================================================== */

.tech-bubble {
  position: fixed;
  z-index: 9998;
  width: 18px;
  height: 18px;
  pointer-events: none;

  display: flex;
  align-items: center;
  justify-content: center;

  animation: techBubbleInflate 1.5s ease-out forwards;
}

.tech-bubble img {
  width: 100%;
  height: 100%;
  object-fit: contain;

  filter:
    drop-shadow(0 0 6px #0083fe)
    drop-shadow(0 0 12px rgba(0,131,254,.8));
}

.tech-bubble.android {
  color: #9cff28;
  border-color: rgba(156, 255, 40, 0.9);
  box-shadow:
    0 0 10px #9cff28,
    0 0 24px rgba(0, 131, 254, 0.7);
}

.tech-bubble.kotlin {
  color: #b78cff;
}

.tech-bubble.java {
  color: #ffb86b;
}

.tech-bubble.compose {
  color: #64ffe3;
}

@keyframes techBubbleInflate {

  0% {
    opacity: 0;
    transform: scale(0.2);
  }

  15% {
    opacity: 1;
  }

  70% {
    opacity: 0.8;
    transform: scale(1.8)
               translateY(-12px);
  }

  100% {
    opacity: 0;
    transform: scale(3)
               translateY(-25px);
  }
}

@media (hover: none), (pointer: coarse) {
  .tech-bubble {
    display: none !important;
  }
}
