/* Estilos principales para sitio profesional - Diego Camilo Benavides González */
:root {
  --bg: #eef4f8;
  --section-alt: #f7fafc;
  --surface: #ffffff;
  --text: #071a2b;
  --muted: #526579;
  --accent: #149fe8;
  --accent-light: #38bdf8;
  --accent-soft: #e7f6fd;
  --navy: #071a2b;
  --navy-secondary: #0b2745;
  --card: rgba(255, 255, 255, 0.92);
  --border: rgba(9, 33, 63, 0.1);
  --shadow: 0 14px 34px rgba(9, 33, 63, 0.08);
  --radius: 10px;
  --container: 1120px;
  --ff: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--ff);
  line-height: 1.65;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(9, 33, 63, 0.08);
  background: rgba(247, 249, 252, 0.92);
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.brand {
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  position: relative;
  display: block;
  padding: 0.65rem 0.7rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease;
}

.nav-links a::after {
  position: absolute;
  right: 0.7rem;
  bottom: 0.25rem;
  left: 0.7rem;
  height: 2px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  padding: 0.4rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
}

.nav-toggle .hamburger,
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
}

.nav-toggle .hamburger {
  position: relative;
}

.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  position: absolute;
  left: 0;
  content: "";
}

.nav-toggle .hamburger::before {
  top: -6px;
}

.nav-toggle .hamburger::after {
  top: 6px;
}

/* Portada */
.hero {
  padding: 5.5rem 0 4.5rem;
  background: linear-gradient(135deg, #e8f2fa 0%, #f4f8fb 58%, #eef4f8 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 4rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(22, 143, 209, 0.22);
  border-radius: 4px;
  color: #0a5d91;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero h1 {
  max-width: 18ch;
  margin: 0;
  color: var(--text);
  font-size: clamp(2.15rem, 4vw, 3.4rem);
  line-height: 1.13;
}

.hero h2 {
  max-width: 38rem;
  margin: 1rem 0 0;
  color: #20496c;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.45;
}

.lead {
  max-width: 39rem;
  margin: 1.35rem 0 0;
  font-size: 1.08rem;
}

.hero-supporting-text {
  max-width: 41rem;
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  background: var(--surface);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.btn.primary {
  border-color: var(--text);
  color: #ffffff;
  background: var(--text);
}

.btn.outline {
  border-color: rgba(22, 143, 209, 0.48);
  color: #075f96;
}

.btn:hover {
  border-color: rgba(9, 33, 63, 0.25);
  box-shadow: 0 8px 18px rgba(9, 33, 63, 0.1);
  transform: translateY(-2px);
}

.btn.primary:hover {
  border-color: #12375e;
  background: #12375e;
}

.btn.outline:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.hero-indicators {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 2.2rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-indicators li {
  padding: 0.2rem 0 0.2rem 0.8rem;
  border-left: 2px solid var(--accent);
  color: #36536e;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.4;
}

.hero-image {
  position: relative;
  justify-self: end;
  width: min(100%, 340px);
}

.hero-image::before {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(22, 143, 209, 0.34);
  background-image: linear-gradient(rgba(22, 143, 209, 0.16) 1px, transparent 1px), linear-gradient(90deg, rgba(22, 143, 209, 0.16) 1px, transparent 1px);
  background-size: 12px 12px;
  content: "";
}

.hero-image-frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: grid;
  min-height: 340px;
  place-content: center;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: linear-gradient(145deg, #09213f 0%, #0d4775 58%, #168fd1 100%);
  box-shadow: var(--shadow);
}

.hero-image-frame::before,
.hero-image-frame::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.22);
  content: "";
}

.hero-image-frame::before {
  top: 24px;
  right: 24px;
  width: 76px;
  height: 76px;
}

.hero-image-frame::after {
  bottom: -38px;
  left: -38px;
  width: 156px;
  height: 156px;
  border-radius: 50%;
}

.brand-initials,
.brand-caption {
  position: relative;
  z-index: 1;
  display: block;
  text-align: center;
}

.brand-initials {
  color: #ffffff;
  font-size: clamp(5rem, 16vw, 8.5rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.9;
}

.brand-caption {
  margin-top: 1rem;
  color: #d9efff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* Secciones y tarjetas */
.section {
  padding: 4rem 0;
}

main section[id] {
  scroll-margin-top: 90px;
}

.section-soft {
  padding-right: 1.5rem;
  padding-left: 1.5rem;
  border: 1px solid rgba(9, 33, 63, 0.06);
  border-radius: 12px;
  background: var(--section-alt);
}

h3 {
  margin: 0 0 1.5rem;
  color: var(--text);
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.25;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: start;
}

.about-text p,
.contact > p:not(.contact-statement):not(.contact-details) {
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
  text-align-last: left;
}

.card {
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 8px 22px rgba(9, 33, 63, 0.045);
}

.about-cta .card {
  background: linear-gradient(145deg, #ffffff, #f0f7fc);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card.service h4 {
  margin-top: 0;
}

.card.service {
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.card.service:hover {
  border-color: rgba(22, 143, 209, 0.35);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.experience-grid,
.skills-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.experience-card,
.skill-group,
.project {
  height: 100%;
}

.experience-card h4,
.skill-group h4,
.project h4 {
  margin-top: 0;
  color: var(--text);
}

.experience-card p,
.project p {
  margin-bottom: 0;
  color: var(--muted);
}

.skill-group ul {
  display: grid;
  gap: 0.42rem;
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.skill-group li::marker {
  color: var(--accent);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.85rem;
}

.contact .contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.35rem 0 0.9rem;
}

.contact .btn {
  min-width: 172px;
}

.email-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.email-address {
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration-color: rgba(9, 33, 63, 0.3);
  text-underline-offset: 0.18rem;
}

.email-address:hover {
  color: var(--text);
  text-decoration-color: var(--accent);
}

.copy-email {
  border-color: rgba(22, 143, 209, 0.48);
  color: #075f96;
}

.copy-email:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.contact-details {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.contact-details span {
  margin: 0 0.35rem;
  color: var(--accent);
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 8px 20px rgba(9, 33, 63, 0.18);
  cursor: pointer;
}

.site-footer {
  margin-top: 2rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

/* Aparición discreta de secciones */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Accesibilidad */
a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(22, 143, 209, 0.32);
  outline-offset: 3px;
}

@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 2.25rem;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-image-frame {
    min-height: 280px;
  }
}

@media (max-width: 760px) {
  .nav {
    min-height: 62px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: 1rem;
    display: none;
    flex-direction: column;
    width: min(250px, calc(100vw - 2rem));
    gap: 0;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a::after {
    bottom: 0.3rem;
  }

  .hero {
    padding: 4rem 0 3.5rem;
  }

  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-image {
    justify-self: start;
    width: min(100%, 340px);
  }

  .hero-indicators {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .experience-grid,
  .skills-groups {
    grid-template-columns: 1fr;
  }

  .section-soft {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .about-text p,
  .contact > p:not(.contact-statement):not(.contact-details) {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 1.5rem, var(--container));
  }

  .hero-actions .btn {
    width: 100%;
  }

  .contact .btn {
    width: 100%;
  }

  .section {
    padding: 3.5rem 0;
  }
}

.contact {
  background: var(--section-alt);
}

/* Sistema visual ejecutivo */
body {
  overflow-x: hidden;
}

.site-header {
  position: fixed;
  right: 0;
  left: 0;
  border-bottom-color: rgba(255, 255, 255, 0.14);
  background: #071a2b;
  background: rgba(7, 26, 43, 0.76);
  box-shadow: none;
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

@supports (backdrop-filter: blur(10px)) {
  .site-header {
    backdrop-filter: blur(12px);
  }
}

.site-header.is-scrolled {
  border-bottom-color: rgba(7, 26, 43, 0.1);
  background: rgba(247, 250, 252, 0.96);
  box-shadow: 0 4px 16px rgba(7, 26, 43, 0.08);
}

.brand,
.nav-links a {
  color: rgba(255, 255, 255, 0.9);
}

.site-header.is-scrolled .brand,
.site-header.is-scrolled .nav-links a {
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"],
.site-header.is-scrolled .nav-links a:hover,
.site-header.is-scrolled .nav-links a:focus-visible,
.site-header.is-scrolled .nav-links a[aria-current="page"] {
  color: var(--surface);
}

.site-header.is-scrolled .nav-links a:hover,
.site-header.is-scrolled .nav-links a:focus-visible,
.site-header.is-scrolled .nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-links a::after {
  background: var(--accent-light);
}

.nav-toggle .hamburger,
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  background: var(--surface);
}

.site-header.is-scrolled .nav-toggle .hamburger,
.site-header.is-scrolled .nav-toggle .hamburger::before,
.site-header.is-scrolled .nav-toggle .hamburger::after {
  background: var(--text);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 85svh;
  padding: 9.5rem 0 5.5rem;
  overflow: hidden;
  background: linear-gradient(125deg, #071a2b 0%, #0b2745 58%, #103e64 100%);
  border-bottom: 1px solid rgba(20, 159, 232, 0.24);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(123, 211, 249, 0.16) 1px, transparent 1.2px),
    linear-gradient(rgba(56, 189, 248, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.065) 1px, transparent 1px),
    linear-gradient(135deg, transparent 49.75%, rgba(56, 189, 248, 0.045) 50%, transparent 50.25%);
  background-position: 0 0, 0 0, 0 0, 22px 22px;
  background-size: 42px 42px, 42px 42px, 42px 42px, 84px 84px;
  content: "";
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.38), black 48%, transparent 88%);
}

.hero::after {
  position: absolute;
  top: -28rem;
  right: -14rem;
  z-index: -1;
  width: 50rem;
  height: 50rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 159, 232, 0.24) 0%, rgba(20, 159, 232, 0.08) 34%, transparent 68%);
  pointer-events: none;
  opacity: 0.72;
  transform: translate3d(0, 0, 0) scale(1);
  animation: hero-ambient-glow 16s ease-in-out infinite;
  will-change: transform, opacity;
  content: "";
}

.hero-grid {
  position: relative;
  width: min(100% - 2rem, var(--container));
  align-self: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.hero-eyebrow {
  border-color: rgba(56, 189, 248, 0.44);
  color: var(--accent-light);
  background: rgba(56, 189, 248, 0.1);
}

.hero h1 {
  max-width: 16ch;
  color: var(--surface);
  font-size: clamp(2.45rem, 5vw, 4.45rem);
  letter-spacing: 0;
}

.hero h2 {
  color: #c9eafa;
  font-size: clamp(1.1rem, 1.8vw, 1.42rem);
}

.hero .lead {
  max-width: 39rem;
  color: #e4f2fa;
  font-size: 1.12rem;
}

.hero-supporting-text {
  color: #aec6d8;
}

.btn {
  border-radius: 6px;
}

.hero .btn.primary {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 9px 24px rgba(20, 159, 232, 0.22);
}

.hero .btn.primary:hover {
  border-color: var(--accent-light);
  background: #0f8fd4;
  box-shadow: 0 12px 28px rgba(20, 159, 232, 0.3);
  transform: translateY(-3px);
}

.hero .btn.outline {
  border-color: rgba(56, 189, 248, 0.72);
  color: #d9f2ff;
  background: rgba(7, 26, 43, 0.22);
}

.hero .btn.outline:hover {
  border-color: var(--accent-light);
  color: var(--surface);
  background: rgba(56, 189, 248, 0.14);
}

.hero-indicators {
  gap: 1.15rem;
  margin-top: 2.65rem;
}

.hero-indicators li {
  min-height: 4.1rem;
  padding: 0.75rem 0.8rem 0;
  border-top: 1px solid rgba(56, 189, 248, 0.68);
  border-left: 0;
  color: #b7ccdc;
  font-size: 0.82rem;
}

.indicator-emphasis {
  display: block;
  margin-bottom: 0.12rem;
  color: var(--surface);
  font-size: 0.96rem;
  font-weight: 700;
}

.hero-image {
  width: min(100%, 365px);
}

.hero-image::before {
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border-color: rgba(56, 189, 248, 0.38);
  background-image: linear-gradient(rgba(56, 189, 248, 0.18) 1px, transparent 1px), linear-gradient(90deg, rgba(56, 189, 248, 0.18) 1px, transparent 1px);
}

.hero-image-frame {
  min-height: 365px;
  border-color: rgba(255, 255, 255, 0.34);
  background: linear-gradient(145deg, #0b2745 0%, #0e5687 58%, #149fe8 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  animation: brand-float 8s ease-in-out infinite;
}

.hero-image-frame::before,
.hero-image-frame::after {
  border-color: rgba(255, 255, 255, 0.3);
}

.brand-caption {
  color: #e2f5ff;
}

.section {
  position: relative;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.section-soft,
.section-dark {
  box-shadow: 0 0 0 100vmax var(--section-alt);
  clip-path: inset(0 -100vmax);
}

.section-soft {
  border: 0;
  border-radius: 0;
  background: var(--section-alt);
}

.section-dark {
  color: #d5e5ef;
  background: linear-gradient(128deg, var(--navy) 0%, var(--navy-secondary) 68%, #103b5e 100%);
  box-shadow: 0 0 0 100vmax var(--navy-secondary);
}

.section-kicker {
  margin: 0 0 0.6rem;
  color: #0875b1;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 1.8rem;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
}

.section-dark .section-kicker {
  color: var(--accent-light);
}

.section-dark h3 {
  color: var(--surface);
}

.about-text {
  max-width: 47rem;
}

.about-text p {
  margin: 0 0 1.25rem;
}

.card {
  border-color: rgba(11, 39, 69, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(7, 26, 43, 0.07);
}

.about-cta .card {
  position: relative;
  overflow: hidden;
  border-color: rgba(20, 159, 232, 0.26);
  background: var(--surface);
}

.about-cta .card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent-light);
  content: "";
}

.about-cta .btn {
  border-color: var(--accent);
  color: var(--surface);
  background: var(--accent);
}

.cards-grid {
  align-items: stretch;
  gap: 1.25rem;
}

.card.service,
.project {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 232px;
  padding: 1.55rem;
  border-top: 3px solid rgba(20, 159, 232, 0.72);
}

.card.service h4,
.project h4 {
  margin: 1.45rem 0 0.75rem;
  padding-right: 2.1rem;
}

.card.service p,
.project p {
  color: var(--muted);
}

.card-index {
  position: absolute;
  top: 1.15rem;
  right: 1.25rem;
  color: #8abbd7;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.card-mark {
  width: 18px;
  height: 18px;
  border: 2px solid var(--accent);
  transform: rotate(45deg);
}

.card.service:hover,
.project:hover {
  border-color: rgba(20, 159, 232, 0.72);
  box-shadow: 0 18px 38px rgba(7, 26, 43, 0.13);
  transform: translateY(-5px);
}

.experience-grid {
  gap: 1.25rem;
}

.experience-card {
  min-height: 205px;
  border-color: rgba(185, 224, 246, 0.2);
  border-top: 2px solid var(--accent-light);
  background: rgba(20, 63, 94, 0.68);
  box-shadow: none;
}

.experience-card h4 {
  color: var(--surface);
}

.experience-card p {
  color: #c2d5e2;
}

.skill-group {
  position: relative;
  min-height: 230px;
  border-top: 3px solid var(--accent);
}

.skill-group h4 {
  margin-bottom: 1rem;
}

.skill-group ul {
  gap: 0.5rem;
}

.project {
  min-height: 245px;
}

.specialization-label {
  display: inline-flex;
  width: fit-content;
  margin-top: auto;
  padding-top: 1rem;
  color: #0875b1;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.contact {
  background: linear-gradient(128deg, var(--navy) 0%, var(--navy-secondary) 68%, #103b5e 100%);
  box-shadow: 0 0 0 100vmax var(--navy-secondary);
}

.contact h3 {
  color: var(--surface);
}

.contact-statement {
  max-width: 46rem;
  margin: -0.9rem 0 1rem;
  color: var(--accent-light);
  font-size: clamp(1.06rem, 2vw, 1.25rem);
  font-weight: 600;
}

.contact > p:not(.contact-statement):not(.contact-details) {
  max-width: 48rem;
  color: #c6d9e6;
}

.contact .btn.primary {
  border-color: var(--accent);
  background: var(--accent);
}

.contact .btn.outline,
.contact .copy-email {
  border-color: rgba(56, 189, 248, 0.72);
  color: #d9f2ff;
  background: rgba(255, 255, 255, 0.04);
}

.contact .btn.outline:hover,
.contact .copy-email:hover {
  border-color: var(--accent-light);
  background: rgba(56, 189, 248, 0.14);
}

.email-address,
.contact-details {
  color: #c6d9e6;
}

.email-address:hover {
  color: var(--surface);
  text-decoration-color: var(--accent-light);
}

.contact-details span {
  color: var(--accent-light);
}

.site-footer {
  margin-top: 0;
  padding: 1.75rem 0;
  border: 0;
  color: #a8bdcc;
  background: #04111d;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}

.site-footer p {
  margin: 0;
}

.footer-tagline {
  color: #d5edf9;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.back-to-top {
  background: var(--accent);
}

.reveal {
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms ease;
}

@keyframes brand-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes hero-ambient-glow {
  0%,
  100% {
    opacity: 0.62;
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    opacity: 0.82;
    transform: translate3d(-18px, 12px, 0) scale(1.035);
  }
}

@media (max-width: 760px) {
  .nav-links {
    border-color: rgba(255, 255, 255, 0.16);
    background: #0b2745;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  }

  .nav-links a,
  .site-header.is-scrolled .nav-links a {
    color: #d7eaf5;
  }

  .nav-links a:hover,
  .nav-links a:focus-visible,
  .nav-links a[aria-current="page"],
  .site-header.is-scrolled .nav-links a:hover,
  .site-header.is-scrolled .nav-links a:focus-visible,
  .site-header.is-scrolled .nav-links a[aria-current="page"] {
    color: var(--surface);
  }

  .hero {
    min-height: auto;
    padding-top: 8rem;
  }

  .hero::before {
    background-size: 52px 52px, 52px 52px, 52px 52px, 104px 104px;
    opacity: 0.78;
  }

  .hero::after {
    opacity: 0.52;
  }

  .hero-image {
    justify-self: start;
    width: min(100%, 350px);
  }

  .hero-image-frame {
    min-height: 320px;
  }

  .hero-indicators li {
    min-height: auto;
  }

  .section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .section-soft,
  .section-dark,
  .contact {
    clip-path: inset(0 -100vmax);
  }

  .site-footer .container {
    display: block;
  }

  .footer-tagline {
    margin-top: 0.35rem !important;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: clamp(2.25rem, 12vw, 3.1rem);
  }

  .hero-image-frame {
    min-height: 290px;
  }

  .card.service,
  .project,
  .experience-card,
  .skill-group {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .hero::after {
    animation: none;
    opacity: 0.62;
    transform: translate3d(0, 0, 0) scale(1);
    will-change: auto;
  }
}

/* Asistente informativo */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.assistant-widget {
  position: fixed;
  right: 1.125rem;
  bottom: 5rem;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.assistant-launcher {
  display: inline-grid;
  width: 56px;
  height: 56px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: var(--surface);
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(7, 26, 43, 0.24);
  cursor: pointer;
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.assistant-launcher:hover {
  background: #0f8fd4;
  box-shadow: 0 15px 32px rgba(7, 26, 43, 0.3);
  transform: translateY(-2px);
}

.assistant-launcher-icon {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.assistant-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(380px, calc(100vw - 2rem));
  max-height: min(610px, calc(100svh - 8.75rem));
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 20px 46px rgba(7, 26, 43, 0.28);
}

.assistant-panel[hidden] {
  display: none;
}

.assistant-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0.9rem;
  color: var(--surface);
  background: linear-gradient(128deg, var(--navy), var(--navy-secondary));
}

.assistant-header h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.assistant-header p {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.2rem 0 0;
  color: #c9eafa;
  font-size: 0.78rem;
}

.assistant-header p span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #6ee7a5;
}

.assistant-controls {
  display: flex;
  gap: 0.35rem;
}

.assistant-icon-button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  color: var(--surface);
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.assistant-icon-button:hover {
  background: rgba(56, 189, 248, 0.2);
}

.assistant-messages {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  min-height: 0;
  padding: 1rem;
  overflow-y: auto;
  color: var(--text);
  background: #f6fafc;
}

.assistant-message {
  width: fit-content;
  max-width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(11, 39, 69, 0.1);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: 0 4px 12px rgba(7, 26, 43, 0.05);
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.assistant-message--user {
  justify-self: end;
  border-color: rgba(20, 159, 232, 0.28);
  color: #064f7c;
  background: var(--accent-soft);
}

.assistant-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.85rem 1rem calc(1rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(11, 39, 69, 0.1);
  background: var(--surface);
}

.assistant-option {
  min-height: 42px;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(20, 159, 232, 0.38);
  border-radius: 5px;
  color: #075f96;
  background: #ffffff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
}

.assistant-option:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.assistant-option--primary {
  border-color: var(--accent);
  color: var(--surface);
  background: var(--accent);
}

.assistant-option--primary:hover {
  background: #0f8fd4;
}

@media (max-width: 480px) {
  .assistant-widget {
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: max(4.5rem, calc(1rem + env(safe-area-inset-bottom)));
  }

  .assistant-panel {
    width: min(calc(100% - 1.5rem), 420px);
    max-height: min(68svh, 560px);
  }

  .assistant-options {
    grid-template-columns: 1fr;
  }
}