.kufam-regular {
  font-family: "Kufam", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/*LAS VARIABLES*/
:root {
  --color-bg:          #f7f6e2;  /* fondo crema general */
  --color-nav-bg:      #4e361e;  /* marrón oscuro del navbar y botones principales */
  --color-nav-text:    #ffffff;  /* texto blanco sobre fondos oscuros */
  --color-accent:      #c8a96e;  /* dorado para acentos, precios, detalles */
  --color-text:        #546845;  /* verde para textos y títulos secundarios */
  --color-text-light:  #6b7c5e;  /* verde más claro para texto descriptivo */
  --color-heading:     #2a2a2a;  /* casi negro para títulos principales */
  --font-display:      'Kufam', sans-serif;  /* fuente para títulos y etiquetas */
  --font-body:         'Inter', sans-serif;  /* fuente para cuerpo de texto */
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
}

/* Los enlaces no llevan subrayado ni decoración*/
a {
  text-decoration: none;
  color: inherit;
}


/*Este header se utiliza en todas las paginas iguales menos en la principal.*/
.menu_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  background-color: var(--color-bg);
}

.menu_header_logo {
  width: 36px;
  height: auto;
}

.menu_header_social {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Línea decorativa de las redes sociales*/
.menu_header_social::before {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: #a0a0a0;
  margin-right: 6px;
}

.menu_header_social a img {
  width: 24px;
  height: 24px;
  opacity: 0.75;
  transition: opacity 0.3s;
}

.menu_header_social a:hover img {
  opacity: 1;
}


/* Este solo es para el index.html*/
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero_img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0.45;
}

.hero_logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: clamp(120px, 22vw, 220px);
}

.hero_logo_img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 4px;
}

/*Los iconos de las redes sociales*/
.hero_social {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero_social_icons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.hero_social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  overflow: hidden;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.hero_social a:hover { opacity: 1; }

.hero_social a img {
  width: 100%;
  height: 100%;
}

/* Línea fina debajo de los iconos de las redes sociales*/
.hero_social_line {
  width: 100%;
  height: 1px;
  background: #fff;
  opacity: 0.55;
}


/* navbar para que sea sticky*/
.navbar_wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 32px;
  background: var(--color-bg);
}

.navbar {
  width: 100%;
  height: 56px;
  background: var(--color-nav-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(19px, 4vw, 56px);
  border-radius: 0;
}

/* Gracias a esto funciona lo del dropdown*/
.nav_item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.navbar a {
  font-family: 'Kufam', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-nav-text);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
}

.navbar a:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/*El dropdown*/
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--color-nav-bg);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 200;
}

.nav_item:hover .dropdown,
.nav_item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 9px 22px;
  font-family: 'Kufam', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--color-nav-text);
  border-bottom: none;
}

.dropdown a:hover {
  color: var(--color-accent);
  border-bottom: none;
}

/* Icono de Sin Gluten en el navbar desktop */
.navbar .nav_icon {
  width: 28px;
  height: 28px;
  transition: opacity 0.3s ease;
}

.navbar .nav_icon:hover { opacity: 1; }

.navbar .nav_icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Botón navbar hamburguesa, solo se ve en los mobiles*/
.nav_hamburger {
  display: none;
}

/* Menú mobile despegable para que se vea solo en los móviles */
.nav_mobile_menu {
  display: none;
}


/* index.html, lo de las 3 secciones */
.principal {
  max-width: 960px;
  margin: 0 auto;
}

.seccion {
  padding: 20px 20px;
}

.seccion_title {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 51px);
  font-weight: 700;
  color: var(--color-heading);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin-bottom: 48px;
}

/* Grid de dos columnas: texto a un lado, imagen al otro */
.sobre_body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* Para ir alternando de un lado a otro lo de las grid*/
.sobre_body.invertido .sobre_text  { 
  order: 2; 
}

.sobre_body.invertido .sobre_img_wrapper { 
  order: 1; 
}

.sobre_text h2 {
  font-family: var(--font-display);
  font-size: clamp(21px, 3vw, 29px);
  font-weight: 400;
  color: var(--color-heading);
  line-height: 1.25;
  margin-bottom: 19px;
}

.sobre_text p {
  font-size: 13px;
  line-height: 1.85;
  color: var(--color-text-light);
  font-weight: 300;
}

.sobre_img_wrapper {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 4/5;
}

.sobre_img_wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* menu.html*/
.menu_principal {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px 150px;
}

.menu_title {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 51px);
  font-weight: 700;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin-bottom: 40px;
}

.menu_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.menu_card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.menu_card:hover { 
  transform: translateY(-4px); 
}

.menu_card_img {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 2px;
}

.menu_card_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.menu_card:hover .menu_card_img img { 
  transform: scale(1.04); 
}

.menu_card_label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-heading);
}

/* menu.html: donde en la zona de pasteleria que hay dos fotos primero que se destacan */
.pasteleria_top {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 60px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.pasteleria_top .menu_card_img {
  aspect-ratio: 4/3;
}

/* Para posicionar las estrellas por encima de las fotos de la seccion de pasteleria*/
.decorated_card_wrapper {
  position: relative;
  width: 100%;
}

/* Estrellas decorativas */
.star_decor {
  position: absolute;
  width: 80px;
  height: auto;
  z-index: 10;
  pointer-events: none;
}

.star_top_left { 
  top: -20px;  
  left: -20px;  
  transform: rotate(-10deg); 
}

.star_bottom_left { 
  bottom: 20px; 
  left: -35px; 
  transform: rotate(-25deg); 
}

.star_bottom_right { 
  bottom: 10px; 
  right: -25px; 
  transform: rotate(15deg);  
}

/* Sello "Más Vendido" */
.sello_decor {
  position: absolute;
  top: -30px;
  right: -20px;
  width: 80px;
  height: auto;
  z-index: 11;
  transform: rotate(15deg);
  pointer-events: none;
}


/*menu.html: el carrusel de abajo del todo*/
.paises_section {
  width: 100%;
}

.carousel_container {
  position: relative;
  width: 100%;
  padding-bottom: 80px;
  padding-left: 24px;
  padding-right: 24px;
}

.carousel_track_container { 
  width: 100%; 
}

.carousel_track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
}

/* Ocultar la scrollbar del carrusel */
.carousel_track::-webkit-scrollbar { 
  display: none; 
}

.carousel_item {
  flex: 0 0 calc(16.666% - 20px);
  min-width: 180px;
}

/* Flechas del carrusel */
.carousel_btn {
  position: absolute;
  bottom: 0;
  background: white;
  border: 1px solid #ddd;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.3s;
}

.carousel_btn:hover { 
  background: #f0f0f0; 
}

.carousel_btn img { 
  width: 20px; }

.carousel_btn.prev { 
  right: 100px; 
}

.carousel_btn.next { 
  right: 50px; 
}

/* Texto informativo al final de menu.html */
.menu_info_text {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 60px;
}

.menu_info_text p {
  font-size: 17px;
  line-height: 2.4;
  color: var(--color-text-light);
  font-weight: 300;
}

.menu_info_text em {
  font-style: italic;
  font-family: var(--font-display);
}


/* El pop up del menú dl día que aparece al entrar a algunas páginas*/
.popup_overlay {
  display: flex;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.50);
  z-index: 800;
  align-items: center;
  justify-content: center;
}

.popup_overlay.hidden { 
  display: none; 
}

.popup_box {
  background: #a89b7a;
  border-radius: 6px;
  padding: 36px 28px 28px;
  max-width: 320px;
  width: 90%;
  position: relative;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
}

.popup_close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #3a2c1a;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  transition: background 0.2s;
}

.popup_close:hover { 
  background: #1e1610; 
}

.popup_title {
  font-family: var(--font-display);
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 800;
  color: #2e2416;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.popup_imgs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.popup_imgs img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 4px;
}

.popup_plus {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: #2e2416;
}

.popup_desc {
  font-size: 13px;
  line-height: 1.75;
  color: #2e2416;
  font-weight: 400;
  margin-bottom: 18px;
}

.popup_desc strong { 
  font-weight: 700; 
}

.popup_solo {
  font-family: var(--font-display);
  font-size: 12px;
  color: #2e2416;
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}

.popup_price {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  color: #2e2416;
  margin-bottom: 20px;
  line-height: 1;
}

.popup_cta {
  display: inline-block;
  padding: 10px 28px;
  background: #2e2416;
  color: #fff;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 40px;
  text-decoration: none;
  transition: background 0.2s;
  margin-bottom: 16px;
}

.popup_cta:hover { 
  background: #1a130a; 
}

.popup_note {
  font-size: 11px;
  font-style: italic;
  color: rgba(46,36,22,0.65);
}


/* cannoli.html: la izquierda se queda más fija y a la derecha esta lo que se hizo para la bbq*/
.product_page {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  align-items: start;
}

/* Columna izquierda: se queda fija al hacer scroll */
.col_left {
  position: sticky;
  top: 100px;
  padding: 32px 24px 32px 0;
}

.product_img_wrapper {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4/5;
  margin-bottom: 20px;
}

.product_img_wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product_price {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.product_price strong { 
  color: var(--color-heading); 
}

/* Control de cantidad (cuántos cannolis quiero) */
.qty_label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-heading);
  margin-bottom: 10px;
}

.qty_control {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.qty_btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--color-accent);
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  color: var(--color-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.qty_btn:hover { 
  background: var(--color-accent); 
  color: #fff; 
}

.qty_num {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-heading);
  min-width: 24px;
  text-align: center;
}

/* Botones "¿Todos iguales?" */
.igual_label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-heading);
  margin-bottom: 10px;
}

.igual_btns { 
  display: flex; 
  gap: 10px; 
}

.igual_btn {
  padding: 7px 22px;
  border: 1.5px solid var(--color-nav-bg);
  background: transparent;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-nav-bg);
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}

.igual_btn.active { 
  background: var(--color-nav-bg); 
  color: #fff; 
}

/* Columna derecha */
.col_right {
  padding: 32px 0 80px 24px;
  border-left: 1px solid rgba(78,54,30,0.12);
}

.product_title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  color: var(--color-heading);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}

/* Sección de elección de sabor */
.choice_section  { 
  margin-bottom: 28px; 
}

.choice_label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 12px;
}

.choice_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.choice_card {
  position: relative;
  cursor: pointer;
  border-radius: 3px;
  overflow: visible;
  border: 2.5px solid transparent;
  transition: border-color 0.2s;
}

.choice_card.selected { 
  border-color: var(--color-nav-bg); 
}

.choice_card_img {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 2px;
  position: relative;
}

.choice_card_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.choice_card:hover .choice_card_img img { 
  transform: scale(1.05); 
}

.choice_card_name {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-heading);
  text-align: center;
  padding: 5px 2px 0;
}

/* Lupa para ver la descripción del sabor */
.lupa_btn {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 10;
  width: 26px;
  height: 26px;
  background: rgba(255,255,255,0.85);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  padding: 0;
}

.lupa_btn:hover { 
  background: #fff; 
}

.lupa_btn svg { 
  width: 14px; 
  height: 14px; 
  stroke: var(--color-nav-bg); 
}

/* Check que aparece sobre la tarjeta seleccionada */
.choice_check {
  display: none;
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 10;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-nav-bg);
  align-items: center;
  justify-content: center;
}

.choice_card.selected .choice_check { 
  display: flex; 
}

.choice_check svg { 
  width: 11px; 
  height: 11px; 
}

/* Separador entre cannolis cuando se piden varios diferentes */
.cannoli_unit {
  border-top: 1px dashed rgba(78,54,30,0.25);
  padding-top: 20px;
  margin-top: 4px;
}

.cannoli_unit_title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}

/* Botón de añadir al carrito */
.add_btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--color-nav-bg);
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.25s;
  margin-top: 32px;
}

.add_btn:hover { 
  background: #3a2510; 
}

/* Texto descriptivo debajo del producto */
.product_desc {
  padding: 60px 24px 80px;
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid rgba(78,54,30,0.12);
}

.product_desc p {
  font-size: 15px;
  line-height: 2;
  color: var(--color-text-light);
  font-weight: 300;
  max-width: 680px;
  margin-bottom: 24px;
}

/* Modal de confirmación al pulsar "Añadir", a veces en el html no funciona del todo bien , no entiendo bein el porqué */
.modal_overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 500;
  align-items: center;
  justify-content: center;
}

.modal_overlay.open { 
  display: flex; 
}

.modal_box {
  background: var(--color-bg);
  border-radius: 14px;
  padding: 32px 28px;
  max-width: 360px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal_close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: var(--color-nav-bg);
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal_close svg { 
  width: 14px; 
  height: 14px; 
}

.modal_text {
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-heading);
  margin-bottom: 24px;
}

.modal_text strong { 
  color: var(--color-nav-bg); 
}

.modal_btns { 
  display: flex; 
  gap: 12px; 
}

.modal_btn {
  flex: 1;
  padding: 11px 8px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.2s;
  text-align: center;
}

.modal_btn.secondary { 
  background: var(--color-nav-bg); 
  color: #fff; 
}

.modal_btn.secondary:hover { 
  background: #3a2510; 
}
.modal_btn.primary { 
  background: var(--color-accent); 
  color: var(--color-nav-bg); 
}

.modal_btn.primary:hover { 
  background: #b8955a; 
}

/* Modal de información de sabor (lupa) */
.info_overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 600;
  align-items: center;
  justify-content: center;
}

.info_overlay.open { 
  display: flex; 
}

.info_box {
  background: #fff;
  border-radius: 12px;
  padding: 28px 24px;
  max-width: 320px;
  width: 88%;
  position: relative;
  box-shadow: 0 16px 48px rgba(0,0,0,0.25);
}

.info_close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: var(--color-nav-bg);
  border: none;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info_close svg { 
  width: 12px; 
  height: 12px; 
}

.info_name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-nav-bg);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.info_text {
  font-size: 13px;
  line-height: 1.8;
  color: var(--color-text-light);
  font-weight: 300;
}


/* Boton del carrito flotante que si clicas en el te lleva a la cesta.html */
.cart_btn {
  position: fixed;
  bottom: 84px;
  right: 24px;
  z-index: 999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-nav-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.cart_btn svg { 
  width: 22px; 
  height: 22px; 
}

/* Número de artículos en el carrito */
.cart_badge {
  display: none;
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #c0392b;
  color: #fff;
  font-size: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-bg);
}

.cart_badge.visible { 
  display: flex; 
}


/* Esto es para el botón de soporte, que si clicas siempre te responde la misma respuesta automática*/
#chat-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-nav-bg);
  border: none;
  cursor: pointer;
}

#chat-btn img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* Ventana del chat */
#chat-win {
  position: fixed;
  bottom: 88px;
  right: 24px;
  z-index: 998;
  width: 280px;
  border-radius: 16px;
  background: var(--color-nav-text);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

#chat-win.open { 
  display: flex; 
}

.chat-head {
  background: var(--color-nav-bg);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-head span {
  color: var(--color-nav-text);
  font-size: 13px;
  font-weight: 700;
  flex: 1;
}

.chat-head button {
  background: none;
  border: none;
  color: var(--color-accent);
  cursor: pointer;
  font-size: 16px;
}

.chat-msgs {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
}

/* Burbuja del bot */
.bot {
  align-self: flex-start;
  background: var(--color-nav-bg);
  color: var(--color-nav-text);
  padding: 8px 12px;
  border-radius: 12px 12px 12px 2px;
  font-size: 13px;
}

/* Burbuja del usuario */
.usr {
  align-self: flex-end;
  background: var(--color-accent);
  color: var(--color-nav-bg);
  padding: 8px 12px;
  border-radius: 12px 12px 2px 12px;
  font-size: 13px;
}

.chat-foot {
  display: flex;
  gap: 6px;
  padding: 8px 10px 12px;
  border-top: 1px solid var(--color-nav-text);
}

.chat-foot input {
  flex: 1;
  border: 1px solid var(--color-nav-bg);
  border-radius: 20px;
  padding: 7px 12px;
  font-family: 'Kufam', sans-serif;
  font-size: 12px;
  background: var(--color-nav-text);
  color: var(--color-nav-bg);
  outline: none;
}

.chat-foot button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-nav-bg);
  border: none;
  cursor: pointer;
}

.chat-foot button svg {
  width: 13px;
  height: 13px;
  fill: var(--color-nav-text);
}


/*takeaway.html*/
.ta_hero {
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 24px 16px;
}

.ta_title {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 51px);
  font-weight: 700;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin-bottom: 32px;
}

.ta_intro_text {
  font-size: 14px;
  line-height: 2;
  color: var(--color-text-light);
  font-weight: 300;
  max-width: 560px;
  margin-bottom: 14px;
}

.ta_intro_text em {
  font-style: italic;
  font-family: var(--font-display);
  color: var(--color-text);
}

.ta_intro_italic {
  font-size: 13px;
  font-style: italic;
  line-height: 1.8;
  color: var(--color-text-light);
  font-weight: 300;
  margin-bottom: 48px;
}

.ta_divider {
  max-width: 960px;
  margin: 0 auto 52px;
  padding: 0 24px;
}

.ta_divider hr {
  border: none;
  border-top: 1px solid rgba(78,54,30,0.15);
}

/* Columnas de login y registro */
.ta_auth_section {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.ta_col_title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 12px;
}

.ta_col_divider {
  width: 48px;
  height: 2px;
  background: var(--color-accent);
  border: none;
  margin-bottom: 32px;
}

.ta_form_group { 
  margin-bottom: 20px; 
}

.ta_form_group label {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-heading);
  margin-bottom: 8px;
}

.ta_form_group input {
  width: 100%;
  padding: 12px 18px;
  border: none;
  border-radius: 40px;
  background: rgba(78,54,30,0.08);
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--color-heading);
  outline: none;
  transition: background 0.2s;
}

.ta_form_group input:focus { 
  background: rgba(78,54,30,0.14); 
}

/*la movida para que te peudas registrar, esto ns ni como he hecho que funcione*/
.ta_dob_row {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 8px;
}

/* Links "¿Olvidaste la contraseña?" y "¿No tienes cuenta?" */
.ta_links_row {
  display: flex;
  justify-content: space-between;
  margin-top: -8px;
  margin-bottom: 28px;
}

.ta_link_small {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--color-text-light);
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.ta_link_small:hover { 
  color: var(--color-accent); 
}

.ta_submit_btn {
  display: block;
  width: auto;
  padding: 11px 36px;
  background: rgba(78,54,30,0.12);
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: none;
  cursor: pointer;
  border-radius: 40px;
  transition: background 0.25s, color 0.25s;
  margin-top: 8px;
}

.ta_submit_btn:hover { background: var(--color-nav-bg); color: #fff; }


/*singluten.html*/
.sg_main {
  max-width: 960px;
  margin: 0 auto;
  padding: 52px 24px 100px;
}

.sg_hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 60px;
}

.sg_hero_text { 
  flex: 1; 
}

.sg_title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  color: var(--color-heading);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.05;
  margin-bottom: 28px;
}

.sg_intro {
  font-size: 13px;
  line-height: 1.9;
  color: var(--color-text-light);
  font-weight: 300;
  max-width: 520px;
  margin-bottom: 16px;
}

/* Badge Gluten Free a la derecha del hero, la fotito vaya */
.sg_badge_wrapper {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  padding-top: 8px;
}

.sg_badge {
  width: clamp(100px, 14vw, 150px);
  height: auto;
  filter: drop-shadow(2px 4px 8px rgba(0,0,0,0.12));
}

/* Sección de la tabla de alérgenos */
.sg_table_section { 
  width: 100%; 
}

.sg_table_label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 20px;
  text-align: center;
}

.sg_table_wrapper {
  width: 100%;
  overflow-x: auto;
}

.sg_table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid rgba(78,54,30,0.15);
}

.sg_table thead tr {
  border-bottom: 1px solid rgba(78,54,30,0.15);
}

.sg_table th {
  padding: 20px 12px 16px;
  text-align: center;
  vertical-align: bottom;
  border-right: 1px solid rgba(78,54,30,0.10);
  background: var(--color-bg);
}

.sg_table th:last-child { 
  border-right: none; 
}

.sg_th_producto {
  text-align: left !important;
  width: 140px;
  min-width: 120px;
}

/* Icono + etiqueta de cada columna de la cabecera */
.sg_th_inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.sg_th_inner img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.sg_th_inner span {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-heading);
}

.sg_table tbody tr {
  border-bottom: 1px solid rgba(78,54,30,0.10);
}

.sg_table tbody tr:last-child { 
  border-bottom: none; 
}

.sg_table td {
  padding: 18px 12px;
  text-align: center;
  vertical-align: middle;
  border-right: 1px solid rgba(78,54,30,0.10);
}

.sg_table td:last-child { 
  border-right: none; 
}

.sg_td_producto {
  text-align: left !important;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-heading);
}

/* Check verde, aprobado para alergénicos */
.sg_check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--color-text);
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
}

/* Cruz, no aprobado para alergénicos*/
.sg_cross {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(78,54,30,0.12);
  color: var(--color-heading);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
}

/* "Opcional": depende de la variante elegida */
.sg_opcional {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

/* Grid de productos sin gluten*/
.sgp_section {
  max-width: 960px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.sgp_cat_title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  color: var(--color-heading);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 24px;
}

.sgp_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.sgp_card {
  display: flex;
  flex-direction: column;
}

.sgp_card_img {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 10px;
}

.sgp_card_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.sgp_card:hover .sgp_card_img img { transform: scale(1.04); }

/* Etiqueta del producto (debajo de la imagen, no superpuesta) */
.sgp_card_label {
  display: block;
  background: transparent;
  padding: 6px 2px 4px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-heading);
  text-align: center;
}

/* Botón lupa sobre la imagen del producto */
.sgp_lupa {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.88);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s;
  z-index: 2;
}

.sgp_lupa:hover { 
  background: #fff; 
}

.sgp_lupa svg  { 
  width: 14px; 
  height: 14px; 
  stroke: var(--color-nav-bg); 
}

/* Pie de tarjeta: botón añadir + control de cantidad */
.sgp_card_foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 0;
}

.sgp_add_btn {
  flex: 1;
  padding: 8px 10px;
  background: var(--color-nav-bg);
  color: #fff;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s;
}

.sgp_add_btn:hover { background: #3a2510; }

.sgp_qty {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sgp_qty_btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(78,54,30,0.3);
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: var(--color-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  padding: 0;
}

.sgp_qty_btn:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.sgp_qty_num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-heading);
  min-width: 16px;
  text-align: center;
}

/* Modal de información (lupa) en singluten.html */
#sgp_info_overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 600;
  align-items: center;
  justify-content: center;
}

#sgp_info_overlay.open { 
  display: flex; 
}

.sgp_info_box {
  background: #fff;
  border-radius: 12px;
  padding: 28px 24px;
  max-width: 320px;
  width: 88%;
  position: relative;
  box-shadow: 0 16px 48px rgba(0,0,0,0.25);
}

.sgp_info_close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: var(--color-nav-bg);
  border: none;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sgp_info_close svg { 
  width: 12px; 
  height: 12px; 
}

.sgp_info_name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--color-nav-bg);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.sgp_info_text {
  font-size: 13px;
  line-height: 1.85;
  color: var(--color-text-light);
  font-weight: 300;
}

/* Modal de confirmación al añadir en singluten.html */
#sgp_modal_overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 500;
  align-items: center;
  justify-content: center;
}

#sgp_modal_overlay.open { 
  display: flex; 
}

.sgp_modal_box {
  background: var(--color-bg);
  border-radius: 14px;
  padding: 32px 28px;
  max-width: 340px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.sgp_modal_close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: var(--color-nav-bg);
  border: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sgp_modal_close svg { 
  width: 13px; 
  height: 13px; 
}

.sgp_modal_text {
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-heading);
  margin-bottom: 24px;
}

.sgp_modal_text strong { 
  color: var(--color-nav-bg); 
}

.sgp_modal_btns { 
  display: flex; 
  gap: 12px; 
}

.sgp_modal_btn {
  flex: 1;
  padding: 11px 8px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.2s;
  text-align: center;
}

.sgp_modal_btn--secondary { 
  background: var(--color-nav-bg); 
  color: #fff; 
}

.sgp_modal_btn--secondary:hover { 
  background: #3a2510; 
}

.sgp_modal_btn--primary   { 
  background: var(--color-accent); 
  color: var(--color-nav-bg); 
}

.sgp_modal_btn--primary:hover { 
  background: #b8955a; 
}


/*japon.html */
.cafe_wrapper {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 100px;
}

.cafe_intro {
  font-size: 13px;
  line-height: 1.85;
  color: var(--color-text-light);
  font-weight: 300;
  max-width: 560px;
  margin-bottom: 36px;
}

.cafe_country_title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 32px;
}

.cafe_list {
  display: flex;
  flex-direction: column;
}

.cafe_item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(78,54,30,0.10);
  align-items: start;
}

.cafe_item_img {
  width: 130px;
  height: 130px;
  border-radius: 2px;
  overflow: hidden;
}

.cafe_item_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.cafe_item:hover .cafe_item_img img { 
  transform: scale(1.04); 
}

.cafe_item_body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cafe_item_name {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.cafe_item_desc {
  font-size: 12px;
  line-height: 1.8;
  color: var(--color-text-light);
  font-weight: 300;
  max-width: 440px;
}

.cafe_item_foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.cafe_add_btn {
  padding: 8px 22px;
  background: var(--color-nav-bg);
  color: #fff;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s;
}

.cafe_add_btn:hover { 
  background: #3a2510; 
}

.cafe_qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cafe_qty_btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(78,54,30,0.3);
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  color: var(--color-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  padding: 0;
  font-family: var(--font-display);
}

.cafe_qty_btn:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.cafe_qty_num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-heading);
  min-width: 16px;
  text-align: center;
}

/* Modal de confirmación al añadir en japon.html */
.cafe_modal_overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 500;
  align-items: center;
  justify-content: center;
}

.cafe_modal_overlay.open { 
  display: flex; 
}

.cafe_modal_box {
  background: var(--color-bg);
  border-radius: 14px;
  padding: 32px 28px;
  max-width: 340px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  text-align: center;
}

.cafe_modal_close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: var(--color-nav-bg);
  border: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
}

.cafe_modal_text {
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-heading);
  margin-bottom: 24px;
}

.cafe_modal_text strong { 
  color: var(--color-nav-bg); 
}

.cafe_modal_btns { 
  display: flex; 
  gap: 12px; 
}

.cafe_modal_btn {
  flex: 1;
  padding: 11px 8px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.2s;
  text-align: center;
}

.cafe_modal_btn.secondary { 
  background: var(--color-nav-bg); 
  color: #fff; 
}

.cafe_modal_btn.secondary:hover { 
  background: #3a2510; 
}

.cafe_modal_btn.primary   { 
  background: var(--color-accent); 
  color: var(--color-nav-bg); 
}

.cafe_modal_btn.primary:hover { 
  background: #b8955a; 
}


/*cesta.html*/
.cesta_wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 100px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

.cesta_title {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 51px);
  font-weight: 700;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 32px;
  grid-column: 1 / -1;
}

.cesta_list {
  display: flex;
  flex-direction: column;
}

/* Cabecera de columnas de la lista */
.cesta_list_header {
  display: grid;
  grid-template-columns: 1fr 100px 130px;
  gap: 16px;
  padding: 0 0 12px 108px;
  border-bottom: 1px solid rgba(78,54,30,0.15);
  margin-bottom: 4px;
}

.cesta_list_header span {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* Fila de cada producto */
.cesta_item {
  display: grid;
  grid-template-columns: 80px 1fr 100px 130px;
  gap: 16px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(78,54,30,0.10);
  position: relative;
}

.cesta_item_img {
  width: 80px;
  height: 80px;
  border-radius: 2px;
  overflow: hidden;
}

.cesta_item_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cesta_item_info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cesta_item_name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-heading);
}

.cesta_item_sub {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 400;
  color: var(--color-accent);
  letter-spacing: 0.06em;
}

.cesta_item_price {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-heading);
  text-align: right;
}

/* Control de cantidad en la cesta */
.cesta_qty {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cesta_qty_btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(78,54,30,0.3);
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  color: var(--color-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  padding: 0;
  font-family: var(--font-display);
}

.cesta_qty_btn:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.cesta_qty_num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-heading);
  min-width: 18px;
  text-align: center;
}

/* Botón x para eliminar un producto de la cesta */
.cesta_remove {
  position: absolute;
  left: -28px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(78,54,30,0.35);
  font-size: 16px;
  transition: color 0.2s;
  padding: 4px;
  font-family: var(--font-display);
}

.cesta_remove:hover { 
  color: #c0392b; 
}

/* Panel de resumen (columna derecha, sticky) */
.cesta_summary {
  background: transparent;
  border: none;
  padding: 28px 24px;
  position: sticky;
  top: 100px;
}

.cesta_summary_title {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.cesta_summary_lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.cesta_summary_line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.cesta_summary_line_name {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--color-text-light);
  font-weight: 400;
  flex: 1;
}

.cesta_summary_line_qty {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--color-accent);
  font-weight: 700;
  white-space: nowrap;
}

.cesta_summary_divider {
  border: none;
  border-top: 1px solid rgba(78,54,30,0.15);
  margin: 16px 0;
}

.cesta_summary_subtotal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
}

.cesta_summary_subtotal_label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

.cesta_summary_subtotal_val {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--color-heading);
}

/* Botón principal para proceder al pago */
.cesta_pay_btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--color-nav-bg);
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.25s;
  text-align: center;
}

.cesta_pay_btn:hover { 
  background: #3a2510; 
}

/* Modal de confirmación de pedido */
.pay_overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 700;
  align-items: center;
  justify-content: center;
}

.pay_overlay.open { 
  display: flex; 
}

.pay_box {
  background: var(--color-bg);
  border-radius: 14px;
  padding: 40px 32px;
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.pay_icon  { 
  font-size: 40px; 
  margin-bottom: 16px; 
}

.pay_title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--color-heading);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.pay_text {
  font-size: 13px;
  line-height: 1.8;
  color: var(--color-text-light);
  font-weight: 300;
  margin-bottom: 28px;
}

.pay_close_btn {
  display: inline-block;
  padding: 12px 36px;
  background: var(--color-nav-bg);
  color: #fff;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s;
}

.pay_close_btn:hover { 
  background: #3a2510; 
}


/*error.html, este navbar es mas sencillo porque se supone que es la pagina de error, solo esta lo básico del navbar y sin footer*/
.error_page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background-color: var(--color-bg);
  text-align: center;
  padding: 40px 24px;
}

.error_img {
  width: clamp(120px, 20vw, 180px);
  height: auto;
  margin-bottom: 8px;
}

.error_code {
  font-family: var(--font-display);
  font-size: clamp(64px, 12vw, 100px);
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1;
}

.error_title {
  font-family: var(--font-display);
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.04em;
}

.error_desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--color-text-light);
  line-height: 1.7;
}


/*pyr.html*/
.pyr_hero {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.pyr_intro {
  font-size: 13px;
  line-height: 1.85;
  color: var(--color-text-light);
  font-weight: 300;
  max-width: 520px;
  margin-top: 20px;
}

.pyr_icon img { 
  width: clamp(80px, 12vw, 130px); 
  height: auto; 
}

.pyr_list {
  max-width: 960px;
  margin: 0 auto;
  padding: 8px 24px 80px;
}

.pyr_item {
  border-top: 1px solid rgba(84,104,69,0.20);
  padding: 22px 0;
}

.pyr_item:last-child {
  border-bottom: 1px solid rgba(84,104,69,0.20);
}

.pyr_num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.06em;
}

.pyr_q_text {
  font-family: var(--font-display);
  font-size: clamp(14px, 2vw, 16px);
  font-weight: 600;
  color: var(--color-heading);
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}

.pyr_answer p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--color-text-light);
  font-weight: 300;
  padding-left: 20px;
}


/*el footer PARA TODAS LAS PAGINAS POR IGUAL*/
.footer {
  padding: 0;
  overflow: hidden;
}

/*El span ese con las ilustraciones que van pasando*/
.marquee-strip {
  width: 100%;
  background-color: #b5a882;
  overflow: hidden;
  padding: 10px 0;
  border-top: 2px solid #9a8e6e;
}

.marquee-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: scroll-left 20s linear infinite;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0 12px;
}

.marquee-item span {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #5c4a2a;
  letter-spacing: 0.1em;
}

.marquee-item img {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Bloque principal del footer: tres columnas , la zona más oscura del footer*/
.footer-main {
  background-color: #4e2e10;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 40px 60px;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-col h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #f0e6d0;
  margin-bottom: 10px;
}

.footer-col p {
  font-size: 13px;
  color: #c8b89a;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.footer-links a {
  color: #c8b89a;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.footer-links a:hover { 
  color: var(--color-accent); 
}

.footer-links img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.8;
}

/* Columna del mapa de Google */
.footer-map { 
  background-color: #4e2e10; 
}

.footer-map iframe {
  display: block;
  width: 100%;
  height: 220px;
}

/* Franja de copyright al fondo */
.footer-copy {
  background-color: #4e2e10;
  text-align: center;
  padding: 14px;
  border-top: 1px solid #6b4a28;
}

.footer-copy p {
  font-size: 12px;
  color: #a08060;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
}


/*las @ para que funcione las animaciones*/
@keyframes scroll-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}


/*LA SECCIÓN DEL RESPONSIVE PARA MOBILES*/
@media (max-width: 640px) {

  /* Navbar: ocultar links desktop, mostrar hamburguesa */
  .navbar_wrapper { 
    padding: 8px 16px; 
  }

  .navbar {
    justify-content: center;
    gap: 0;
    position: relative;
    overflow: visible;
  }

  .navbar .nav_item,
  .navbar .nav_icon { 
    display: none; 
  }

  /* Botón hamburguesa */
  .nav_hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
  }

  .nav_hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.28s ease, opacity 0.28s ease, width 0.28s ease;
    transform-origin: center;
  }

  /* Animación de las tres líneas a X al abrir */
  .navbar.open .nav_hamburger span:nth-child(1) { 
    transform: translateY(7px) rotate(45deg); 
  }

  .navbar.open .nav_hamburger span:nth-child(2) { 
    opacity: 0; width: 0; 
  }

  .navbar.open .nav_hamburger span:nth-child(3) { 
    transform: translateY(-7px) rotate(-45deg); 
  }

  /* Menú desplegable mobile */
  .nav_mobile_menu {
    display: none;
    flex-direction: column;
    background: var(--color-nav-bg);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 300;
    padding: 8px 0 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  }

  .navbar.open .nav_mobile_menu { 
    display: flex; 
  }

  .nav_mobile_menu a {
    font-family: 'Kufam', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-nav-text);
    padding: 11px 24px;
    display: block;
    transition: color 0.2s;
  }

  .nav_mobile_menu a:hover { 
    color: var(--color-accent); 
  }

  .nav_mobile_sep {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 4px 24px;
  }

  .nav_mobile_menu .nav_mobile_gf {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 24px;
  }

  .nav_mobile_menu .nav_mobile_gf img {
    width: 20px;
    height: 20px;
    object-fit: contain;
  }

  /* Secciones de index: foto de fondo, texto encima */
  .seccion { 
    padding: 0 0 48px; 
  }

  .seccion_title { 
    padding: 32px 22px 0; 
    margin-bottom: 0; 
  }

  .sobre_body,
  .sobre_body.invertido {
    grid-template-columns: 1fr;
    gap: 0;
    position: relative;
  }

  .sobre_img_wrapper {
    order: 1;
    aspect-ratio: 4/5;
    border-radius: 0;
  }

  .sobre_img_wrapper img { 
    opacity: 0.18; 
  }

  /* El texto sobre la imagen */
  .sobre_text,
  .sobre_body.invertido .sobre_text {
    order: 2;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px 22px;
  }

  .sobre_text h2 { 
    font-size: clamp(19px, 5vw, 26px); 
    margin-bottom: 16px; 
  }

  .sobre_text p  { 
    font-size: 14px; 
    color: var(--color-nav-bg); 
  }

  /* Menú: pastelería en columna única */
  .menu_grid { 
    gap: 12px; 
  }

  .menu_card_label { 
    font-size: 10px; 
  }

  .pasteleria_top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .star_decor { 
    width: 25px; 
  }

  .star_top_left { 
    top: -15px;  
    left: 5px; 
  }

  .star_bottom_left { 
    bottom: 30px; 
    left: -10px; 
  }

  .star_bottom_right{ 
    bottom: 20px; 
    right: -10px; 
  }

  .sello_decor { 
    width: 60px; 
    top: -20px; 
    right: 5px; 
  }

  /* Carrusel: 2 items visibles en mobile */
  .carousel_item { 
    flex: 0 0 calc(50% - 12px); 
  }

  /* Cannoli: columna única */
  .product_page { 
    grid-template-columns: 1fr; 
  }

  .col_left { 
    position: static; 
    padding: 24px 0 0; 
  }

  .col_right { 
    padding: 24px 0 60px; 
    border-left: none; 
    border-top: 1px solid rgba(78,54,30,0.12); 
  }

  /* Japón */
  .cafe_item { 
    grid-template-columns: 90px 1fr; 
    gap: 14px; 
  }

  .cafe_item_img { 
    width: 90px; 
    height: 90px; 
  }

  .cafe_item_foot { 
    flex-wrap: wrap; 
    gap: 8px; 
  }

  /* Take Away */
  .ta_hero { 
    padding: 36px 22px 16px; 
  }

  .ta_auth_section { 
    grid-template-columns: 1fr; 
    padding: 0 22px 60px; 
    gap: 44px; 
  }

  /* Sin Gluten */
  .sg_main  { 
    padding: 36px 22px 80px; 
  }

  .sg_hero  { 
    flex-direction: column; 
    gap: 24px; 
    margin-bottom: 40px; 
  }

  .sg_badge_wrapper { 
    align-self: flex-end; 
    padding-top: 0; 
  }

  .sg_badge { 
    width: 90px; 
  }

  .sg_table th,
  .sg_table td { 
    padding: 12px 8px; 
  }

  .sg_th_inner img { 
    width: 30px; 
    height: 30px; 
  }

  .sg_th_inner span { 
    font-size: 9px; 
  }

  .sgp_section { 
    padding: 40px 22px 60px; 
    gap: 44px; 
  }

  .sgp_grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 14px; 
  }

  .sgp_cat_title { 
    font-size: clamp(24px, 7vw, 32px); 
  }

  .sgp_add_btn { 
    font-size: 10px; 
    padding: 7px 6px; 
  }

  /* P&R */
  .pyr_hero { 
    padding: 32px 22px 24px; 
  }

  .pyr_list { 
    padding: 8px 22px 60px; 
  }

  /* Cesta */
  .cesta_wrapper {
    grid-template-columns: 1fr;
    padding: 32px 22px 80px;
    gap: 32px;
  }

  .cesta_list_header { 
    display: none; 
  }

  .cesta_item {
    grid-template-columns: 72px 1fr;
    grid-template-rows: auto auto;
  }

  .cesta_item_img { 
    width: 72px; 
    height: 72px; 
    grid-row: 1 / 3; 
  }

  .cesta_item_price { 
    text-align: left; 
  }

  .cesta_remove { 
    left: -22px; 
  }

  .cesta_summary { 
    position: static; 
  }

  /* Footer */
  .footer-main {
    flex-direction: column;
    padding: 30px 22px;
    gap: 24px;
  }

  .footer-col { 
    width: 100%; 
  }

  .footer-map { 
    width: 100%; 
    padding: 0; 
  }

  .footer-map iframe {
    width: 100%;
    height: 220px;
    border-radius: 0;
  }
}