/*PRUEBA-CHATGPT-2*/

:root{
  --bg: #0b0b0c;
  --paper: #efe9e4;
  --ink: #0d0f12;
  --muted: #5c616b;
  --soft: #e7dfd9;
  --line: rgba(13,15,18,.12);

  /* Boutique accent (rosado elegante, no “chicle”) */
  --accent: #d7a1ad;
  --accent-2: #b7838f;

  --radius: 18px;
  --shadow: 0 1px 50px rgba(0,0,0,.14);
  --shadow-soft: 0 14px 35px rgba(0,0,0,.10);

  --container: 1100px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

img{ max-width:100%; display:block; }

.container{
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.eyebrow{
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .75rem;
  color: rgba(255,255,255,.80);
  margin:0 0 10px;
}
.section .eyebrow{ color: var(--muted); }

h1,h2,h3{
  font-family: Fraunces, serif;
  letter-spacing: -0.02em;
  margin: 0;
}
h1{
  font-weight: 400;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.08;
}
h1 span{
  color: rgba(255,255,255,.90);
}
h2{
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}
h3{
  font-weight: 400;
  font-size: 1.35rem;
}

p{ margin: 0 0 14px; color: var(--muted); line-height: 1.6; }
.lead{ color: rgba(255,255,255,.86); max-width: 58ch; }

.muted{ color: var(--muted); font-family: Inter, sans-serif; font-weight: 500; font-size: .95rem; }

.section{
  padding: 86px 0;
}
.section--soft{
  background: #e9e3dd;
}

.section--dark{
  background: var(--bg);
  color: #fff;
}
.section--dark p{ color: rgba(255,255,255,.80); }

.section__head{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.section__head p{ max-width: 60ch; }
.section__head--dark p{ color: rgba(255,255,255,.78); }

.header{
  position: relative;
  top:0;
  z-index: 4;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}
.header{
  background: rgba(15,17,21,.78) !important;
  border-bottom: 1px solid rgba(255,255,255,.10) !important;
}
.nav__list a{ color: #fff !important; }
.btn--ghost{ color:#fff !important; border-color: rgba(255,255,255,.22) !important; }

.brand__logo{
  width: 150px;
  height: auto;
}

.nav{ display:flex; align-items:center; gap: 12px; }
.nav__toggle{
  display:none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor:pointer;
}
.nav__toggle span{
  display:block;
  height:2px;
  width: 18px;
  margin: 4px auto;
  background: var(--ink);
  border-radius: 10px;
}
.nav__list{
  list-style:none;
  display:flex;
  gap: 18px;
  margin:0;
  padding:0;
}
.nav__list a{
  text-decoration:none;
  color: var(--ink);
  font-size: .95rem;
  font-weight: 500;
  opacity: .85;
}
.nav__list a:hover{ opacity: 1; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration:none;
  font-weight: 600;
  font-size: .95rem;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
  user-select:none;
}
.btn:active{ transform: translateY(1px); }

.btn--primary{
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #151517;
  box-shadow: 0 12px 25px rgba(215,161,173,.35);
}
.btn--primary:hover{ box-shadow: 0 16px 34px rgba(215,161,173,.42); }

.btn--ghost{
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.28);
}
.section:not(.section--dark) .btn--ghost{
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
}
.btn--ghost:hover{ border-color: rgba(255,255,255,.45); }
.section:not(.section--dark) .btn--ghost:hover{ border-color: rgba(13,15,18,.22); }

.btn--text{
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  color: var(--ink);
  font-weight: 600;
}
.btn--text:hover{ opacity: .75; }

.btn--small{ padding: 10px 14px; font-size: .9rem; }


/* HERO NUEVO */
.hero{
  position:relative;
  width:100%;
  overflow:hidden;
}

.container.hero__content {
   max-width: 1100px;
   margin: 0 auto;
   padding: 80px 20px 60px 20px;
   position: relative;
   z-index: 2;
}
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.35);
}


  .hero__overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(90% 70% at 20% 75%, rgba(0,0,0,.15), rgba(0,0,0,.55)),
    linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.60));
}
  

.hero__content{
  position: relative;
  z-index: 1;
  padding-top: 110px;
  text-shadow: 0 4px 18px rgba(0,0,0,.35);
max-width: 680px;

  text-align: left;     /* 👈 fuerza texto a la izquierda */
  margin-left: 0;       /* 👈 pegado a la izquierda */
  margin-right: auto;   /* 👈 aire a la derecha */


}

.hero__actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 22px 0 18px;
}
.hero__badges{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.badge{
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  padding: 10px 12px;
  border-radius: 999px;
  font-size: .92rem;
  color: rgba(255,255,255,.88);
}

.grid{
  display:grid;
  gap: 18px;
}
.cards{
  grid-template-columns: repeat(3, 1fr);
}
.card{
  background:#fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow-soft);
}
.card__media{
  background: #f2f2f2;
  /* altura fija elegante */
  height: 220px;
}
.card__media img{
  width:100%;
  height:100%;
  /* CLAVE anti-recorte: contain */
  object-fit: contain;
  object-position: center;
  padding: 10px;
}
.card__body{ padding: 16px 16px 18px; }
.card__body p{ margin-top: 10px; }
.card__actions{ margin-top: 10px; }

.mini-strip{
  margin-top: 26px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.mini-strip__item{
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 14px 14px;
}
.mini-strip__item strong{ display:block; margin-bottom: 4px; }

.nutrition{
  grid-template-columns: 1.1fr 1fr 1fr 0.9fr;
  align-items: stretch;
}
.tile{
  background:#fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow-soft);
  cursor: zoom-in;
  display:flex;
  flex-direction: column;
}
.tile img{
  width:100%;
  height: 240px;
  object-fit: contain; /* sin recortes */
  background: #fafafa;
  padding: 10px;
}
.tile--portrait img{ height: 100%; min-height: 240px; }
.tile figcaption{
  padding: 12px 14px;
  font-weight: 600;
  color: var(--ink);
}

.callout{
  margin-top: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  padding: 18px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-soft);
}

.masonry{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.masonry__item{
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: 16px;
  overflow:hidden;
  box-shadow: var(--shadow-soft);
}
.masonry__item img{
  width:100%;
  height:100%;
  object-fit: cover; /* aquí sí, instalaciones quedan bien */
}
.masonry__item:nth-child(1){ grid-column: 1 / span 7; grid-row: 1 / span 2; height: 420px; }
.masonry__item:nth-child(2){ grid-column: 8 / span 5; height: 204px; }
.masonry__item:nth-child(3){ grid-column: 8 / span 5; height: 204px; }
.masonry__item:nth-child(4){ grid-column: 1 / span 4; height: 220px; }
.masonry__item:nth-child(5){ grid-column: 5 / span 8; height: 220px; }

.hike{
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  align-items: stretch;
}
.hike__cover{
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: 0 26px 70px rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.12);
}
.hike__cover img{
  width:100%;
  height:100%;
  min-height: 380px;
  object-fit: cover;
  object-position: center;
}
.hike__content{
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  padding: 18px;
}
.hike__content h3{ color:#fff; }
.hike__actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.about{
  display:grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  align-items:center;
}
.about__media{
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: #f7f7f7;
}
.about__media img{
  width:100%;
  height:100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
}
.about__actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.location{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}
.location__info{
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}
.info-row{
  display:flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.info-row:last-child{ border-bottom: 0; }
.location__actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.location__map{
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  background: #fff;
}
.location__map iframe{
  width:100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

.footer{
  padding: 44px 0 20px;
  background: #0d0f12;
  color:#fff;
}
.footer p{ color: rgba(255,255,255,.75); }
.footer__inner{
  display:grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 18px;
  align-items:start;
}
.footer__brand img{ width: 150px; height:auto; margin-bottom: 8px; }
.footer__links{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  align-content: start;
}
.footer__links a{
  color: rgba(255,255,255,.82);
  text-decoration:none;
}
.footer__links a:hover{ color: #fff; }
.footer__bottom{
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 18px;
}
.footer__bottom small{ color: rgba(255,255,255,.65); }

/* Lightbox */
.lightbox{
  position: fixed;
  inset: 0;
  display:none;
  place-items:center;
  background: rgba(0,0,0,.75);
  z-index: 90;
  padding: 22px;
}
.lightbox.is-open{ display:grid; }
.lightbox__img{
  max-width: min(1100px, 96vw);
  max-height: 86vh;
  border-radius: 16px;
  box-shadow: 0 26px 70px rgba(0,0,0,.55);
  background: #111;
  object-fit: contain;
}
.lightbox__close{
  position:absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.10);
  color: #fff;
  font-size: 26px;
  cursor:pointer;
}

/* Modal senderismo */
.modal{
  position: fixed;
  inset: 0;
  display:none;
  place-items:center;
  background: rgba(0,0,0,.70);
  z-index: 95;
  padding: 20px;
}
.modal.is-open{ display:grid; }
.modal__panel{
  width: min(1100px, 96vw);
  max-height: 86vh;
  overflow: auto;
  background: #0f1115;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0,0,0,.62);
}
.modal__head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.modal__head h3{ color:#fff; }
.modal__close{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color:#fff;
  font-size: 26px;
  cursor:pointer;
}
.hike-gallery{
  grid-template-columns: repeat(3, 1fr);
  padding: 16px;
}
.tile-btn{
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 14px;
  overflow:hidden;
  cursor: zoom-in;
  box-shadow: 0 16px 45px rgba(0,0,0,.35);
}
.tile-btn img{
  width:100%;
  height: 220px;
  object-fit: cover;
}

/* Responsive */
@media (max-width: 980px){
  .cards{ grid-template-columns: 1fr; }
  .nutrition{ grid-template-columns: 1fr 1fr; }
  .mini-strip{ grid-template-columns: 1fr; }
  .masonry{ grid-template-columns: 1fr; }
  .masonry__item{ height: 260px !important; grid-column: auto !important; grid-row: auto !important; }
  .hike{ grid-template-columns: 1fr; }
  .about{ grid-template-columns: 1fr; }
  .location{ grid-template-columns: 1fr; }
  .footer__inner{ grid-template-columns: 1fr; }
  .hero{ min-height: 78vh; padding-bottom: 56px; }
  .hero__media img{
    /* En móvil: mostramos más área vertical */
    object-position: center 20%;
  }

  .nav__toggle{ display:block; }
  .nav__list{
    display:none;
    position:absolute;
    top: 68px;
    right: 20px;
    left: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 12px;
    box-shadow: var(--shadow-soft);
    flex-direction: column;
    gap: 10px;
  }
  .nav__list.is-open{ display:flex; }
}

@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior:auto !important; transition:none !important; }
}
/* ===== Nutrición pro (boutique) ===== */
.section__head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:24px;
  margin-bottom:18px;
}
.chips{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
}
.chip{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(13,15,18,.10);
  font-size:.9rem;
  color: rgba(13,15,18,.85);
}

.nutrition-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:18px;
  margin-top:14px;
}

.ncard{
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(13,15,18,.10);
  border-radius: 22px;
  overflow:hidden;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease;
}
.ncard:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.ncard__media{
  aspect-ratio: 4 / 3;
  background: rgba(13,15,18,.06);
  overflow:hidden;
}
.ncard__media img{
  width:100%;
  height:100%;
  object-fit: cover;
}

.ncard--portrait .ncard__media{
  aspect-ratio: 3 / 4;
}

.ncard__body{
  padding: 14px 14px 16px;
}
.ncard__body h3{
  margin: 0 0 6px;
  font-size: 1.05rem;
}
.ncard__hint{
  margin: 10px 0 0;
  font-size: .92rem;
  opacity: .85;
}

.ncard--catalog{
  cursor: default;
}
.ncard--catalog:hover{
  transform:none;
}

.ncard__media--icon{
  display:flex;
  align-items:center;
  justify-content:center;
}
.catalog-icon{
  width:64px;
  height:64px;
  border-radius: 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 2rem;
  background: rgba(13,15,18,.10);
  border: 1px solid rgba(13,15,18,.12);
}

.nutrition-bottom{
  margin-top:18px;
  padding-top:14px;
  border-top: 1px solid rgba(13,15,18,.12);
  display:grid;
  gap:12px;
}
.nutrition-note{
  margin:0;
  max-width: 80ch;
  color: rgba(13,15,18,.78);
}
.nutrition-cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.nutrition-brand{
  margin:0;
  font-size:.92rem;
}

/* Responsive */
@media (max-width: 1100px){
  .nutrition-grid{ grid-template-columns: repeat(2, 1fr); }
  .section__head{ align-items:flex-start; }
  .chips{ justify-content:flex-start; }
}
@media (max-width: 640px){
  .nutrition-grid{ grid-template-columns: 1fr; }
}
/* ===== Nutrición: catálogo y chips ===== */
.nutrition-bottom{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(13,15,18,.12);
  display: grid;
  gap: 12px;
}

.nutrition-note{
  margin: 0;
  max-width: 80ch;
  color: rgba(13,15,18,.78);
  font-size: .95rem;
  line-height: 1.5;
}

.chips{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip{
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(13,15,18,.10);
  font-size: .9rem;
  color: rgba(13,15,18,.85);
}

.nutrition-cta{
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.nutrition-brand{
  font-size: .92rem;
  color: rgba(13,15,18,.78);
}
/* =========================
   MOVIL - nutrición
========================= */

@media (max-width: 768px) {

  .grid.nutrition {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 0 18px;
  }

  .tile {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    border-radius: 26px;
  }

  .tile img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .tile figcaption {
    font-size: 18px;
    line-height: 1.3;
    padding: 18px 16px 22px;
    text-align: center;
    word-break: normal;
  }

/* ====== MOVIL ====== */
@media (max-width: 768px) {

  .grid.nutrition {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 0 18px;
  }

  .tile {
    border-radius: 22px;
    overflow: hidden;
  }

  .tile img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .tile figcaption {
    font-size: 18px;
    padding: 18px;
    text-align: center;
  }

/* =========================================
   CONTENEDOR GLOBAL — ALINEACIÓN GENERAL
   ========================================= */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Hace que TODAS las secciones respeten el mismo margen */
section {
  padding-left: 0;
  padding-right: 0;
}

/* ===========================
   RESET SEGURO: HERO + TITULOS + LIGHTBOX
   (pegar al FINAL del styles.css)
   =========================== */

/* HERO: estructura y capas */
.hero{
  position: relative;
  overflow: hidden;
  min-height: 82vh;
}

.hero__media{
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 1;
}

.container.hero__content{
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 20px 60px 20px;
}

/* Texto del hero legible */
.hero .eyebrow,
.hero h1,
.hero h1 span,
.hero .lead{
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,.55);
}

/* CONTROL TÍTULOS: por defecto móvil */
.title-desktop{ display: none; }
.title-mobile{ display: block; }

/* Desktop */
@media (min-width: 768px){
  .title-desktop{ display: block; }
  .title-mobile{ display: none; }
}

/* Ajustes móvil (para que no quede gigante) */
@media (max-width: 768px){
  .container.hero__content{
    padding: 60px 18px 40px 18px;
  }
  .hero h1{
    font-size: 44px;
    line-height: 1.05;
  }
  .hero .lead{
    font-size: 18px;
    line-height: 1.3;
  }
}

/* LIGHTBOX / MODAL: imagen grande SIN recorte */
.lightbox img,
.modal img,
.viewer img{
  max-width: 98vw;
  max-height: 92vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.lightbox,
.modal,
.viewer{
  padding: 12px;
}


/* Si el contenedor del visor tiene padding enorme, lo reducimos */
.lightbox,
.modal,
.viewer {
  padding: 12px !important;
}
/* ===== CONTROL TITULOS HERO ===== */

/* Por defecto: móvil */
.title-desktop{
  display:none;
}


.title-mobile{
  display:block;
}

/* Desktop */
@media (min-width: 768px){
  .title-desktop{
    display:block;
  }
  .title-mobile{
    display:none;
  }
/* =========================================================
   LA COCHERÍA — CSS LIMPIO (HERO + NAV + GALERÍA + LIGHTBOX)
   ========================================================= */

/* ---- Reset básico ---- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
  color: #111;
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* ---- Contenedor ---- */
.container{
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* =========================================================
   HEADER / NAV (SÁNDWICH)
   Estructura esperada (aprox):
   <header class="header">
     <div class="container header__inner">
       <a class="brand">...</a>
       <button class="nav__toggle" aria-expanded="false">...</button>
       <nav class="nav">
         <div class="nav__menu"> <a class="nav__link">...</a> ... </div>
       </nav>
     </div>
   </header>
   ========================================================= */

.header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.header__inner{
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: .02em;
}

.nav { position: relative; }

/* Botón sándwich */
.nav__toggle{
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 60; /* por encima del panel */
}

/* Icono (tres líneas) si no tienes svg */
.nav__toggle .bar{
  width: 18px;
  height: 2px;
  background: #111;
  display: block;
  position: relative;
}
.nav__toggle .bar::before,
.nav__toggle .bar::after{
  content:"";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #111;
}
.nav__toggle .bar::before{ top: -6px; }
.nav__toggle .bar::after{ top: 6px; }

/* Menú desktop */
.nav__menu{
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav__link{
  font-weight: 600;
  opacity: .85;
}
.nav__link:hover{ opacity: 1; }

/* ---- Móvil: panel desplegable ---- */
@media (max-width: 900px){
  .nav__menu{
    /* panel */
    position: fixed;
    top: 64px;              /* debajo del header */
    left: 0;
    right: 0;
    padding: 14px 18px 18px;
    background: rgba(18,18,18,.96); /* <-- evita “blanco” */
    color: #fff;                      /* <-- evita texto invisible */
    border-bottom: 1px solid rgba(255,255,255,.10);
    display: grid;
    gap: 12px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
    z-index: 55;
  }

  .nav__link{
    padding: 10px 10px;
    border-radius: 12px;
    background: rgba(255,255,255,.06);
  }

  /* Formas compatibles de "abrir" menú:
     1) nav__menu.is-open
     2) nav__toggle[aria-expanded="true"] + (nav .nav__menu) si va después
     3) body.menu-open (por si tu JS lo usa)
  */
  .nav__menu.is-open{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  body.menu-open .nav__menu{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* Si tu HTML tiene el menú justo después del botón */
  .nav__toggle[aria-expanded="true"] ~ .nav .nav__menu{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}



/* =========================================================
   LA COCHERÍA — CSS LIMPIO (HERO + NAV + GALERÍA + LIGHTBOX)
   ========================================================= */

/* ---- Reset básico ---- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
  color: #111;
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* ---- Contenedor ---- */
.container{
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* =========================================================
   HEADER / NAV (SÁNDWICH)
   Estructura esperada (aprox):
   <header class="header">
     <div class="container header__inner">
       <a class="brand">...</a>
       <button class="nav__toggle" aria-expanded="false">...</button>
       <nav class="nav">
         <div class="nav__menu"> <a class="nav__link">...</a> ... </div>
       </nav>
     </div>
   </header>
   ========================================================= */

.header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.header__inner{
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: .02em;
}

.nav { position: relative; }

/* Botón sándwich */
.nav__toggle{
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 60; /* por encima del panel */
}

/* Icono (tres líneas) si no tienes svg */
.nav__toggle .bar{
  width: 18px;
  height: 2px;
  background: #111;
  display: block;
  position: relative;
}
.nav__toggle .bar::before,
.nav__toggle .bar::after{
  content:"";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #111;
}
.nav__toggle .bar::before{ top: -6px; }
.nav__toggle .bar::after{ top: 6px; }

/* Menú desktop */
.nav__menu{
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav__link{
  font-weight: 600;
  opacity: .85;
}
.nav__link:hover{ opacity: 1; }

/* ---- Móvil: panel desplegable ---- */
@media (max-width: 900px){
  .nav__menu{
    /* panel */
    position: fixed;
    top: 64px;              /* debajo del header */
    left: 0;
    right: 0;
    padding: 14px 18px 18px;
    background: rgba(18,18,18,.96); /* <-- evita “blanco” */
    color: #fff;                      /* <-- evita texto invisible */
    border-bottom: 1px solid rgba(255,255,255,.10);
    display: grid;
    gap: 12px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
    z-index: 55;
  }

  .nav__link{
    padding: 10px 10px;
    border-radius: 12px;
    background: rgba(255,255,255,.06);
  }

  /* Formas compatibles de "abrir" menú:
     1) nav__menu.is-open
     2) nav__toggle[aria-expanded="true"] + (nav .nav__menu) si va después
     3) body.menu-open (por si tu JS lo usa)
  */
  .nav__menu.is-open{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  body.menu-open .nav__menu{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* Si tu HTML tiene el menú justo después del botón */
  .nav__toggle[aria-expanded="true"] ~ .nav .nav__menu{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* =========================================================
   LA COCHERÍA — CSS LIMPIO (HERO + NAV + GALERÍA + LIGHTBOX)
   ========================================================= */

/* ---- Reset básico ---- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
  color: #111;
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* ---- Contenedor ---- */
.container{
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* =========================================================
   HEADER / NAV (SÁNDWICH)
   Estructura esperada (aprox):
   <header class="header">
     <div class="container header__inner">
       <a class="brand">...</a>
       <button class="nav__toggle" aria-expanded="false">...</button>
       <nav class="nav">
         <div class="nav__menu"> <a class="nav__link">...</a> ... </div>
       </nav>
     </div>
   </header>
   ========================================================= */

.header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.header__inner{
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: .02em;
}

.nav { position: relative; }

/* Botón sándwich */
.nav__toggle{
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 60; /* por encima del panel */
}

/* Icono (tres líneas) si no tienes svg */
.nav__toggle .bar{
  width: 18px;
  height: 2px;
  background: #111;
  display: block;
  position: relative;
}
.nav__toggle .bar::before,
.nav__toggle .bar::after{
  content:"";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #111;
}
.nav__toggle .bar::before{ top: -6px; }
.nav__toggle .bar::after{ top: 6px; }

/* Menú desktop */
.nav__menu{
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav__link{
  font-weight: 600;
  opacity: .85;
}
.nav__link:hover{ opacity: 1; }

/* ---- Móvil: panel desplegable ---- */
@media (max-width: 900px){
  .nav__menu{
    /* panel */
    position: fixed;
    top: 64px;              /* debajo del header */
    left: 0;
    right: 0;
    padding: 14px 18px 18px;
    background: rgba(18,18,18,.96); /* <-- evita “blanco” */
    color: #fff;                      /* <-- evita texto invisible */
    border-bottom: 1px solid rgba(255,255,255,.10);
    display: grid;
    gap: 12px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
    z-index: 55;
  }

  .nav__link{
    padding: 10px 10px;
    border-radius: 12px;
    background: rgba(255,255,255,.06);
  }

  /* Formas compatibles de "abrir" menú:
     1) nav__menu.is-open
     2) nav__toggle[aria-expanded="true"] + (nav .nav__menu) si va después
     3) body.menu-open (por si tu JS lo usa)
  */
  .nav__menu.is-open{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  body.menu-open .nav__menu{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* Si tu HTML tiene el menú justo después del botón */
  .nav__toggle[aria-expanded="true"] ~ .nav .nav__menu{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}



/* =========================================================
   LA COCHERÍA — CSS LIMPIO (HERO + NAV + GALERÍA + LIGHTBOX)
   ========================================================= */

/* ---- Reset básico ---- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
  color: #111;
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* ---- Contenedor ---- */
.container{
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* =========================================================
   HEADER / NAV (SÁNDWICH)
   Estructura esperada (aprox):
   <header class="header">
     <div class="container header__inner">
       <a class="brand">...</a>
       <button class="nav__toggle" aria-expanded="false">...</button>
       <nav class="nav">
         <div class="nav__menu"> <a class="nav__link">...</a> ... </div>
       </nav>
     </div>
   </header>
   ========================================================= */

.header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.header__inner{
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: .02em;
}

.nav { position: relative; }

/* Botón sándwich */
.nav__toggle{
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 60; /* por encima del panel */
}

/* Icono (tres líneas) si no tienes svg */
.nav__toggle .bar{
  width: 18px;
  height: 2px;
  background: #111;
  display: block;
  position: relative;
}
.nav__toggle .bar::before,
.nav__toggle .bar::after{
  content:"";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #111;
}
.nav__toggle .bar::before{ top: -6px; }
.nav__toggle .bar::after{ top: 6px; }

/* Menú desktop */
.nav__menu{
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav__link{
  font-weight: 600;
  opacity: .85;
}
.nav__link:hover{ opacity: 1; }

/* ---- Móvil: panel desplegable ---- */
@media (max-width: 900px){
  .nav__menu{
    /* panel */
    position: fixed;
    top: 64px;              /* debajo del header */
    left: 0;
    right: 0;
    padding: 14px 18px 18px;
    background: rgba(18,18,18,.96); /* <-- evita “blanco” */
    color: #fff;                      /* <-- evita texto invisible */
    border-bottom: 1px solid rgba(255,255,255,.10);
    display: grid;
    gap: 12px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
    z-index: 55;
  }

  .nav__link{
    padding: 10px 10px;
    border-radius: 12px;
    background: rgba(255,255,255,.06);
  }

  /* Formas compatibles de "abrir" menú:
     1) nav__menu.is-open
     2) nav__toggle[aria-expanded="true"] + (nav .nav__menu) si va después
     3) body.menu-open (por si tu JS lo usa)
  */
  .nav__menu.is-open{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  body.menu-open .nav__menu{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* Si tu HTML tiene el menú justo después del botón */
  .nav__toggle[aria-expanded="true"] ~ .nav .nav__menu{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}


/* =========================================================
   LA COCHERÍA — CSS LIMPIO (HERO + NAV + GALERÍA + LIGHTBOX)
   ========================================================= */

/* ---- Reset básico ---- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
  color: #111;
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* ---- Contenedor ---- */
.container{
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* =========================================================
   HEADER / NAV (SÁNDWICH)
   Estructura esperada (aprox):
   <header class="header">
     <div class="container header__inner">
       <a class="brand">...</a>
       <button class="nav__toggle" aria-expanded="false">...</button>
       <nav class="nav">
         <div class="nav__menu"> <a class="nav__link">...</a> ... </div>
       </nav>
     </div>
   </header>
   ========================================================= */

.header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.header__inner{
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: .02em;
}

.nav { position: relative; }

/* Botón sándwich */
.nav__toggle{
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 60; /* por encima del panel */
}

/* Icono (tres líneas) si no tienes svg */
.nav__toggle .bar{
  width: 18px;
  height: 2px;
  background: #111;
  display: block;
  position: relative;
}
.nav__toggle .bar::before,
.nav__toggle .bar::after{
  content:"";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #111;
}
.nav__toggle .bar::before{ top: -6px; }
.nav__toggle .bar::after{ top: 6px; }

/* Menú desktop */
.nav__menu{
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav__link{
  font-weight: 600;
  opacity: .85;
}
.nav__link:hover{ opacity: 1; }

/* ---- Móvil: panel desplegable ---- */
@media (max-width: 900px){
  .nav__menu{
    /* panel */
    position: fixed;
    top: 64px;              /* debajo del header */
    left: 0;
    right: 0;
    padding: 14px 18px 18px;
    background: rgba(18,18,18,.96); /* <-- evita “blanco” */
    color: #fff;                      /* <-- evita texto invisible */
    border-bottom: 1px solid rgba(255,255,255,.10);
    display: grid;
    gap: 12px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
    z-index: 55;
  }

  .nav__link{
    padding: 10px 10px;
    border-radius: 12px;
    background: rgba(255,255,255,.06);
  }

  /* Formas compatibles de "abrir" menú:
     1) nav__menu.is-open
     2) nav__toggle[aria-expanded="true"] + (nav .nav__menu) si va después
     3) body.menu-open (por si tu JS lo usa)
  */
  .nav__menu.is-open{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  body.menu-open .nav__menu{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* Si tu HTML tiene el menú justo después del botón */
  .nav__toggle[aria-expanded="true"] ~ .nav .nav__menu{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}



/* =========================================================
   LA COCHERÍA — CSS LIMPIO (HERO + NAV + GALERÍA + LIGHTBOX)
   ========================================================= */

/* ---- Reset básico ---- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
  color: #111;
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* ---- Contenedor ---- */
.container{
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* =========================================================
   HEADER / NAV (SÁNDWICH)
   Estructura esperada (aprox):
   <header class="header">
     <div class="container header__inner">
       <a class="brand">...</a>
       <button class="nav__toggle" aria-expanded="false">...</button>
       <nav class="nav">
         <div class="nav__menu"> <a class="nav__link">...</a> ... </div>
       </nav>
     </div>
   </header>
   ========================================================= */

.header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.header__inner{
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: .02em;
}

.nav { position: relative; }

/* Botón sándwich */
.nav__toggle{
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 60; /* por encima del panel */
}

/* Icono (tres líneas) si no tienes svg */
.nav__toggle .bar{
  width: 18px;
  height: 2px;
  background: #111;
  display: block;
  position: relative;
}
.nav__toggle .bar::before,
.nav__toggle .bar::after{
  content:"";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #111;
}
.nav__toggle .bar::before{ top: -6px; }
.nav__toggle .bar::after{ top: 6px; }

/* Menú desktop */
.nav__menu{
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav__link{
  font-weight: 600;
  opacity: .85;
}
.nav__link:hover{ opacity: 1; }

/* ---- Móvil: panel desplegable ---- */
@media (max-width: 900px){
  .nav__menu{
    /* panel */
    position: fixed;
    top: 64px;              /* debajo del header */
    left: 0;
    right: 0;
    padding: 14px 18px 18px;
    background: rgba(18,18,18,.96); /* <-- evita “blanco” */
    color: #fff;                      /* <-- evita texto invisible */
    border-bottom: 1px solid rgba(255,255,255,.10);
    display: grid;
    gap: 12px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
    z-index: 55;
  }

  .nav__link{
    padding: 10px 10px;
    border-radius: 12px;
    background: rgba(255,255,255,.06);
  }

  /* Formas compatibles de "abrir" menú:
     1) nav__menu.is-open
     2) nav__toggle[aria-expanded="true"] + (nav .nav__menu) si va después
     3) body.menu-open (por si tu JS lo usa)
  */
  .nav__menu.is-open{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  body.menu-open .nav__menu{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* Si tu HTML tiene el menú justo después del botón */
  .nav__toggle[aria-expanded="true"] ~ .nav .nav__menu{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}


/* === FIX HERO (PC/MÓVIL) === */
.hero { position: relative; overflow: hidden; }
.hero_media, .hero_media img { width: 100%; height: 100%; }
.hero_media img { object-fit: cover; display:block; }

.hero_content{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px 20px 60px;
  z-index: 2;
  color: #fff;
}

.hero_overlay{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.35);
  z-index: 1;
}

/* por defecto: móvil */
.title-desktop{ display:none; }
.title-mobile{ display:block; }

/* PC */
@media (min-width: 768px){
  .title-desktop{ display:block; }
  .title-mobile{ display:none; }
}


/* =========================
   FIX HERO: NO mezclar H1
   ========================= */

h1.title-desktop { display: block !important; }
h1.title-mobile  { display: none  !important; }

@media (max-width: 768px){
  h1.title-desktop { display: none  !important; }
  h1.title-mobile  { display: block !important; }
}



/* ===== FIX HERO DEFINITIVO ===== */

/* Base: solo desktop visible */
.title-mobile{
    display:none;
}
.title-desktop{
    display:block;
}

/* Móvil */
@media (max-width: 768px){

    .title-desktop{
        display:none !important;
    }

    .title-mobile{
        display:block !important;
    }

    .hero__content{
        position:absolute;
        inset:0;
        display:flex;
        flex-direction:column;
        justify-content:center;
        padding:24px;
        color:white;
    }
}

/* Desktop */
@media (min-width: 769px){

    .hero__content{
        position:absolute;
        inset:0;
        display:flex;
        flex-direction:column;
        justify-content:center;
        color:white;
    }
}



/* ===== FIX DEFINITIVO MENU MOVIL ===== */

@media (max-width: 768px){

  /* contenedor nav por encima de todo */
  .nav{
    position: relative;
    z-index: 9999;
  }

  /* botón hamburguesa */
  .nav__toggle{
    position: relative;
    z-index: 10001;
  }

  /* panel desplegable */
  .nav__list{
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 12px;
    left: 12px;

    background: #ffffff;
    border-radius: 16px;
    padding: 18px;

    box-shadow: 0 18px 45px rgba(0,0,0,.18);

    flex-direction: column;
    gap: 14px;

    z-index: 10000;
  }

  /* cuando se abre */
  .nav__list.is-open{
    display: flex;
  }

  /* links */
  .nav__list a{
    color: #0d0f12 !important;
    font-size: 16px;
    text-decoration: none;
  }

}

/* ===== FIX 1: hero con imagen de fondo bien montada ===== */
.hero{
  position: relative;
  overflow: hidden;
  min-height: 82vh;         /* ajusta si quieres más/menos alto */
  display: grid;
  align-items: end;         /* para que el bloque de texto quede abajo */
}

.hero__media{
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* overlay oscuro */
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.35);
  z-index: 1;
}

/* contenido por encima */
.hero__content{
  position: relative;
  z-index: 2;
  padding: 80px 20px 60px;
  color: #fff;
}
/* ===== FIX 2: que NO salgan los dos textos ===== */
.title-desktop{ display: block; }
.title-mobile{ display: none; }

/* en móvil se invierte */
@media (max-width: 768px){
  .title-desktop{ display: none !important; }
  .title-mobile{ display: block !important; }
 }

