/* ==========================================================================
   La Suegra — Punta Cana
   Paleta tomada directamente del logo:
     tinta  #010812   ·   crema  #FFF0D1
   El sitio entero vive de esos dos tonos: el tema "claro" y el "oscuro"
   son exactamente el positivo y el negativo del logo.
   ========================================================================== */

:root {
  --tinta: #010812;
  --crema: #fff0d1;

  --tinta-rgb: 1, 8, 18;
  --crema-rgb: 255, 240, 209;

  --wa: #25d366;
  --wa-fg: #04231a;

  --font-display: "Outfit", "Avenir Next", "Helvetica Neue", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radio: 14px;
  --max: 1100px;
  --transicion: 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- temas: un solo par de variables gobierna toda la página --- */

[data-tema="claro"] {
  --bg: var(--crema);
  --fg: var(--tinta);
  --bg-rgb: var(--crema-rgb);
  --fg-rgb: var(--tinta-rgb);
  --sombra: rgba(1, 8, 18, 0.28);
  color-scheme: light;
}

[data-tema="oscuro"] {
  --bg: var(--tinta);
  --fg: var(--crema);
  --bg-rgb: var(--tinta-rgb);
  --fg-rgb: var(--crema-rgb);
  --sombra: rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

/* niveles de contraste derivados */
[data-tema] {
  --linea: rgba(var(--fg-rgb), 0.18);
  --linea-fuerte: rgba(var(--fg-rgb), 0.42);
  --velo: rgba(var(--fg-rgb), 0.04);
  --velo-2: rgba(var(--fg-rgb), 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background 400ms ease, color 400ms ease;
}

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

/* varias piezas del sitio son flex/grid, así que [hidden] necesita ganar:
   es lo que oculta el contacto de Sandy cuando la web está en inglés */
[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.015em;
}

.oculto-visual {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* El logo se usa siempre en su versión original (tinta sobre crema). Cuando cae
   sobre fondo oscuro va montado en su placa crema, nunca invertido. */

/* ==========================================================================
   1. SPLITTER (index) — no usa tema: el splitter ES el positivo y el negativo
   ========================================================================== */

.splitter {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.lado {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 12svh 5vw 12svh;
  text-align: center;
  text-decoration: none;
  overflow: hidden;
}

.lado--chef {
  background: var(--crema);
  color: var(--tinta);
}

.lado--mant {
  background: var(--tinta);
  color: var(--crema);
}

/* textura de rayos, ecualiza con la estrella del logo */
.lado::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: repeating-conic-gradient(
    from 0deg at 50% 50%,
    currentColor 0deg 0.55deg,
    transparent 0.55deg 11deg
  );
  opacity: 0.05;
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1), opacity var(--transicion);
  pointer-events: none;
}

.lado:hover::before,
.lado:focus-visible::before {
  transform: scale(1.18) rotate(6deg);
  opacity: 0.1;
}

.lado__contenido {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: transform var(--transicion);
}

.lado:hover .lado__contenido,
.lado:focus-visible .lado__contenido {
  transform: translateY(-6px);
}

/* el logo de la carpeta, tal cual, encima del bloque de cada lado */
.lado__logo {
  width: clamp(56px, 6.5vw, 84px);
  margin-bottom: 4px;
}

.lado__kicker {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.62;
}

.lado__titulo {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  font-size: clamp(1.9rem, 3.9vw, 3.1rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.lado__lista {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.94rem;
  line-height: 2;
  opacity: 0.78;
  max-width: 26ch;
}

.lado__cta {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  transition: background var(--transicion), color var(--transicion), gap var(--transicion);
}

.lado--chef:hover .lado__cta {
  background: var(--tinta);
  color: var(--crema);
  gap: 16px;
}

.lado--mant:hover .lado__cta {
  background: var(--crema);
  color: var(--tinta);
  gap: 16px;
}

.costura {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  z-index: 4;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 240, 209, 0.22) 22%,
    rgba(255, 240, 209, 0.22) 78%,
    transparent
  );
  transform: translateX(-50%);
  pointer-events: none;
}

/* El pie también cruza la costura: se dibuja dos veces y cada copia se
   recorta a su mitad, igual que el logo. */
.splitter__pie {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  padding: 20px 16px 26px;
  pointer-events: none;
}

.splitter__pie span {
  grid-area: 1 / 1;
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-align: center;
  opacity: 0.7;
}

.splitter__pie .pie-pos {
  color: var(--tinta);
  clip-path: inset(0 50% 0 0);
}

.splitter__pie .pie-neg {
  color: var(--crema);
  clip-path: inset(0 0 0 50%);
}

@media (max-width: 820px) {
  .splitter {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .lado {
    padding: 6svh 8vw;
    gap: 12px;
  }

  .lado__logo {
    width: clamp(48px, 13vw, 70px);
  }

  .lado__lista {
    display: none;
  }

  /* el pie queda sobre el lado oscuro: una sola copia, en crema */
  .splitter__pie .pie-pos {
    display: none;
  }

  .splitter__pie .pie-neg {
    clip-path: none;
  }

  /* en móvil la costura es horizontal */
  .costura {
    top: 50%;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 1px;
    transform: translateY(-50%);
    background: linear-gradient(
      to right,
      transparent,
      rgba(255, 240, 209, 0.22) 22%,
      rgba(255, 240, 209, 0.22) 78%,
      transparent
    );
  }
}

/* ==========================================================================
   2. LANDINGS
   ========================================================================== */

.contenedor {
  width: min(100% - 10vw, var(--max));
  margin-inline: auto;
}

/* --- barra superior --- */

.barra {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(var(--bg-rgb), 0.84);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--linea);
  transition: background 400ms ease, border-color 400ms ease;
}

.barra__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.barra__marca {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: none;
}

.barra__marca img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.barra__marca strong {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
}

.barra__marca small {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.55;
  font-weight: 500;
}

.barra__acciones {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

/* --- conmutadores segmentados (ES/EN · Claro/Oscuro) --- */

.switch {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--linea);
  background: var(--velo);
  flex: none;
}

.switch__opt {
  appearance: none;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(var(--fg-rgb), 0.45);
  padding: 8px 16px;
  border-radius: 999px;
  line-height: 1;
  white-space: nowrap;
  transition: color 260ms ease, background 300ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 300ms ease;
}

.switch__opt:hover {
  color: rgba(var(--fg-rgb), 0.75);
}

.switch__opt[aria-pressed="true"] {
  background: var(--fg);
  color: var(--bg);
  box-shadow: 0 3px 12px rgba(var(--fg-rgb), 0.22);
}

.switch__opt:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

/* --- botón WhatsApp de la barra --- */

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--wa);
  color: var(--wa-fg);
  border-radius: 999px;
  padding: 11px 20px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex: none;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 260ms ease,
    filter 260ms ease;
}

.btn-wa:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.34);
}

.btn-wa svg {
  width: 19px;
  height: 19px;
  flex: none;
}

@media (max-width: 900px) {
  .barra__marca .barra__marca-texto {
    display: none;
  }
}

@media (max-width: 720px) {
  /* en móvil la barra ocupa dos filas: si además fuera pegajosa se comería
     media pantalla. El botón flotante cubre el contacto al hacer scroll. */
  .barra {
    position: static;
  }

  .barra__inner {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 10px;
  }

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

  .servicio,
  .seccion {
    scroll-margin-top: 16px;
  }
}

@media (max-width: 430px) {
  .btn-wa span {
    display: none;
  }

  .btn-wa {
    padding: 11px 14px;
  }

  .switch__opt {
    padding: 8px 12px;
    font-size: 0.72rem;
  }
}

/* --- botones genéricos --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--fg);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  background: transparent;
  color: var(--fg);
  transition: transform 200ms ease, background 260ms ease, color 260ms ease,
    box-shadow 260ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.btn--solido {
  background: var(--fg);
  color: var(--bg);
}

.btn--solido:hover {
  box-shadow: 0 12px 30px rgba(var(--fg-rgb), 0.26);
}

.btn--fantasma:hover {
  background: var(--velo-2);
}

.btn--wa {
  background: var(--wa);
  border-color: var(--wa);
  color: var(--wa-fg);
}

.btn--wa:hover {
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.3);
}

.btn--bloque {
  width: 100%;
}

/* --- hero --- */

.hero {
  position: relative;
  padding: clamp(56px, 9vw, 104px) 0 clamp(40px, 6vw, 68px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -45%;
  right: -18%;
  width: 62vw;
  height: 62vw;
  max-width: 760px;
  max-height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--fg) 0%, transparent 68%);
  opacity: 0.07;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* --- el logo, tal cual sale de la carpeta, encima del título --- */

.marca-sello {
  display: block;
  width: clamp(150px, 18vw, 200px);
  margin-bottom: clamp(22px, 3.2vw, 34px);
}

.marca-sello img {
  width: 100%;
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.62;
  margin: 0 0 18px;
}

.hero__kicker::before,
.hero__kicker::after {
  content: "";
  width: 26px;
  height: 1.5px;
  background: currentColor;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.4vw, 3.9rem);
  text-transform: uppercase;
  text-wrap: balance;
}

.hero__sub {
  margin: 22px auto 0;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 46ch;
  opacity: 0.8;
  text-wrap: pretty;
}

.hero__acciones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

@media (max-width: 480px) {
  .hero__acciones .btn {
    width: 100%;
  }
}

/* --- sección --- */

.seccion {
  padding: clamp(44px, 7vw, 80px) 0;
  scroll-margin-top: 84px;
}

.seccion__cabecera {
  margin-bottom: clamp(26px, 4vw, 44px);
}

.seccion__cabecera h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  text-transform: uppercase;
}

.seccion__cabecera p {
  margin: 12px 0 0;
  opacity: 0.72;
  max-width: 54ch;
}

/* --- tarjetas de servicio (desplegables) --- */

.servicios {
  display: grid;
  gap: 14px;
}

.servicio {
  scroll-margin-top: 100px;
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  overflow: hidden;
  background: var(--velo);
  transition: border-color 260ms ease, background 260ms ease;
}

.servicio:hover,
.servicio.abierto {
  border-color: var(--linea-fuerte);
  background: var(--velo-2);
}

.servicio__btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px clamp(16px, 2.6vw, 28px);
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.servicio__icono {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--linea-fuerte);
  opacity: 0.9;
}

.servicio__icono svg {
  width: 23px;
  height: 23px;
}

.servicio__titulo {
  flex: 1;
  min-width: 0;
}

.servicio__titulo strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  font-weight: 600;
  letter-spacing: -0.005em;
}

.servicio__titulo span {
  display: block;
  font-size: 0.84rem;
  opacity: 0.62;
  margin-top: 3px;
}

.servicio__mas {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  opacity: 0.55;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), opacity 260ms ease;
}

.servicio.abierto .servicio__mas {
  transform: rotate(135deg);
  opacity: 1;
}

.servicio__mas::before,
.servicio__mas::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  border-radius: 2px;
}

.servicio__mas::before {
  width: 12px;
  height: 1.6px;
  transform: translate(-50%, -50%);
}

.servicio__mas::after {
  width: 1.6px;
  height: 12px;
  transform: translate(-50%, -50%);
}

.servicio__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.servicio.abierto .servicio__panel {
  grid-template-rows: 1fr;
}

.servicio__panel > div {
  overflow: hidden;
}

.servicio__cuerpo {
  padding: 0 clamp(16px, 2.6vw, 28px) 24px;
}

.servicio__cuerpo p {
  margin: 0 0 16px;
  opacity: 0.82;
  max-width: 62ch;
}

.servicio__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.servicio__tags li {
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--linea-fuerte);
  opacity: 0.75;
}

.servicio__contacto {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px dashed var(--linea-fuerte);
}

.servicio__contacto .quien {
  flex: 1 1 190px;
  min-width: 0;
  font-size: 0.86rem;
  line-height: 1.4;
}

.servicio__contacto .quien strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.servicio__contacto .quien span {
  opacity: 0.6;
  font-size: 0.78rem;
}

/* --- bloque de contacto --- */

.contacto {
  border-radius: 22px;
  padding: clamp(28px, 4.4vw, 52px);
  border: 1px solid var(--linea);
  background: var(--velo);
}

.contacto h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  text-transform: uppercase;
}

.contacto p {
  margin: 12px 0 0;
  opacity: 0.75;
  max-width: 50ch;
}

.contacto__tarjetas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.tarjeta-contacto {
  border-radius: var(--radio);
  border: 1px solid var(--linea);
  background: rgba(var(--bg-rgb), 0.35);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tarjeta-contacto__rol {
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.55;
}

.tarjeta-contacto__nombre {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

.tarjeta-contacto__tel {
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  opacity: 0.82;
}

.tarjeta-contacto__tel:hover {
  opacity: 1;
  text-decoration: underline;
}

.tarjeta-contacto__acciones {
  display: flex;
  gap: 9px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.tarjeta-contacto__acciones .btn {
  flex: 1 1 auto;
  padding: 11px 14px;
  font-size: 0.7rem;
}

/* --- pie --- */

.pie {
  /* deja aire para que el botón flotante de WhatsApp no tape los enlaces */
  padding: 40px 0 96px;
  border-top: 1px solid var(--linea);
  margin-top: clamp(30px, 5vw, 60px);
}

.pie__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 0.8rem;
  opacity: 0.62;
}

.pie__inner nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.pie__inner a {
  text-decoration: none;
}

.pie__inner a:hover {
  text-decoration: underline;
}

/* --- botón flotante de WhatsApp --- */

.wa-flotante {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--wa);
  color: var(--wa-fg);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.wa-flotante:hover {
  transform: scale(1.08);
}

.wa-flotante svg {
  width: 30px;
  height: 30px;
}

@media (max-width: 720px) {
  .wa-flotante {
    right: 14px;
    bottom: 14px;
  }
}

/* --- animación de entrada --- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
