/* Casa Azahar · demo · estilos comunes (web pública, reserva y panel) */
:root {
  --azul: #17324d;
  --azul-2: #24496d;
  --teja: #d9663a;
  --teja-osc: #b9502a;
  --crema: #f7f2ea;
  --crema-2: #efe6d8;
  --verde: #2f7d5b;
  --rojo: #b5483a;
  --texto: #1f2b38;
  --suave: #5d6b7a;
  --borde: #e2dbd0;
  --blanco: #fff;
  --sombra: 0 10px 30px rgba(23, 50, 77, .10);
  --radio: 14px;
  --radio-s: 9px;
  --titular: "Fraunces", Georgia, "Times New Roman", serif;
  --cuerpo: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  /* colores por origen de reserva */
  --o-web: #2f7d5b;
  --o-booking: #1f5fa8;
  --o-airbnb: #e0565b;
  --o-telefono: #7a6a58;
  --o-bloqueo: #8f98a3;

  /* colores por regla de precio */
  --r-base: #eef1f4;
  --r-temporada: #fbe3c8;
  --r-finde: #dcebf8;
  --r-festivo: #f6d6e0;
  --r-periodo: #f3c3ad;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--cuerpo); color: var(--texto); background: var(--blanco); line-height: 1.55; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--azul-2); }
h1, h2, h3 { font-family: var(--titular); font-weight: 600; line-height: 1.15; color: var(--azul); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.contenedor { width: min(1120px, 100% - 32px); margin-inline: auto; }
.seccion { padding: clamp(48px, 8vw, 88px) 0; }
.seccion-crema { background: var(--crema); }
.antetitulo { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teja); font-weight: 700; margin-bottom: .6em; display: block; }
.suave { color: var(--suave); }
.oculto { display: none !important; }

/* ---------- cinta de demostración ---------- */
.cinta-demo { background: var(--azul); color: #e6eef6; font-size: .82rem; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; align-items: center; padding: 7px 16px; text-align: center; }
.cinta-demo b { color: #fff; font-weight: 600; }
.cinta-demo a, .cinta-autor { color: #ffd2bd; font-weight: 600; }
.cinta-panel { background: var(--teja); color: #fff !important; padding: 3px 10px; border-radius: 999px; text-decoration: none; }

/* ---------- cabecera ---------- */
.cabecera { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--borde); display: flex; justify-content: space-between; align-items: center; padding: 10px max(16px, calc((100% - 1120px) / 2)); }
.logo { text-decoration: none; }
.logo-marca { font-family: var(--titular); font-size: 1.45rem; font-weight: 700; color: var(--azul); letter-spacing: .01em; }
.menu { display: flex; align-items: center; gap: 18px; }
.menu > a:not(.boton) { text-decoration: none; color: var(--texto); font-weight: 500; font-size: .95rem; }
.idiomas { display: inline-flex; border: 1px solid var(--borde); border-radius: 999px; overflow: hidden; }
.idiomas button { border: 0; background: transparent; padding: 4px 9px; font: 600 .75rem var(--cuerpo); color: var(--suave); cursor: pointer; }
.idiomas button.activo { background: var(--azul); color: #fff; }
@media (max-width: 640px) {
  .menu > a:not(.boton) { display: none; }
  .menu { gap: 10px; }
  .logo-marca { font-size: 1.2rem; }
}

/* ---------- botones y formularios ---------- */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--teja); color: #fff; border: 0; border-radius: 999px; padding: 12px 22px; font: 600 1rem var(--cuerpo); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.boton:hover { background: var(--teja-osc); }
.boton:active { transform: translateY(1px); }
.boton[disabled] { opacity: .5; cursor: not-allowed; }
.boton-reservar { padding: 9px 18px; font-size: .92rem; }
.boton-sec { background: transparent; color: var(--azul); border: 1.5px solid var(--azul); }
.boton-sec:hover { background: var(--azul); color: #fff; }
.boton-peq { padding: 7px 14px; font-size: .88rem; }
.boton-azul { background: var(--azul); }
.boton-azul:hover { background: var(--azul-2); }
.boton-texto { background: none; border: 0; color: var(--azul-2); font: 600 .92rem var(--cuerpo); cursor: pointer; padding: 4px; text-decoration: underline; }

.campo { display: flex; flex-direction: column; gap: 5px; }
.campo label, .etiqueta { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--suave); }
input, select, textarea { font: inherit; color: var(--texto); background: #fff; border: 1.5px solid var(--borde); border-radius: var(--radio-s); padding: 11px 12px; width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--azul-2); box-shadow: 0 0 0 3px rgba(36, 73, 109, .15); }
textarea { min-height: 90px; resize: vertical; }
.rejilla-campos { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* ---------- tarjetas, avisos, chapas ---------- */
.tarjeta { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); box-shadow: var(--sombra); }
.tarjeta-cuerpo { padding: 20px; }
.aviso { border-radius: var(--radio-s); padding: 12px 14px; font-size: .92rem; background: var(--crema); border-left: 4px solid var(--teja); }
.aviso-ok { background: #e8f3ed; border-left-color: var(--verde); }
.aviso-error { background: #f8e6e3; border-left-color: var(--rojo); }
.aviso-demo { background: #eef3f8; border-left-color: var(--azul-2); }
.chapa { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--crema-2); color: var(--azul); white-space: nowrap; }
.chapa::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.chapa-web { color: var(--o-web); background: #e3f1ea; }
.chapa-booking { color: var(--o-booking); background: #e1ecf8; }
.chapa-airbnb { color: var(--o-airbnb); background: #fbe7e7; }
.chapa-telefono { color: var(--o-telefono); background: #efe9e2; }
.chapa-bloqueo { color: var(--o-bloqueo); background: #eef0f2; }

/* ---------- pie ---------- */
.pie { background: var(--azul); color: #d5e0ea; margin-top: 0; }
.pie a { color: #ffd2bd; }
.pie h4 { color: #fff; margin: 0 0 8px; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.pie .logo-marca { color: #fff; }
.pie-rejilla { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding: 44px 0 28px; font-size: .92rem; }
.pie-lema { margin-top: 6px; color: #b9c8d6; }
.pie-legal { display: flex; flex-direction: column; gap: 6px; }
.pie-demo { border-top: 1px solid rgba(255, 255, 255, .12); text-align: center; font-size: .8rem; padding: 14px 16px; color: #9fb3c6; }
