:root{
  --bg:#fff;
  --fg:#111;
  --brand:#cd0000;
  --black:#000;
  --muted:#f8f9fa;
  --card:#fff;
  --border:#e0e0e0;

  --radius:12px;
  --shadow:0 10px 30px rgba(0,0,0,.08);

  --preheader-h:36px;
  --header-h:64px;

  --container: 1120px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

*{
  list-style: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body{
  font-family: var(--font);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
}

a{ text-decoration: none; color: inherit; }
img{ max-width:100%; display:block; }

.container{ width:min(var(--container), 92vw); margin-inline:auto; }

.mono{ font-family: var(--mono); letter-spacing: .02em; }
.muted{ opacity: .78; }
.dot{ opacity: .6; margin: 0 .5rem; }

.no-scroll{ overflow:hidden; }

.visually-hidden,
.sr-only{
  position:absolute!important;
  clip:rect(1px,1px,1px,1px);
  padding:0;border:0;height:1px;width:1px;
  overflow:hidden;white-space:nowrap;
}

a, button{ outline:none; }
a:focus-visible, button:focus-visible{
  outline:2px solid var(--brand);
  outline-offset:2px;
  border-radius: 10px;
}

.skip-link{
  position:absolute; left:12px; top:-50px;
  background: var(--black); color: var(--bg);
  padding:10px 12px;
  border-radius: 12px;
  z-index: 9999;
}
.skip-link:focus{ top: 12px; }

/* =========================
   Preheader (tu estructura original + soporte estructura nueva)
   ========================= */
.preheader{
  position:fixed; top:0; left:0; width:100%;
  z-index:1100;
  background-color:#000;
  color:#fff;
  height:var(--preheader-h);
  padding:5px 10px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* soporte para el preheader “nuevo” (preheader-inner/left/right) */
.preheader-inner{
  width: min(var(--container), calc(100% - 20px));
  margin: 0 auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
}

.preheader-left, .preheader-right{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
}

/* tu estructura original */
.preheader .social-icons{
  display:flex;
  align-items:center;
}
.preheader .social-icons a{
  margin-right: 10px;
  color: #fff;
  font-size: 20px;
  transition: color 0.2s ease;
}
.preheader .social-icons a:hover{ color: var(--brand); }

.preheader .recommended-pages{
  display:flex;
  align-items:center;
}
.preheader .recommended-pages a{
  margin-left: 10px;
  color: #fff;
}
.preheader .recommended-pages a:hover{ color: var(--brand); }

/* links en preheader nuevo */
.ph-link{
  color:#fff;
  padding: 6px 10px;
  border-radius: 12px;
  font-weight: 700;
}
.ph-link:hover{
  color:#fff;
  background: rgba(255,255,255,.08);
}

.preheader-left .ph-link{
  padding: 6px 8px;
}
.preheader-left .ph-link i{
  font-size: 18px;
  line-height: 1;
}


/* Oculta placeholders sin URL real */
a[data-placeholder][href="#"]{ display:none; }

/* =========================
   Header fijo + Nav
   ========================= */
header,
.site-header{
  position:fixed;
  left:0;
  width:100%;
  top:var(--preheader-h);
  z-index:1000;
  background: #f6f6f6; /* sobrio, claro */
  color: #000;
  height:var(--header-h);
  padding:.5em 1em;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

/* wrapper opcional si usas header-inner */
.header-inner{
  width: min(var(--container), calc(100% - 20px));
  margin: 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}

header .logo,
.site-header .logo{
  display:flex;
  align-items:center;
}

header .logo img{
  width: 200px;
  height: auto;
}

/* si usas logo pequeño (svg) */
.logo-img{ width: 22px; height: 22px; }

/* Nav: soporte para nav simple y nav con clase */
header nav,
.site-nav{
  display:flex;
  align-items:center;
  gap: 10px;
}

header nav a,
.site-nav a{
  color: #000;
  font-size: 16px;
  font-weight: 800;
  padding: 10px 12px;
  border-radius: 14px;
  transition: color .2s ease, background-color .2s ease;
}

header nav a:hover,
.site-nav a:hover{
  color: var(--brand);
  background: rgba(0,0,0,.04);
}

.site-nav a.is-active,
header nav a.is-active{
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.35);
}

/* CTA Tienda: icono con label desplegable en desktop */
.nav-shop{
  margin-left: 6px;                 /* separa del resto */
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 14px;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);              /* acento */
  background: transparent;
}

.nav-shop:hover{
  background: var(--brand);         /* hover invertido */
  color: #fff;
  border-color: var(--brand);
}

/* Label oculto por defecto; aparece al hover/focus (desktop) */
.nav-shop-label{
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-6px);
  transition: max-width .25s ease, opacity .2s ease, transform .25s ease;
  font-weight: 900;
  font-family: var(--mono);
  letter-spacing: .02em;
}

/* Despliegue lateral en hover/focus */
.nav-shop:hover .nav-shop-label,
.nav-shop:focus-visible .nav-shop-label{
  max-width: 120px;
  opacity: 1;
  transform: translateX(0);
}


/* Dropdown (mantengo tu lógica) */
.dropdown{ position: relative; display: inline-block; }
.dropbtn{
  background: none;
  border: none;
  color: #000;
  font-size: 16px;
  cursor: pointer;
  margin-left: 20px;
  padding: 0;
}
.dropbtn i.fas.fa-caret-down{ margin-left: 5px; }

.dropdown-content{
  display:none;
  position:absolute;
  right:0;
  background-color:#fff;
  min-width:180px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  border-radius: 8px;
  z-index: 100;
  overflow:hidden;
}
.dropdown-content a{
  display:block;
  padding:10px 16px;
  color:#000;
  font-size:15px;
}
.dropdown-content a:hover{
  background-color:#f1f1f1;
  color: var(--brand);
}
.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content{ display:block; }

/* =========================
   Main offset por header fijo
   ========================= */
main{
  padding-top: calc(var(--preheader-h) + var(--header-h) + 16px);
}

/* =========================
   Home minimalista (nuevo hero + CTA + accesos)
   (no rompe tu hero-index existente)
   ========================= */
.hero{
  padding: 44px 0 34px;
  color: #000;
  background: #fff;
}

/* aquí va la vainita */
/* Hero title: antibranding */
.brand-title{
  font-size: clamp(2.0rem, 4vw, 3.2rem);
  line-height: 1.05;
  margin-bottom: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: none;
}
.lead{
  display: inline-flex;
  align-items: center;
  gap: .35em;
}

/* Slot (tragaperras) — solo cambia la segunda palabra */
.slot{
  display: inline-block;
  position: relative;
  height: 1.35em;          /* fija altura para que no “salte” */
  min-width: 8ch;         /* evita cambios de ancho bruscos */
  overflow: hidden;
  vertical-align: baseline;
  margin-left: .20em;     /* espacio tras “no” */
  .slot{ transform: translateY(0.1px); }

}

.slot-item{
  position: absolute;
  line-height: 1.35em;
  left: 0;
  top: 0;
  white-space: nowrap;
  transition: transform 240ms ease, opacity 240ms ease;
  will-change: transform, opacity;
}

/* Estado base */
.slot-item.is-current{
  transform: translateY(0%);
  opacity: 1;
}
.slot-item.is-next{
  transform: translateY(120%);
  opacity: 0;
}

/* Durante el flip */
.slot.is-flipping .slot-item.is-current{
  transform: translateY(-120%);
  opacity: 0;
}
.slot.is-flipping .slot-item.is-next{
  transform: translateY(0%);
  opacity: 1;
}

/* Si el usuario prefiere menos movimiento */
@media (prefers-reduced-motion: reduce){
  .slot-item{ transition: none; }
}


.kicker{
  font-family: var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .86rem;
  opacity: .7;
  margin-bottom: 10px;
}

.hero h1{
  font-size: clamp(2.0rem, 4vw, 3.2rem);
  line-height: 1.05;
  margin-bottom: 10px;
}

.lead{
  font-size: 1.06rem;
  max-width: 72ch;
  opacity: .9;
  margin-bottom: 16px;
}

.cta-row{
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
  margin: 12px 0 16px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 900;
  border: 1px solid rgba(0,0,0,.18);
  background: #fff;
}
.btn-read{
  border-color: rgba(0,0,0,.28);
  font-family: var(--mono);
  letter-spacing: .02em;
  padding: 12px 14px;
}
.btn-read:hover{
  border-color: rgba(0,0,0,.55);
  background: rgba(0,0,0,.03);
}
.btn:hover{ border-color: rgba(0,0,0,.35); }

.btn-primary{
  background: #000;
  color:#fff;
  border-color: #000;
}
.btn-primary:hover{
  background: var(--brand);
  border-color: var(--brand);
}

.btn-ghost{ background: transparent; }

.micro{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.pill{
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff;
  font-family: var(--mono);
  font-size: .9rem;
}
/* Fila CTA + pills (reduce longitud y ordena jerarquía) */
.hero-row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
  margin: 12px 0 16px;
}

/* micro: sin margen-top cuando vive en hero-row */
.hero-row .micro{
  margin-top: 0;
  justify-content: flex-end;
}

/* Responsive: apila en móvil sin descuadrar */
@media (max-width: 768px){
  .hero-row{
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-row .micro{
    justify-content: flex-start;
  }
}


/* Accesos tipo “cards” (nuevo home) */
.hero-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.hero-card{
  border-radius: 10px; /* brutalismo sobrio: redondeo bajo */
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: var(--shadow);
}

.hero-card-link{
  display: block;
  color: inherit;
  height: 100%;
}

.hero-media{
  height: 180px;
  border-bottom: 1px solid rgba(0,0,0,.10);
}
.hero-media img{
  width:100%;
  height:100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: transform .35s ease, filter .35s ease;
}
.hero-card--overlay:hover .hero-media img{
  transform: scale(1.04);
  filter: grayscale(1) contrast(1.1) brightness(1.02);
}
/* =========================
   Cards overlay sobre imagen (solo .hero-card--overlay)
   ========================= */
.hero-card--overlay .hero-card-link{
  position: relative;
}

/* Sobrescribe el layout base de .hero-media */
.hero-card--overlay .hero-media{
  height: 260px;
  border-bottom: 0;
}

.hero-card--overlay .hero-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay real sobre la imagen */
.hero-card--overlay .hero-overlay--on-media{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;

  padding: 14px;
  color: #fff;

  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.74));
}

/* Tipografía del overlay */
.hero-card--overlay .hero-overlay--on-media h2{
  margin: 0;
  font-size: 1.2rem;
  font-weight: 900;
  text-transform: lowercase;
}

/* Dominio (ya lo estás usando en HTML) */
.hero-domain{
  margin: 0;
  font-family: var(--mono);
  letter-spacing: .02em;
  opacity: .92;
}

/* Ajuste de hover SOLO para overlay (reemplaza tu hover global) */
.hero-card--overlay:hover .hero-media img{
  transform: scale(1.04);
  filter: grayscale(1) contrast(1.1) brightness(1.02);
}

/* Responsive: cards algo más bajas */
@media (max-width: 768px){
  .hero-card--overlay .hero-media{ height: 220px; }
}


.hero-overlay{
  padding: 14px 14px 16px;
  background: transparent;
  position: static; /* evita conflicto con tu .hero-index overlay */
  color: inherit;
}

.hero-overlay h2{
  font-size: 1.12rem;
  margin-bottom: 8px;
}
.hero-overlay p{
  opacity: .9;
  margin-bottom: 10px;
}
.hero-action{
  font-family: var(--mono);
  font-weight: 900;
}

.hero-card-disabled{
  opacity: .65;
  filter: grayscale(1);
}
.hero-card-disabled .hero-card-link{
  cursor: not-allowed;
}

/* =========================
   TU HERO-INDEX ORIGINAL (3 imágenes con overlay)
   (se mantiene, con mínimos ajustes)
   ========================= */
.hero-index .hero-container{
  display:flex;
  flex-wrap:wrap;
}

.hero-index .hero-item{
  position: relative;
  flex: 1;
  min-width: 300px;
  overflow: hidden;
}

.hero-index .hero-item img{
  display:block;
  width:100%;
  height: 70vh;
  object-fit: cover;
  transition: transform .3s ease;
}

.hero-index .hero-item:hover img{ transform: scale(1.1); }

.hero-index .hero-overlay{
  position:absolute;
  top:0; left:0;
  width:100%; height:100%;
  background: rgba(0,0,0,0.6);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  color:#fff;
  text-align:center;
  opacity:0;
  transition: opacity .3s ease;
  padding: 1rem;
}

.hero-index .hero-item:hover .hero-overlay{ opacity: 1; }

.hero-index .hero-overlay h2{
  font-size: 2rem;
  margin-bottom: .5rem;
}
.hero-index .hero-overlay p{ font-size: 1rem; }

/* =========================
   Split hero (expandible) — lo mantengo
   ========================= */
.split-hero{
  display:flex;
  gap:14px;
  height: clamp(360px, 70vh, 720px);
  margin: 16px auto 32px;
}
.pane{
  position:relative;
  flex:1 1 0;
  overflow:hidden;
  border-radius: 16px;
  isolation:isolate;
  transition: flex-basis .45s ease, transform .45s ease;
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: var(--shadow);
}
.pane img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.pane::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.0), rgba(0,0,0,.45));
  pointer-events:none;
}
.pane-overlay{
  position:absolute; left:16px; bottom:16px;
  color:#fff;
  text-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.pane-overlay h2{ font-size: clamp(1.1rem, .6rem + 1.5vw, 2rem); margin:0; }
.pane-overlay p{ margin:2px 0 0; font-size:.95rem; opacity:.9; }

.split-hero:hover .pane{ flex: 0.9; }
.pane:hover{ flex: 2.2; }
.pane:hover img{ transform: scale(1.08); }

@media (max-width: 768px){
  .split-hero{ flex-direction:column; height:auto; }
  .pane{ flex:auto; height: 48vh; }
  .split-hero:hover .pane, .pane:hover{ flex:auto; }
}
@media (max-width: 480px){
  .pane{ height: 42vh; }
}

/* =========================
   Productos / Cards (mantengo)
   ========================= */
.product-section{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:20px;
  padding:40px;
  background-color: var(--muted);
  margin-top:70px;
}

.product-card{
  width:auto;
  margin:0;
  height:450px;
}

.product-image{
  width:100%;
  height: 90%;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.product-button{
  background-color:#000;
  color:#fff;
  padding: 10px 20px 5px;
  border: none;
  border-radius: 6px;
  cursor:pointer;
  font-size: 1rem;
  transition: background-color .2s ease;
}
.product-button:hover{ background-color: #968500; }

/* =========================
   Contacto (IMPORTANTE: ruta relativa desde /assets/css/)
   ========================= */
.contact-main{
  /* ✅ CORREGIDO: ahora styles.css está en /assets/css/ */
  background-image: url('../../imagenes/1000_F_474800304_ONEsj5shEQa61Ts65epeaKcw50rOaoA5.jpg');
  background-size: cover;
  background-position: center;
}

.contact-section{
  max-width: 550px;
  margin: 2rem auto;
  padding: 2rem;
  background: #f9f9f9;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.form-group{ margin-bottom: 1rem; }

label{ display:block; margin-bottom: .5rem; }

input[type="text"],
input[type="email"],
textarea{
  width:100%;
  padding: .8rem;
  border:1px solid #ccc;
  border-radius: 6px;
  font: inherit;
}

textarea{
  height:150px;
  resize: vertical;
}

.submit-btn{
  background-color:#333;
  color:#fff;
  border:none;
  padding: 1rem 2rem;
  font-size: 1rem;
  cursor:pointer;
  border-radius: 6px;
  transition: background-color .2s ease;
}
.submit-btn:hover{ background-color:#555; }

/* =========================
   Modal / Lightbox (mantengo y limpio)
   ========================= */
.lightbox{
  position: fixed;
  z-index: 2000;
  inset: 0;
  background-color: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 2vw, 24px);
  text-align: center;
  overflow: hidden;
}
.lightbox-content{
  max-width: 90%;
  max-height: 90%;
  margin-top: 50px;
}
.lightbox .close{
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}
.lightbox .close:hover,
.lightbox .close:focus{ color:#f1f1f1; }

.modal-box{
  background:#f9f9f9;
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: min(680px, 92vw);
  max-height: calc(100dvh - 2 * clamp(12px, 2vw, 24px));
  padding:16px;
  position: relative;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.modal-box .close{
  position: sticky;
  top: 0;
  align-self: flex-end;
  font-size: 28px;
  line-height: 1;
  border: 0;
  background: transparent;
  cursor: pointer;
}
@media (max-width: 480px){
  .modal-box{ padding:12px; }
}

/* =========================
   Galería (si existe) — mantengo
   ========================= */
.gallery-hero{ padding:24px 0; }
.gallery-title{
  font-size:clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem);
  margin-bottom:.25rem;
}
.gallery-subtitle{ opacity:.85; }
.gallery-cta{ color:var(--brand); text-decoration:underline; }

.gallery{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:16px;
  margin:12px 0 40px;
}
.g-item{
  border-radius: var(--radius);
  overflow:hidden;
  background: var(--card);
  border:1px solid var(--border);
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
}
.g-item img{
  width:100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.g-item figcaption{
  font-size:.9rem;
  padding:8px 10px;
  color:#555;
}
@media (max-width: 900px){
  .gallery{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .gallery{ grid-template-columns: 1fr; }
}

/* Form Galería */
.gallery-submit{ padding:20px 0 48px; }
.gallery-form{
  max-width:640px;
  margin:12px auto 0;
  background:#f9f9f9;
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:16px;
}
.gallery-form .form-row{ margin-bottom:12px; }
.gallery-form label{ display:block; margin-bottom:6px; font-weight:500; }

.gallery-form input[type="text"],
.gallery-form input[type="email"],
.gallery-form input[type="url"],
.gallery-form textarea,
.gallery-form select{
  width:100%;
  padding:.8rem;
  border:1px solid #ccc;
  border-radius:6px;
}
.gallery-form .form-check{ display:flex; align-items:flex-start; gap:8px; }
.gallery-form .form-check input{ margin-top:4px; }
.gallery-form .hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.form-help{ font-size:.9rem; opacity:.75; margin-top:8px; }
.form-success{ margin-top:10px; color:#1a7f37; }

/* =========================
   Line pages (noposse / noproduct / noface) — mantengo
   ========================= */
.line-hero{
  display:grid;
  grid-template-columns: 1.2fr .9fr;
  gap: 22px;
  align-items: start;
  padding: 28px 0 44px;
}

.line-kicker{
  font-size:.85rem;
  letter-spacing:.12em;
  opacity:.7;
  margin-bottom:8px;
}

.line-title{
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.2rem);
  line-height: 1.02;
  margin: 0 0 12px;
}

.line-lead{
  max-width: 70ch;
  font-size: 1.05rem;
  opacity: .9;
  margin-bottom: 14px;
}

.line-points{
  padding-left: 18px;
  margin: 0 0 18px;
}
.line-points li{ margin: 8px 0; }

.line-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 12px;
}

.cta{
  display:inline-block;
  padding: 12px 14px;
  border-radius: 12px;
  background: #000;
  color:#fff;
}
.cta:hover{ opacity:.9; color:#fff; }

.cta-ghost{
  background: transparent;
  color:#000;
  border: 1px solid rgba(0,0,0,.25);
}
.cta-ghost:hover{ border-color: rgba(0,0,0,.5); }

.line-note{
  font-size: .92rem;
  opacity: .78;
  margin-top: 10px;
}

.line-hero-media{
  position: sticky;
  top: calc(var(--preheader-h) + var(--header-h) + 16px);
}

.line-media-link{
  display:block;
  position:relative;
  border-radius: 16px;
  overflow:hidden;
  border:1px solid var(--border);
  box-shadow: var(--shadow);
}

.line-media-link img{
  width: 100%;
  height: clamp(320px, 52vh, 560px);
  object-fit: cover;
  display:block;
  transition: transform .35s ease, filter .35s ease;
}
.line-media-link:hover img{
  transform: scale(1.04);
  filter: brightness(1.05);
}

.line-media-tag{
  position:absolute;
  left: 12px;
  bottom: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(0,0,0,.55);
  color:#fff;
  font-size: .95rem;
  backdrop-filter: blur(4px);
}

@media (max-width: 900px){
  .line-hero{ grid-template-columns: 1fr; }
  .line-hero-media{ position: static; }
  .line-media-link img{ height: 46vh; }
}

/* =========================
   Footer (mantengo)
   ========================= */
footer,
.footer{
  text-align:center;
  padding: 20px;
  border-radius: 0.5rem;
  background-color: #000;
  color: #fff;
  position: relative;
  width: 100%;
  margin-top: 1px;
}

/* footer “nuevo” (si usas .footer-inner/.footer-links) */
.footer-inner{
  display:flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  text-align:left;
}
.footer-links{
  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap: wrap;
}
.footer a{
  color:#fff;
  padding: 8px 10px;
  border-radius: 12px;
  font-weight: 800;
}
.footer a:hover{ background: rgba(255,255,255,.08); }

/* =========================
   Responsive — nav hamburguesa (unificado, sin duplicados)
   IMPORTANTE: esto casa con tu main.js (body.nav-open)
   ========================= */
.nav-toggle{
  display:none;
  gap:6px;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  width:40px;
  height:40px;
  border:0;
  background:transparent;
  cursor:pointer;
  border-radius: 12px;
}
.nav-toggle:hover{ background: rgba(0,0,0,.06); }

.nav-toggle span{
  display:block;
  width:22px;
  height:2px;
  background:#000;
}

/* Tablet ≤ 768px */
@media (max-width: 768px){
  :root{ --header-h: 72px; }

  .nav-toggle{ display:flex; }

  header{ height: var(--header-h); }

  /* Nav panel fijo bajo header */
  header nav,
  .site-nav{
    position: fixed;
    top: calc(var(--preheader-h) + var(--header-h));
    left: 0;
    right: 0;
    background: #f6f6f6;
    border-top: 1px solid rgba(0,0,0,.12);
    border-bottom: 1px solid rgba(0,0,0,.12);
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
    z-index: 1200;
  }

  /* Abre/cierra con main.js (html.nav-open) */
  html.nav-open header nav,
  html.nav-open .site-nav{
    display: flex;
  }

  header nav a,
  .site-nav a{
    display: block;
    margin: 0;
    padding: 10px 10px;
  }

  /* CTA tienda: en móvil solo icono */
  .nav-shop-label{ display: none; }

  /* Neutraliza dropdown hover en móvil */
  .dropdown:hover .dropdown-content{ display: none; }
  .dropdown .dropdown-content{
    position: static;
    box-shadow: none;
    border-radius: 0;
    min-width: unset;
  }
  .dropbtn{ margin-left: 0; }

  /* home cards */
  .hero-grid{ grid-template-columns: 1fr; }
}

/* Smartphone ≤ 480px */
@media (max-width: 480px){
  :root{ --header-h: 88px; }

  header{
    padding: .5em .75em;
  }

  /* ajustes contacto */
  .contact-main{ background-size: cover; }

  /* productos */
  .product-section{
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }
}

/* Muy pequeño ≤ 320px */
@media (max-width: 320px){
  .hero-index .hero-item img{ height: 42vh; }
}
/* páginas*/
/* =========================
   products.html —
   ========================= */
.page-hero{
  padding: 34px 0 10px;
}

.page-title{
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.08;
  margin-bottom: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}

.hero-row--tight{
  margin: 10px 0 6px;
}

/* Grid de líneas */
.lines{ padding: 10px 0 44px; }

.lines-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.line-card{
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  display:flex;
  flex-direction: column;
}

.line-card-head{
  padding: 14px 14px 6px;
}

.line-name{
  margin: 0 0 6px;
  font-size: 1.12rem;
}

.line-desc{
  margin: 0;
  opacity: .9;
}

.line-bullets{
  padding: 0 14px;
  margin: 10px 0 12px;
}

.line-bullets li{
  list-style: disc;
  margin-left: 18px;
  margin-bottom: 8px;
}

.line-ctas{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 14px 14px;
}

.btn-sm{
  padding: 10px 12px;
  border-radius: 12px;
}

/* media opcional por card */
.line-media{
  border-top: 1px solid rgba(0,0,0,.08);
  height: 160px;
}

.line-media img{
  width:100%;
  height:100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

/* disabled line */
.line-card--disabled{
  opacity: .65;
  filter: grayscale(1);
}

.is-disabled{
  pointer-events: none;
  opacity: .75;
}

/* CTA strip */
.shop-strip{
  margin-top: 14px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 14px;
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.shop-strip-text{ margin: 0; opacity: .9; }

/* footer centrado */
.footer--center{
  text-align: center;
  border-radius: 0;
}

/* Responsive */
@media (max-width: 900px){
  .lines-grid{ grid-template-columns: 1fr; }
  .line-media{ height: 200px; }
  .shop-strip{ flex-direction: column; align-items: flex-start; }
}

/*página line-noposse.html*/
/* Breadcrumb minimal */
.crumbs{
  display:flex;
  gap: 10px;
  align-items:center;
  font-family: var(--mono);
  letter-spacing: .02em;
  opacity: .8;
  margin: 10px 0 18px;
}
.crumbs a{ text-decoration: underline; text-decoration-thickness: 1px; }

/* Bloque secundario */
.line-block{
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 14px;
  margin-top: 14px;
}
.block-title{
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 900;
  text-transform: lowercase;
}
.block-body p{ margin: 0; opacity: .9; }

/* =========================
   contacto.html — layout (sobrio, sin imagen obligatoria)
   ========================= */
.contact{ padding: 10px 0 44px; }

.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.contact-panel,
.contact-form-wrap{
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 14px;
}

.contact-item{
  padding: 12px 0;
  border-top: 1px solid rgba(0,0,0,.08);
}
.contact-item:first-of-type{ border-top: 0; padding-top: 6px; }

.contact-label{
  margin: 0 0 6px;
  font-weight: 900;
  text-transform: lowercase;
}

.small{ font-size: .92rem; }

.contact-mail a{
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.contact-note{
  margin-top: 12px;
  border-top: 1px solid rgba(0,0,0,.08);
  padding-top: 12px;
}

/* Form */
.contact-form .form-group{ margin-bottom: 12px; }
.contact-form input,
.contact-form textarea{
  width: 100%;
  padding: .8rem;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 10px;
  font: inherit;
  background: #fff;
}
.contact-form textarea{ resize: vertical; }

.submit-btn[aria-disabled="true"]{
  opacity: .6;
  cursor: not-allowed;
}

@media (max-width: 900px){
  .contact-grid{ grid-template-columns: 1fr; }
}
/* =========================
   404
   ========================= */
.e404{ padding: 26px 0 44px; }
.e404-inner{ max-width: 880px; }

.e404-code{
  font-size: clamp(4rem, 10vw, 7rem);
  line-height: .9;
  margin: 6px 0 6px;
  letter-spacing: -0.06em;
}

.e404-title{
  font-size: 1.2rem;
  opacity: .85;
  margin-bottom: 10px;
}

.e404-box{
  margin-top: 14px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 12px 14px;
}
