body {
  font-family: Arial, sans-serif;
  margin: 0;
  min-height: 100svh;      /* ← ocupa toda la pantalla en móvil */
  display: flex;           /* ← contenedor flex */
  flex-direction: column;  /* ← en columna */
  background-color: #fcf1e0ff;
  padding-top: 60px; /* ajusta al alto real de tu header/navbar */
}


/* ------------------- HEADER ------------------------ */

header {
  position: fixed;
  width: 100%;
  top: 0;            /* pegado al borde superior */
  left: 0;
  background: #333;  /* mismo color que el navbar */
  z-index: 1000;     /* para que quede por encima del resto */
}

header h1 {
  font-family: "Inter", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 1.5em;
  color: #2c3e50;
}

header h2 {
  font-size: 1.0em;
  color: #1b1b1b;
  font-weight: normal;
}

header h3 {
  font-size: 1.2em;
  color: #04660c;
  font-weight: Bolder;
}

.kibou {
  color: #e67e22; /* Color naranja llamativo para "KIBOU" */
}

:root { --nav-h: 40px; }

/* Header barra */
.navbar{
  display: grid;
  grid-template-columns: var(--nav-h) 1fr var(--nav-h); /* izq | centro | dcha */
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  background: #333; 
  color: #fff;
  position: relative; /* para posicionar .menu debajo */
  min-height: var(--nav-h);
}

/* Anclajes por columna */
.hamburger { justify-self: start; }
.icon-btn  { justify-self: end; }
.usuario-box,
.auth-buttons { justify-self: center; } /* centro perfecto */

/* Hamburguesa */
.hamburger{
  width: var(--nav-h);
  height: var(--nav-h);
  display: flex;
  flex-direction: column;   /* 👈 apila las barras */
  justify-content: center;
  align-items: center;
  gap: 5px;                 /* separación entre líneas */
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.hamburger div{
  width: 24px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

/* Usuario */
.usuario-box{
  position: relative;          /* 👈 ancla para el menú */
  display:none;
  background:#fff; color:#000;
  border:1px solid #ccc; border-radius:12px;
  padding:2px 10px;
  box-shadow:0 2px 6px rgba(0,0,0,.1);
  height: var(--nav-h);
  align-items:center; gap:6px;
}
.usuario-box.visible{ 
  display:flex; 
}

.usuario-nombre{ margin:0; cursor:pointer; line-height:1; }

.usuario-menu{
  position: absolute;
  top: calc(100% + 8px);        /* 8px debajo del pill */
  left: 50%;
  transform: translateX(-50%);  /* centrado respecto al pill */
  display: none;                /* se muestra con .mostrar */
  min-width: 220px;
  max-width: 80vw;
  background: #fff;
  color: #000;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 12px 24px rgba(0,0,0,.18);
  z-index: 2000;                /* por encima del contenido */
  text-align: center;             /* opcional */
}
.usuario-menu.mostrar{ display: block; }

.usuario-menu span{
  display:block;
  margin-bottom:8px;
  font-size:0.9em;
  color:#333;
}
.usuario-menu button{
  width:100%;
  background:#e74c3c;
  color:#fff;
  border:none;
  padding:8px 12px;
  border-radius:6px;
  cursor:pointer;
  font-size:0.95em;
}

/* Botones Auth (cuando no hay sesión) */
.auth-buttons{
  display:flex; gap:10px;
}
.auth-buttons button{
  background:#e67e22; color:#fff; border:none;
  padding:20px 20x; border-radius:8px; font-size:.95em;
  cursor:pointer; transition:background-color .3s ease;
}
.auth-buttons button:hover{ background:#d35400; }

/* Carrito (derecha del todo) */
.icon-btn{
  width: var(--nav-h); height: var(--nav-h);
  display:inline-flex; align-items:center; justify-content:center;
  color:#fff; text-decoration:none;
  border:1px solid #555; border-radius:10px;
  background:transparent;
  position:relative;
}
.icon-btn:active{ transform:scale(.97); }
.cart-badge{
  position:absolute; top:-6px; right:-6px;
  min-width:18px; height:18px; padding:0 5px;
  background:#e67e22; color:#fff; font-size:11px; line-height:18px;
  border-radius:999px; display:inline-flex; align-items:center; justify-content:center;
}

/* Menú desplegable */
.menu{
  position:absolute; 
  top:100%; left:0; right:0;
  display:none; 
  flex-direction:column;
  background:#444; border-radius:6px; overflow:hidden; z-index:1000;
}
.menu.abierto{ display:flex; }
.menu a{
  color:#fff; padding:12px 16px; text-decoration:none; border-bottom:1px solid #555;
}
.menu a:last-child{ border-bottom:none; }
.menu a:hover{ background:#555; }

/* Utilidad: oculto accesible */
.oculto{ visibility:hidden; opacity:0; pointer-events:none; }


/* =====................ FOOTER ...................===== */
.site-footer {
  margin-top: auto; 
  width: 100%;
  background: #333;   /* mismo color que el header */
  color: #fff;
  text-align: center; /* si quieres centrado */
}

.site-footer { padding-bottom: env(safe-area-inset-bottom); } /* iphone */

.site-footer a {
  text-decoration: none;
  color: inherit;
}

.site-footer a.contact-row { text-decoration: none; }

.footer-inner {
  max-width: 400px;     /* mantiene tu ancho móvil */
  margin: 0 auto;
  padding: 14px 12px;
  text-align: center;
}

.footer-title {
  font-size: 1rem;
  margin: 0 0 8px 0;
  font-weight: 600;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: center;    /* 👈 centra horizontalmente */
  gap: 10px;
  padding: 6px 0;
  color: inherit;
  text-decoration: none;
}

.contact-row:hover {
  text-decoration: underline; /* solo se verá en el enlace */
}

.icon {
  width: 1.2em;
  text-align: center;
}

.icon-img {
  width: 1.2em;
  height: 1.2em;
  display: inline-block;
}

/*.......................TEXTOS.......................................*/

.coleccion {
  font-size: 1.2em;
  color: #e67e22; 
}


/* ------------------- CONTENEDOR PRINCIPAL ------------------------ */

.contenido-fijo-350 {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  padding: 0 10px;
  box-sizing: border-box;
}

/* ---------------------------------barras scroll----------------------------------- */

.seccion-taller {
  margin: 0 auto 40px auto; /* centrado horizontal + margen inferior */
  max-width: 800px; /* ajusta al ancho que quieras */
  width: 100%;
}

.titulo-seccion {
  text-align: center;
  font-size: 1.5em;
  color: #e67e22;
  margin-bottom: 10px;
}

/* Scroll horizontal */
.fila-scroll {
  display: flex;
  overflow-x: auto;
  gap: 15px;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}

.fila-scroll::-webkit-scrollbar {
  display: none;
}

/* ---------------------------------carrusel talleres----------------------------------- */

/* Tarjeta con estructura en grid */
.tarjeta-taller {
  flex: 0 0 auto;
  width: 140px;
  height: 281.5px; /* Igual que la suma del grid interno */
  border: 2px solid rgb(0, 0, 0); /* Borde rojo general */
  border-radius: 12px;
  background-color: #fff;
  scroll-snap-align: start;
  overflow: hidden;
  padding: 0;
}

.grid-tarjeta {
  display: grid;
  grid-template-rows: 187px 31.5px 31.5px 31.5px; /* Fila imagen, fila texto1, fila texto2 */
  height: 100%;
}
/* contenedor de la imagen de la tarjeta */
.foto-taller {
  width: 100%;
  aspect-ratio: 3 / 4;   /* vertical */
  object-fit: cover;     /* recorte elegante */
  display: block;        /* elimina espacio por línea base */
  border-radius: px;
  /* opcional: ligera nitidez en Chrome */
  image-rendering: auto; /* (no uses crisp-edges para fotos) */
}

/* zoom al tocar imagen */
.foto-taller { cursor: zoom-in; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;                /* se muestra con .open */
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0,0,0,.85);
  z-index: 4000;
  cursor: zoom-out;             /* indica que se cierra con clic */
}
.lightbox.open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
  touch-action: pinch-zoom;     /* pellizcar en móvil */
}

/* Texto dentro de tarjeta */
.texto-taller {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9em;
  border-top: 1px solid #ccc;
  padding: 4px;
  text-align: center;
  word-break: break-word;
}

.texto-datas ul {
  padding-left: 20px;   /* espacio a la izquierda para viñeta */
  margin: 0;
  list-style-type: disc; /* viñetas tipo punto (•) */
  font-size: 0.8em;
  color: #04660c;
}

.texto-datas li {
  margin-bottom: 4px;
  line-height: 1.2em;
}

/*............................BOTÓN CARRITO........................*/

.btn-carrito {
  width: 100%;
  background-color: #e67e22;
  color: #fff;
  border: none;
  padding: 10px 12px;
  border-radius: px;
  font-size: 0.95em;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.btn-carrito:hover { background-color: #d35400; }
.btn-carrito:active { transform: translateY(1px); }

/* Estado agotado/inutilizable */
.btn-carrito:disabled,
.btn-carrito.agotado{
  background: #bdbdbd;
  cursor: not-allowed;
  opacity: .8;
}