:root {
  --primary: #0f4e43;
  --primary-hover: #0b3c33;
}

/* =====================================================
   1️⃣ ESTILOS GENERALES
   ===================================================== */

body {
  font-family: -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  background:#f7f7f7;
  padding:30px;
  margin:0;
}

.container {
  max-width:420px;
  margin:auto;
  background:#fff;
  padding:24px;
  border-radius:16px;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
}

h2 { text-align:center; margin-bottom:16px; }

.row { display:flex; gap:10px; }

.group {
  border:1px solid #ddd;
  border-radius:12px;
  padding:12px;
  flex:1;
  cursor:pointer;
}

.group.active {
  border:2px solid #000;
}

.group label {
  display:block;
  font-size:12px;
  color:#555;
  margin-bottom:6px;
}

.group.active label {
  font-weight:700;
  color:#000;
}

.group input {
  border:none;
  width:100%;
  font-size:16px;
  background:transparent;
  outline:none;
}

button {
  margin-top:16px;
  width:100%;
  padding:14px;
  border:none;
  border-radius:12px;
  background:var(--primary);
  color:#fff;
  font-size:16px;
  font-weight:bold;
  cursor:pointer;
}

button:hover {
  background:var(--primary-hover);
}

.card {
  border:1px solid #e5e5e5;
  border-radius:14px;
  padding:16px;
  margin-top:16px;
}

.card h3 {
  margin:0 0 6px 0;
}

.card button {
  margin-top:10px;
  background:#25d366;
}

/* ===== Header calendario ===== */

.cal-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:8px 6px 14px 6px;
}

.cal-title {
  font-size:18px;
  font-weight:600;
  letter-spacing:0.2px;
}

.cal-nav {
  font-size:22px;
  cursor:pointer;
  padding:4px 10px;
  border-radius:50%;
}

.cal-nav:hover {
  background:#f2f2f2;
}

.cal-grid {
  margin-top:10px;
}

/* =====================================================
   2️⃣ CALENDARIO (AIRBNB STYLE)
   ===================================================== */

.calendar {
  margin-top:12px;
  border-radius:16px;
  padding:12px;
  background:#fff;
  box-shadow:0 10px 30px rgba(0,0,0,.15);
  display:none;
}

.cal-grid {
  display:grid;
  grid-template-columns:repeat(7,1fr);
  text-align:center;
  gap:6px;
}

.cal-day-name {
  font-size:12px;
  color:#666;
}

.cal-day {
  padding:10px 0;
  border-radius:50%;
  cursor:pointer;
}

.cal-day:hover { background:#eee; }

.cal-day.start,
.cal-day.end {
  background:#000;
  color:#fff;
}

.cal-day.range,
.cal-day.preview {
  background:#f0f0f0;
}

.msg {
  margin-top:20px;
  padding:12px;
  background:#f3f3f3;
  border-radius:10px;
  text-align:center;
}

/* =========================
   CARD PREMIUM ESTILO
========================= */

.badge {
  margin-bottom: 10px;
  font-weight: 600;
}

.card-title {
  margin: 0 0 14px 0;
}

.card-line {
  margin-bottom: 8px;
  font-size: 15px;
}

.price {
  margin-top: 6px;
}


/* =========================
   FORMULARIO
========================= */
.preform {
  margin-top:14px;
  width:100%;
  box-sizing:border-box;
}

.pre-title {
  margin: 8px 0 16px 0;
  font-size: 15px;
  font-weight: 600;
  color: #222;
}

.pre-input {
  width:100%;
  box-sizing:border-box;
  padding:16px;
  margin-bottom:12px;
  border-radius:12px;
  border:1px solid #e5e5e5;
  font-size:15px;
  background:#fff;
  color:#333;
  transition: all .2s ease;
}

.pre-input::placeholder {
  color:#888;
}

.pre-input:focus {
  outline:none;
  border-color:#0f4e43;
  box-shadow:0 0 0 3px rgba(15,78,67,0.06);
}

.input-icon {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 0 14px;
  margin-bottom: 12px;
  transition: all .2s ease;
}

.input-icon span {
  margin-right: 10px;
  font-size: 15px;
  color: #888;
}

.input-icon input {
  border: none;
  background: transparent;
  padding: 14px 0;
  width: 100%;
  font-size: 15px;
  outline: none;
  color: #333;
}

.input-icon:focus-within {
  border-color: #ccc;
  box-shadow: none;
}

.people-select {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 16px;
  padding: 0;
  margin-top: 2px;
  outline: none;
  appearance: none;
  cursor: pointer;
}

/* flecha minimal */
.group {
  position: relative;
}

.group select {
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23666' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 20px;
  padding-right: 28px;
}

.brand-footer {
  margin-top: 28px;
  text-align: center;
  font-size: 12px;
  color: #777;
  letter-spacing: 0.5px;
  opacity: 0.7
}

.pre-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  background: #0f4e43;          /* verde lodge */
  color: #fff;

  border: none;
  border-radius: 14px;
  padding: 16px;

  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.2px;

  cursor: pointer;
  transition: all 0.2s ease;
}

.pre-btn:hover {
  background: #0c3f36;
  transform: translateY(-1px);
}

.pre-btn:active {
  transform: translateY(0);
}

.wa-icon {
  width: 18px;
  height: 18px;
  display: block;
}

/* =========================
   TARJETA SEGÚN ESTADO
========================= */

.card {
  overflow: hidden;
}

/* header de estado */
.card .badge {
  margin: -16px -16px 14px -16px;
  padding: 12px 16px;
  border-radius: 14px 14px 0 0;
  font-weight: 600;
}

/* disponible */
.card .badge:has(.disponible-full),
.card .badge.disponible-full {
  background: #eef7f3;
  color: #0f4e43;
}

/* parcial */
.card .badge:has(.disponible-partial),
.card .badge.disponible-partial {
  background: #fff6e6;
  color: #8a5a00;
}

/* =========================
   SEPARADOR FORMULARIO
========================= */

.preform {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #eee;
}

.pre-btn {
  background: #0f4e43 !important;
  color: #fff;
}

.pre-btn:hover {
  background: #0c3f36 !important;
}

.pre-microcopy {
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
  color: #777;
}

.card-header {
  margin-bottom: 14px;
}

.card-header h3 {
  margin-bottom: 6px;
}

.card-meta {
  font-size: 14px;
  color: #555;
}

.card-divider {
  height: 1px;
  background: #eee;
  margin: 16px 0;
}

.pre-title {
  margin-top: 4px;
  margin-bottom: 14px;
  font-size: 16px;
  font-weight: 600;
  color: #222;
}

.preform {
  background: #fafafa;
  padding: 16px;
  border-radius: 12px;
}

.no-availability {
  margin-top: 20px;
  padding: 18px;
  border-radius: 14px;
  background: #f8f8f8;
  text-align: center;
}

.no-availability-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.no-availability-text {
  font-size: 14px;
  color: #666;
}

/* =====================================
   Próxima disponibilidad — ajuste visual
   ===================================== */

.suggested-box {
  margin-top: 16px;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 14px; /* 👈 ESTE ES EL ESPACIO CLAVE */
}

.suggested-box strong {
  font-size: 14px;
  color: #333;
}

.suggested-box .date-range {
  font-size: 15px;
  font-weight: 500;
}

/* =====================================
   Botón "Usar estas fechas"
   ===================================== */

.use-suggested-btn {
  margin-top: 8px;
  padding: 14px 18px;
  border-radius: 10px;

  background-color: #0F4E43; /* 👈 verde marca */
  color: #ffffff;

  font-size: 15px;
  font-weight: 600;

  border: none;
  cursor: pointer;

  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.use-suggested-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(15, 78, 67, 0.25);
}

.use-suggested-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* microcopy debajo del botón */
.suggested-box .pre-microcopy {
  margin-top: 6px;
  font-size: 12px;
  color: #6b6b6b;
  text-align: center;
}

/* =====================================
   FORMULARIO — MÁS ANCHO EN MOBILE
   ===================================== */

.preform {
  margin-top: 18px;
  padding: 18px 10px 20px; /* 👈 MENOS padding lateral */
  border-radius: 16px;
  background: #ffffff;
}

/* inputs casi full width */
.pre-input {
  width: 100%;
  padding: 16px 14px;
  margin-bottom: 16px;
  font-size: 15px;
  border-radius: 12px;
}

/* botón full y protagonista */
.pre-btn {
  width: 100%;
  padding: 18px;
  font-size: 16px;
  border-radius: 14px;
}

/* Quitar línea divisoria antes del formulario */
.card-divider {
  display: none;
}


