/* ====== Reset & base ====== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html:focus-within {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Anton", sans-serif;
  line-height: 1.6;
  color: #0b1220;
  background: #ffffff;
  transition: background-color 0.3s ease, color 0.3s ease;
  padding-top: 70px;
}

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

a {
  color: #0a84ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  text-decoration: underline;
}

h2 {
  background: linear-gradient(90deg, #0a84ff 0%, #44c0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

h3 {
  font-size: 1rem;
}

h4 {
  font-size: 1rem;
}

p {
  font-size: 1rem;
}

:root {
  --container: 1400px;
  --pad: 20px;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(0, 0, 0, .08);
  --bg-alt: #f7f9fc;
  --text: #0b1220;
  --muted: #5b6577;
  --primary: #0a84ff;
  --primary-ink: #ffffff;
  --border: #e3e7ee;
}

/* Dark mode variables */
body.dark-mode {
  background: #0b1220;
  color: #e8eef5;
}

body.dark-mode {
  --bg-alt: #151d2e;
  --text: #e8eef5;
  --muted: #9ca3af;
  --primary: #3b9dff;
  --primary-ink: #ffffff;
  --border: #2a3647;
  --shadow: 0 8px 30px rgba(0, 0, 0, .4);
}

.container {
  max-width: var(--container);
  padding: 0 var(--pad);
  margin: 0 auto;
}

.container.narrow {
  max-width: 820px;
  background: var(--bg-alt);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  padding: .5rem;
  background: #000;
  color: #fff;
}

/* ====== Header ====== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--bg-alt);
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  gap: 16px;
  flex-wrap: wrap;
}

/* Theme toggle button */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.theme-toggle:hover {
  background: var(--bg-alt);
  transform: scale(1.05);
}

.theme-toggle svg {
  position: absolute;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-toggle .sun-icon {
  opacity: 1;
  transform: rotate(0deg);
}

.theme-toggle .moon-icon {
  opacity: 0;
  transform: rotate(90deg);
}

body.dark-mode .theme-toggle .sun-icon {
  opacity: 0;
  transform: rotate(90deg);
}

body.dark-mode .theme-toggle .moon-icon {
  opacity: 1;
  transform: rotate(0deg);
  color: #ffffff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  color: inherit;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary);
  color: var(--primary-ink);
  font-weight: 800;
}

.brand.small .brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 12px;
}

.brand-text {
  letter-spacing: .2px;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}


.site-nav a {
  padding: .5rem .25rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
  background: linear-gradient(90deg, #0a84ff 0%, #44c0ff 100%);
  background-clip: text;
  color: transparent;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
}

body.dark-mode .site-nav a {
  background: linear-gradient(90deg, #0a84ff 0%, #44c0ff 100%);
  background-clip: text;
  color: transparent;
}

.site-nav a.active,
.site-nav a:focus {
  border-color: var(--primary);
  outline: none;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: .5rem;
}

.nav-toggle .lines {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  position: relative;
}

.nav-toggle .lines::before,
.nav-toggle .lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--text);
}

.nav-toggle .lines::before {
  top: -7px;
}

.nav-toggle .lines::after {
  top: 7px;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    display: none;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    padding: .5rem var(--pad) 1rem;
  }
}

/* ====== Hero ====== */
.section {
  padding: 72px 0;
}

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

.hero {
  padding-top: 90px;
  max-width: var(--container);
  /* ahora usará el valor aumentado */
  margin: 0 auto;
  padding-left: 3rem;
  /* aumentar padding para respirar, o bajar si quieres que llegue más al borde */
  padding-right: 3rem;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  /* dar un poco más de ancho a la columna derecha (tarjeta) */
  gap: 64px;
  align-items: start;
  /* alinear arriba para que el texto se vea bien */
}

.hero .lead {
  color: var(--muted);
  font-size: 1.1rem;
}

.highlight {
  background: linear-gradient(90deg, #0a84ff 0%, #44c0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-card .stat {
  display: grid;
  gap: .25rem;
  margin-bottom: 16px;
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
}

.stat-label {
  color: var(--muted);
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  background: var(--bg-alt);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.card-text h2 {
  margin-top: 0;
  font-size: 2.5rem;
  line-height: 1.2;
  background: linear-gradient(90deg, #0a84ff 0%, #44c0ff 100%);
  background-clip: text;
  color: transparent;
}

/* ====== Card with image ====== */
.card-with-image {
  --card-gap: -2.55rem;

  display: flex;
  align-items: flex-start;
  gap: var(--card-gap);
  background: var(--bg-alt);
  padding: 2rem 2.5rem;
  border-radius: 50px;
  box-shadow: var(--shadow);
  transition: background-color 0.3s ease;

  width: 100%;
  max-width: none;
  /* permitir que la tarjeta se expanda dentro de su columna */
  margin: 0;
  justify-self: stretch;
}

/* Dar más espacio al bloque de texto y permitir que ocupe la mayor parte */
.card-with-image .card-text {
  flex: 1 1 auto;
  min-width: 0;
  /* permite truncar flexchild correctamente */
  padding-right: -1rem;
  word-break: normal;
  white-space: normal;
  hyphens: auto;
}

/* Mostrar párrafos/links como bloques normales para envolver bien el texto */
.card-with-image .card-text p,
.card-with-image .card-text span,
.card-with-image .card-text a {
  display: block;
  margin: 0 0 1.5rem;
  line-height: 1.5;
  font-size: 1.2rem;
}

/* títulos y párrafos con buen interlineado */
.card-with-image .card-text h3 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.55rem;
  line-height: 1.25;
  font-weight: 7000;
}

/* Mantener la imagen a la derecha ocupando espacio fijo */
.card-with-image .card-image {
  flex: 0 0 200px;
  /* ancho fijo para la imagen */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* tamaño de la imagen */
.card-with-image .card-image img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--primary);
  box-shadow: 0 0 12px rgba(10, 132, 255, 0.22);
}

/* Ajustes responsive */
@media (max-width: 1200px) {
  .card-with-image {
    padding: 2rem;
  }

  .card-with-image .card-image {
    flex: 0 0 200px;
  }

  .card-with-image .card-image img {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 980px) {
  .card-with-image {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
    /* More horizontal padding */
  }

  .card-with-image .card-text {
    padding-right: 0;
    width: 100%;
    max-width: 100%;
    /* Ensure no overflow */
  }

  .card-with-image .card-text h2 {
    font-size: 1.9rem;
    /* Smaller font for better fit */
    line-height: 1.3;
    margin: 0.5rem 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .card-with-image .card-text p {
    font-size: 1.2rem;
    line-height: 1.4;
  }

  .card-with-image .card-image {
    flex: none;
  }

  .card-with-image .card-image img {
    width: 140px;
    height: 140px;
  }
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-card {
    justify-self: center;
  }
}

.cta {
  display: flex;
  gap: .75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-weight: 600;
  text-decoration: none;
}

.btn.primary {
  background: var(--primary);
  color: var(--primary-ink);
  border-color: transparent;
}

.btn.outline {
  background: transparent;
}

.btn.ghost {
  background: #f5f8ff;
}

.btn.small {
  padding: .45rem .7rem;
  border-radius: 10px;
  font-size: .9rem;
}

.btn.disabled {
  opacity: .5;
  pointer-events: none;
}

.meta {
  color: var(--muted);
  font-size: .95rem;
}

.todo {
  background: #374151;
  color: #ffffff;
  padding: .1rem .35rem;
  border-radius: 6px;
  border: 1px solid #4b5563;
  font-size: .85rem;
  font-weight: 600;
}

/* ====== About ====== */
.checklist {
  display: grid;
  gap: .4rem;
  margin: 1rem 0 0;
  padding-left: 1rem;
}

/* ====== Skills ====== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.skill {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--bg-alt);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.skill h3 {
  margin-top: 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 0;
  margin: .5rem 0 0;
  list-style: none;
}

.tags li {
  padding: .35rem .6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  transition: background-color 0.3s ease;
}

@media (max-width: 980px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

/* ====== Projects ====== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--bg-alt);
  display: grid;
  gap: .5rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.project h3 {
  margin: .2rem 0;
}

.project-meta {
  font-size: .8rem;
  color: var(--muted);
}

.project .actions {
  display: flex;
  gap: .5rem;
}

@media (max-width: 980px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* ====== Timeline ====== */
.timeline {
  position: relative;
  margin-left: 8px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.t-item {
  position: relative;
  padding-left: 36px;
  margin-bottom: 20px;
}

.t-dot {
  position: absolute;
  left: 2px;
  top: .65rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
}

.t-content {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.t-meta {
  color: var(--muted);
  margin-top: 4px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

.t-content ul {
  margin-left: 2rem;
  padding-left: 1rem;
}

.t-content ul li {
  margin: 0.5rem 0;
  line-height: 1;
}

/* ====== Contact ====== */
.contact-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: .35rem;
}

@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Science+Gothic:wght@100..900&display=swap');

/** Variables **/

:root {
  --color-background: #cbd5e1;
  --color-background-alt: #8ec6ff;
  --color-border-active: #173db6;
  --color-border-default: #94a3b8;
  --color-highlight: #8ec6ff;
  --color-primary: #144be1;
  --color-primary-active: #19388f;
  --color-text-default: #0f172a;
  --color-text-muted: #475569;

  --font-family-body: "Anton", sans-serif;
  --font-family-display: "Anton", sans-serif;
}

body.dark-mode {
  --color-background: #0b1220;
  --color-background-alt: #151d2e;
  --color-border-active: #3b9dff;
  --color-border-default: #2a3647;
  --color-highlight: #3b9dff;
  --color-primary: #3b9dff;
  --color-primary-active: #60a5fa;
  --color-text-default: #e8eef5;
  --color-text-muted: #9ca3af;
}

/** Base **/

*,
::before,
::after {
  box-sizing: border-box;
}

* {
  border: 0;
  margin: 0;
  padding: 0;
}

body {
  -webkit-font-smoothing: antialiased;
  font-family: var(--font-family-body);
  font-optical-sizing: auto;
  font-style: normal;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}

[type="checkbox"],
[type="radio"],
[type="range"] {
  appearance: none;
  flex-shrink: 0;
  padding: 0;
  user-select: none;
}

[type="checkbox"]:focus,
[type="radio"]:focus,
[type="range"]:focus {
  outline: none;
}

/** Components **/

.fs-form {
  display: grid;
  row-gap: 1rem;
  margin-top: 3rem;
}

.fs-form:where(.fs-layout__2-column) {
  column-gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

fieldset {
  display: grid;
  margin: 1rem 0;
  row-gap: 1rem;
}

.fs-form:where(.fs-layout__2-column) fieldset {
  column-gap: 1rem;
  grid-template-columns: 1fr 1fr;
  grid-column: 1 / -1;
}

.fs-fieldset-title {
  color: var(--color-text-default);
  font-family: var(--font-family-display);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1rem;
  margin-bottom: 1rem;
  grid-column: 1 / -1;
}

.fs-field {
  display: flex;
  flex-direction: column;
  row-gap: 1rem;
}

.fs-label {
  color: var(--color-text-default);
  display: block;
  font-family: var(--font-family-display);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1rem;
}

.fs-description {
  color: var(--color-text-muted);
  display: block;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.fs-button-group {
  display: flex;
  flex-direction: row-reverse;
  column-gap: 1.5rem;
}

.fs-form:where(.fs-layout__2-column) .fs-button-group {
  grid-column: 1 / -1;
}

.fs-button {
  background-color: var(--color-primary);
  border-radius: 0.375rem;
  color: white;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1rem;
  padding: 1rem 2rem;
  transition-duration: 200ms;
  transition-property: background-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.fs-button:hover {
  background-color: var(--color-primary-active);
}

.fs-button:focus-visible {
  background-color: var(--color-primary-active);
  outline: 3px solid var(--color-highlight);
}

.fs-input,
.fs-select {
  appearance: none;
  border-radius: 0.375rem;
  border-width: 0;
  box-shadow: var(--color-border-default) 0 0 0 1px inset;
  color: #004cff;
  font-size: 1rem;
  height: 2.5rem;
  line-height: 1.5rem;
  outline: none;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.fs-input:focus-visible,
.fs-select:focus-visible {
  box-shadow: var(--color-border-active) 0 0 0 1.5px inset;
  outline: 3px solid var(--color-highlight);
  outline-offset: 0;
}

.fs-input::placeholder {
  color: var(--color-text-muted);
}

.fs-checkbox-group,
.fs-radio-group {
  display: flex;
  flex-direction: column;
  row-gap: 0.5rem;
}

.fs-checkbox-field,
.fs-radio-field {
  column-gap: 0.5rem;
  display: flex;
}

:is(.fs-checkbox-field, .fs-radio-field) .fs-label+.fs-description {
  margin-top: 0.125rem;
}

.fs-checkbox-wrapper,
.fs-radio-wrapper {
  align-items: center;
  display: flex;
  height: 1.25rem;
}

.fs-checkbox,
.fs-radio {
  background-color: #fff;
  border: 1px solid var(--color-text-default);
  height: 1rem;
  width: 1rem;
}

.fs-checkbox {
  border-radius: 0.25rem;
}

.fs-radio {
  border-radius: 100%;
}

.fs-checkbox:checked,
.fs-radio:checked {
  background-color: var(--color-primary);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  border-color: transparent;
}

.fs-checkbox:checked {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
}

.fs-radio:checked {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
}

.fs-checkbox:focus-visible,
.fs-radio:focus-visible {
  outline: 3px solid var(--color-highlight);
  outline-offset: 0;
}

.fs-select {
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

.fs-slider {
  background: transparent;
  cursor: pointer;
  height: 1.25rem;
  width: 100%;
}

.fs-slider::-moz-range-track {
  background-color: var(--color-background);
  border-radius: 0.5rem;
  height: 0.5rem;
}

.fs-slider::-webkit-slider-runnable-track {
  background-color: var(--color-background);
  border-radius: 0.5rem;
  height: 0.5rem;
}

.fs-slider::-moz-range-thumb {
  background-color: var(--color-primary);
  border: none;
  /* Removes extra border that FF applies */
  border-radius: 50%;
  height: 1.25rem;
  width: 1.25rem;
}

.fs-slider::-webkit-slider-thumb {
  appearance: none;
  background-color: var(--color-primary);
  border-radius: 50%;
  height: 1.25rem;
  margin-top: -0.375rem;
  /* Centers thumb on the track */
  width: 1.25rem;
}

.fs-slider:focus-visible::-moz-range-thumb {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.fs-slider:focus-visible::-webkit-slider-thumb {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.fs-switch {
  background-color: var(--color-background-alt);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='white'/%3e%3c/svg%3e");
  background-position: left center;
  background-repeat: no-repeat;
  border-radius: 1.5rem;
  cursor: pointer;
  height: 1.5rem;
  transition-duration: 200ms;
  transition-property: background-color, background-position;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  width: 2.75rem;
}

.fs-switch:checked {
  background-color: var(--color-primary);
  background-position: right center;
}

.fs-switch:focus-visible {
  outline: 3px solid var(--color-highlight);
  outline-offset: 0;
}

.fs-textarea {
  appearance: none;
  border-radius: 0.375rem;
  border-width: 0;
  box-shadow: var(--color-border-default) 0 0 0 1px inset;
  color: #004cff;
  font-size: 1rem;
  line-height: 1.5rem;
  outline: none;
  padding: 0.5rem 0.75rem;
  resize: vertical;
}

.fs-textarea:focus-visible {
  box-shadow: var(--color-border-active) 0 0 0 1.5px inset;
  outline: 3px solid var(--color-highlight);
  outline-offset: 0;
}

.fs-textarea::placeholder {
  color: var(--color-text-muted);
}

/** Utilities **/

.col-span-full {
  grid-column: 1 / -1;
}

.fs-textarea::placeholder {
  color: var(--color-text-muted);
}

.slider-label-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 0.25rem;
}

.slider-label-text {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: center;
  white-space: nowrap;
}

.form-hint {
  color: var(--muted);
  font-size: .9rem;
}

/* ====== Footer ====== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  gap: 16px;
  flex-wrap: wrap;
}

.social {
  display: inline-flex;
  padding: .4rem;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.social:hover {
  background: var(--bg-alt);
  text-decoration: none;
}

/* ====== Utilities ====== */
.narrow {
  max-width: 820px;
}

.hint {
  color: var(--muted);
  font-size: .95rem;
  margin-top: .75rem;
}

/* ====== Social Icons Dark Mode Fix (Para invertir de Negro a Blanco) ====== */

body.dark-mode .social img,
body.dark-mode .social svg {
  /* 'invert(1)' convierte el negro (0% brillo) en blanco (100% brillo).
    Otros filtros aseguran un resultado limpio y brillante.
  */
  filter: invert(1) brightness(1.2);
}

/* Si el ícono es un SVG y se comporta como texto, puedes forzar el color
  de su relleno (fill) a blanco. Si usas 'fill', elimina el 'filter' de arriba.
  body.dark-mode .social svg {
    fill: var(--text); /* Usa la variable blanca del modo oscuro */

/* ====== Responsiveness ====== */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

/* ====== Hero banner (inserte encima de la tarjeta derecha) ====== */
.hero-banner {
  position: relative;
  color: #ffffff;
  padding: 2rem 1rem;
  min-height: 120px;

  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  box-shadow: 0 8px 24px rgba(126, 190, 255, 0.12);
  margin-bottom: 18px;
  overflow: hidden;
  background: linear-gradient(90deg, #3b9dff 0%, #aee4ff 100%);
}

/* imagen de fondo en una capa separada */
.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('./assets/Tobi.png');
  /* <- ajusta nombre/ruta */
  background-size: cover;
  /* muestra toda la imagen ocupando el área */
  background-position: center;
  /* prueba 'center right' o 'center left' si quieres otra zona visible */
  background-repeat: no-repeat;
  opacity: 0.18;
  /* baja para no interferir con el texto */
  filter: blur(0px);
  pointer-events: none;
  z-index: 0;
}

/* mantener contenido encima */
.hero-banner>* {
  position: relative;
  z-index: 1;
}

/* estilos de texto en la sección izquierda */
.hero-banner .banner-left {
  font-size: 1.35rem;
  /* aumenta tamaño (prueba 1.35rem si quieres más grande) */
  font-weight: 800;
  /* semi-bold para mejor legibilidad */
  line-height: 1.3;
  /* espaciado entre líneas */
  letter-spacing: -0.2px;
  /* ajusta el espaciado entre letras */
}

/* ajuste responsive para móviles */
@media (max-width: 980px) {
  .hero-banner .banner-left {
    font-size: 1.1rem;
  }

  .hero-banner {
    padding: .9rem .75rem;
    min-height: 72px;
  }

  .hero-banner::before {
    opacity: 0.12;
    background-position: center;
  }
}

.anton-regular {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-style: normal;
}