:root{
  --bg: #f2eadf;
  --card: #ffffff;
  --text: #1b1b1b;
  --muted: #6b6b6b;
  --gold:#caa95a;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --radius: 22px;
}

*{box-sizing:border-box}

html,body{ 
  margin:0;
  padding:0;
}

/* --- CAMBIO FUNDAMENTAL AQUÍ --- */
body{
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg); /* Se mantiene el fondo simple */
  color:var(--text);

  /* SE ELIMINA height:100% y display:flex */
  /* Ahora el contenido fluye desde arriba de forma natural */
  padding: 80px 16px 40px; /* Añadimos padding para centrar y dar espacio */
}

.wrapper{
  width:min(520px, 92vw);
  margin: 0 auto; /* Centra el contenido horizontalmente */
}

.card{
  background:var(--card);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  width: 100%;
  padding: 0 22px 28px; 
  display: flex;
  flex-direction: column;
  align-items: center; 
}

.logo{
  width: 128px; 
  height: 128px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff 0%, #f6f1e8 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.10);
  margin-top: -64px; 
  flex-shrink: 0;
  z-index: 5;
  position: relative;
}

.logo img{
  width: 92%;
  height: auto;
  object-fit: contain;
  border-radius: 50%;
  image-rendering: -webkit-optimize-contrast;
}

.brand{
  display:flex;
  align-items:center;
  flex-direction:column;
  margin-top: 12px; 
}

/* --- FIN DE LA SECCIÓN CRÍTICA --- */

.brand h1{
  font-size: 1.35rem; 
  margin: 0 0 4px;
  letter-spacing:.3px;
  text-align: center;
}

.brand p{
  margin:0;
  color:var(--muted);
  font-weight:500;
  text-align: center;
}

.hr{
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(0,0,0,.08), transparent);
  margin: 20px 0 18px;
  width: 100%;
}

.btns{
  display:flex;
  flex-direction:column;
  gap:14px;
  width: 100%;
}

button.link{
  width:100%;
  border:0;
  border-radius: 999px;
  padding:16px 20px;
  font-size: .98rem;
  letter-spacing:.4px;
  text-transform: uppercase;
  font-weight:700;
  background: linear-gradient(180deg, #e8d7b4, #caa95a);
  color:#201a0a;
  box-shadow: 0 6px 14px rgba(202,169,90,.36), inset 0 1px 0 rgba(255,255,255,.6);
  cursor:pointer;
  transition: transform .05s ease, box-shadow .2s ease, filter .2s ease;
  position:relative;
  overflow:hidden;
}

button.link:focus-visible{ outline: 3px solid rgba(202,169,90,.6) }
button.link:hover{
  filter:saturate(1.06);
  box-shadow: 0 10px 22px rgba(202,169,90,.42), inset 0 1px 0 rgba(255,255,255,.7);
}
button.link:active{ transform: translateY(1px) }
button.link .bi{
  margin-right:10px; font-size:1.05rem; vertical-align:-2px;
}

.secondary{ background: #d8c39a; }
.map-wrap{
  margin-top: 22px;
  background: #fff;
  border:1px solid #eee3cf;
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
  width: 100%;
}

.map-head{
  padding: 14px 16px;
  font-weight:600;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.map-head small{ color:var(--muted); font-weight:500; }
.map{ width:100%; height: 280px; border:0; display:block; }
.footer{ text-align:center; color:var(--muted); margin-top:12px; font-size:.92rem; }

/* --- AJUSTES PARA PANTALLAS MÁS GRANDES --- */
@media (min-width: 421px){
  .logo{ 
    width: 160px; 
    height: 160px;
    margin-top: -80px;
  }
  .brand h1{ font-size: 1.6rem }
}
.main-footer .v-logo {
    color: var(--primary-color);
    font-weight: bold;
}

@media (max-width: 768px) {
  #timeslots-grid {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
  }
}
.developer-credit {
    text-decoration: none;
    text-align: center;
    color: inherit;
}
.main-footer {
    text-align: center;
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-color-muted);
}

