/* ==========================================================================
   DKEVENTOS by Débora Kober — "El arte de celebrar"
   Sistema de diseño: negro profundo + dorado cálido, tipografía editorial
   ========================================================================== */

:root {
  --bg-black: #0b0a09;
  --bg-charcoal: #16130f;
  --bg-charcoal-2: #1d1912;
  --gold: #c9a24d;
  --gold-light: #e8d6a8;
  --gold-deep: #8a6a2f;
  --cream: #f6f1e6;
  --cream-dim: rgba(246, 241, 230, 0.72);
  --cream-faint: rgba(246, 241, 230, 0.45);
  --hairline: rgba(201, 162, 77, 0.28);

  --f-display: "Cormorant Garamond", "Times New Roman", serif;
  --f-script: "Playfair Display", "Times New Roman", serif;
  --f-eyebrow: "Marcellus", serif;
  --f-body: "Poppins", "Helvetica Neue", sans-serif;

  --container-pad: clamp(1.5rem, 5vw, 5rem);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Compensa el navbar fijo para que el anchor no quede tapado al hacer scroll.
   El logo flota fuera de la caja del header (position:absolute), así que la
   altura real de la barra la da sólo el menú/botón hamburguesa, no el logo. */
section[id] {
  scroll-margin-top: 16px;
}

body {
  background-color: var(--bg-black);
  color: var(--cream);
  font-family: var(--f-body);
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--bg-black); }

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

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

.container-wide {
  width: 100%;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
  max-width: 1400px;
  margin: 0 auto;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 500;
  color: var(--cream);
  letter-spacing: 0.01em;
}

.eyebrow {
  font-family: var(--f-eyebrow);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold-deep);
  display: inline-block;
}

.section-title {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.15;
}

.section-title em {
  font-style: italic;
  color: var(--gold-light);
}

.lead-text {
  color: var(--cream-dim);
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 640px;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  color: #201705;
  border: none;
  padding: 0.95rem 2.1rem;
  font-family: var(--f-eyebrow);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 8px 24px rgba(201, 162, 77, 0.0);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(201, 162, 77, 0.28);
  color: #201705;
}

.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--gold-deep);
  padding: 0.9rem 2rem;
  font-family: var(--f-eyebrow);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.35s ease;
}

.btn-outline-gold:hover {
  border-color: var(--gold);
  background: rgba(201, 162, 77, 0.08);
  color: var(--gold-light);
}

/* ---------- Signature ornament (anillo + destellos, del isologo) ---------- */
.ring-mark {
  width: 46px;
  height: 46px;
}

.divider-ornament {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  opacity: 0.85;
}

/* ---------- Navbar ---------- */
.dk-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.3rem 0;
  background: linear-gradient(180deg, rgba(11,10,9,0.82) 0%, rgba(11,10,9,0.5) 65%, rgba(11,10,9,0) 100%);
  transition: padding 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

.dk-navbar.is-scrolled {
  padding: 0.9rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.45);
}

.dk-navbar > .container-wide {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.dk-navbar .brand-block {
  position: absolute;
  left: var(--container-pad);
  top: -16px;
  z-index: 2;
  transition: top 0.4s ease;
}

.dk-navbar.is-scrolled .brand-block {
  top: -6px;
}

.dk-navbar .brand-block img {
  height: 180px;
  width: 180px;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.55));
  transition: height 0.4s ease, width 0.4s ease;
}

.dk-navbar.is-scrolled .brand-block img {
  height: 108px;
  width: 108px;
}

.brand-word {
  font-family: var(--f-eyebrow);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  color: var(--cream);
}

.brand-word span {
  display: block;
  font-family: var(--f-body);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--cream-faint);
  text-transform: none;
}

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

.dk-nav-links a {
  font-family: var(--f-eyebrow);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-dim);
  position: relative;
  padding-bottom: 4px;
}

.dk-nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s ease;
}

.dk-nav-links a:hover { color: var(--gold-light); }
.dk-nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gold-deep);
  color: var(--gold-light);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
}

/* Franja de ancho completo, pero los links alineados a la derecha para no
   quedar visualmente detrás del logo que flota a la izquierda. */
#mobileMenu .container-wide {
  align-items: flex-end;
  text-align: right;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #000;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(8,7,6,0.35) 0%, rgba(8,7,6,0.5) 55%, rgba(8,7,6,0.8) 100%),
    linear-gradient(90deg, rgba(8,7,6,0.68) 0%, rgba(8,7,6,0.18) 55%, rgba(8,7,6,0.55) 100%),
    url("../img/background.jpg");
  background-size: cover;
  background-position: center 15%;
  transform: scale(1.06);
  animation: heroZoom 18s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.06); }
  to { transform: scale(1.14); }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 12rem;
}

.hero-eyebrow {
  font-family: var(--f-eyebrow);
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0;
  animation: fadeUp 1.2s cubic-bezier(0.16,1,0.3,1) forwards 0.25s;
}

.hero-claim {
  font-family: var(--f-script);
  font-weight: 600;
  font-size: clamp(2.8rem, 6.4vw, 5.4rem);
  line-height: 1.08;
  color: var(--gold-light);
  margin: 0.5rem 0 0.6rem;
  text-shadow: 0 6px 40px rgba(0,0,0,0.5);
  opacity: 0;
  animation: fadeUpScale 1.3s cubic-bezier(0.16,1,0.3,1) forwards 0.5s;
}

.hero-sub {
  max-width: 560px;
  color: var(--cream-dim);
  font-size: 1.08rem;
  font-weight: 300;
  margin-bottom: 2.2rem;
  opacity: 0;
  animation: fadeUp 1.2s cubic-bezier(0.16,1,0.3,1) forwards 0.8s;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1.2s cubic-bezier(0.16,1,0.3,1) forwards 1.05s;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUpScale {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-scroll {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--cream-faint);
  font-family: var(--f-eyebrow);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero-scroll .line {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--gold), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.01% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Sections generic ---------- */
section { position: relative; }

.section-pad { padding: clamp(5rem, 10vw, 8.5rem) 0; }

.bg-charcoal { background: var(--bg-charcoal); }

.hairline-top {
  border-top: 1px solid var(--hairline);
}

/* ---------- Sobre / Intro ---------- */
.about-photo-wrap {
  position: relative;
  border: 1px solid var(--gold);
  width: fit-content;
}

.about-photo-wrap img {
  width: auto;
  height: auto;
  max-width: 100%;
  filter: saturate(1.02) contrast(1.02);
  display: block;
}

.about-photo-frame {
  position: relative;
  padding: 0;
  width: fit-content;
}

.about-photo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold-deep);
  transform: translate(16px, 16px);
  z-index: -1;
}

.quote-block {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--gold-light);
  line-height: 1.5;
  border-left: 1px solid var(--gold-deep);
  padding-left: 1.8rem;
  margin: 2.4rem 0;
}

/* ---------- Servicios (tarjetas Sociales / Corporativos) ---------- */
.offer-card {
  border: 1px solid var(--hairline);
  height: 100%;
  transition: border-color 0.4s ease, transform 0.4s ease;
  overflow: hidden;
}

.offer-card:hover {
  border-color: var(--gold-deep);
  transform: translateY(-6px);
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 40;
  line-height: 1;
}

.offer-icon {
  display: block;
  font-size: 2.6rem;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.offer-body {
  padding: 2.4rem clamp(1.4rem, 3vw, 2.2rem) 2.4rem;
}

.offer-body h3 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  margin-bottom: 0.6rem;
}

.offer-tagline {
  color: var(--cream-faint);
  font-style: italic;
  font-family: var(--f-display);
  font-size: 1rem;
  margin-bottom: 1.4rem;
}

.offer-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.8rem;
}

.offer-list li {
  position: relative;
  padding-left: 1.4rem;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--hairline);
  color: var(--cream-dim);
  font-size: 0.95rem;
}

.offer-list li:first-child { border-top: 1px solid var(--hairline); }

.offer-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.offer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-eyebrow);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  border-bottom: 1px solid var(--gold-deep);
  padding-bottom: 3px;
  transition: gap 0.3s ease, color 0.3s ease;
}

.offer-link:hover {
  gap: 0.8rem;
  color: var(--gold);
}

/* ---------- Servicios: detalle de coordinación ---------- */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem 2rem;
}

.detail-item {
  border-top: 1px solid var(--hairline);
  padding-top: 1.4rem;
}

.detail-icon {
  display: block;
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.detail-item h4 {
  font-family: var(--f-eyebrow);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 0.6rem;
}

.detail-item p {
  color: var(--cream-faint);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.6;
}

/* ---------- Proceso ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.4rem;
  position: relative;
}

.process-grid::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 4%;
  right: 4%;
  height: 1px;
  background: var(--hairline);
}

.process-step { position: relative; }

.process-num {
  display: block;
  font-family: var(--f-display);
  font-size: 1.9rem;
  color: var(--gold);
  margin-bottom: 1.2rem;
  background: var(--bg-charcoal);
  position: relative;
  z-index: 1;
  width: fit-content;
  padding-right: 0.6rem;
}

.process-step h4 {
  font-family: var(--f-eyebrow);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 0.7rem;
}

.process-step p {
  color: var(--cream-faint);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.6;
}

/* ---------- Galeria (grilla uniforme + lightbox) ---------- */
.gallery-uniform {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.gallery-tile {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
  filter: saturate(1) brightness(0.95);
}

.gallery-tile:hover img {
  transform: scale(1.06);
  filter: saturate(1.05) brightness(1.02);
}

.gallery-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  transition: border-color 0.4s ease;
}

.gallery-tile:hover::after { border-color: var(--gold); }

/* ---------- Lightbox ---------- */
.dk-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(6,5,4,0.96);
  display: none;
  align-items: center;
  justify-content: center;
}

.dk-lightbox.is-open { display: flex; }

.lb-content {
  max-width: 88vw;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.lb-content img {
  max-width: 88vw;
  max-height: 78vh;
  object-fit: contain;
  border: 1px solid var(--gold-deep);
}

.lb-caption {
  font-family: var(--f-eyebrow);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0;
}

.lb-close {
  position: absolute;
  top: 1.6rem;
  right: 1.8rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.lb-close:hover { border-color: var(--gold); color: var(--gold-light); }
.lb-close svg { width: 18px; height: 18px; }

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: rgba(0,0,0,0.3);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.lb-nav:hover { border-color: var(--gold); color: var(--gold-light); }
.lb-nav svg { width: 20px; height: 20px; }
.lb-prev { left: 1.6rem; }
.lb-next { right: 1.6rem; }

/* ---------- Testimonios ---------- */
.testi-card {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  padding: 1rem 1rem 0;
}

.testi-quote {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--cream);
  line-height: 1.5;
}

.testi-name {
  margin-top: 1.6rem;
  font-family: var(--f-eyebrow);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.carousel-indicators-gold {
  position: static;
  margin-top: 2.4rem;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
}

.carousel-indicators-gold button {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: var(--gold-deep);
  opacity: 0.5;
  padding: 0;
}

.carousel-indicators-gold button.active {
  background: var(--gold-light);
  opacity: 1;
}

/* ---------- Equipo / detras de escena ---------- */
.team-strip {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  flex-wrap: wrap;
}

.team-photo-frame {
  position: relative;
  width: 240px;
  flex-shrink: 0;
}

.team-photo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold-deep);
  transform: translate(14px, 14px);
  z-index: -1;
}

.team-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--gold);
}

/* ---------- Contacto ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 6vw, 5rem);
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.6rem;
}

.contact-info-item svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 3px;
}

.contact-info-item h5 {
  font-family: var(--f-eyebrow);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 0.2rem;
}

.contact-info-item p, .contact-info-item a {
  color: var(--cream-faint);
  font-size: 0.92rem;
  margin: 0;
}

.social-row {
  display: flex;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.social-row a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--gold-deep);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  transition: all 0.3s ease;
}

.social-row a:hover {
  background: var(--gold);
  color: var(--bg-black);
  border-color: var(--gold);
}

.social-row svg { width: 17px; height: 17px; }

.form-control-dk {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  color: var(--cream);
  padding: 0.75rem 0.2rem;
  font-family: var(--f-body);
  font-weight: 300;
}

.form-control-dk:focus {
  background: transparent;
  border-color: var(--gold);
  box-shadow: none;
  color: var(--cream);
}

.form-control-dk::placeholder { color: var(--cream-faint); }

.form-label-dk {
  font-family: var(--f-eyebrow);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-faint);
  margin-bottom: 0.4rem;
}

/* ---------- Footer ---------- */
.dk-footer {
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--hairline);
  background: var(--bg-black);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2.4rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: var(--f-eyebrow);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-faint);
}

.footer-links a:hover { color: var(--gold-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.75rem;
  color: var(--cream-faint);
}

/* ---------- WhatsApp float ---------- */
.wsp-float {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(0,0,0,0.45);
  color: #201705;
  transition: transform 0.3s ease;
}

.wsp-float:hover { transform: scale(1.08); color: #201705; }
.wsp-float svg { width: 26px; height: 26px; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1);
}

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

.row > .reveal:nth-child(1) { transition-delay: 0s; }
.row > .reveal:nth-child(2) { transition-delay: 0.08s; }
.row > .reveal:nth-child(3) { transition-delay: 0.16s; }
.row > .reveal:nth-child(4) { transition-delay: 0.24s; }
.row > .reveal:nth-child(5) { transition-delay: 0.32s; }
.row > .reveal:nth-child(6) { transition-delay: 0.4s; }
.row > .reveal:nth-child(7) { transition-delay: 0.48s; }
.row > .reveal:nth-child(8) { transition-delay: 0.56s; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .dk-nav-links { display: none; }
  .nav-toggle { display: flex; }

  /* Con el menú hamburguesa la barra la define el botón toggle (42px), más alta que el renglón de links de desktop. */
  section[id] { scroll-margin-top: 30px; }

  /* Ancla el contenido arriba en vez de centrarlo verticalmente: así la altura
     del bloque de texto/botones no depende de cuánto mida el viewport, y queda
     un margen fijo y predecible antes del "Descubrí más" (evita que lo pisen
     los botones del hero en anchos intermedios, tipo tablet chica). */
  .hero { align-items: flex-start; }
  .hero-sub { margin-bottom: 1.4rem; }
  .hero-cta { gap: 0.7rem; }

  /* Logo un poco más chico en tablet, y el padding-top del hero ajustado para
     que el texto arranque debajo de él (no detrás), sin importar el tamaño. */
  .dk-navbar .brand-block img { height: 130px; width: 130px; }
  .dk-navbar .brand-block { top: -10px; }
  .hero-content { padding-top: 9.5rem; }

  .contact-wrap { grid-template-columns: 1fr; }

  .process-grid { grid-template-columns: repeat(2, 1fr); row-gap: 2.6rem; }
  .process-grid::before { display: none; }

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

/* Red de seguridad: si el viewport es bajo (celular con la barra del navegador
   visible, ventana chica, etc.) y no entra el bloque del hero completo, se
   oculta el indicador en vez de arriesgarse a que se superponga con algo. */
@media (max-height: 700px) {
  .hero-scroll { display: none; }
}

@media (max-width: 575.98px) {
  /* Logo bien chico acá (74px), así que le alcanza con menos aire arriba. */
  .hero-content { padding-top: 6.5rem; }
  .hero-claim { font-size: 2.6rem; }
  .about-photo-frame::before { transform: translate(8px,8px); }
  .process-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .team-strip { justify-content: center; text-align: center; }
  .dk-navbar .brand-block { top: 4px; }
  .dk-navbar .brand-block img { height: 74px; width: 74px; }
  .gallery-uniform { grid-template-columns: repeat(2, 1fr); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; }
  .hero-eyebrow, .hero-claim, .hero-sub, .hero-cta { animation: none; opacity: 1; }
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* Focus visibility for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 1px solid var(--gold-light);
  outline-offset: 3px;
}
