
:root {
  --navy: #242b87;
  --blue: #292f91;
  --cyan: #11b4df;
  --ink: #17203a;
  --muted: #697287;
  --pale: #f5f7fb;
  --white: #fff;
  --line: #e7eaf1;
  --radius: 20px;
  --font: 'DM Sans', sans-serif;
  --display: 'Manrope', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

/* Barra superior */
.topbar {
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  letter-spacing: .02em;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
}

.topbar a {
  font-weight: 700;
}

/* Encabezado y navegación */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(20, 30, 70, .07);
}

.nav-wrap {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 245px;
}

.brand img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 12px;
}

.brand span {
  font: 800 18px/1.25 var(--display);
  letter-spacing: -.7px;
}

.brand b {
  color: var(--blue);
}

.brand small {
  display: block;
  font: 500 10px var(--font);
  letter-spacing: .09em;
  color: var(--muted);
  margin-top: 5px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 13px;
  font-weight: 700;
}

.nav > a:not(.nav-cta) {
  transition: color .2s;
}

.nav > a:hover {
  color: var(--cyan);
}

.nav-cta {
  background: var(--blue);
  color: #fff;
  padding: 13px 18px;
  border-radius: 8px;
}

.nav-cta span,
.btn span {
  margin-left: 10px;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 26px;
  color: var(--navy);
}

/* Sección principal */
.hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 30px;
  background: linear-gradient(
    110deg,
    #f8faff 0%,
    #fff 58%,
    #f0f6fc 100%
  );
}

.hero-shape {
  position: absolute;
  right: -180px;
  top: -290px;
  width: 660px;
  height: 660px;
  border: 100px solid rgba(17, 180, 223, .055);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  align-items: center;
  position: relative;
}

.hero-copy {
  padding: 18px 0 35px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}

.eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(17, 180, 223, .12);
}

h1, h2, h3, p {
  margin-top: 0;
}

h1, h2 {
  font-family: var(--display);
  letter-spacing: -.055em;
  line-height: 1.12;
}

h1 {
  font-size: clamp(42px, 5vw, 64px);
  margin: 24px 0 22px;
  font-weight: 800;
}

h1 em, h2 em {
  font-style: normal;
  color: var(--blue);
}

.hero-copy > p {
  color: var(--muted);
  font-size: 16px;
  max-width: 480px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9px;
  padding: 15px 20px;
  font: 700 13px var(--font);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px #1f2c551f;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-quiet {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

/* Nota de confianza */
.hero-note {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 43px;
}

.note-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e5f9ff;
  color: #008cb8;
  font-weight: 900;
}

.hero-note b,
.hero-note small {
  display: block;
}

.hero-note b {
  font-size: 12px;
}

.hero-note small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

/* Imagen principal */
.hero-visual {
  position: relative;
  padding: 0 0 28px 16px;
}

.hero-photo {
  height: 500px;
  overflow: hidden;
  border-radius: 8% 8% 8px 8px;
  background: #dfe7ef;
  box-shadow: 0 25px 60px #18234a18;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-card {
  position: absolute;
  bottom: 4px;
  left: -30px;
  background: white;
  padding: 17px 21px;
  border-radius: 13px;
  box-shadow: 0 12px 35px #17203a1a;
  display: flex;
  align-items: center;
  gap: 12px;
}

.float-icon {
  width: 37px;
  height: 37px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #e5f9ff;
  color: #079cc4;
  font-size: 22px;
}

.floating-card b,
.floating-card small {
  display: block;
}

.floating-card b {
  font-size: 12px;
}

.floating-card small {
  font-size: 10px;
  color: var(--muted);
}

.hero-stamp {
  position: absolute;
  right: -22px;
  top: 34px;
  background: var(--cyan);
  color: #fff;
  border-radius: 50%;
  width: 108px;
  height: 108px;
  display: grid;
  align-content: center;
  text-align: center;
  font-size: 10px;
  line-height: 1.5;
  transform: rotate(9deg);
  box-shadow: 0 12px 30px #11b4df35;
}

.hero-stamp b {
  font-size: 12px;
}

.hero-bottom {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #8a92a4;
  font-size: 10px;
  letter-spacing: .08em;
  margin-top: 26px;
}

.hero-line {
  height: 1px;
  background: #dce1ec;
  width: 80px;
}

/* Franja de confianza */
.trust-strip {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 26px 0;
  gap: 30px;
}

.trust-grid > div {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
}

.trust-symbol {
  font-size: 25px;
  color: var(--cyan);
}

.trust-grid b,
.trust-grid small {
  display: block;
}

.trust-grid b {
  font-size: 12px;
}

.trust-grid small {
  font-size: 11px;
  color: var(--muted);
}

/* Secciones generales */
.section {
  padding: 105px 0;
}

/* Nosotros */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.about-visual {
  position: relative;
  padding: 0 30px 30px 0;
}

.about-visual > img {
  height: 440px;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.about-visual::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 65%;
  height: 68%;
  border: 2px solid var(--cyan);
  border-radius: var(--radius);
  z-index: -1;
}

.about-tag {
  position: absolute;
  bottom: 5px;
  left: 25px;
  background: var(--blue);
  color: #fff;
  padding: 16px 23px;
  border-radius: 10px;
  box-shadow: 0 10px 28px #17203a2b;
}

.about-tag b,
.about-tag span {
  display: block;
}

.about-tag b {
  font: 800 18px var(--display);
}

.about-tag span {
  font-size: 11px;
  color: #dce7ff;
}

.section-copy h2,
.section-heading h2,
.contact-copy h2 {
  font-size: clamp(32px, 4vw, 45px);
  margin: 17px 0 22px;
}

.section-copy p,
.contact-copy > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.text-link {
  display: inline-flex;
  gap: 20px;
  align-items: center;
  margin-top: 18px;
  color: var(--blue);
  font-weight: 800;
  font-size: 13px;
  border-bottom: 1px solid #d4d8ee;
  padding-bottom: 9px;
}

/* Servicios */
.services {
  background: var(--pale);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 50px;
  margin-bottom: 42px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading > p {
  max-width: 330px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 4px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card {
  position: relative;
  background: #fff;
  border: 1px solid #edf0f5;
  border-radius: 15px;
  padding: 26px 23px 23px;
  min-height: 275px;
  transition: transform .25s, box-shadow .25s;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px #1c2a5210;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: #e7f9ff;
  color: var(--blue);
  font-size: 24px;
  margin: 0 auto;
}

.service-num {
  position: absolute;
  right: 22px;
  top: 30px;
  color: #c5ccdc;
  font-size: 11px;
  font-weight: 800;
}

.service-card h3 {
  font: 800 17px var(--display);
  margin: 24px 0 10px;
  letter-spacing: -.5px;
  text-align: center;
}

.service-card p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 25px;
  text-align: center;
}

.service-card > a {
  position: absolute;
  bottom: 20px;
  right: 22px;
  width: 38px;
  height: 38px;
  border: 1px solid #e7f9ff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e7f9ff;
  color: var(--blue);
  font-size: 16px;
  transition: background .2s, transform .2s;
}

.service-card > a:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #fff;
  transform: translateY(-2px);
}

/* Galería de trabajos */
.gallery-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 18px;
}

.gallery-item {
  position: relative;
  margin: 0;
  height: 360px;
  border-radius: 14px;
  overflow: hidden;
  background: #e4e8ee;
}

.gallery-item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, #11182cba);
}

.gallery-item figcaption {
  position: absolute;
  z-index: 1;
  bottom: 21px;
  left: 22px;
  right: 20px;
  display: flex;
  gap: 12px;
  align-items: center;
  color: #fff;
  font-size: 13px;
}

.gallery-item figcaption span {
  font-size: 10px;
  color: #9eeaff;
}

.gallery-disclaimer {
  font-size: 11px;
  color: #8b93a4;
  margin: 17px 0 0;
}

/* Llamada a la acción */
.cta-band {
  background: var(--blue);
  color: #fff;
  padding: 52px 0;
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border: 50px solid #ffffff0b;
  border-radius: 50%;
  right: 8%;
  top: -160px;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  position: relative;
  z-index: 1;
}

.cta-band .eyebrow {
  color: #a7edff;
}

.cta-band h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  margin: 13px 0 0;
}

.cta-band h2 em {
  color: #8ceaff;
}

.btn-light {
  background: #fff;
  color: var(--blue);
  white-space: nowrap;
}

/* Contacto */
.contact {
  background: #f7f9fc;
}

.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 90px;
  align-items: start;
}

.contact-copy h2 {
  margin-bottom: 20px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid #e2e6ee;
}

.detail-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  background: #e6f8ff;
  color: var(--blue);
  border-radius: 12px;
  font-size: 20px;
}

.contact-detail > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.contact-detail small,
.contact-detail b {
  display: block;
}

.contact-detail small {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  color: #8b93a4;
}

.contact-detail b {
  font-size: 13px;
  overflow-wrap: anywhere;
}

.detail-arrow {
  color: var(--blue);
}

.contact-social {
  display: flex;
  gap: 17px;
  flex-wrap: wrap;
  margin-top: 24px;
  font-size: 18px;
}

.contact-social span {
  width: 100%;
  color: var(--muted);
}

.contact-social a {
  color: var(--blue);
  font-weight: 800;
}

/* Formulario */
.contact-form {
  background: #fff;
  border: 1px solid #e9edf4;
  border-radius: 17px;
  padding: 34px;
  box-shadow: 0 16px 45px #1a2a4b08;
}

.contact-form h3 {
  font: 800 23px var(--display);
  letter-spacing: -.7px;
  margin-bottom: 5px;
}

.contact-form > p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 24px;
}

.contact-form label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 16px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 1px solid #e1e6ef;
  border-radius: 8px;
  background: #fcfdff;
  padding: 13px 14px;
  font: 400 12px var(--font);
  color: var(--ink);
  outline: none;
  transition: border .2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--cyan);
}

.contact-form textarea {
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-submit {
  width: 100%;
  margin-top: 4px;
}

.form-privacy {
  display: block;
  text-align: center;
  color: #8a92a4;
  font-size: 10px;
  margin-top: 13px;
}

/* Honeypot */
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Pie de página */
.footer {
  background: #141b36;
  color: #fff;
}

.footer-main {
  padding: 44px 0 36px;
  display: grid;
  grid-template-columns: 1.1fr 1fr auto auto;
  gap: 25px;
  align-items: center;
}

.footer-brand {
  min-width: 0;
}

.footer-brand img {
  width: 48px;
  height: 48px;
}

.footer-brand span {
  color: #fff;
}

.footer-brand b {
  color: #8ceaff;
}

.footer-brand small {
  color: #a8b0c6;
}

.footer-main > p {
  font-size: 11px;
  color: #a8b0c6;
  max-width: 220px;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #d8deeb;
}

.footer-social {
  display: flex;
  gap: 8px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #3c4665;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
}

.footer-social a:hover {
  background: var(--cyan);
  border-color: var(--cyan);
}

.footer-bottom {
  border-top: 1px solid #303957;
  padding: 15px 0;
  color: #929bb4;
  font-size: 10px;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.footer-bottom a {
  color: #9beaff;
  font-weight: 800;
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  z-index: 19;
  right: 22px;
  bottom: 22px;
  width: 53px;
  height: 53px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #18bd73;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 25px #0b8d5040;
  border: 3px solid #fff;
}

/* Páginas de gracias y error */
.status-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f5f8fc, #eaf6fb);
  padding: 24px;
}

.status-card {
  max-width: 570px;
  text-align: center;
  background: #fff;
  padding: 55px 42px;
  border-radius: 22px;
  box-shadow: 0 20px 70px #17203a13;
}

.status-mark {
  margin: 0 auto 20px;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 30px;
  background: #e2f9ef;
  color: #13865b;
}

.status-mark.error {
  background: #fff0ee;
  color: #cb4c42;
}

.status-card h1 {
  font-size: 34px;
  margin: 0 0 14px;
}

.status-card p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 25px;
}

.status-card .brand {
  justify-content: center;
  margin-bottom: 30px;
}

.status-card .brand span {
  text-align: left;
}

/* Tablets y pantallas medianas */
@media (max-width: 980px) {
  .nav {
    gap: 17px;
  }

  .hero-grid {
    gap: 35px;
  }

  .hero-photo {
    height: 430px;
  }

  .about-grid {
    gap: 55px;
  }

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

  .contact-grid {
    gap: 40px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-main > p {
    max-width: none;
  }
}

/* Celulares */
@media (max-width: 720px) {
  .container {
    width: min(100% - 34px, 540px);
  }

  .topbar-inner {
    justify-content: center;
    min-height: 34px;
  }

  .topbar-inner > span {
    display: none;
  }

  .nav-wrap {
    height: 74px;
  }

  .brand {
    min-width: 0;
  }

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

  .brand span {
    font-size: 16px;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 20px 24px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    box-shadow: 0 15px 25px #17203a12;
  }

  .nav.open {
    display: flex;
  }

  .nav > a {
    padding: 13px 0;
  }

  .nav .nav-cta {
    padding: 13px 16px;
    margin-top: 8px;
    text-align: center;
  }

  .hero {
    padding-top: 45px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .hero-copy {
    padding: 0;
  }

  .hero-copy > p {
    font-size: 14px;
  }

  .hero-photo {
    height: 390px;
    border-radius: 18% 18% 18px 18px;
  }

  .hero-visual {
    padding: 0 12px 25px;
  }

  .hero-stamp {
    right: -5px;
    top: 20px;
    width: 90px;
    height: 90px;
  }

  .floating-card {
    left: -5px;
  }

  .hero-bottom {
    margin-top: 12px;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 17px;
    padding: 23px 0;
  }

  .trust-grid > div {
    justify-content: flex-start;
  }

  .section {
    padding: 72px 0;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .about-visual > img {
    height: 350px;
  }

  .section-heading {
    display: block;
    margin-bottom: 30px;
  }

  .section-heading > p {
    margin-top: 17px;
  }

  .service-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .service-card {
    padding: 22px 17px;
    min-height: 285px;
  }

  .service-card h3 {
    font-size: 15px;
  }

  .service-card p {
    font-size: 11px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .gallery-item {
    height: 250px;
  }

  .gallery-large {
    grid-column: 1 / -1;
    height: 310px;
  }

  .cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-form {
    padding: 25px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 35px 0;
  }

  .footer-links {
    gap: 17px;
  }

  .footer-bottom .container {
    flex-direction: column;
    gap: 5px;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
  }

  /* Tamaño de párrafos en mobile */
  .section-copy p,
  .section-heading > p,
  .contact-copy > p,
  .service-card p {
      font-size: 14px;
  }
}

/* Celulares pequeños */
@media (max-width: 390px) {
  .service-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-large {
    grid-column: auto;
  }

  .gallery-item {
    height: 280px;
  }

  .hero-photo {
    height: 330px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .contact-detail b {
    font-size: 11px;
  }
}

/* Footer centrado en dispositivos móviles */
@media (max-width: 720px) {
  .footer-main {
    justify-items: center;
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
    text-align: left;
  }

  .footer-links {
    justify-content: center;
    width: 100%;
  }

  .footer-social {
    justify-content: center;
    width: 100%;
  }

  .footer-main > p {
    text-align: center;
    margin-inline: auto;
  }

  .footer-bottom .container {
    align-items: center;
    justify-content: center;
    text-align: center;
  }
}

/* Font Awesome: iconografía moderna */
.service-icon i {
  font-size: 21px;
}

.trust-symbol i {
  font-size: 23px;
}

.note-icon i,
.detail-icon i,
.float-icon i {
  font-size: 17px;
}

.footer-social i {
  font-size: 14px;
}

.whatsapp-float i {
  font-size: 27px;
}

.status-mark i {
  font-size: 27px;
}

/* Centrar la navegación en escritorio */
@media (min-width: 721px) {
  .nav-wrap {
    position: relative;
  }

  .nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    justify-content: center;
    white-space: nowrap;
  }
}

/* Links del footer centrados en escritorio */
@media (min-width: 721px) {
  .footer-links {
    justify-content: center;
    width: 100%;
  }
}

@media (min-width: 721px) {
  .footer-main {
    position: relative;
  }

  .footer-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    justify-content: center;
    width: max-content;
  }
}

/* Redes sociales a la derecha en escritorio */
@media (min-width: 721px) {
  .footer-social {
    justify-self: end;
    text-align: right;
  }
}

/* Flecha para abrir cada galería */
.gallery-item figcaption {
  justify-content: space-between;
}

.gallery-open {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border: 1px solid #ffffff80;
  border-radius: 50%;
  background: #ffffff20;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.gallery-open:hover {
  background: var(--cyan);
  transform: translateY(-2px);
}

/* Ventana de la galería */
.gallery-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(8, 12, 28, .95);
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 65px 24px 30px;
}

.gallery-modal.is-open {
  display: flex;
}

.gallery-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  width: 100%;
  max-height: 100%;
  text-align: center;
}

.gallery-modal-content img {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 8px;
}

.gallery-modal-content p {
  color: #fff;
  margin: 16px 0 5px;
  font-weight: 700;
}

.gallery-modal-content span {
  color: #cbd2e5;
  font-size: 12px;
}

.gallery-close,
.gallery-prev,
.gallery-next {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid #ffffff55;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  color: #fff;
  background: #ffffff15;
  cursor: pointer;
  font-size: 20px;
}

.gallery-close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 30px;
}

.gallery-close:hover,
.gallery-prev:hover,
.gallery-next:hover {
  background: var(--blue);
}

@media (max-width: 600px) {
  .gallery-modal {
    gap: 10px;
    padding-inline: 10px;
  }

  .gallery-prev,
  .gallery-next {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .gallery-modal-content img {
    max-height: 65vh;
  }
}

/* Integrar la imagen con el degradado original del hero */
.hero-photo {
  position: relative;
  overflow: hidden;
  background: transparent;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: none;
  mask-image: none;
}

/* Desvanecimiento suave hacia los bordes */
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right,
      var(--hero-fade, rgba(255, 255, 255, 0)) 0%,
      transparent 25%),
    linear-gradient(to bottom,
      transparent 65%,
      rgba(255, 255, 255, 0.35) 85%,
      rgba(255, 255, 255, 0.75) 100%);
}


