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;
}

.tituloblanco {
  font-size: 1.2em;
  color: #ffffff;   
  font-weight: Bolder;
  text-align: center;
  align-items: center;
}

.subtituloblanco {
  font-size: 1.2em;
  color: #ebf750;   
  font-weight: Bolder;
  text-align: center;
  align-items: center;
}

.textoblanco {
  font-size: 1.0em;
  color: #ffffff;   
  font-weight: Bolder;
  text-align: center;
  align-items: center;
}

.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);
}

.fondo{
  display: grid;
  align-items: center;
  margin-top: 20px;
  gap: 10px;
  padding: 10px 15px;
  background: #4d8aa1; 
  color: #fff;
  position: relative; /* para posicionar .menu debajo */
  min-height: var(--nav-h);
}

.fondodos{
  display: grid;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  background: #4d8aa1; 
  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;
}

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

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


/*..................................imagenes portada.......................................*/

.hero-slider {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #000;
}

/* Ocupamos todo el ancho, fijamos alto sin “saltos” (evita CLS) */
.hero-slider img {
  width: 100%;
  display: none;
  object-fit: cover;
  aspect-ratio: 16 / 9;   /* alto automático; si prefieres fijo, usa height: 200px; */
}

/* Imagen visible + transición */
.hero-slider img.active {
  display: block;
  animation: fadeIn 800ms ease-in-out;
}

@keyframes fadeIn {
  from { opacity: .2; }
  to   { opacity: 1; }
}

/* .................separa solo párrafos consecutivos.............. */

.intro { 
  text-align: center; 
  margin: 0; 
}

.intro:first-of-type {
  margin-top: 14px;  /* separa del bloque anterior (la imagen) */
}

.intro + .intro { 
  margin-top: 12px;  /* separación entre párrafos */
}

.textos { font-family: "Inter", system-ui, -apple-system, Roboto, Arial, sans-serif; }
