/* =========================================================
   FUENTES LOCALES
   ========================================================= */

/* "Eyesome" regular. Mismo font-family que la itálica de abajo:
   así, escribir font-style: italic en cualquier lugar del CSS
   activa automáticamente el fichero correcto sin variables extra. */
@font-face {
  font-family: "Eyesome";
  src: url("../fonts/eyesome_reg.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* "Eyesome" itálica */
@font-face {
  font-family: "Eyesome";
  src: url("../fonts/eyesome_ita.woff2") format("woff2");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

/* "Eyesome" script */
@font-face {
  font-family: "Eyesome";
  src: url("../fonts/eyesome_scr.woff2") format("woff2");
  font-weight: normal;
  font-style: oblique;
  font-display: swap;
}

/* Contenedor del interruptor y los textos */
.language-switch-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff; /* Color del texto ES / EN */
  font-family: sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
}

/* La caja del interruptor */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

/* Ocultar el checkbox de HTML original */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* El fondo deslizante (estado inactivo/ES) */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: transparent;
  border: 1px solid #ffffff; /* Borde blanco */
  border-radius: 24px;
  transition: .4s;
}

/* El círculo dentro del interruptor */
.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: .4s;
}

/* Estado activo (cuando cambia a EN) */
input:checked + .slider {
  background-color: #ffffff; /* El fondo se vuelve blanco */
}

/* Movimiento del círculo al hacer clic */
input:checked + .slider:before {
  transform: translateX(22px);
  background-color: #000000; /* El círculo se vuelve negro para contrastar */
}
/* =========================================================
   VARIABLES GLOBALES
   ========================================================= */
html {
  scroll-behavior: smooth;
}

:root {
  /* --- Tipografías generales --- */
  --font-title: "Eyesome", serif;
  --font-body: "Eyesome", serif;

  /* --- Navbar: tipografía de los enlaces --- */
  --nav-font-family: Eyesome, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --nav-font-size: 1.2rem;
  --nav-font-weight: 600;
  --nav-link-color-hover: #b8a597;
  --nav-link-color: #edd9cc;
  --nav-link-color-mobile: #16161d;
 
  /* --- Navbar: contenedor --- */
  --nav-height: 4.5rem;
  --nav-padding-inline: 2rem;
  --nav-gap-links: 4rem;          /* espacio entre enlaces */
  --nav-gap-menu: 7rem;         /* espacio entre bloque de enlaces y el toggle de idioma */
 
  --nav-bg-transparent: transparent;
  --nav-bg-scrolled: #edd9cc;      /* placeholder: color al hacer scroll */
  --nav-link-color-scrolled: #16161d;
  --nav-transition-speed: 0.5s;
  --nav-transition-speed-links: 0.1s;
  --nav-transition-speed-transform: 0.3s;

  --menu-stroke-color: #edd9cc;
  --menu-stroke-color-scrolled: #16161d;
  --menu-transition-speed: 0.3s;

  --nav-mobile-menu-bg: #edd9cc;
  --nav-mobile-link-color: #16161d;
  --nav-mobile-link-color-hover: #b8a597;
 
  /* --- Lander --- */
  --land-tint-color: rgba(0, 0, 0, 0.7); /* oscurece la imagen de portada */

  /* --- Toggle de idioma --- */
  --lang-toggle-width: 3.75rem;
  --lang-toggle-height: 1.875rem;
  --lang-toggle-bg: #e0e0e0;
  --lang-toggle-thumb-bg: #16161d;
  --lang-toggle-thumb-color: #ffffff;

  --lang-toggle-bg-mobile: #16161d;
  --lang-toggle-thumb-bg-mobile: #e0e0e0;
  --lang-toggle-thumb-color-mobile: #16161d;
  --lang-toggle-font-size: 0.7rem;
 
  /* --- Breakpoint de referencia (documental, media queries no leen variables) --- */
  --breakpoint-mobile: 768px;
}
 
/* =========================================================
   RESET BÁSICO
   ========================================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--nav-font-family);
  font-style: normal;
}

main,
section,
.servicios__card {
  content-visibility: auto;
  contain-intrinsic-size: 1200px 800px;
}

img {
  image-rendering: auto;
}

/* =========================================================
   NAVBAR: contenedor fijo
   ========================================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
 
  background-color: var(--nav-bg-transparent);
  transition: background-color var(--nav-transition-speed) ease;
}
 
/* Estado: aplicado por JS al superar el punto de scroll definido */
.navbar--scrolled {
  background-color: var(--nav-bg-scrolled);
}
 
.navbar__container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--nav-padding-inline);
}

.menu__svg {
  display: block;
  color: var(--nav-link-color);
  stroke: currentColor;
  fill: none;
  transition: color var(--menu-transition-speed) ease,
              stroke var(--menu-transition-speed) ease;
}
 
.menu--scrolled {
  color: var(--menu-stroke-color-scrolled);
  stroke: currentColor;
  fill: none;
}

/* =========================================================
   LOGO
   ========================================================= */
.navbar__logo {
  display: flex;
  align-items: center;
  line-height: 0; /* evita espacio extra bajo la imagen */
  color: var(--nav-link-color);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--nav-transition-speed) ease;
}
 
.navbar__logo img {
  display: block;
  height: 2.5rem;
  width: auto;
}

.navbar__logo-svg {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--nav-link-color);
  fill: var(--nav-link-color);
  flex-shrink: 0;
  stroke-width: 3px;
}

.navbar__logo:hover,
.navbar__logo:focus-visible,
.navbar__logo:active {
  color: var(--nav-link-color);
}

.navbar__logo_txt {
  font-family: var(--font-body);
  color: var(--nav-link-color);
  font-size: clamp(1rem, 4vw, 2rem);
  margin-left: 1rem;
  font-weight: 500;
}
 
/* =========================================================
   BOTÓN HAMBURGUESA (oculto en escritorio)
   ========================================================= */
.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.3125rem;
 
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
}
 
.navbar__toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--nav-link-color);
  transition: transform var(--nav-transition-speed) ease,
              opacity var(--nav-transition-speed) ease;
}

.navbar__close {
  display: none; /* oculto en escritorio; se muestra solo en móvil (ver media query) */
}
 
/* =========================================================
   MENÚ: enlaces + toggle de idioma (escritorio = fila horizontal)
   ========================================================= */
.navbar__menu {
  display: flex;
  align-items: center;
  gap: var(--nav-gap-menu);
}
 
.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--nav-gap-links);
  list-style: none;
}
 
.navbar__link {
  position: relative;
  display: inline-block;
  font-size: var(--nav-font-size);
  font-weight: var(--nav-font-weight);
  font-style: normal;
  color: var(--nav-link-color);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--nav-transition-speed-links) ease;
}
 
.navbar__link:hover,
.navbar__link:focus-visible {
  color: var(--nav-link-color-hover);
}

.link_underline {
  position: relative;
  display: inline-block;
  cursor: pointer;
  border: none;
  background: none;
  transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
  transition-duration: 400ms;
  transition-property: color;
}

.link_underline:hover::after,
.link_underline:focus-visible::after {
  width: 100%;
  left: 0;
}

.link_underline::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  background-color: rgb(139, 9, 9);
  transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
  transition-duration: 400ms;
  transition-property: width, left;
}


/* Cuando la navbar cambia a fondo claro (al llegar a #servicios), el
   texto pasa a oscuro para mantener el contraste. */
.navbar--scrolled .navbar__link {
  color: var(--nav-link-color-scrolled);
  transition: color var(--nav-transition-speed-links) ease;
}

.navbar--scrolled .navbar__logo,
.navbar--scrolled .navbar__logo-svg,
.navbar--scrolled .menu__svg,
.navbar--scrolled .navbar__logo_txt {
  color: var(--nav-link-color-scrolled);
  fill: var(--nav-link-color-scrolled);
  stroke: var(--nav-link-color-scrolled);
  transition: color var(--nav-transition-speed-links) ease,
              fill var(--nav-transition-speed-links) ease,
              stroke var(--nav-transition-speed-links) ease;
}

.navbar--scrolled .navbar__logo_txt {
  font-weight: 600;
}

.navbar--scrolled .lang-toggle {
  background-color: var(--nav-bg-scrolled);
}

.navbar--scrolled .lang-toggle__option {
  color: var(--nav-link-color-scrolled);
}

.navbar--scrolled .lang-toggle__thumb {
  background-color: var(--nav-link-color-scrolled);
}

.legal-page {
  background: #f4efe9;
  color: #16161d;
  min-height: 100vh;
}

.legal-page .navbar {
  background: transparent;
}

.legal-page .navbar__container {
  align-items: center;
}

.legal-page .navbar__menu,
.legal-page .navbar__links {
  display: flex;
  align-items: center;
}

.legal-page .navbar__links {
  gap: var(--nav-gap-links);
}

.legal-page .navbar--scrolled {
  background-color: var(--nav-bg-scrolled);
}

.legal-page .legal-page__main {
  max-width: 980px;
  margin: 0 auto;
  padding: 7rem 1.5rem 4rem;
}

.legal-page .legal-page__content {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(22, 22, 29, 0.08);
  border-radius: 1.5rem;
  box-shadow: 0 1.5rem 3rem rgba(22, 22, 29, 0.08);
  padding: clamp(1.5rem, 3vw, 3rem);
}

.legal-page .legal-backlink {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: #16161d;
  text-decoration: none;
  font-weight: 700;
}

.legal-page .legal-backlink:hover,
.legal-page .legal-backlink:focus-visible {
  color: #8b0909;
}

.legal-page h1,
.legal-page h2,
.legal-page h3,
.legal-page p,
.legal-page li,
.legal-page a {
  color: #16161d;
}

.legal-page h1 {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.legal-page h2 {
  font-family: var(--font-title);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-page p,
.legal-page li {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  font-weight: 600;
}

.legal-page a {
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.legal-page .navbar__logo,
.legal-page .navbar__logo_txt,
.legal-page .navbar__logo-svg,
.legal-page .menu__svg,
.legal-page .navbar__link,
.legal-page .navbar__toggle,
.legal-page .navbar__close,
.legal-page .lang-toggle {
  color: #16161d;
  fill: #16161d;
  stroke: #16161d;
  text-decoration: none;
  line-height: 1;
}

.legal-page .navbar__logo,
.legal-page .navbar__link {
  display: inline-flex;
  align-items: center;
}

.legal-page .navbar__link {
  text-decoration: none;
}

.legal-page .navbar__link:hover,
.legal-page .navbar__link:focus-visible {
  text-decoration: none;
}

/* =========================================================
   TOGGLE DE IDIOMA (slider ES / EN)
   ========================================================= */
.lang-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
 
  width: var(--lang-toggle-width);
  height: var(--lang-toggle-height);
  padding-inline: 0.4rem;
 
  background-color: var(--lang-toggle-bg);
  border: none;
  border-radius: calc(var(--lang-toggle-height) / 2);
  cursor: pointer;
}
 
.lang-toggle__option {
  font-size: var(--lang-toggle-font-size);
  font-weight: 600;
  color: var(--lang-toggle-thumb-bg);
  z-index: 1;
  pointer-events: none;
}
 
.lang-toggle__thumb {
  position: absolute;
  top: 0.1875rem;
  left: 0.1875rem;
 
  width: calc(var(--lang-toggle-height) - 0.375rem);
  height: calc(var(--lang-toggle-height) - 0.375rem);
  border-radius: 50%;
  background-color: var(--lang-toggle-thumb-bg);
 
  transition: transform var(--nav-transition-speed) ease;
}
 
/* Estado activo (idioma = inglés): el thumb se desliza a la derecha.
   La clase la añade script.js según el idioma actual. */
.lang-toggle[aria-checked="true"] .lang-toggle__thumb {
  transform: translateX(
    calc(var(--lang-toggle-width) - (var(--lang-toggle-height) - 0.375rem) - 0.375rem)
  );
}

.lang-toggle[aria-checked="false"] .lang-toggle__option--es,
.lang-toggle[aria-checked="true"] .lang-toggle__option--en {
  color: var(--lang-toggle-thumb-color);
}

.lang-toggle[aria-checked="true"] .lang-toggle__option--es,
.lang-toggle[aria-checked="false"] .lang-toggle__option--en {
  color: var(--lang-toggle-thumb-bg);
}

/* =========================================================
   SECCIONES
   ========================================================= */

.lander {
  position: relative;
  width: 100%;
  max-width: 100%;

  /* 100dvh en vez de 100vh: en móvil descuenta la barra de
     direcciones del navegador, evitando que la imagen se corte
     de más o quede con un hueco al cargar. */
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.lander::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--land-tint-color);
  pointer-events: none;
  z-index: 0;
}

.lander__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding-top: calc(var(--nav-height) + 3rem);
  padding: clamp(2rem, 3vw, 3rem);
}

.lander__title {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 7vw, 7rem);
  font-weight: 500;
  font-family: var(--font-body);
  line-height: 1.15;
  text-align: center;
  letter-spacing: -0.02em;
  font-style: oblique;
  margin-top: clamp(4rem, 4vw, 6rem);
  margin-bottom: clamp(1rem, 2vw, 3rem);
  white-space: nowrap;
}

/* Texto lateral izquierdo, centrado verticalmente */
.lander__subtitle {
  position: relative;
  z-index: 1;
  margin: 2rem 0 0;
  max-width: 50rem;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: clamp(3rem, 6vw, 7rem);
  font-weight: 500;
  line-height: 1.15;
  text-align: left;
}

/* Banner inferior izquierdo: imagen + texto en línea */
.lander__banner {
  position: relative;
  z-index: 1;
  margin-top: clamp(1rem, 1vw, 2rem);;
  padding-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1vw;
}

.lander__banner-img {
  width: clamp(3rem, 4vw, 5rem);
  height: clamp(3rem, 4vw, 5rem);
  object-fit: cover;
  border-radius: 0.5rem;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}

.lander__banner-text {
  margin: 0;
  max-width: 22rem;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.5rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.5;
}

/* =========================================================
   IMAGENES
   ========================================================= */
   
.img-lander {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 75%;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

/* =========================================================
   ESTUDIO (con fondo parallax)
   ========================================================= */

.estudio {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;   /* misma altura que .lander, ver comentario allí */
  overflow: hidden;
}

.section-layered {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.section-layered::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.section-layered .estudio__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding-top: calc(var(--nav-height) + 3rem);
  padding: clamp(2rem, 3vw, 3rem);
}

.section-layered .estudio__title {
  margin: 0;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: clamp(2rem, 5vw, 8rem);
  font-weight: 500;
  line-height: 1.15;
  text-align: left;
  max-width: 100rem;
  margin-top: clamp(4rem, 4vw, 6rem);
}

.section-layered .estudio__text {
  margin: 2rem 0 0;
  max-width: 30rem;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 2rem);
  line-height: 1.6;
  text-align: left;
  max-width: 60rem;
}

.section-layered .estudio__banner {
  margin-top: auto;
  padding-top: 2rem;
  z-index: 1;
}

.section-layered .estudio__banner p {
  margin: 0;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 3vw, 5rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Contenedor "de sobra": más alto que la sección para que, al mover la
   imagen verticalmente (parallax), nunca se vean los bordes/huecos. */
.parallax-bg {
  position: absolute;
  inset: -16% 0;
  z-index: 0;
  overflow: hidden;
}

.parallax-bg__img {
  display: block;
  width: 100%;
  height: 112%;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
  filter:blur(1px);
  will-change: transform; /* el transform lo aplica script.js en cada frame de scroll */
}

/* Capa oscura para que el texto blanco siga siendo legible sobre el fondo */
.estudio::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.estudio__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding-top: calc(var(--nav-height) + 3rem);
  padding: clamp(2rem, 3vw, 3rem);
}

.estudio__title {
  margin: 0;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: clamp(2rem, 5vw, 8rem);
  font-weight: 500;
  line-height: 1.15;
  text-align: left;
  max-width: 100rem;
  margin-top: clamp(4rem, 4vw, 6rem);
}

.estudio__text {
  margin: 2rem 0 0;
  max-width: 30rem;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 2rem);
  line-height: 1.6;
  text-align: left;
  max-width: 60rem;
}

.estudio__banner {
  margin-top: auto;
  padding-top: 2rem;
  z-index: 1;
}

.estudio__banner p {
  margin: 0;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 3vw, 5rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 600;
}

/* =========================================================
   SERVICIOS (fondo y tarjetas animadas con el scroll)
   ========================================================= */

.servicios {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: rgba(237, 217, 204, 0.3);
  overflow: visible;
}

.servicios__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 100%;
  padding-top: calc(var(--nav-height) + 1.5rem);
  padding: clamp(1rem, 2vw, 2rem);
  box-sizing: border-box;
  background: rgba(237, 217, 204, 1);
}

.servicios__title {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #16161d;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 500;
  font-family: var(--font-title);
  font-style: oblique;
  text-align: center;
  margin-top: clamp(4rem, 4vw, 6rem);
  margin-bottom: clamp(1rem, 2vw, 3rem);
  white-space: nowrap;
}

.servicios__cards {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(0.75rem, 1.5vw, 1.5rem);
  width: min(100%, 1200px);
  padding-inline: clamp(0.75rem, 1.5vw, 1.5rem);
  margin: 1rem 0 1rem;
  flex-wrap: nowrap;
}

.servicios__card {
  position: relative;
  flex: 1 1 0;
  width: min(22vw, 18rem);
  max-width: 18rem;
  min-width: 8rem;
  height: clamp(21rem, 34vw, 34rem);
  min-height: 21rem;
  border-radius: 0.1rem;
  background: transparent;
  box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.1);
  overflow: hidden;
  opacity: var(--card-opacity);
  transition: box-shadow 0.3s ease;
}

.servicios__card:hover,
.servicios__card:focus-within {
  box-shadow: 0 1.75rem 3rem rgba(0, 0, 0, 0.14);
}

.servicios__card-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 0.25rem;
  -webkit-user-drag: none;
  user-select: none;
  transform: none;
  filter: none;
  transition: filter 0.3s ease;
}

.servicios__card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.2rem;
  height: clamp(6.9rem, 8vw, 8.5rem);
  padding: 0.5rem 0.8rem 0.55rem;
  background: #edd9cc;
  border-top: 1px solid #edd9cc;
  transform: translateY(0);
  transition: height 0.30s ease, box-shadow 0.30s ease;
  box-shadow: inset 0 0 0 1px rgba(22, 22, 29, 0.02);
}

.servicios__card:hover .servicios__card-body,
.servicios__card:focus-within .servicios__card-body {
  height: clamp(9.8rem, 12vw, 12.2rem);
  transform: translateY(0);
  box-shadow: 0 -1px 0 #edd9cc;
}

.servicios__card-title {
  margin: 0;
  color: #16161d;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 2rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.1;
  transform: translateY(0);
  transition: transform 0.28s ease;
}

.servicios__card:hover .servicios__card-title,
.servicios__card:focus-within .servicios__card-title {
  transform: translateY(-0.12rem);
}

.servicios__card-preview,
.servicios__card-full {
  margin: 0;
  color: #16161d;
  font-family: var(--font-body);
  line-height: 1.45;
  font-weight: 600;
}

.servicios__card-preview {
  display: block;
  font-size: 1rem;
  max-width: 22ch;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.servicios__card-full {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 1rem;
  transform: translateY(0.45rem);
  transition: max-height 0.32s ease, opacity 0.25s ease, transform 0.25s ease;
}

.servicios__card:hover .servicios__card-preview,
.servicios__card:focus-within .servicios__card-preview {
  opacity: 0;
  transform: translateY(-0.2rem);
  max-height: 0;
}

.servicios__card:hover .servicios__card-full,
.servicios__card:focus-within .servicios__card-full {
  max-height: 12rem;
  opacity: 1;
  transform: translateY(0);
}

.servicios__card:hover .servicios__card-img,
.servicios__card:focus-within .servicios__card-img {
  filter: brightness(0.9);
}

.button_socials {
  background: transparent;
  position: relative;
  padding: 5px 15px;
  display: flex;
  align-items: center;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgb(255,0,0);
  border-radius: 25px;
  outline: none;
  overflow: hidden;
  color: rgb(255,0,0);
  transition: color 0.3s 0.1s ease-out;
  text-align: center;
  max-width: 200px;
}

.button_socials--whatsapp {
  border-color: rgb(37, 211, 102);
  color: rgb(37, 211, 102);
}

.button_socials--email {
  border-color: rgb(0, 123, 255);
  color: rgb(0, 123, 255);
}

.button_socials span {
  margin: 10px;
}

.button_socials::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  content: '';
  border-radius: 50%;
  display: block;
  width: 20em;
  height: 20em;
  left: -5em;
  text-align: center;
  transition: box-shadow 0.5s ease-out;
  z-index: -1;
}

.button_socials:hover {
  color: #fff;
  border: 1px solid rgb(255,0,0);
}

.button_socials--whatsapp:hover {
  border-color: rgb(37, 211, 102);
}

.button_socials--email:hover {
  border-color: rgb(0, 123, 255);
}

.button_socials:hover::before {
  box-shadow: inset 0 0 0 10em rgb(255, 0, 0);
}

.button_socials--whatsapp:hover::before {
  box-shadow: inset 0 0 0 10em rgb(37, 211, 102);
}

.button_socials--email:hover::before {
  box-shadow: inset 0 0 0 10em rgb(0, 123, 255);
}

/* =========================================================
   FIX TRANSICIÓN A MÓVILES
   ========================================================= */

/* Se aplica un instante, solo al cruzar el breakpoint móvil/escritorio,
   para que el menú "salte" a su posición cerrada sin animarse. La quita
   script.js en el siguiente frame, restaurando la transición normal. */
.navbar__menu--no-transition {
  transition: none !important;
}
 
/* =========================================================
   RESPONSIVE: MÓVIL / TABLET (< 768px)
   ========================================================= */
@media (max-width: 767px) {
 
  .navbar__toggle {
    display: flex;
  }
 
  .navbar__menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
 
    background-color: var(--nav-mobile-menu-bg);
    transform: translateX(100%);
    transition: transform var(--nav-transition-speed-transform) ease;
    z-index: 1100; /* por encima de la navbar y su contenido */
  }
 
  /* Estado abierto: aplicado por JS con una clase en .navbar__menu */
  .navbar__menu.navbar__menu--open {
    transform: translateX(0);
  }

  .navbar__close {
    display: flex;
    align-items: center;
    justify-content: center;

    position: absolute;
    top: 1.25rem;
    right: 1.5rem;

    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;

  }

  .navbar__links {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0;
  }
 
  .navbar__links li {
    width: 100%;
  }
 
  .navbar__link {
    display: block;
    width: 100%;
    padding: 1rem var(--nav-padding-inline);
    font-size: 1.5rem;

    color: var(--nav-mobile-link-color);
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--nav-transition-speed) ease;
    text-decoration: underline;
    text-decoration-thickness: 1.1px;
    text-underline-offset: 2px;
  }

  .navbar__link:hover,
  .navbar__link:focus-visible {
  color: var(--nav-mobile-link-color-hover);
}

.navbar--scrolled {
  background-color: var(--nav-bg-transparent);
}
 
.lang-toggle {
  margin: 1rem var(--nav-padding-inline);
}

/* =================================================

*/

.lang-toggle {
  background-color: var(--lang-toggle-bg-mobile);
}
 
.lang-toggle__option {
  color: var(--nav-link-color-mobile);
}
 
.lang-toggle__thumb {
  background-color: var(--lang-toggle-thumb-bg-mobile);
}

  .servicios__cards {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-inline: 0.5rem;
  }

  .servicios__card {
    flex: 0 0 calc(50% - 0.375rem);
    width: calc(50% - 0.375rem);
    max-width: none;
    min-width: 0;
    min-height: 17rem;
    height: clamp(17rem, 44vw, 23rem);
  }

}

/* =========================================================
   TRABAJO: sección con fondo, texto a la izquierda e imagen a la derecha
   ========================================================= */
.trabajo {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.trabajo__background {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.58);
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
  z-index: 0;
  filter:blur(2px);
}

.trabajo::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--land-tint-color);
  pointer-events: none;
  z-index: 0;
}

.trabajo__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center;
  min-height: 100%;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2rem, 3vw, 3rem);
  padding-top: calc(var(--nav-height) + 3rem);
}

.trabajo__copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}

.trabajo__title {
  margin: 0;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: clamp(2rem, 5vw, 8rem);
  font-weight: 500;
  line-height: 1.1;
  text-align: left;
  max-width: 100rem;
  margin-top: clamp(4rem, 4vw, 6rem);
}

.trabajo__text {
  margin: 2rem 0 0;
  max-width: 30rem;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 2rem);
  line-height: 1.6;
  text-align: left;
  max-width: 60rem;
}

.trabajo__banner {
  margin-top: auto;
  padding-top: 2rem;
}

.trabajo__banner p {
  margin: 0;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 3vw, 5rem);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 600;
}

.trabajo__img {
  display: block;
  width: min(70%, 36rem);
  max-width: 100%;
  max-height: calc(100dvh - var(--nav-height) - 8rem);
  height: auto;
  object-fit: contain;
  justify-self: end;
  align-self: center;
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.28);
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

/* =========================================================
   CULTURA: fondo cálido con bento-box a la derecha
   ========================================================= */
.cultura {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background-color: #edd9cc;
}

.cultura__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  min-height: 100%;
  padding: clamp(2rem, 3vw, 3rem);
  padding-top: calc(var(--nav-height) + 3rem);
}

.cultura__copy {
  display: flex;
  flex-direction: column;
  justify-content: unset;
  min-height: 100%;
}

.cultura__title {
  margin: 0;
  color: #16161d;
  font-family: var(--font-body);
  font-size: clamp(2rem, 5vw, 8rem);
  font-weight: 500;
  line-height: 1.1;
  text-align: left;
  max-width: 100rem;
  margin-top: clamp(4rem, 4vw, 6rem);
}

.cultura__text {
  margin: 2rem 0 0;
  max-width: 32rem;
  color: #16161d;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 2rem);
  line-height: 1.6;
  text-align: left;
}

.cultura__bento {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: clamp(0.75rem, 1.2vw, 1.2rem);
  width: min(100%, 58rem);
  height: min(70vh, 42rem);
  justify-self: end;
  align-self: center;
}

.cultura__item {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
}

.cultura__item--tall-left {
  grid-column: 1;
  grid-row: 1 / span 2;
  object-position: 40% center;
}

.cultura__item--square-1 {
  grid-column: 2;
  grid-row: 1;
}

.cultura__item--square-2 {
  grid-column: 3;
  grid-row: 1;
}

.cultura__item--square-3 {
  grid-column: 2;
  grid-row: 2;
}

.cultura__item--square-4 {
  grid-column: 3;
  grid-row: 2;
}

.cultura__item--tall-right {
  grid-column: 4;
  grid-row: 1 / span 2;
  object-position: 70% center;
}

/* =========================================================
   CONTACTO: fondo, texto a la izquierda y lista de contacto
   ========================================================= */
.contacto {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #000000;
}

.contacto__background {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
  filter: brightness(0.55);
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

.contacto::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--land-tint-color);
  pointer-events: none;
  z-index: 0;
}

.contacto__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 100%;
  padding: clamp(2rem, 3vw, 3rem);
  padding-top: calc(var(--nav-height) + 3rem);
}

.contacto__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

.contacto__title {
  margin: 0;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: clamp(2rem, 5vw, 8rem);
  font-weight: 500;
  line-height: 1.1;
  text-align: left;
  max-width: 60rem;
  margin-top: clamp(4rem, 4vw, 6rem);
}

.contacto__list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 2.5rem;
}

.contacto__item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 2rem);
  line-height: 1.5;
}

.contacto__icon {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
  flex-shrink: 0;
  -webkit-user-drag: none;
  user-select: none;
}

.contacto__link {
  color: #ffffff;
  text-decoration: none;
}

.contacto__link:hover,
.contacto__link:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.site-footer {
  background: #0f0f10;
  color: #f4efe9;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.site-footer__brand-name {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.7vw, 1.5rem);
  color: #edd9cc;
}

.site-footer__brand-tag {
  font-size: 0.8rem;
  color: rgba(237, 217, 204, 0.8);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem 1.5rem;
}

.site-footer__nav a {
  color: #f4efe9;
  text-decoration: none;
  font-size: 0.9rem;
}

.site-footer__nav a:hover,
.site-footer__nav a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 1200;
  display: none;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner__content {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(15, 15, 16, 0.96);
  color: #f4efe9;
  border: 1px solid rgba(237, 217, 204, 0.2);
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner__content p {
  font-size: 0.9rem;
  line-height: 1.5;
  flex: 1;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.cookie-button {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.cookie-button:hover,
.cookie-button:focus-visible {
  transform: translateY(-1px);
}

.cookie-button--primary {
  background: #edd9cc;
  color: #0f0f10;
}

.cookie-button--secondary {
  background: transparent;
  border-color: rgba(237, 217, 204, 0.6);
  color: #edd9cc;
}

@media (max-width: 767px) {
  .site-footer__inner,
  .cookie-banner__content {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__nav,
  .cookie-banner__actions {
    justify-content: flex-start;
  }

  .cultura {
    height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
  }

  .trabajo__content,
  .cultura__content {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .cultura__content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 4.5rem;
    padding-bottom: 2rem;
    min-height: 100%;
    align-items: stretch;
    justify-content: flex-start;
  }

  .cultura__copy {
    min-height: 0;
    justify-content: flex-start;
    padding-bottom: 0;
    flex-shrink: 0;
  }

  .cultura__title {
    margin-top: 0;
  }

  .trabajo__img {
    width: 100%;
    height: clamp(18rem, 52vw, 23rem);
    max-height: calc(100dvh - 16rem);
    object-fit: cover;
    object-position: center 80%;
    justify-self: center;
    margin-top: 1rem;
    display: block;
  }

  .cultura__bento {
    width: min(100%, 23.5rem);
    height: clamp(18rem, 52vw, 28rem);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    max-height: none;
    justify-self: center;
    align-self: stretch;
    flex: 1 1 auto;
    min-height: 0;
    /* margin-bottom: 0.75rem; */
  }

  .cultura__item {
    min-height: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    transform: none;
    transform-origin: center;
  }

  .cultura__item--tall-left {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .cultura__item--square-1 {
    grid-column: 2;
    grid-row: 1;
  }

  .cultura__item--square-2 {
    grid-column: 2;
    grid-row: 2;
  }

  .cultura__item--square-3 {
    grid-column: 1;
    grid-row: 3;
  }

  .cultura__item--square-4 {
    grid-column: 1;
    grid-row: 4;
  }

  .cultura__item--tall-right {
    grid-column: 2;
    grid-row: 3 / span 2;
  }

  .contacto__content {
    align-items: center;
  }

  .contacto__list {
    gap: 0.75rem;
  }
}