* {
  box-sizing: border-box;
}

:root {
  --bg: #eef3fb;
  --panel: #ffffff;
  --primary: #0a2f6f;
  --primary-soft: #113f8e;
  --primary-dark: #081a39;
  --accent: #0fb4ad;
  --accent-dark: #078983;
  --accent-soft: rgba(15, 180, 173, 0.14);
  --text: #101828;
  --muted: #667085;
  --border: #d8dee9;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.15);
  --soft-shadow: 0 16px 45px rgba(15, 23, 42, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(
      circle at 12% 0%,
      rgba(10, 47, 111, 0.22),
      transparent 31rem
    ),
    radial-gradient(
      circle at 92% 14%,
      rgba(15, 180, 173, 0.18),
      transparent 30rem
    ),
    linear-gradient(135deg, #eef4fb 0%, #f9fbff 55%, #edf8f7 100%);
  color: var(--text);
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 1rem 0;
  backdrop-filter: blur(18px);
  background: rgba(238, 243, 251, 0.76);
  border-bottom: 1px solid rgba(216, 222, 233, 0.62);
}

.section-shell,
.nav {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.nav {
  min-height: 68px;
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(216, 222, 233, 0.72);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.nav button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);

  color: #344054;
  padding: 12px 22px;

  border-radius: 12px;
  cursor: pointer;

  font-weight: 600;
  font-size: 0.95rem;

  transition: all 0.3s ease;
}

.nav button:hover {
  background: var(--primary);
  color: white;

  transform: translateY(-2px);

  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.18);
}

.nav button:active {
  transform: scale(0.97);
}

.nav button:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(15, 180, 173, 0.25);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--primary);
}

.brand img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-links a {
  padding: 0.75rem 0.95rem;
  border-radius: 999px;
  color: #344054;
  font-weight: 800;
  transition: 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary);
  background: rgba(10, 47, 111, 0.08);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 15px;
  background: var(--primary);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: #ffffff;
}

.hero {
  min-height: calc(100vh - 110px);
  padding: 4rem 0 3rem;
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  align-items: center;
  gap: 3rem;
}

.eyebrow,
.badge {
  display: inline-flex;
  width: fit-content;
  margin: 0;
  padding: 0.45rem 0.78rem;
  border-radius: 999px;
  background: rgba(10, 47, 111, 0.08);
  color: var(--primary);
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.hero h1,
.section-heading h2,
.values-panel h2,
.benefits-content h2,
.audience-card h2,
.contact-card h2 {
  margin: 0.8rem 0 1rem;
  color: var(--primary-dark);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(3rem, 7vw, 6rem);
}

.section-heading h2,
.values-panel h2,
.benefits-content h2,
.audience-card h2,
.contact-card h2 {
  font-size: clamp(2.35rem, 4.6vw, 4.5rem);
}

.hero-text,
.section-heading p,
.values-panel p,
.benefits-content p,
.audience-card p,
.contact-card p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0.95rem 1.2rem;
  border-radius: 16px;
  font-weight: 900;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.primary-action {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  box-shadow: 0 18px 38px rgba(10, 47, 111, 0.24);
}

.secondary-action {
  color: var(--primary);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.76);
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-2px);
}

.hero-points {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.68rem 0.82rem;
  border: 1px solid rgba(216, 222, 233, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #344054;
  font-weight: 800;
}

.hero-points span::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-visual {
  position: relative;
  min-height: 590px;
  display: grid;
  place-items: center;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(1px);
  opacity: 0.9;
}

.orb-one {
  width: 280px;
  height: 280px;
  top: 8%;
  right: 5%;
  background: rgba(15, 180, 173, 0.2);
}

.orb-two {
  width: 360px;
  height: 360px;
  left: 0;
  bottom: 4%;
  background: rgba(10, 47, 111, 0.16);
}

.glass-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.main-card {
  width: min(430px, 100%);
  padding: 2rem;
  border-radius: 34px;
}

.main-card img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  display: block;
  margin-bottom: 1rem;
}

.main-card h2 {
  margin: 1rem 0 1.4rem;
  color: var(--primary-dark);
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.card-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.card-metrics div,
.floating-card,
.benefit-cards article,
.audience-grid article {
  border: 1px solid rgba(216, 222, 233, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.75);
}

.card-metrics div {
  padding: 1rem;
}

.card-metrics strong,
.card-metrics span,
.floating-card strong,
.floating-card p {
  display: block;
}

.card-metrics strong {
  color: var(--primary);
  font-size: 1.1rem;
}

.card-metrics span,
.floating-card p {
  margin-top: 0.25rem;
  color: var(--muted);
  line-height: 1.5;
}

.floating-card {
  position: absolute;
  right: 0;
  bottom: 5rem;
  width: min(330px, 78%);
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.pulse {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  margin-top: 0.25rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(15, 180, 173, 0.14);
}

.trust-strip,
.company,
.values,
.services,
.benefits,
.audience,
.contact {
  padding: 4rem 0;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat {
  min-height: 150px;
  padding: 1.2rem;
  display: grid;
  align-content: center;
  border: 1px solid rgba(216, 222, 233, 0.9);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--soft-shadow);
}

.stat strong {
  color: var(--primary);
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  letter-spacing: -0.06em;
}

.stat span {
  color: var(--muted);
  font-weight: 800;
}

.section-heading {
  margin-bottom: 2rem;
}

.company-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.info-card,
.service-card {
  min-height: 270px;
  padding: 1.35rem;
  border: 1px solid rgba(216, 222, 233, 0.9);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--soft-shadow);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.info-card:hover,
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-number,
.service-icon {
  width: 54px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent-dark));
  font-weight: 900;
}

.service-icon {
  font-size: 1.4rem;
}

.info-card h3,
.service-card h3,
.values-list h3,
.audience-grid h3 {
  margin: 1.1rem 0 0.6rem;
  color: var(--primary-dark);
  font-size: 1.35rem;
}

.info-card p,
.service-card p,
.values-list p,
.audience-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.values-panel,
.audience-card,
.contact-card {
  padding: clamp(1.3rem, 3vw, 2.2rem);
  border: 1px solid rgba(216, 222, 233, 0.95);
  border-radius: 34px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9),
    rgba(247, 252, 252, 0.84)
  );
  box-shadow: var(--soft-shadow);
}

.values-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: center;
}

.values-list {
  display: grid;
  gap: 0.8rem;
}

.values-list article {
  padding: 1rem;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  border: 1px solid rgba(216, 222, 233, 0.86);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
}

.values-list span {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--accent);
  font-weight: 900;
}

.values-list h3 {
  margin: 0 0 0.25rem;
}

.service-grid {
  grid-template-columns: repeat(3, 1fr);
}

.benefits {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: center;
}

.benefit-board {
  min-height: 440px;
  display: grid;
  grid-template-columns: 210px 1fr;
  overflow: hidden;
  border: 1px solid rgba(216, 222, 233, 0.95);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.benefit-sidebar {
  padding: 1.3rem;
  color: #ffffff;
  background: linear-gradient(180deg, var(--primary), #061630);
}

.benefit-sidebar img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  display: block;
  margin-bottom: 0.6rem;
}

.benefit-sidebar strong,
.benefit-sidebar span {
  display: block;
}

.benefit-sidebar span {
  margin-top: 0.15rem;
  color: rgba(255, 255, 255, 0.7);
}

.benefit-sidebar nav {
  margin-top: 1.8rem;
  display: grid;
  gap: 0.55rem;
}

.benefit-sidebar p {
  margin: 0;
  padding: 0.72rem;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.82);
}

.benefit-sidebar .active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.benefit-main {
  padding: 1.3rem;
}

.benefit-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(216, 222, 233, 0.95);
}

.benefit-header h3 {
  margin: 0.8rem 0 0;
  color: var(--primary-dark);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.benefit-header > strong {
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  color: #ffffff;
  background: var(--accent);
}

.benefit-cards {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.benefit-cards article {
  padding: 1rem;
}

.benefit-cards span,
.benefit-cards strong {
  display: block;
}

.benefit-cards span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.benefit-cards strong {
  margin-top: 0.45rem;
  color: var(--primary-dark);
  line-height: 1.3;
}

.timeline {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.75rem;
}

.timeline div {
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border-radius: 18px;
  background: rgba(10, 47, 111, 0.06);
}

.timeline span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
}

.timeline p {
  margin: 0;
  color: #344054;
  font-weight: 800;
}

.audience-card {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 2rem;
  align-items: center;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.audience-grid article {
  padding: 1.25rem;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

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

.footer {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  padding: 70px 20px 35px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  max-width: 1200px;
  margin: auto;

  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 360px;
}

.footer-brand h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 18px;
  color: #fff;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
  font-size: 0.96rem;
}

.footer h2 {
  font-size: 1.05rem;
  margin-bottom: 18px;
  color: white;
  position: relative;
  padding-bottom: 10px;
}

.footer h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;

  width: 45px;
  height: 3px;

  background: var(--accent);
  border-radius: 50px;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer ul li {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.78);
  transition: 0.25s ease;
  font-size: 0.95rem;
}

.footer ul li:hover {
  color: white;
  transform: translateX(4px);
}

.footer a {
  text-decoration: none;
  background: var(--accent);
  color: white;

  padding: 14px 24px;
  border-radius: 12px;

  font-weight: 600;
  transition: 0.3s ease;

  box-shadow: 0 10px 25px rgba(15, 180, 173, 0.2);
}

.footer a:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(15, 180, 173, 0.3);
}

.footer-bottom {
  margin-top: 50px;
  padding-top: 20px;

  border-top: 1px solid rgba(255, 255, 255, 0.08);

  text-align: center;
  color: rgba(255, 255, 255, 0.55);

  font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    gap: 40px;
  }

  .footer a {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer h2::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

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

@media (max-width: 980px) {
  .hero,
  .values-panel,
  .benefits,
  .audience-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 520px;
  }

  .trust-strip,
  .company-grid,
  .service-grid,
  .benefit-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .nav {
    position: relative;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.7rem);
    right: 0;
    left: 0;
    display: none;
    padding: 0.8rem;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid rgba(216, 222, 233, 0.95);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--soft-shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 13vw, 4.2rem);
  }

  .hero-visual {
    min-height: 500px;
  }

  .floating-card {
    right: 50%;
    transform: translateX(50%);
    bottom: 2rem;
    width: 88%;
  }

  .trust-strip,
  .company-grid,
  .service-grid,
  .benefit-board,
  .benefit-cards,
  .audience-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .contact-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .benefit-board {
    display: block;
  }

  .benefit-sidebar nav {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .section-shell,
  .nav {
    width: min(100% - 1rem, 1180px);
  }

  .site-header {
    padding: 0.5rem 0;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .hero,
  .trust-strip,
  .company,
  .values,
  .services,
  .benefits,
  .audience,
  .contact {
    padding: 2.6rem 0;
  }

  .main-card {
    padding: 1.25rem;
  }

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

  .benefit-sidebar nav {
    grid-template-columns: 1fr;
  }
}

.footer {
  position: relative;
  overflow: hidden;

  padding: 100px 20px 40px;

  background: linear-gradient(
    180deg,
    #071833 0%,
    #04101f 100%
  );

  border-top: 1px solid rgba(255,255,255,0.08);

  text-align: center;
}

.footer::before {
  content: "";

  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at top,
      rgba(0, 153, 255, 0.18),
      transparent 55%
    );

  pointer-events: none;
}

.footer-logo {
  position: relative;
  z-index: 2;

  display: flex;
  justify-content: center;

  margin-bottom: 35px;
}

.footer-logo img {
  width: 140px;

  filter:
    drop-shadow(0 0 25px rgba(0,153,255,0.45))
    drop-shadow(0 0 60px rgba(0,153,255,0.25));

  transition: 0.4s ease;
}

.footer-logo img:hover {
  transform: scale(1.05);
}

.footer-inner {
  position: relative;
  z-index: 2;

  max-width: 900px;

  margin: 0 auto;

  display: flex;
  flex-direction: column;
  gap: 30px;

  align-items: center;

  text-align: center;
}

.footer-brand h1 {
  font-size: 3rem;
  margin-bottom: 12px;

  color: white;
}

.footer-brand p,
.footer-about p {
  max-width: 700px;

  color: rgba(255,255,255,0.72);

  line-height: 1.8;
}

.footer-about h2 {
  margin-bottom: 12px;

  color: white;
}

.footer-bottom {
  position: relative;
  z-index: 2;

  margin-top: 50px;
  padding-top: 25px;

  border-top: 1px solid rgba(255,255,255,0.08);

  display: flex;
  flex-direction: column;
  gap: 10px;

  align-items: center;

  color: rgba(255,255,255,0.65);

  font-size: 14px;
}

.footer-bottom span {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .footer {
    padding: 80px 20px 30px;
  }

  .footer-logo img {
    width: 110px;
  }

  .footer-brand h1 {
    font-size: 2.2rem;
  }
}

/* ===== RESPONSIVE PREMIUM PATCH ===== */

/* Evita que padding/anclas queden ocultas debajo del header sticky */
section[id] {
  scroll-margin-top: 110px;
}

.site-header {
  z-index: 1000;
}

.nav {
  isolation: isolate;
}

.nav .primary-action {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  box-shadow: 0 14px 28px rgba(10, 47, 111, 0.18);
}

.nav .primary-action:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-soft), var(--primary));
  box-shadow: 0 16px 34px rgba(10, 47, 111, 0.24);
}

.nav-toggle {
  appearance: none;
  -webkit-appearance: none;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(10, 47, 111, 0.12);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(10, 47, 111, 0.98), rgba(17, 63, 142, 0.98));
  box-shadow: 0 14px 30px rgba(10, 47, 111, 0.22);
  cursor: pointer;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.nav-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(10, 47, 111, 0.28);
}

.nav-toggle:focus-visible {
  outline: 4px solid rgba(15, 180, 173, 0.28);
  outline-offset: 3px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 3.5px 0;
  border-radius: 999px;
  background: #ffffff;
  transform-origin: center;
  transition:
    transform 0.24s ease,
    opacity 0.18s ease,
    width 0.24s ease;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  width: 0;
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 1120px) {
  .section-shell,
  .nav {
    width: min(100% - 1.5rem, 1180px);
  }

  .hero {
    gap: 2rem;
  }
}

@media (max-width: 900px) {
  .site-header {
    padding: 0.7rem 0;
  }

  .nav {
    min-height: 66px;
    padding: 0.55rem 0.65rem;
    border-radius: 22px;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    width: 100%;
    max-height: calc(100vh - 115px);
    overflow-y: auto;
    padding: 0.85rem;
    border: 1px solid rgba(216, 222, 233, 0.95);
    border-radius: 24px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 252, 252, 0.96));
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px) scale(0.98);
    transition:
      opacity 0.22s ease,
      transform 0.22s ease,
      visibility 0.22s ease;
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav-links a,
  .nav-links .primary-action {
    width: 100%;
    min-height: 52px;
    justify-content: center;
    text-align: center;
    border-radius: 16px;
    font-size: 0.98rem;
  }

  .nav-links a {
    background: rgba(10, 47, 111, 0.045);
  }

  .nav-links a:hover {
    background: rgba(10, 47, 111, 0.1);
  }

  .nav-links .primary-action {
    margin-top: 0.25rem;
  }

  body.menu-open {
    overflow: hidden;
  }
}

@media (max-width: 760px) {
  .hero {
    padding-top: 2.5rem;
    text-align: left;
  }

  .hero-actions,
  .hero-points {
    width: 100%;
  }

  .hero-actions a {
    flex: 1 1 180px;
  }

  .hero-points span {
    flex: 1 1 100%;
    justify-content: center;
  }

  .hero-visual {
    min-height: auto;
    padding: 2rem 0 7rem;
  }

  .main-card {
    width: min(100%, 430px);
  }

  .floating-card {
    bottom: 1rem;
  }

  .trust-strip,
  .company-grid,
  .service-grid,
  .benefit-board,
  .benefit-cards,
  .audience-grid {
    gap: 0.85rem;
  }

  .stat,
  .info-card,
  .service-card,
  .values-panel,
  .audience-card,
  .contact-card,
  .benefit-board {
    border-radius: 24px;
  }

  .benefit-sidebar {
    border-radius: 0;
  }

  .benefit-header {
    flex-direction: column;
  }

  .benefit-header > strong {
    width: fit-content;
  }
}

@media (max-width: 560px) {
  .section-shell,
  .nav {
    width: min(100% - 1rem, 1180px);
  }

  .hero h1 {
    font-size: clamp(2.4rem, 12vw, 3.45rem);
    line-height: 1.02;
  }

  .section-heading h2,
  .values-panel h2,
  .benefits-content h2,
  .audience-card h2,
  .contact-card h2 {
    font-size: clamp(2rem, 10vw, 2.75rem);
    line-height: 1.04;
  }

  .hero-text,
  .section-heading p,
  .values-panel p,
  .benefits-content p,
  .audience-card p,
  .contact-card p {
    font-size: 1rem;
    line-height: 1.65;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .card-metrics,
  .benefit-cards,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .values-list article {
    padding: 0.9rem;
  }

  .footer {
    padding-inline: 1rem;
  }

  .footer-bottom {
    line-height: 1.65;
  }
}

@media (max-width: 380px) {
  .nav {
    border-radius: 18px;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .main-card h2 {
    font-size: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ===== FIX FINAL NAVBAR HAMBURGUESA ===== */
/* Este bloque va al final para ganarle a reglas generales como .nav button */
.nav .nav-toggle {
  appearance: none;
  -webkit-appearance: none;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border: 1px solid rgba(10, 47, 111, 0.14);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(10, 47, 111, 0.24);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.nav .nav-toggle:hover {
  background: linear-gradient(135deg, var(--primary-soft), var(--primary));
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(10, 47, 111, 0.3);
}

.nav .nav-toggle:active {
  transform: scale(0.96);
}

.nav .nav-toggle:focus-visible {
  outline: 4px solid rgba(15, 180, 173, 0.28);
  outline-offset: 3px;
}

.nav .nav-toggle span {
  display: block;
  width: 23px;
  height: 2px;
  margin: 3.5px 0;
  border-radius: 999px;
  background: #ffffff;
  transform-origin: center;
  transition: transform 0.24s ease, opacity 0.18s ease, width 0.24s ease;
}

.nav .nav-toggle.is-active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.nav .nav-toggle.is-active span:nth-child(2) {
  width: 0;
  opacity: 0;
}

.nav .nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav {
    position: relative;
  }

  .nav .nav-toggle {
    display: flex;
  }

  .nav .nav-links {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    width: 100%;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 1rem;
    border: 1px solid rgba(216, 222, 233, 0.95);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px) scale(0.98);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  }

  .nav .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav .nav-links a,
  .nav .nav-links .primary-action {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 16px;
  }

  body.menu-open {
    overflow-x: hidden;
  }
}

@media (min-width: 901px) {
  .nav .nav-links {
    position: static;
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
}
