:root{
  --wrap: 980px;
  --textDark: #0b0f14;
  --mutedDark: #22304a;
}

/* RESET */
*{ box-sizing: border-box; }

body{
  margin: 0;
  font-family: "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Arial, sans-serif;
  background: #ffffff;
  color: var(--textDark);
}

/* ===== CONTENEDOR ===== */
.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 22px 16px;
}

/* ===== TOPBAR ===== */
.topbar{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.topbar-inner{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.navlink{
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  text-decoration: none;
  font-weight: 800;
  color: var(--textDark);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.92);
}

/* ===== HERO ===== */
.hero{
  min-height: 650px;
  position: relative;                 /* CLAVE */
  background-image: url("img/Burduntzi.jpg");
  background-size: cover;
  background-position: 50% 40%;
  background-repeat: no-repeat;
}

/* ===== CAJA SOBRE LA FOTO ===== */
.hero-box{
  position: absolute;                 /* CLAVE */
  top: 210px;
  right: 40px;

  background: rgba(255,255,255,0.92);
  border-radius: 18px;
  padding: 18px 22px;
  max-width: 420px;

  box-shadow: 0 14px 40px rgba(0,0,0,0.20);
}

.hero-box h1{
  margin: 0 0 8px;
  font-size: 2.4rem;
}

.hero-box .sub{
  margin: 0 0 10px;
  color: var(--mutedDark);
  font-weight: 700;
}

.tel{
  margin: 10px 0 6px;
  font-size: 1.4rem;
  font-weight: 900;
}

.tel a{
  color: var(--textDark);
  text-decoration: none;
}



/* ===== FOOTER ===== */
.foot{
  text-align: center;
  padding: 18px 16px 26px;
  color: rgba(0,0,0,0.55);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px){
  .hero-box{
    position: static;
    margin: 16px;
    max-width: 100%;
  }
}



/* ===== HORARIO — TARJETA PREMIUM (co/* ===== HORARIO: tarjeta autocontenida ===== */
.page-index .horario{
  /* ANCHO de la caja: toca aquí */
  width: 520px;              /* <- cambia este número */
  max-width: 92vw;           /* para móvil */
  
  margin: 110px auto;        /* centrada */
  padding: 18px 22px;

  border-radius: 22px;

  /* BORDE de la caja: toca aquí */
  border: 2px solid rgba(0,0,0,0.12);  /* <- grosor/color del borde */
  background: rgba(255,255,255,0.97);

  box-shadow:
    0 26px 70px rgba(0,0,0,0.18),
    0 10px 26px rgba(0,0,0,0.10);
}

/* Título */
.page-index .horario h2{
  margin: 0 0 14px;
  font-size: 1.10rem;
  font-weight: 900;
  color: rgba(15,20,30,0.92);
}

/* Lista limpia */
.page-index .horario ul{
  list-style: none;
  margin: 0;
  padding: 0;
}

/* FILA: día izquierda / hora derecha */
.page-index .horario li{
  display: flex;
  align-items: baseline;
  justify-content: space-between;  /* <- CLAVE: extremos */
  gap: 18px;

  padding: 9px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* última sin línea */
.page-index .horario li:last-child{
  border-bottom: none;
}

/* Día (izquierda) */
.page-index .horario li span:first-child{
  font-weight: 700;
  color: rgba(0,0,0,0.82);
  white-space: nowrap;
}

/* Hora (derecha) */
.page-index .horario li span:last-child{
  font-weight: 650;
  color: rgba(0,0,0,0.72);
  white-space: nowrap;
  text-align: right;
}

/* Cerrado */
.page-index .horario .cerrado{
  font-weight: 900;
  color: rgba(0,0,0,0.92);
}

/* ===== CONTROL DE APARICIÓN / OCULTACIÓN (ANTI-REBOTE) ===== */

/* Estado oculto inicial */
#horario, 
#mapa{
  opacity: 0;
  transform: translateY(28px);
  pointer-events: none;
}

/* Estado visible (animado solo al entrar) */
.section-visible{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

/* Al ocultar: sin animación (evita rebote feo) */
.section-hidden{
  transition: none !important;
}

/* ===== LOCALIZACIÓN + BOTÓN GOOGLE (HERO) ===== */
.dir{
  margin: 6px 0 0;
  font-weight: 700;
  color: rgba(0,0,0,0.78);
  letter-spacing: 0.01em;
}

.mapa{
  margin: 8px 0 0;
}

/* Enlace Google estilo profesional */
.mapa a{
  display: inline-block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--mutedDark);
  text-decoration: none;
  border-bottom: 1px solid rgba(34,48,74,0.35);
  padding-bottom: 2px;
  transition: all 0.15s ease;
}

.mapa a:hover{
  color: #000;
  border-bottom-color: #000;
}

.mapa-section{
  margin: 40px auto 10px;
  max-width: 980px;
}

.mapa-section h2{
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--mutedDark);
}

.map-embed{
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(0,0,0,0.18), 0 6px 16px rgba(0,0,0,0.10);
  border: 1px solid rgba(0,0,0,0.06);
}

.map-embed iframe{
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}


/* Mensaje "Se admiten perros" fino */
.msg{
  margin: 0 0 6px;
  color: rgba(0,0,0,0.70);
  font-weight: 650;
}

.hero-box{
  backdrop-filter: blur(6px);
}

.tel{
  margin: 14px 0 6px;
}

.dir{
  margin: 2px 0 6px;
  font-weight: 700;
  color: rgba(0,0,0,0.82);
}

/* Bloque ubicación con presencia */
.dir,
.mapa{
  display: block;
}

/* Botón Google más firme, menos decorativo */
.mapa a{
  display: inline-block;
  margin-top: 4px;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;

  background: rgba(34,48,74,0.12);
  color: var(--mutedDark);
  text-decoration: none;

  transition: background 0.15s ease, transform 0.1s ease;
}

.mapa a:hover{
  background: rgba(34,48,74,0.20);
  transform: translateY(-1px);
}

html{
  scroll-behavior: smooth;
}

/* Para que al ir a #horario o #mapa no quede oculto bajo la topbar */
#horario, #mapa{
  scroll-margin-top: 90px;
}

/* Ocultar secciones hasta interacción */
#horario,
#mapa{
  opacity: 0;
  transform: translateY(40px);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Cuando se activan */
.section-visible{
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

html{ scroll-behavior: smooth; }

/* Para que al ir a #horario / #mapa no quede tapado bajo la topbar */
#horario, #mapa{ scroll-margin-top: 90px; }

/* Separación clara entre Horario y Mapa */
#horario{ margin-bottom: 90px; }
.mapa-section{ margin-top: 90px; }

/* Estado oculto inicial (sin transición aquí) */
#horario, #mapa{
  opacity: 0;
  transform: translateY(28px);
  pointer-events: none;
}

/* Al mostrarse: animación suave */
.section-visible{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

/* Al ocultarse: sin animación (evita rebote) */
.section-hidden{
  transition: none !important;
}

.brand-home{
  text-decoration: none;
  color: var(--textDark);
  font-weight: 900;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.brand-home:hover{
  text-decoration: underline;
}

/* =========================
   FIX TOPBAR EN MÓVIL
   ========================= */
/**@media (max-width: 640px){

  .topbar-inner{
    justify-content: flex-start; /* en móvil, mejor apilar */
    row-gap: 8px;
  }

  /* El brand ocupa fila completa */
  .brand{
    width: 100%;
    white-space: normal;   /* CLAVE: permitimos partir el texto */
    line-height: 1.1;
  }

  /* Enlaces: más compactos y con salto natural en varias filas */
  .navlink{
    padding: 8px 10px;     /* recorta ancho */
    font-size: 15px;       /* un pelín menor */
  }
}

/* ======= BANNER WEB DE PRUEBA ======= */
.banner-prueba{
  position: sticky;
  top: 0;
  z-index: 9999;
  padding: 10px 14px;
  font-weight: 700;
  text-align: center;
  background: rgba(180, 0, 0, 0.92);
  color: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.25);
}
.banner-prueba small{
  display: block;
  font-weight: 600;
  opacity: 0.95;
}
