/* ========= Variables y tipografía ========= */
:root{
  --brand: #096a36;
  --text: #1d2939;
  --muted: #667085;
  --bg-soft: #f7faf8;
  --card-border: #e9eef0;
}
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

html,body{ height:100%; }
body{
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans";
  color: var(--text);
  background: linear-gradient(180deg, #fbfdfc 0%, #ffffff 60%);
}

/* ========= Layout base ========= */
.container-80{ width:80%; margin:0 auto; }
@media (max-width: 1200px){ .container-80{ width:90%; } }
@media (max-width: 992px){ .container-80{ width:94%; } }

.navbar{ box-shadow: 0 1px 0 rgba(16,24,40,.06); }

/* ========= Header del evento ========= */
.site-header{ background:#fff; border-bottom:1px solid #eef2f3; }
.site-header .logo{
  height:auto !important; width:auto !important; max-width:100%;
  display:block; margin:0 auto .75rem;
}
.site-header h1{ font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.2rem); margin:0; font-weight:700; }
.site-header h2{ font-size: clamp(1rem, .9rem + .6vw, 1.25rem); margin:.35rem 0; font-weight:600; color: var(--muted); }
.site-header h4{ font-weight:400; color: var(--muted); margin:.25rem 0 0; }

/* ========= Cards ========= */
.card{
  border:0; border-radius:16px; overflow:hidden; background:#fff;
  box-shadow: 0 6px 20px rgba(16,24,40,.06);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover{ transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16,24,40,.1); }
.card-img-top{ height:220px; object-fit:cover; }

/* ========= Secciones / texto ========= */
.section{ padding: 1rem 0 2rem; }
.section-title{ font-weight:700; margin-bottom:.5rem; }
.section-sub{ color: var(--muted); margin-bottom:1.25rem; }

/* ========= Formularios ========= */
.form-control, .form-select{ border-radius:12px; border-color:#e3e8eb; }
.form-control:focus, .form-select:focus{
  border-color: var(--brand);
  box-shadow: 0 0 0 .2rem rgba(9,106,54,.15);
}

/* ========= Páginas ========= */
.mesa-card .card-title{ margin-bottom:.25rem; }
.mesa-card .card-text{ color:var(--muted); }
.mesa-badge{
  position:absolute; top:12px; left:12px;
  background: rgba(0,0,0,.6); color:#fff; border-radius:999px;
  padding:.25rem .6rem; font-size:.8rem;
}
.mesa-photo{ border-radius:16px; box-shadow: 0 6px 20px rgba(16,24,40,.06); }

/* ========= Admin: tabla que entre en el 80% ========= */
.table> :not(caption)>*>*{ padding:.55rem .7rem; }
.admin-mesas table{ table-layout:fixed; width:100%; }
.admin-mesas .w-order   { width:56px;  min-width:56px; }
.admin-mesas .w-title   { width:220px; min-width:220px; }
.admin-mesas .w-expert  { width:150px; min-width:150px; }
.admin-mesas .w-cap     { width:56px;  min-width:56px; }
.admin-mesas .w-vis     { width:70px;  min-width:70px;  text-align:center; }
.admin-mesas .w-desc    { width:280px; min-width:260px; }
.admin-mesas .w-actions { width:110px; min-width:110px; }
.admin-mesas textarea{ min-height:110px; }
/* Byline bajo título de mesa */
.byline{ margin-top:.2rem; font-weight:600; color:#667085; }

/* === Footer === */
.site-footer {
  background: #096a36;
  color: #fff;
  margin-top: 40px;
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.footer-left {
  flex: 0 0 30%;
  max-width: 30%;
  display: flex;
  gap: 16px;
  align-items: center;
}
.footer-logo {
  max-height: 80px;
  height: auto;
  width: auto;
  display: block;
}
.footer-org {
  line-height: 1.35;
  font-size: 0.95rem;
}
.footer-right {
  flex: 1 1 70%;
  max-width: 70%;
}
.footer-colab-title {
  margin: 0 0 10px 0;
  font-weight: 600;
}
.colab-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* 12 slots en 2 filas en desktop */
  gap: 12px;
}
.logo-slot {

  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  color: #fff;
  opacity: 0.95;
}
.colab-img {
  max-height: 128px;
  max-width: 100%;
  height: auto;
  width: auto;
  display: block;
  filter: none;
}

/* Responsive */
@media (max-width: 992px) {
  .footer-left { flex: 0 0 40%; max-width: 40%; }
  .footer-right { max-width: 60%; }
  .colab-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 680px) {
  .footer-inner { flex-direction: column; }
  .footer-left, .footer-right { max-width: 100%; flex-basis: 100%; }
  .colab-grid { grid-template-columns: repeat(3, 1fr); }
}
/* Footer tweaks: stack logo and address; bigger logo */
.site-footer .footer-left { 
  flex-direction: column;      /* antes estaban en fila */
  align-items: flex-start; 
  gap: 10px;
}
.site-footer .footer-logo { 
  max-height: 120px;           /* un poco más grande en desktop */
  height: auto; 
  width: auto; 
}
@media (max-width: 680px) {
  .site-footer .footer-logo { max-height: 90px; }
}

/* Footer: centrar columna izquierda */
.site-footer .footer-left {
  align-items: center;   /* centra el contenido dentro de la columna */
  text-align: center;    /* centra el texto */
}

.site-footer .footer-logo {
  margin: 0 auto;        /* centra la imagen del logo */
}
.site-footer .footer-org {
  text-align: center;    /* asegura texto centrado */
}

/* Navbar fija arriba, siempre visible */
.navbar.navbar-expand-lg{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 2000;                 /* por encima del resto */
  background: #096a36;           /* verde de la web */
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}

/* Colores legibles dentro de la navbar */
.navbar.navbar-expand-lg a,
.navbar.navbar-expand-lg .nav-link {
  color: #fff !important;
}

/* Evita que el contenido quede oculto bajo la navbar */
body{ padding-top: 72px; }       /* ajusta si tu navbar es más alta/baja */
@media (max-width: 992px){
  body{ padding-top: 64px; }
}

/* Navbar con fondo al 90% de opacidad */
.navbar.navbar-expand-lg{
  /* fallback sólido por si acaso */
  background-color: #096a36;
  /* 90% opaco (solo el fondo) */
  /*background-color: rgba(9, 106, 54, 0.9) !important;*/
  background-color: rgba(255, 255, 255, 0.9) !important;
  /* opcional: un pelín de blur para que el contenido no distraiga */
  /* backdrop-filter: saturate(120%) blur(2px); */
}

/* Mantén los textos totalmente blancos/legibles */
.navbar.navbar-expand-lg .nav-link,
.navbar.navbar-expand-lg a { color: #fff !important; }

a {
    color: rgb(255 255 255);
    text-decoration: underline;
}