:root {
  --color-primario: #021426;
  --color-secundario: #0f62fe;
  --color-acento: #2cd4d9;
  --color-oscuro: #0b1f3a;
  --color-claro: #f4f6fb;
  --color-texto: #e2e8f0;
  --color-body: #0a1220;
  --font-display: "Radex Pro", "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-base: "Radex Pro", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-width: 1200px;
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --shadow-soft: 0 20px 45px rgba(2, 20, 38, 0.35);
  --shadow-card: 0 12px 30px rgba(2, 20, 38, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  background-color: var(--color-body);
  color: var(--color-texto);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--color-acento);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.shell {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 1rem;
  background: var(--color-secundario);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
  z-index: 999;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  width: 100%;
  padding: 1rem 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
  background: rgba(2, 20, 38, 0.96);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
}

.site-header.is-solid {
  background: rgba(2, 20, 38, 0.96);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
}

.site-header[data-header-transparent]:not(.is-solid) {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.hero,
.section {
  scroll-margin-top: 6rem;
}

main {
  padding-top: 5.5rem;
}

.has-transparent-header main {
  padding-top: 0;
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header .logo {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(1, 10, 20, 0.65);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.site-header .logo img {
  display: block;
}

.site-nav {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  background: rgba(2, 20, 38, 0.98);
  display: flex;
  flex-direction: column;
  padding: 4rem 2rem;
  gap: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.site-nav .nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.site-nav .nav-cta {
  padding: 0.4rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
}

.nav-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.nav-close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.site-nav.open {
  transform: translateX(0);
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: #fff;
  display: block;
  margin: 3px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.media-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(2, 20, 38, 0.9) 10%, rgba(0, 33, 66, 0.65) 45%, rgba(0, 0, 0, 0.25) 80%),
    radial-gradient(circle at top, rgba(12, 150, 255, 0.25), rgba(2, 20, 38, 0.85));
  z-index: -1;
}

.hero-content {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.has-transparent-header .hero {
  padding-top: 7rem;
}

.has-transparent-header .hero-content {
  padding-top: 2rem;
}

@media (min-width: 768px) {
  .has-transparent-header .hero {
    padding-top: 5rem;
  }

  .has-transparent-header .hero-content {
    padding-top: 5rem;
  }
}

.hero-copy {
  max-width: 560px;
  background: rgba(2, 18, 36, 0.45);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
}

.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-acento);
  margin-bottom: 0.5rem;
}

.lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.9rem 1.8rem;
  border: 1px solid transparent;
  font-weight: 600;
  font-family: var(--font-display);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(120deg, var(--color-secundario), var(--color-acento));
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.hero-metrics span {
  font-size: 1.4rem;
  font-weight: 600;
}

.page-feedback {
  padding: 8rem 0 6rem;
  background: radial-gradient(circle at top, rgba(50, 117, 175, 0.35), rgba(1, 10, 20, 0.95));
  color: #f5f7fb;
}

.page-feedback .shell {
  max-width: 960px;
}

.feedback-card {
  background: rgba(2, 15, 32, 0.85);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  padding: 2rem;
  display: grid;
  gap: 2rem;
}

.feedback-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: 0.5rem;
}

.feedback-list li {
  padding-left: 1.5rem;
  position: relative;
  color: rgba(229, 236, 245, 0.85);
}

.feedback-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-acento);
  position: absolute;
  left: 0;
  top: 0.6rem;
}

.feedback-panel {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
}

.panel-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.feedback-panel-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.feedback-panel-grid span {
  font-weight: 600;
  color: #fff;
}

.feedback-panel-grid p {
  margin: 0.25rem 0 0;
  color: rgba(229, 236, 245, 0.85);
}

.error-page {
  background: radial-gradient(circle at top, rgba(255, 92, 92, 0.25), rgba(15, 18, 32, 0.95));
}

.hero-chips {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-chips span {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
}

.section {
  padding: 4rem 0;
}

.section.muted {
  background: rgba(255, 255, 255, 0.03);
}

.section.light {
  background: #f4f6fb;
  color: #0b1f3a;
}

.section.light .section-header .eyebrow {
  color: #0b6b88;
}

.section.light .section-header h2,
.section.light .section-header p {
  color: #0b1f3a;
}


.section-header {
  text-align: left;
  margin-bottom: 2rem;
}

.services-grid,
.values-grid {
  display: grid;
  gap: 1.5rem;
}

.service-card {
  background: rgba(2, 20, 38, 0.85);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  box-shadow: var(--shadow-card);
}

.service-media {
  width: 100%;
}

.service-media {
  width: 100%;
  min-height: 260px;
  display: flex;
  height: 100%;
}

.service-media img {
  width: 100%;
  flex: 1;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.section.light .service-card {
  background: rgba(2, 20, 38, 0.9);
  color: #e7ecf5;
}

.section.light .service-card h3 {
  color: #fff;
}

.section.light .service-card p,
.section.light .service-card li {
  color: rgba(231, 236, 245, 0.9);
}

.service-body {
  padding: 1.5rem;
}

.service-card ul {
  padding-left: 1.2rem;
  margin: 0;
}

.service-card li {
  margin-bottom: 0.6rem;
}

.badge {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(44, 212, 217, 0.18);
  color: var(--color-acento);
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline article {
  padding: 1.5rem;
  background: rgba(2, 20, 38, 0.85);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline article span {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-acento);
}

.values-section {
  background: #f2f2f2;
  color: #29387e;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.values-intro {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.values-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.values-pill-group span {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(41, 56, 126, 0.2);
  color: #29387e;
  background: rgba(50, 117, 175, 0.1);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.values-featured {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.values-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid rgba(41, 56, 126, 0.08);
  box-shadow: 0 15px 35px rgba(50, 117, 175, 0.15);
  color: #1c2a5a;
}

.values-card.highlight {
  background: linear-gradient(135deg, #3275af, #29387e);
  color: #ffffff;
}

.values-card.highlight h3 {
  color: #ffffff;
}

.values-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.value-chip {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(41, 56, 126, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: #1c2a5a;
}

.faq-grid {
  display: grid;
  gap: 1rem;
}

.faq-grid details {
  background: rgba(2, 20, 38, 0.85);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-grid summary {
  cursor: pointer;
  font-weight: 600;
}

.contact-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.contact-form {
  background: rgba(2, 20, 38, 0.9);
  padding: 2rem;
  border-radius: var(--radius-lg);
  display: grid;
  gap: 1rem;
  box-shadow: var(--shadow-card);
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
  padding: 0.9rem 1rem;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--color-secundario);
  border-color: transparent;
}

.consent {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.8rem;
}

.consent input {
  width: 18px;
  height: 18px;
  margin-top: 0.25rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: 0.75rem;
}

.contact-list span {
  display: block;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.6);
}

.notice {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.notice .link {
  color: var(--color-acento);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.site-footer {
  background: #010a14;
  padding: 4rem 0;
  color: rgba(255, 255, 255, 0.85);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer-brand p {
  max-width: 280px;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 1rem;
}

.footer-column h4 {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-acento);
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}

.footer-column li {
  margin: 0;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.footer-contact span {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.55);
}

.footer-contact li {
  margin-bottom: 0.5rem;
}

.footer-contact a {
  color: #fff;
  font-weight: 600;
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2.5rem;
  padding-top: 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.privacy-modal,
.privacy-backdrop {
  position: fixed;
  inset: 0;
}

.privacy-modal {
  z-index: 1001;
}

.privacy-backdrop {
  z-index: 1000;
}

.privacy-backdrop {
  background: rgba(2, 20, 38, 0.7);
}

.privacy-modal[hidden],
.privacy-backdrop[hidden] {
  display: none;
}

.privacy-dialog {
  background: #061126;
  border-radius: var(--radius-lg);
  max-width: 600px;
  margin: 5vh auto;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.privacy-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.icon-button {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

@media (min-width: 768px) {
  .site-nav {
    position: static;
    transform: none;
    width: auto;
    height: auto;
    background: transparent;
    padding: 0;
    max-width: none;
    display: flex;
    align-items: center;
  }

  .nav-panel-header,
  .nav-close {
    display: none;
  }

  .site-nav .nav-links {
    flex-direction: row;
    gap: 1.5rem;
    align-items: center;
  }

  .nav-toggle {
    display: none;
  }

  .hero {
    min-height: 90vh;
  }

  .service-card {
    grid-template-columns: minmax(180px, 1.2fr) 1.4fr;
    align-items: stretch;
    max-height: 400px;
  }

  .service-card:nth-child(even) .service-media {
    order: 2;
    justify-content: flex-end;
  }

  .service-media {
    min-height: 220px;
  }

  .values-intro {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

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

  .feedback-card {
    grid-template-columns: 1.4fr 1fr;
  }

  .timeline {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .site-footer .shell {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
