/* =========================================================
   Autèntic Empordà — css/main.css (LIMPIO)
   ---------------------------------------------------------
   Estilos globales del sitio (Home / Portfolio / Tienda / Contacto).

   ¿Dónde tocar?
   - Colores / tipografías / tamaños globales: :root (variables)
   - Header fijo / altura: --header-height
   - Ancho de página: --container
   - Hero (imagen/overlay/altura): sección HERO

   Nota:
   - Carrito y Checkout usan css/commerce.css (scoped a esas páginas)
   ========================================================= */


/* =========================================================
   1) VARIABLES (design tokens)
   ========================================================= */
:root{
  --font-heading: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-body: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --ink-900: #1b1b1b;
  --ink-700: #2f2f2f;
  --ink-500: #666;

  --bg: #ffffff;
  --bg-soft: #f6f6f6;

  --border: rgba(0,0,0,.12);
  --border-soft: rgba(0,0,0,.06);

  --accent: #c0392b; /* rojo precios */
  --accent-2: #2c3e50; /* azul oscuro botones */

  --shadow-soft: 0 10px 40px rgba(0,0,0,.10);

  --radius: 0px; /* 0 = esquinas rectas */

  --container: 1180px;
  --header-height: 72px;

  /* Tamaño estándar de flechas (carruseles) */
  --arrow-size: 32px;
  --arrow-size-sm: 28px;

  /* Flechas: fondo redondo (más transparente y consistente en toda la web) */
  --arrow-bg: rgba(255,255,255,.28);
  --arrow-bg-hover: rgba(255,255,255,.44);
  --arrow-border: rgba(0,0,0,.10);
  --arrow-fg: rgba(0,0,0,.70);

  /* Fondo crema de Filosofía (como antes) */
  --bg-filosofia: #f5f2ed;
}


/* =========================================================
   2) BASE / RESET
   ========================================================= */
*,
*::before,
*::after{
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-700);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;

  /* Header fijo */
  padding-top: var(--header-height);
}

/* Bloquear scroll cuando hay drawer o modal abierto */
body.modal-open,
body.nav-open{
  overflow: hidden;
}

img{
  max-width: 100%;
  display: block;
  border-radius: var(--radius);
}

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

a:hover{
  text-decoration: none;
}

.hidden{ display: none !important; }

/* Respetar atributo HTML hidden (evita modales/menus visibles por CSS) */
[hidden]{ display: none !important; }

.text-muted{ color: var(--ink-500); }

/* Anclajes con header fijo (evita que el título quede debajo del header) */
.scroll-offset{
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.container,
.productos-container,
.prendas-container,
.filosofia-container{
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 20px);
}

/* Tipografía base */
h1,h2,h3,h4,h5,h6{
  margin: 0 0 14px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.1;
}

p{
  margin: 0 0 14px;
}

.section-title{
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--ink-900);
}


/* =========================================================
   3) COMPONENTES (botones y patrones reutilizables)
   ========================================================= */

/* Botones tipo “pill” del hero */
.btn-pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 0;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}

.btn-pill.primary{
  background: var(--accent-2);
  color: #fff;
}

.btn-pill.primary:hover{
  transform: translateY(-1px);
  background: #243446;
}

.btn-pill.secondary{
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.35);
  color: #fff;
}

.btn-pill.secondary:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.22);
}

/* CTA (usado en proceso, tienda, etc.) */
.btn-contacto{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  background: var(--accent-2);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-radius: 0;
  transition: transform .15s ease, background-color .15s ease;
}

.btn-contacto:hover{
  transform: translateY(-1px);
  background: #243446;
}

/* Botón outline (modales) */
.btn-outline{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink-900);
  font-weight: 700;
  transition: transform .15s ease, border-color .15s ease;
  border-radius: 0;
}

.btn-outline:hover{
  transform: translateY(-1px);
  border-color: rgba(0,0,0,.22);
}


/* =========================================================
   4) HEADER / NAVEGACIÓN
   ========================================================= */
.site-header{
  transition: transform .28s ease, background-color .2s ease, box-shadow .2s ease, border-color .2s ease;
  will-change: transform;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;

  background: rgba(255,255,255,.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner{
  max-width: var(--container);
  margin-inline: auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo img{
  height: 52px;
  width: auto;
}

.main-nav ul{
  list-style: none;
  display: flex;
  gap: 28px;
  padding: 0;
  margin: 0;
}

.main-nav a{
  display: inline-block;
  padding: 10px 4px;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink-700);
  transition: color .15s ease;
}

.main-nav a:hover{
  color: var(--ink-900);
}

.main-nav a.active{
  color: var(--ink-900);
  font-weight: 700;
}

.main-nav a.nav-contact{
  font-weight: 700;
}

/* Dropdown “Tienda” */
.nav-item.has-dropdown{
  position: relative;
}

.nav-dropdown{
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-soft);
  box-shadow: 0 16px 40px rgba(0,0,0,.12);
  padding: 10px;
  display: none;
}

.nav-dropdown a{
  display: block;
  padding: 10px 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
}

.nav-dropdown a:hover{
  background: rgba(0,0,0,.04);
}

/* Abrir dropdown en hover y teclado */
.nav-item.has-dropdown:hover .nav-dropdown,
.nav-item.has-dropdown:focus-within .nav-dropdown{
  display: block;
}

/* Icono carrito (header) */
.cart-icon-wrapper{
  position: relative;
}

.cart-icon{
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: transform .15s ease;
}

.cart-icon:hover{
  transform: scale(1.06);
}

.cart-icon svg{
  width: 24px;
  height: 24px;
  stroke: var(--ink-700);
}

.cart-badge{
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* Burger / menú móvil */
.nav-toggle{
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.burger-lines{
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.burger-line{
  width: 20px;
  height: 2px;
  background: #222;
  border-radius: 1px;
  transition: transform .25s ease, opacity .25s ease;
}

.nav-toggle[aria-expanded="true"] .burger-line:nth-child(1){
  transform: rotate(45deg) translate(6px, 6px);
}
.nav-toggle[aria-expanded="true"] .burger-line:nth-child(2){
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .burger-line:nth-child(3){
  transform: rotate(-45deg) translate(6px, -6px);
}

.nav-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.40);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 1200;
}

.nav-overlay.is-open{
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer{
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100vh;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateX(100%);
  transition: transform .28s ease;
  z-index: 1201;
  display: flex;
  flex-direction: column;
  padding: 18px 16px;
}

.mobile-drawer.is-open{
  transform: translateX(0);
}

.drawer-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eee;
  margin-bottom: 14px;
}

.drawer-title{
  font-weight: 800;
  color: var(--ink-900);
  font-size: 18px;
}

.drawer-close{
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 0;
  background: #f1f1f1;
  cursor: pointer;
  font-size: 20px;
  color: #666;
}

.drawer-nav{
  display: flex;
  flex-direction: column;
}

.drawer-nav a{
  padding: 14px 8px;
  border-bottom: 1px solid #f2f2f2;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-900);
}

.drawer-nav a.active{
  background: rgba(0,0,0,.04);
}

.drawer-footer{
  margin-top: auto;
  padding-top: 16px;
  text-align: center;
  color: var(--ink-500);
  font-size: 13px;
}


/* =========================================================
   5) HERO (HOME)
   ========================================================= */
.hero{
  position: relative;
  width: 100%;
  min-height: 560px;
  height: 100vh;

  display: flex;
  align-items: center;
  justify-content: flex-start;

  background: center/cover no-repeat;
  overflow: hidden;
}

/* Imagen del hero (Home) */
.hero-home{
  background-image: url('../assets/hero.jpg');
}

/* En desktop, un toque “parallax” suave. En móvil suele dar problemas, por eso solo desktop */
@media (min-width: 980px){
  .hero-home{ background-attachment: fixed; }
}

/* Subir el hero detrás del header (solo Home) */
.page-home .hero-home{
  margin-top: calc(-1 * var(--header-height));
  padding-top: var(--header-height);
}

.hero-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.30);
}

.hero-content{
  position: relative;
  z-index: 1;
  color: #fff;

  width: 100%;
  max-width: 680px;
  margin-left: clamp(18px, 8vw, 120px);
  padding-right: 20px;
}

.hero-content h1,
.hero-content p{
  color: inherit; /* << asegura blanco */
}

.hero-content h1{
  font-size: clamp(34px, 6vw, 58px);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.05;
}

.hero-content p{
  font-size: clamp(16px, 2.2vw, 20px);
  opacity: .95;
  margin-bottom: 24px;
  max-width: 54ch;
}

.hero-buttons{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}


/* =========================================================
   6) HOME — INTRO / PROCESO
   ========================================================= */
.home-intro{
  padding: 56px 0 10px;
}

.home-intro-text{
  max-width: 95ch;
  margin: 0 auto;
  text-align: center;
  color: var(--ink-700);
}

.process{
  padding: 26px 0 80px;
}

.process-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.process-step{
  text-align: center;
}

.process-step h3{
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.process-img{
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-soft);
  border-radius: var(--radius);
}

.process-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.process-cta{
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.process-cta p{
  margin: 0;
  font-weight: 700;
  color: var(--ink-900);
}


/* =========================================================
   7) HOME — FILOSOFÍA (carrusel)
   ========================================================= */
.filosofia{
  padding: 90px 0;
  background: var(--bg-filosofia);
}

.filosofia-container{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(22px, 5vw, 56px);
  align-items: center;
}

/* Galería */
.filosofia-carousel{
  position: relative;
}

.filosofia-images{
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-soft);
}

.filosofia-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .35s ease;
}

.filosofia-img.is-active{
  opacity: 1;
}

.filosofia-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: var(--arrow-size);
  height: var(--arrow-size);
  border: none;
  border-radius: 999px;
  background: var(--arrow-bg);
  color: rgba(0,0,0,.70);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 12px;
  transition: transform .15s ease, background-color .15s ease;
  z-index: 2;
}

.filosofia-arrow:hover{
  transform: translateY(-50%) scale(1.06);
  background: var(--arrow-bg-hover);
}

.filosofia-arrow.left{ left: 10px; }
.filosofia-arrow.right{ right: 10px; }

/* Contenido */
.filosofia-content h2{
  font-size: 26px;
  margin-bottom: 14px;
}

.filosofia-text p{
  color: var(--ink-700);
}


/* =========================================================
   8) PORTFOLIO — slider horizontal + carrusel vertical
   ========================================================= */
.portfolio{
  padding: 80px 0 32px;
}

.portfolio .portfolio-wrap{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

/* Flechas (horizontales y verticales comparten estilo) */
.h-arrow,
.v-arrow{
  width: var(--arrow-size);
  height: var(--arrow-size);
  border-radius: 999px;
  border: 1px solid var(--arrow-border);
  background: var(--arrow-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--arrow-fg);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 14px;
  transition: transform .15s ease, background-color .15s ease;
}

.h-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
}

.h-arrow.left{ left: -10px; }
.h-arrow.right{ right: -10px; }

.h-arrow:hover{
  background: var(--arrow-bg-hover);
  transform: translateY(-50%) scale(1.06);
}

.h-slider{
  overflow: hidden;
  width: 100%;
}

.h-track{
  display: flex;
  width: 100%;
  transition: transform .45s ease;
}

.h-slide{
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr);
  gap: clamp(18px, 4vw, 48px);
  align-items: center;
  padding: 10px 0;
}

.slide-text h3{
  font-size: clamp(28px, 3vw, 38px);
  margin-bottom: 10px;
}

.slide-text p{
  color: var(--ink-500);
  max-width: 55ch;
}

/* Carrusel vertical de imágenes dentro del slide */
.v-carousel{
  position: relative;
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.v-track{
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #f5f5f5;
  border: 1px solid rgba(0,0,0,.10);
  /* Portfolio: fotos sin esquinas redondeadas */
  border-radius: 0;
}

.v-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  /* efecto “slide vertical” */
  transform: translateY(100%);
  transition: transform .6s cubic-bezier(0.4, 0, 0.2, 1);
}

.v-img.is-active{
  transform: translateY(0);
}

/* Flechas verticales posicionadas arriba/abajo (mismo estilo que las horizontales) */
.v-arrow{
  position: absolute;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%) rotate(90deg);
}

.v-arrow.up{ top: 10px; }
.v-arrow.down{
  bottom: 10px;
  transform: translateX(-50%) rotate(-90deg);
}

.v-arrow:hover{
  transform: translateX(-50%) rotate(90deg) scale(1.06);
}

.v-arrow.down:hover{
  transform: translateX(-50%) rotate(-90deg) scale(1.06);
}

/* Dots slider horizontal */
.h-dots{
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 22px 0 8px;
}

.dot{
  width: 10px;
  height: 10px;
  border-radius: 0;
  border: none;
  background: #cfcfcf;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}

.dot:hover{ transform: scale(1.1); }

.dot.is-active{
  background: #666;
}

/* Banda Instagram */
.ig-row{
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  text-align: center;
}

.ig-btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 700;
  transition: transform .15s ease, border-color .15s ease;
}

.ig-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(0,0,0,.2);
}


/* =========================================================
   9) INSTAGRAM FEED
   ========================================================= */
.ig-feed{
  padding: 50px 0 80px;
}

.ig-feed-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.ig-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.ig-grid a{
  display: block;
  overflow: hidden;
  background: var(--bg-soft);
}

.ig-grid img{
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .25s ease;
}

.ig-grid a:hover img{
  transform: scale(1.03);
}

.ig-load-wrap{
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.ig-load{
  padding: 12px 18px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}


/* =========================================================
   10) TIENDA — MUEBLES Y DECORACIÓN
   ========================================================= */
.productos{
  padding: 80px 0 30px;
}

.productos-header{
  text-align: center;
  margin-bottom: 24px;
}

.productos-promo,
.prendas-promo{
  margin: 6px 0 0;
  font-weight: 700;
  color: #166534;
}

.productos-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 22px;
}

.producto-card{
  border: 1px solid var(--border-soft);
  background: #fff;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.producto-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(0,0,0,.10);
  border-color: rgba(0,0,0,.14);
}

.producto-img{
  /* Vertical (alto:ancho = 4:3). En CSS: width/height = 3/4 */
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-soft);
}

.producto-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.producto-info{
  padding: 16px 16px 18px;
}

.producto-precio{
  margin: 10px 0 12px;
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.precio-anterior{
  text-decoration: line-through;
  color: rgba(0,0,0,.45);
  font-weight: 600;
}

.precio-actual{
  color: var(--accent);
  font-weight: 800;
  font-size: 18px;
}

.producto-desc{
  color: var(--ink-500);
}

.producto-material,
.producto-dimensiones{
  color: rgba(0,0,0,.60);
  font-size: 14px;
}

.productos-cta{
  margin-top: 34px;
  text-align: center;
}


/* =========================================================
   11) TIENDA — PRENDAS
   ========================================================= */
.prendas{
  padding: 60px 0 90px;
}

.prendas-header{
  text-align: center;
  margin-bottom: 18px;
}

.prendas-subtitle{
  color: var(--ink-500);
}

.prendas-specs{
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--ink-500);
}

.prendas-subtitle-h{
  margin-top: 42px;
}

/* Collage de prendas (grid arreglado y consistente) */
.prendas-collage{
  display: grid;
  grid-template-columns: 1.20fr 1fr 1fr;
  grid-auto-rows: clamp(160px, 18vw, 240px);
  gap: 16px;
  margin: 18px 0 44px;
}

.collage-tile{
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
}

.collage-tile img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prendas-collage .collage-a{ grid-column: 1; grid-row: 1 / span 2; }
.prendas-collage .collage-b{ grid-column: 2; grid-row: 1; }
.prendas-collage .collage-c{ grid-column: 3; grid-row: 1; }
.prendas-collage .collage-d{ grid-column: 2; grid-row: 2; }
.prendas-collage .collage-e{ grid-column: 3; grid-row: 2; }

/* Grid de cards */
.prendas-grid{
  display: grid;
  gap: 36px;
  margin-top: 18px;
}

.prendas-grid-3{
  grid-template-columns: repeat(3, minmax(0, 330px));
  justify-content: center;
}

.prendas-grid-2{
  grid-template-columns: repeat(2, minmax(0, 360px));
  justify-content: center;
}

/* Card prenda */
.prenda-card{
  /* El usuario no quiere "tarjeta" enmarcada en prendas */
  border: none;
  background: transparent;
  padding: 0;
}

/* Slider 2 imágenes */
.prenda-slider{
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-soft);
  cursor: zoom-in;
}

.prenda-slider img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .25s ease;
}

.prenda-slider img.is-active{
  opacity: 1;
}

.slide-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: var(--arrow-size);
  height: var(--arrow-size);
  border: none;
  border-radius: 999px;
  background: var(--arrow-bg);
  color: rgba(0,0,0,.75);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 12px;
  transition: transform .15s ease, background-color .15s ease;
  z-index: 2;
}

.slide-btn:hover{
  transform: translateY(-50%) scale(1.05);
  background: var(--arrow-bg-hover);
}

.slide-prev{ left: 10px; }
.slide-next{ right: 10px; }

.slide-dots{
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.slide-dot{
  width: 8px;
  height: 8px;
  border-radius: 0;
  border: none;
  background: rgba(255,255,255,.55);
  cursor: pointer;
}

.slide-dot.is-active{
  background: rgba(255,255,255,.90);
}

/* Acciones prenda: tallas + precio + carrito */
.prenda-actions{
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  justify-items: center;
}

/* =========================================================
   Tallas (prendas)

   Objetivo:
   - Botones cuadrados
   - Alineación centrada
   - En móvil: 3 arriba + 2 abajo (sin huecos raros)
   ========================================================= */
.size-grid{
  --size-box: clamp(38px, 9vw, 44px);

  /* Usamos flex para poder centrar la 2ª fila cuando solo hay 2 tallas */
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;

  /* Ancho máximo para que “salten” a 2 filas (3 + 2) */
  max-width: calc((var(--size-box) * 3) + (10px * 2));
  margin-inline: auto;
}

.size-btn{
  width: var(--size-box);
  height: var(--size-box);
  padding: 0;
  border: 1px solid rgba(0,0,0,.28);
  background: transparent;

  /* El usuario pidió que las letras NO fueran en negrita */
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-700);

  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease, background-color .12s ease;
}

.size-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(0,0,0,.40);
}

.size-btn.is-active{
  background: rgba(0,0,0,.06);
  border-color: rgba(0,0,0,.45);
  font-weight: 600;
}

/* Precio + carrito (carrito debajo del precio y SIN recuadro) */
.prenda-buy{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.prenda-price{
  display: flex;
  gap: 10px;
  align-items: baseline;
  justify-content: center;
  margin: 0;
}

.prenda-price .price-old{
  font-size: 14px;
  opacity: .55;
  text-decoration: line-through;
}

.prenda-price .price-new{
  font-size: 20px;
  font-weight: 900;
  color: var(--accent);
}

/* Icono carrito (pedido del usuario: sin caja) */
.btn-add-cart.icon{
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: not-allowed; /* está disabled actualmente */
  display: grid;
  place-items: center;
}

.btn-add-cart.icon svg{
  width: 22px;
  height: 22px;
  stroke: rgba(0,0,0,.65);
}

.btn-add-cart.icon:disabled{
  opacity: .55;
}


/* =========================================================
   12) MODALES (Tienda)
   ========================================================= */
.modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1400;
}

.modal{
  position: fixed;
  inset: 0;
  z-index: 1401;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.modal-panel{
  /* Un poco más estrecho para que las fotos en formato vertical llenen mejor */
  width: min(980px, 96vw);
  height: min(70vh, 760px);
  background: #fff;
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.modal-close{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: var(--arrow-bg);
  cursor: pointer;
  z-index: 5;
  font-size: 18px;
}

.modal-body{
  height: 100%;
  display: grid;
  /* Columna de imagen algo más estrecha para reducir márgenes laterales */
  grid-template-columns: 1.15fr 1fr;
}

.modal-media{
  position: relative;
  /* Fondo blanco para que (si existe) el margen de "contain" no se note */
  background: #fff;
  overflow: hidden;
}

.modal-media-track{
  position: relative;
  height: 100%;
}

.modal-media-track img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;

  /* En modales queremos ver la imagen completa (sin “zoom”) */
  object-fit: contain;
  background: #fff;

  opacity: 0;
  transition: opacity .25s ease;
}

/* Prenda: contenido centrado verticalmente en la columna derecha */
#prenda-modal .modal-content{
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-media-track img.is-active{
  opacity: 1;
}

.modal-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: var(--arrow-size);
  height: var(--arrow-size);
  border: none;
  border-radius: 999px;
  background: var(--arrow-bg);
  color: rgba(0,0,0,.75);
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
}

.modal-arrow.prev{ left: 12px; }
.modal-arrow.next{ right: 12px; }

.modal-content{
  padding: 22px 22px;
  overflow: auto;
}

.modal-prices{
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin: 10px 0 14px;
}

.modal-prices .price-old{
  text-decoration: line-through;
  opacity: .55;
}

.modal-prices .price-new{
  color: var(--accent);
  font-weight: 900;
  font-size: 22px;
}

.modal-meta{
  margin: 4px 0;
  color: var(--ink-500);
}

.modal-cta-row{
  margin-top: 18px;
}

.modal-prenda-buy{
  display: grid;
  gap: 14px;
  margin-top: 18px;
}


/* =========================================================
   13) CONTACTO
   ========================================================= */
.contact-page{
  padding: 70px 0 90px;
}

.contact-container{
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: 40px;
  align-items: start;
}

.contact-lead{
  color: var(--ink-500);
}

.form{
  margin-top: 18px;
}

.form-group{
  margin-bottom: 14px;
}

.form-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label{
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink-900);
}

input,
select,
textarea{
  width: 100%;
  padding: 12px 12px;
  border: 1px solid rgba(0,0,0,.16);
  background: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  border-radius: var(--radius);
}

textarea{ resize: vertical; }

.btn-submit{
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: var(--accent-2);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  border-radius: 0;
  transition: transform .15s ease, background-color .15s ease;
}

.btn-submit:hover{
  transform: translateY(-1px);
  background: #000;
}

.form-alert{
  border: 1px solid var(--border);
  padding: 14px;
  margin: 14px 0;
  background: #fff;
}

.form-alert.error{
  border-color: rgba(192,57,43,.35);
  background: rgba(192,57,43,.06);
}

.form-alert.success{
  border-color: rgba(22,101,52,.35);
  background: rgba(22,101,52,.06);
}

.contact-info-col{
  /* Sin recuadro (como antes). Forzamos por si algún estilo externo lo pisa */
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.contact-brand{
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
}

.contact-logo{
  /* El usuario quiere el logo centrado y bastante más grande */
  width: min(360px, 100%);
  height: auto;
  display: block;
  margin: 0;
}

.contact-list{
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.contact-list li{
  padding: 10px 0;
  /* El usuario no quiere las líneas separadoras */
  border-bottom: none;
}

.contact-list span{
  font-weight: 800;
  margin-right: 6px;
}


/* =========================================================
   14) FOOTER
   ========================================================= */
.site-footer{
  border-top: 1px solid #f0f0f0;
  background: #fff;
}

.footer-inner{
  max-width: var(--container);
  margin-inline: auto;
  padding: 30px 16px;
  text-align: center;
  color: var(--ink-500);
  font-size: 14px;
}


/* =========================================================
   15) RESPONSIVE
   ========================================================= */
@media (max-width: 980px){
  /* Header */
  .main-nav{ display: none; }
  .nav-toggle{ display: grid; place-items: center; }

  /* Portfolio */
  .h-slide{
    grid-template-columns: 1fr;
  }
  /* Portfolio (móvil): flechas más centradas con la foto */
  .h-arrow{ top: 70%; }

  /* Proceso */
  .process-grid{ grid-template-columns: repeat(2, 1fr); }

  /* Filosofía */
  .filosofia-container{ grid-template-columns: 1fr; }

  /* Tienda - muebles */
  .productos-grid{ grid-template-columns: repeat(2, 1fr); }

  /* Prendas */
  .prendas-grid-3{ grid-template-columns: repeat(2, minmax(0, 340px)); }
  .prendas-grid-2{ grid-template-columns: repeat(2, minmax(0, 340px)); }

  /* Contacto */
  .contact-container{ grid-template-columns: 1fr; }
}

@media (max-width: 860px){
  /* Collage prendas (móvil): menos margen y un pelín más alto */
  .prendas-collage{ gap: 12px; margin: 14px 0 34px; grid-auto-rows: clamp(170px, 34vw, 260px); }

  /* Tienda - productos */
  .productos-grid{ grid-template-columns: 1fr; }

  /* Collage prendas */
  .prendas-collage{
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: clamp(160px, 28vw, 240px);
  }
  .prendas-collage .collage-a{ grid-column: 1 / span 2; grid-row: auto; }
  .prendas-collage .collage-b,
  .prendas-collage .collage-c,
  .prendas-collage .collage-d,
  .prendas-collage .collage-e{ grid-column: auto; grid-row: auto; }

  /* Instagram grid */
  .ig-grid{ grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px){
  /* Ajustes globales (móvil) */
  :root{ --arrow-size: var(--arrow-size-sm); }

  /* Hero */
  .hero-content{
    margin-left: 0;
    padding-inline: 18px;
  }

  /* Tienda - muebles */
  .productos-grid{ grid-template-columns: 1fr; }

  /* Prendas */
  .prendas-grid-3,
  .prendas-grid-2{ grid-template-columns: 1fr; }

  /* Instagram */
  .ig-grid{ grid-template-columns: repeat(2, 1fr); }

  /* Modal */
  .modal-panel{
    height: auto;
    max-height: 84vh;
  }
  .modal-body{
    grid-template-columns: 1fr;
  }
  /* Contacto */
  .form-row{ grid-template-columns: 1fr; }
  /* En móvil: mantener proporción (no chafar el logo) */
  .contact-logo{ width: min(320px, 88%); height: auto; }

  /* Portfolio: que las flechas no corten en móvil */
  .h-arrow.left{ left: 6px; }
  .h-arrow.right{ right: 6px; }
}

@media (max-width: 420px){
  :root{ --header-height: 68px; }
  .logo img{ height: 46px; }
}


/* Header: auto-hide al hacer scroll */
.site-header.is-hidden{ transform: translateY(-110%); }
.site-header.is-scrolled{
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

/* Flechas globales (filosofía, prendas, modales) */
.filosofia-arrow,
.slide-btn,
.modal-arrow{
  border: 1px solid var(--arrow-border);
  color: var(--arrow-fg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.filosofia-arrow:hover,
.slide-btn:hover,
.modal-arrow:hover{
  background: var(--arrow-bg-hover);
}

/* =========================================================
   PRECIOS (con o sin descuento)
   =========================================================
   - Si HAY descuento: rellena el precio antiguo (tachado) + precio actual (rojo).
   - Si NO hay descuento: deja el precio antiguo vacío. El JS añade .is-normal y el precio se verá en negro.
*/
.producto-precio.is-normal .precio-actual{ color: var(--ink-900); }
.producto-precio.is-normal .precio-anterior{ display: none; }

.modal-prices.is-normal .price-new{ color: var(--ink-900); }
.modal-prices.is-normal .price-old{ display: none; }

.prenda-price.is-normal .price-new{ color: var(--ink-900); }
.prenda-price.is-normal .price-old{ display: none; }

.precio-normal{ color: var(--ink-900); font-weight: 800; font-size: 18px; }

/* Prenda modal: que la imagen no se vea "zoomeada" (mostrar completa) */
#prenda-modal .modal-media-track img{
  object-fit: contain;
  background: var(--bg-soft);
}

/* Prenda modal: centrar bloque de compra (tallas / precio / carrito) */
#prenda-modal .modal-prenda-buy{
  justify-items: center;
}

#prenda-modal .modal-prices{
  justify-content: center;
}

#prenda-modal .btn-add-cart.icon{
  margin-inline: auto;
}

/* HERO Contacto (assets/hero_contacto.*) */
.hero-contacto{
  /* Cambia la extensión si tu archivo no es .jpg */
  background-image: url('../assets/hero_contacto.jpg');
  min-height: 360px;
  height: 55vh;
  max-height: 650px;
}
.hero-contacto .hero-overlay{
  /* un pelín más oscuro para que el título se lea */
  background: rgba(0,0,0,.28);
}

.producto-cta-row{
  margin-top: 12px;
  display: none; /* solo móvil */
}

@media (max-width: 640px){
  .producto-cta-row{ display: block; }
}

@media (max-width: 640px){
  /* En móvil, al abrir un mueble mostramos SOLO las imágenes (para ver/zoom) */
  #mueble-modal .modal-content{ display: none; }
  #mueble-modal .modal-panel{ height: 86vh; }
}

/* Mueble modal: evitar sensación de "zoom" (mostrar completa) */
#mueble-modal .modal-media-track img{
  object-fit: contain;
  background: var(--bg-soft);
}
