:root {
  --ink: #0b1324;
  --navy: #07101f;
  --navy-2: #0d1d35;
  --blue: #183968;
  --gold: #c8a766;
  --gold-2: #f2dfac;
  --paper: #f7f3ec;
  --paper-2: #ebe3d6;
  --white: #ffffff;
  --muted: #657084;
  --line: rgba(200, 167, 102, 0.34);
  --shadow: 0 26px 70px rgba(7, 16, 31, 0.18);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(7, 16, 31, 0.03), rgba(7, 16, 31, 0)),
    var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(7, 16, 31, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 16, 31, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
}

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

button {
  font: inherit;
}

main {
  overflow: hidden;
}

img,
svg {
  display: block;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(340px, 0.95fr) minmax(0, 1.05fr);
  align-items: stretch;
  min-height: 720px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(17, 45, 82, 0.76), rgba(11, 35, 67, 0.64)),
    url("../images/tailor-fondo.jpg") center / cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero-media {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  padding: 44px 28px 0 max(22px, calc((100vw - 1220px) / 2));
}

.hero-media img {
  width: min(100%, 600px);
  max-height: 720px;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 28px 50px rgba(0, 0, 0, 0.38));
}

.hero-menu-toggle,
.hero-compact-menu {
  display: none;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 70px max(22px, calc((100vw - 1220px) / 2)) 70px 48px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 730px;
  margin: 0;
  color: var(--white);
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.92;
  font-weight: 900;
}

.tailor-name {
  margin: 24px 0 0;
  color: var(--gold-2);
  font-size: clamp(1.12rem, 2vw, 1.5rem);
  font-weight: 800;
}

.hero-text {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.02rem, 1.9vw, 1.2rem);
  line-height: 1.72;
}

.hero-actions,
.access-actions,
.quick-contact,
.services,
.gallery-grid,
.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-actions {
  justify-content: flex-start;
  gap: 12px;
  margin-top: 34px;
}

@media (min-width: 1100px) {
  .hero-actions {
    flex-wrap: wrap;
    gap: 8px;
  }

  .hero-actions .button {
    flex: 0 0 auto;
    padding-inline: 18px;
    white-space: nowrap;
  }
}

.button,
.mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button {
  min-height: 48px;
  padding: 0 24px;
}

.primary {
  background: var(--gold);
  color: var(--navy);
}

.secondary {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.ghost {
  border-color: var(--white);
  background: var(--white);
  color: var(--navy);
}

.button:hover,
.mini-button:hover {
  transform: translateY(-2px);
}

.primary:hover {
  background: var(--gold-2);
}

.secondary:hover,
.ghost:hover {
  border-color: var(--gold);
  background: var(--gold-2);
  color: var(--navy);
}

.quick-contact {
  position: relative;
  z-index: 2;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: -58px auto 80px;
}

.contact-card {
  flex: 0 1 270px;
  min-height: 214px;
  padding: 28px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.contact-card:hover {
  border-color: rgba(200, 167, 102, 0.75);
  background: var(--white);
  transform: translateY(-3px);
}

.icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  color: var(--navy);
}

.icon svg {
  width: 38px;
  height: 38px;
  fill: currentColor;
}

.phone-icon,
.whatsapp-icon,
.messenger-icon,
.gmail-icon {
  color: var(--blue);
}

.contact-card h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.3rem;
}

.contact-card p {
  min-height: 42px;
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.mini-button {
  min-height: 40px;
  padding: 0 20px;
  background: var(--blue);
  color: var(--white);
  font-size: 0.95rem;
}

.mini-button:hover {
  background: var(--navy);
}

.intro-band,
.access-panel,
.hours-section {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 42px;
  padding: 0 8px;
}

.intro-band h2,
.section-heading h2,
.access-panel h2,
.hours-section h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4.8vw, 3.8rem);
  line-height: 0.98;
}

.intro-band > p,
.access-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.services {
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 86px;
}

.service-card {
  flex: 0 1 370px;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 560px;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(7, 16, 31, 0.14);
  border-radius: var(--radius);
  background: var(--white);
  color: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 18px 45px rgba(7, 16, 31, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.service-card:hover {
  border-color: rgba(200, 167, 102, 0.82);
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3.25;
  object-fit: cover;
  background: var(--paper-2);
}

.service-card div {
  min-width: 0;
  padding: 30px;
}

.service-card span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.service-card h2 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1.02;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.gallery-section {
  margin-bottom: 84px;
}

.section-heading {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 26px;
  text-align: center;
}

.gallery-grid {
  align-items: stretch;
  gap: 16px;
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

.gallery-item {
  flex: 0 1 320px;
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(200, 167, 102, 0.34);
  border-radius: var(--radius);
  background: var(--navy);
  cursor: pointer;
  box-shadow: 0 18px 42px rgba(7, 16, 31, 0.12);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 16, 31, 0), rgba(7, 16, 31, 0.48));
  pointer-events: none;
}

.gallery-item:hover img {
  opacity: 0.96;
  transform: scale(1.055);
}

.access-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.85fr);
  gap: 34px;
  align-items: center;
  margin-bottom: 80px;
  padding: 52px;
  border: 1px solid rgba(200, 167, 102, 0.3);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(7, 16, 31, 0.94), rgba(13, 29, 53, 0.96)),
    url("../images/tailor-fondo.jpg") center / cover;
  color: var(--white);
  box-shadow: var(--shadow);
}

.access-panel h2 {
  max-width: 680px;
  color: var(--white);
}

.access-panel p {
  max-width: 620px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.78);
}

.access-actions {
  gap: 14px;
}

.access-button {
  flex: 0 1 150px;
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 118px;
  padding: 18px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.access-button svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.access-button:hover {
  border-color: var(--gold);
  background: var(--gold-2);
  color: var(--navy);
  color: var(--gold-2);
  transform: translateY(-3px);
}

.hours-section {
  margin-bottom: 46px;
  text-align: center;
}

.hours-list {
  display: grid;
  gap: 12px;
  width: min(520px, 100%);
  margin: 28px auto 0;
}

.hours-list p {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid rgba(7, 16, 31, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  text-align: left;
}

.hours-list strong {
  color: var(--navy);
}

.hours-list span {
  color: var(--blue);
  font-weight: 800;
}

.footer-social {
  gap: 14px;
  padding: 0 0 42px;
}

.footer-social a {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(7, 16, 31, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: var(--blue);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.footer-social svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.footer-social a:hover {
  background: var(--navy);
  color: var(--gold-2);
  transform: translateY(-2px);
}

.modal,
.service-lightbox {
  border: 0;
  border-radius: var(--radius);
  color: var(--ink);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.32);
}

.modal {
  width: min(540px, calc(100% - 28px));
  padding: 34px;
  background: var(--white);
  text-align: center;
}

.modal::backdrop,
.service-lightbox::backdrop,
.gallery-lightbox::backdrop {
  background: rgba(7, 16, 31, 0.76);
  backdrop-filter: blur(9px);
}

.modal h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1;
}

.modal p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.modal-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 14px;
  fill: var(--blue);
}

.modal-close,
.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.modal-close {
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: var(--paper);
  color: var(--navy);
  font-size: 1.35rem;
}

.map-preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 22px 0;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--paper);
}

.modal-action {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

.qr-image,
.video-media {
  width: min(100%, 360px);
  margin: 20px auto;
  border-radius: var(--radius);
}

.video-media {
  max-height: 70vh;
  object-fit: contain;
  background: var(--paper);
}

.gallery-lightbox {
  width: min(1000px, calc(100% - 28px));
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
}

.gallery-lightbox figure {
  margin: 0;
}

.gallery-lightbox img {
  width: 100%;
  max-height: 82vh;
  border-radius: var(--radius);
  object-fit: contain;
  background: transparent;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.4);
}

.lightbox-close,
.lightbox-nav {
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.lightbox-close {
  top: 8px;
  right: 8px;
  width: 42px;
  height: 42px;
  font-size: 1.45rem;
}

.lightbox-nav {
  top: 50%;
  width: 50px;
  height: 50px;
  font-size: 2.2rem;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 10px;
}

.lightbox-next {
  right: 10px;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--gold);
  color: var(--navy);
}

.service-lightbox {
  width: min(940px, calc(100% - 28px));
  padding: 0;
  overflow: hidden;
  background: var(--white);
}

.service-lightbox[open] {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
}

.service-lightbox img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--paper);
}

.service-lightbox-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  gap: 18px;
  padding: clamp(30px, 5vw, 54px);
}

.service-lightbox-copy h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 5vw, 3.15rem);
  line-height: 0.98;
}

.service-lightbox-copy p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.service-lightbox-copy .button {
  width: fit-content;
  max-width: 100%;
  margin-top: 6px;
}

@media (max-width: 1099px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-content {
    order: -1;
    padding: 58px 22px 20px;
    text-align: center;
  }

  .hero h1,
  .hero-text {
    margin-inline: auto;
  }

  .hero-actions {
    display: none;
  }

  .hero-media {
    position: relative;
    padding: 0 18px;
  }

  .hero-media img {
    width: min(78vw, 520px);
    max-height: 560px;
    transform: none;
  }

  .hero-menu-toggle {
    position: absolute;
    top: 18px;
    right: max(22px, calc((100% - 520px) / 2));
    z-index: 6;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--gold);
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold-2);
    font-size: 1.05rem;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
  }

  .hero.actions-open .hero-menu-toggle {
    background: var(--gold);
    color: var(--navy);
    transform: rotate(180deg);
  }

  .hero-compact-menu {
    position: absolute;
    top: 62px;
    right: max(22px, calc((100% - 520px) / 2));
    z-index: 5;
    display: grid;
    gap: 5px;
    width: min(228px, calc(100% - 44px));
    padding: 7px;
    border: 1px solid rgba(200, 167, 102, 0.58);
    border-radius: var(--radius);
    background: rgba(18, 46, 82, 0.82);
    box-shadow: 0 18px 48px rgba(7, 16, 31, 0.28);
    backdrop-filter: blur(14px) saturate(120%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.88);
    transform-origin: top right;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.22s ease, visibility 0.22s ease;
  }

  .hero.actions-open .hero-compact-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .hero-compact-menu .button {
    min-height: 40px;
    padding-inline: 12px;
  }

  .intro-band,
  .access-panel {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .intro-band > p,
  .access-panel p {
    margin-inline: auto;
  }

  .access-panel {
    padding: 42px 24px;
  }
}

@media (min-width: 900px) and (max-width: 1199px) {
  .intro-band {
    width: min(1040px, calc(100% - 96px));
    gap: 48px;
  }

  .intro-band h2 {
    font-size: clamp(2.45rem, 4.6vw, 3.3rem);
  }

  .services {
    width: min(1120px, calc(100% - 48px));
    gap: 16px;
  }

  .service-card {
    flex: 1 1 calc((100% - 32px) / 3);
    min-width: 0;
  }
}

@media (max-width: 680px) {
  .hero-media img {
    width: min(94vw, 430px);
    max-height: 480px;
  }

  .hero-menu-toggle {
    top: 14px;
    right: 18px;
  }

  .hero-compact-menu {
    top: 58px;
    right: 18px;
    width: min(220px, calc(100% - 36px));
  }

  .quick-contact {
    margin-top: -34px;
  }

  .contact-card,
  .service-card,
  .gallery-item {
    flex-basis: 100%;
  }

  .hero-compact-menu .button,
  .mini-button,
  .service-lightbox-copy .button,
  .modal-action {
    width: 100%;
  }

  .intro-band h2,
  .section-heading h2,
  .access-panel h2,
  .hours-section h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .service-card {
    min-height: auto;
  }

  .service-card img {
    aspect-ratio: 4 / 3;
  }

  .gallery-item {
    aspect-ratio: 4 / 5;
  }

  .hours-list p {
    grid-template-columns: 1fr;
    gap: 6px;
    text-align: center;
  }

  .service-lightbox[open] {
    display: block;
  }

  .service-lightbox img {
    min-height: 260px;
    max-height: 48vh;
  }

  .modal {
    padding: 34px 22px;
  }

  .lightbox-nav {
    width: 42px;
    height: 42px;
    font-size: 1.8rem;
  }
}