 #about .h3 {
  max-width: 50%;
}
@media (max-width: 768px) {
  #about .h3 {
    max-width: 100%;
  }
}


@font-face {
  font-family: "Montserrat Alternates";
  src: url("/fonts/Montserrat_Alternates/MontserratAlternates-Regular.ttf")
    format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat Alternates";
  src: url("/fonts/Montserrat_Alternates/MontserratAlternates-Medium.ttf")
    format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat Alternates";
  src: url("/fonts/Montserrat_Alternates/MontserratAlternates-SemiBold.ttf")
    format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat Alternates";
  src: url("/fonts/Montserrat_Alternates/MontserratAlternates-Bold.ttf")
    format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat Alternates";
  src: url("/fonts/Montserrat_Alternates/MontserratAlternates-ExtraBold.ttf")
    format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Montserrat Local Fonts */
@font-face {
  font-family: "Montserrat";
  src: url("/fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("/fonts/Montserrat-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("/fonts/Montserrat-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("/fonts/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("/fonts/Montserrat-ExtraLight.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

/* ====== Variables y base ====== */
:root {
  --bg: #0f0f10;
  --bg-2: #161617;
  --text: #f4f4f4;
  --muted: #c9c9c9;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --max: 1200px;
  --nav-h: 72px;
  --font-body: "Montserrat",  system-ui, Segoe UI,
    Roboto, Arial;
  --font-display:  "Montserrat", system-ui, Segoe UI,
    Roboto, Arial;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ====== NAV (estilo diseño) ====== */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: 72px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-shell {
  width: 100%;
  max-width: var(--max);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 10px 20px;
  border-radius: 999px;
  margin: 6px 20px;
  transition: background 0.25s, backdrop-filter 0.25s, box-shadow 0.25s,
    transform 0.25s;
}
#nav.scrolled .nav-shell {
  background: transparent !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

/* Marca izquierda */
.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
}
.brand-name {
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  font-size: 1.02rem;
  font-family: var(--font-display);
}
.brand-name .accent {
  letter-spacing: 0.03em;
}
.brand-tag {
  font-size: 0.62rem;
  opacity: 0.85;
  letter-spacing: 0.18em;
  color: #f0f0f0;
}

/* Menú centrado */
.menu {
  justify-self: center;
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-link {
  position: relative;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  padding: 6px 2px;
  transition: opacity 0.2s;
}
.nav-link:hover {
  opacity: 1;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: 0.25s;
  transform: translateX(-50%);
}
.nav-link:hover::after {
  width: 16px;
}
.nav-link.active {
  opacity: 1;
}
.nav-link.active::after {
  width: 22px;
}

/* CTA derecha (pastilla blanca) */
.pill-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  background: #d4a854;
  padding: 0 16px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.pill-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

/* Botón de idioma */
.lang-btn {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--text);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 12px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lang-btn:hover {
  background: var(--text);
  color: var(--bg);
}

/* Burger (solo móvil) */
.burger {
  display: none;
  width: 28px;
  height: 28px;
  gap: 4px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* Responsive: menú a overlay y CTA se oculta */
@media (max-width: 920px) {
  .nav-shell {
    grid-template-columns: auto 1fr auto;
    gap: 16px;
  }
  .pill-cta {
    display: none;
  }
  .burger {
    display: flex;
  }
  .menu {
    position: fixed;
    inset: 72px 0 auto 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(10px);
    display: none;
    flex-direction: column;
    gap: 18px;
    padding: 18px 22px;
  }
  .menu.open {
    display: flex;
  }
}

/* ====== Secciones y patrones ====== */
main {
  padding-top: 0;
}
section.snap {
  min-height: 100vh;
  display: grid;
  align-items: center;
  position: relative;
  scroll-margin-top: 0;
}
section.snap:not(.hero):not(.hero-alt) {
  align-items: start;
  padding-top: 0;
  padding-bottom: 60px;
  scroll-margin-top: 0;
}

.hero {
  color: #fff;
  padding: 0;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg) center/cover no-repeat; /* la var --bg se define inline en cada section */
  opacity: 0.9;
  transform: scale(1.03);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0.55)
  );
}
.hero .container {
  position: relative;
  z-index: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero .container .hero-text {
  width: 100%;
  max-width: 50%;
}
.hero .container > img {
  display: block;
  margin: 0;
}
.hero .container .lead,
.hero .container .lead-sub {
  text-align: left;
  margin-left: 0;
  margin-right: auto;
}

.hero-alt {
  color: #fff;
}
.hero-alt::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg) center/cover no-repeat;
  opacity: 0.9;
}
.hero-alt::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.55));
}
.hero-alt .container {
  position: relative;
  z-index: 1;
}

.kicker {
  letter-spacing: 0.5em;
  font-weight: 600;
  opacity: 0.9;
}
h1 {
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
}
.hero h1 {
  font-size: var(--title-size, clamp(42px, 6vw, 40px));
}
.hero-alt h1 {
  font-size: var(--title-size, clamp(42px, 6vw, 40px));
}
.h2 {
  font-size: clamp(28px, 4.2vw, 46px);
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
}
.sub {
  letter-spacing: 0.4em;
  opacity: 0.9;
  margin: 0.2rem 0 1.4rem;
  font-weight: 600;
}
.lead {
  max-width: 640px;
  color: #eaeaea;
}
.muted {
  color: var(--muted);
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.inline-form {
  align-items: flex-end;
}
.inline-form label {
  display: flex;
  flex-direction: column;
}
.inline-form .field {
  height: 44px;
}
.inline-form .btn {
  height: 44px;
  padding: 0 18px;
  border-radius: 10px;
}
@media (min-width: 900px) {
  .inline-form {
    flex-wrap: nowrap;
  }
}
.field {
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  color: #111;
  min-width: 220px;
  border: 2px solid transparent;
  outline: none;
}
.field:focus {
  border-color: #c9c9ff;
}

/* ====== Services Cards ====== */
#services {
  background: var(--bg-2);
}
#services,
#values {
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
}
#services,
#values {
  scroll-margin-top: 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 28px;
}
@media (max-width: 1100px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 620px) {
  .cards {
    grid-template-columns: 1fr;
  }
}
/* Altura de tarjetas en Services: más alta para mejor proporción */
#services .card {
  height: 65vh;
}
.card {
  position: relative;
  border-radius: var(--radius);
  height: 380px;
  overflow: hidden;
  background: #000;
  border: 9px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.35);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--img) center/cover no-repeat;
  filter: brightness(0.72);
  transform: scale(1.05);
  transition: transform 0.35s ease;
}
.card:hover::before {
  transform: scale(1.08);
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.2) 0,
    rgba(0, 0, 0, 0.55) 70%
  );
}
.card-body {
  position: absolute;
  inset: 0;
  padding: 22px;
  z-index: 1;
  transition: opacity 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.card h3 {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.15;
}
.card h3 span {
  display: block;
  font-weight: 800;
}

/* Overlay informativo al hover */
.card-overlay {
  position: absolute;
  inset: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  background: transparent;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 2;
  overflow: hidden;
}
.card:hover .card-overlay {
  opacity: 1;
}
.card:hover .card-body {
  opacity: 0;
}
.card-overlay .thumb {
  display: block;
  width: 100%;
  height: 60%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}
.card-overlay .content {
  flex: 1;
  padding: 18px;
  background: #2a2a2a;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card-overlay h4 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.card-overlay p {
  margin: 0 0 12px;
  color: #e8e8e8;
  font-size: 0.75rem;
  line-height: 1.3;
  flex: 1;
}

/* Botón básico reutilizable */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  background: #fff;
  color: #0f0f10;
  font-weight: 700;
  text-decoration: none;
}
.btn:hover {
  filter: brightness(1.05);
}

/* Botón especial para cards (estilo dorado) */
.card-overlay .btn {
  background: #d4a574;
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  height: 32px;
  padding: 0 14px;
  font-size: 0.8rem;
  transition: all 0.2s ease;
  align-self: center;
  width: fit-content;
}
.card-overlay .btn:hover {
  background: #e6b885;
  filter: none;
}

/* Variante glass para botones sobre fondos oscuros/imagen */
.btn-glass {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px) saturate(140%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.btn-glass:hover {
  filter: none;
  background: rgba(255, 255, 255, 0.18);
}

/* About section styles */
.about-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  color: #fff;
}

.about-subtitle {
  font-weight: 700;
  margin: 1rem 0 1.5rem;
  color: #fff;
  font-size: 1.1rem;
}

.about-text {
  color: #eaeaea;
  line-height: 1.6;
  font-size: 1rem;
  margin: 0;
}

/* Modal base */
/* About expand (no modal, página) */
.about-expanded {
  position: relative;
}
.about-expanded::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--about-bg, var(--bg)) center/cover no-repeat;
  z-index: 0;
  pointer-events: none;
}
.about-overlay {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.55));
  padding: 28px;
  border-radius: 18px;
  color: #fff;
  backdrop-filter: blur(8px);
}
.about-back {
  display: none;
  position: fixed;
  left: 24px;
  top: calc(var(--nav-h) + 12px);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  z-index: 70;
  backdrop-filter: blur(8px) saturate(140%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.about-back:hover {
  background: rgba(255, 255, 255, 0.18);
}
.about-expanded .about-back {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ====== Values ====== */
#values.bg-img {
  background: var(--bg) center/cover no-repeat fixed;
}
#values .title {
  text-align: center;
  margin-bottom: 18px;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.45);
  font-family: var(--font-display);
}
.values-lead {
  text-align: center;
  max-width: 980px;
  margin: 0 auto 16px;
  color: #f0f0f0;
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 22px);
}
.values-wrap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 10px;
}
@media (max-width: 1100px) {
  .values-wrap {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 720px) {
  .values-wrap {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .values-wrap {
    grid-template-columns: 1fr;
  }
}
.glass {
  position: relative;
  border-radius: 4px;
  padding: 20px;
  height: clamp(216px, 31vh, 384px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  overflow: hidden;
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(14px) saturate(130%);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.05)
  );
  border-radius: 4px;
}
.glass > * {
  position: relative;
  z-index: 1;
}
.glass h4 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}
.glass p {
  margin: 0;
  color: #e7e7e7;
  font-size: 0.92rem;
}
.val-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  margin: 0 0 10px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}
.glass h4 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}
.glass p {
  margin: 0;
  color: #cfcfcf;
}

/* ====== Modal de Servicios ====== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: url("/images/fondo-modal.webp") center/cover no-repeat;
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 20px 20px;
}

.modal-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  z-index: -1;
}
.modal-overlay.active {
  display: flex;
}
.modal-content {
  background: transparent;
  width: 100%;
  max-width: 1200px;
  max-height: 90vh;
  overflow: visible;
  position: relative;
  padding-top: 40px;
}
.modal-title-banner {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 36px;
  padding: 14px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  text-align: center;
  z-index: 999;
}
.modal-title-banner span {
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.modal-body {
  background: #1a1a1a;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  min-height: 500px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  padding: 40px;
  position: relative;
}
.modal-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  flex: 1;
  margin-top: 30px;
}
.modal-image {
  position: relative;
  background: #000;
  overflow: hidden;
  border-radius: 16px;
}
.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.modal-icons {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 20;
  pointer-events: auto;
}
.icon-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 24px;
  padding: 6px 10px;
  backdrop-filter: blur(10px) saturate(140%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
}
.icon-group:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}
.ico-circle {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.ico-circle:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}
.modal-close-btn {
  display: none;
}
.modal-text {
  padding: 40px;
  overflow-y: auto;
  max-height: calc(90vh - 100px);
}
.modal-text p {
  color: #fff;
  line-height: 1.5;
  margin: 0 0 12px;
  font-size: 0.85rem;
}
.modal-text p:last-child {
  margin-bottom: 0;
}
.modal-text ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.modal-text ul li {
  color: #fff;
  padding-left: 1.2rem;
  margin-bottom: 0.5rem;
  position: relative;
  font-size: 0.82rem;
  line-height: 1.4;
}
.modal-text ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #fff;
  font-weight: bold;
}
/* Key areas box con efecto liquid glass */
.modal-text .key-areas-box {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.04)
  );
  backdrop-filter: blur(10px) saturate(130%);
  margin: 12px 0 14px;
}
.modal-text .key-areas-box p:first-child {
  margin-top: 0;
}
.modal-text .key-areas-box ul {
  margin-bottom: 0;
}

/* Responsive Modal */
@media (max-width: 1024px) {
  .modal-content {
    max-height: 95vh;
    margin: 20px;
    width: calc(100% - 40px);
  }
  .modal-content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .modal-image {
    height: 280px;
    order: 1;
    border-radius: 14px;
  }
  .modal-text {
    order: 2;
    padding: 25px 20px;
    max-height: 65vh;
    overflow-y: auto;
  }
  .modal-text p {
    font-size: 0.87rem;
    line-height: 1.5;
  }
  .modal-title-banner {
    font-size: 1.1rem;
    padding: 8px 16px;
    top: -18px;
  }
}

@media (max-width: 768px) {
  .hero .container .hero-text {
    max-width: 100%;
  }
  .modal-overlay {
    padding: 0;
    align-items: stretch;
    overflow-y: auto;
  }
  .modal-content {
    max-height: none;
    margin: 0;
    width: 100%;
    border-radius: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
  }
  .modal-content-grid {
    grid-template-columns: 1fr;
    gap: 0;
    flex: 1;
    overflow-y: auto;
  }
  .modal-image {
    height: 200px;
    border-radius: 0;
  }
  .modal-text {
    padding: 20px;
    max-height: none;
    overflow-y: visible;
    flex: 1;
  }
  .modal-text p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 16px;
  }
  .modal-text ul li {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.6rem;
  }
  .modal-text .key-areas-box {
    padding: 16px;
    margin: 12px 0 16px;
    border-radius: 8px;
  }
  .modal-title-banner {
    font-size: 1rem;
    padding: 10px 20px;
    top: 10px;
    left: 20px;
    right: 20px;
    transform: none;
    border-radius: 8px;
    position: sticky;
    z-index: 10;
    text-align: center;
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .modal-overlay {
    padding: 0;
    overflow-y: auto;
  }
  .modal-content {
    border-radius: 0;
    max-height: none;
    height: 100vh;
  }
  .modal-image {
    height: 180px;
    border-radius: 0;
  }
  .modal-text {
    padding: 15px;
    max-height: none;
    overflow-y: visible;
  }
  .modal-text p {
    font-size: 0.85rem;
    line-height: 1.45;
    margin: 0 0 14px;
  }
  .modal-text ul li {
    font-size: 0.82rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
  }
  .modal-text .key-areas-box {
    padding: 14px;
    margin: 10px 0 14px;
    border-radius: 8px;
  }
  .modal-title-banner {
    font-size: 0.9rem;
    padding: 8px 16px;
    top: 8px;
    left: 15px;
    right: 15px;
    transform: none;
    border-radius: 8px;
    position: sticky;
    z-index: 10;
    text-align: center;
    margin-bottom: 8px;
  }
}

/* ====== Footer ====== */
footer {
  background: #0e0e0f;
  color: #e5e5e5;
  padding: 40px 0;
}
footer .small {
  color: #bdbdbd;
  font-size: 0.92rem;
}
.credits {
  margin-top: 8px;
  color: #a1a1a1;
  font-size: 0.9rem;
}

/* ====== Hero CTA Styles ====== */
.mobile-contact-btn {
  display: none;
  margin-bottom: 1.5rem;
  text-align: center;
  padding: 0 0px;
}

.mobile-contact-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  background: #D4A854;
  padding: 0 48px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.mobile-contact-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.cta-section {
  margin-top: 2rem;
  text-align: center; /* centrar solo el CTA */
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center; /* centrar aunque el contenedor padre use align-items:flex-start */
}
.cta-text {
  font-size: clamp(14px, 1.8vw, 18px);
  color: #e5e5e5;
  margin: 0 0 1rem;
  font-weight: 400;
  text-align: center;
}
.btn-shield {
  display: flex;
  align-items: center; /* centrar icono y texto verticalmente */
  gap: 20px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(16px, 2vw, 22px);
  padding: 28px 48px;
  border-radius: 999px; /* pastilla completa */
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.14),
    rgba(255, 255, 255, 0.06)
  );
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -20px 40px rgba(255, 255, 255, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease, background 0.25s ease;
  position: relative;
  margin-left: auto; /* centro el botón dentro de la sección */
  margin-right: auto;
}
.btn-shield::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.btn-shield:hover {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0.08)
  );
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
}
.shield-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 18px;
  flex-shrink: 0;
}
.shield-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.btn-shield .shield-text {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
}

/* Scroll down (flecha) */
.scroll-down {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  margin: 20px auto 0;
  text-decoration: none;
  font-size: 0; /* para usar pseudo-elemento centrado */
}
.scroll-down::after {
  content: "";
  width: 40px;
  height: 40px;
  display: block;
  background: url("/images/arrow.png") center/contain no-repeat;
}
.scroll-down:hover {
  transform: translateY(2px);
}

/* ====== Mobile Heroes ====== */
@media (max-width: 920px) {
  .mobile-contact-btn {
    display: block !important;
  }
}

@media (max-width: 768px) {
  .mobile-contact-btn {
    display: block !important;
  }
  
  /* Make hero elements smaller on mobile */
  #home .container img[src*="ceron-logo"] {
    height: 45px !important;
  }
  
  #home .sub {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
  }
  
  #home .h1 {
    font-size: clamp(24px, 5vw, 32px) !important;
    line-height: 1.1;
  }
  
  #home .lead {
    font-size: 0.85rem;
  }
  
  #home .lead-sub {
    font-size: 0.8rem;
  }
  
  #home .cta-text {
    font-size: 0.75rem;
  }
  
  #home .shield-text {
    font-size: 0.8rem;
  }
  
  #home.hero::before {
    background: url("/images/hero-1-mobile.webp") center/cover no-repeat !important;
  }

  #about.hero-alt::before {
    background: url("/images/hero-2-mobile.webp") center/cover no-repeat !important;
  }

  #values.bg-img::before {
    background: url("/images/hero-4-mobile.webp") center/cover no-repeat !important;
  }

  /* Hero 4 se usa dinámicamente en el botón "More" del about */
  .about-expanded::before {
    background: url("/images/hero-4-mobile.webp") center/cover no-repeat !important;
  }
}

/* Extra small screens like iPhone SE (375px) */
@media (max-width: 375px) {
  #home .shield-text {
    font-size: 0.7rem;
  }
  
  #home .btn-shield {
    padding: 20px 32px;
  }
}
