@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600&family=Source+Sans+3:wght@400;600&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
  font-family: 'Arial', sans-serif; 
  background: #f4f4f4; 
  margin: 0; 
  padding: 0; 
}

/* Navbar */
.navbar { 
  background: #ffffff; 
  padding: 12px 24px; 
  display: flex; 
  gap: 20px; 
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.navbar a { 
  color: #111111; 
  text-decoration: none; 
  padding: 8px 12px; 
  border-radius: 4px; 
  transition: 0.15s;
}

/* Icono de usuario en la navegación */
.login-icon { display: inline-flex; align-items: center; padding: 4px 10px 4px 4px; border-radius: 8px; position: relative; }
.login-icon-img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; display: block; vertical-align: middle; box-shadow: 0 1px 2px rgba(0,0,0,0.08); margin-right: 8px; }
.login-icon-img.small { width: 24px; height: 24px; }

/* Caret to the right of the avatar (drawn with CSS so spacing is consistent) */
.login-icon::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #111;
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-45%);
}

/* Hover / focus for the icon link */
.login-icon:hover, .login-icon:focus { background: rgba(0,0,0,0.03); }

/* Responsive adjustments */
@media (max-width: 720px) {
  .login-icon-img { width: 26px; height: 26px; margin-right: 6px; }
  .login-icon::after { right: 6px; border-left:5px solid transparent; border-right:5px solid transparent; border-top:7px solid #111; }
}

@media (max-width: 420px) {
  .login-icon-img { width: 22px; height: 22px; }
  .login-icon::after { right: 6px; border-left:4px solid transparent; border-right:4px solid transparent; border-top:6px solid #111; }
  .navbar { padding: 10px 14px; }
}

.navbar a:hover { background: #f3f3f3; }
.navbar a.active { background: transparent; font-weight:700; }

/* Dropdown menu (left) */
.nav-left { position: relative; display: flex; align-items: center; gap: 8px; }
.nav-dropdown-btn {
  background: transparent;
  color: #111111;
  border: none;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.nav-dropdown-btn:hover, .nav-dropdown-btn:focus { background: #f3f3f3; outline: none; }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  padding: 8px 0;
  min-width: 180px;
  display: none;
  flex-direction: column;
  z-index: 1100;
}
.nav-dropdown.active { display: flex; }
.nav-dropdown a { display: block; padding: 10px 16px; color: #111111; border-radius: 6px; }
.nav-dropdown a:hover { background: #f3f3f3; }

@media (max-width: 720px) {
  .nav-dropdown { left: 8px; }
}

/* Admin navbar */
.logo-admin {
  font-size: 18px;
  font-weight: bold;
  color: white;
  white-space: nowrap;
}

.nav-admin-menu {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  flex: 1;
}

.nav-admin-link {
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.3s;
  display: inline-block;
  font-size: 14px;
}

.nav-admin-link:hover {
  background: rgba(255, 255, 255, 0.15);
}

.nav-admin-link.active {
  background: #0066cc;
  border-bottom: 2px solid #ffb700;
}

.admin-user-menu {
  position: relative;
  display: inline-block;
  margin-left: auto;
}

.admin-section {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  min-height: 400px;
}

.admin-section h2 {
  color: #2c5282;
  margin-bottom: 20px;
  font-size: 2em;
}

.admin-section p {
  color: #718096;
  font-size: 1.1em;
}

.user-info {
  color: #fff;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 4px;
  background: rgba(255,255,255,0.1);
}

.nav-logout {
  background: #d9534f;
  width: auto;
  padding: 8px 16px;
  border-radius: 20px;
  margin-left: 8px;
}

.nav-logout:hover {
  background: #c9302c;
}

/* Menú desplegable de usuario */
.user-menu {
  position: relative;
  display: inline-block;
  margin-left: auto;
}

.menu-checkbox {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
}

.user-menu-btn {
  background: transparent;
  color: #111111;
  border: none;
  padding: 8px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.15s;
  user-select: none;
  font-family: inherit;
  font-weight: normal;
  text-decoration: none;
}

.user-menu-btn:hover {
  background: #f3f3f3;
}

.arrow-down {
  font-size: 0;
  transition: none;
  display: inline-block;
}

.menu-checkbox:checked + .user-menu-btn .arrow-down {
  transform: none;
}

.arrow-down::before {
  content: "≡";
  font-size: 16px;
  line-height: 1;
  display: inline-block;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 220px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 1000;
}

.menu-checkbox:checked ~ .user-dropdown {
  max-height: 500px;
  overflow: visible;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  transition: background-color 0.2s;
  font-size: 14px;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.dropdown-item .icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.dropdown-item:first-child {
  border-radius: 8px 8px 0 0;
  padding-top: 12px;
}

.dropdown-item:last-child {
  border-radius: 0 0 8px 8px;
  padding-bottom: 12px;
}

.dropdown-item:hover {
  background-color: #f5f5f5;
}

.dropdown-divider {
  margin: 8px 0;
  border: none;
  border-top: 1px solid #e0e0e0;
}

.btn-reservar-nav {
  margin-left: auto;
  background: #1a7a8a;
  color: #ffffff;
  border: none;
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s;
}

.btn-reservar-nav:hover {
  background: #145a66;
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), 
              url('img/hero.jpeg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 20px;
  margin-top: 0;
}

.hero-content {
  max-width: 800px;
}

.hero-subtitle {
  font-size: 2rem;
  font-weight: 300;
  font-style: italic;
  margin-bottom: 0;
}

.hero-title {
  font-size: 4rem;
  font-weight: bold;
  margin: 10px 0 20px 0;
  line-height: 1.2;
}

.hero-location {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.btn-reservar-hero {
  background: #1a7a8a;
  color: white;
  border: none;
  padding: 16px 48px;
  border-radius: 30px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.btn-reservar-hero:hover {
  background: #145a66;
  transform: scale(1.05);
}

/* Contenedor y Layout */
.contenedor { 
  padding: 110px 24px 40px;
  min-height: 100vh;
}

.layout-dos-columnas {
  display: flex;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.formulario-reserva {
  flex: 1;
  min-width: 0;
}

.resumen-precio {
  width: 380px;
  flex-shrink: 0;
}

.card { 
  background: #fff; 
  padding: 30px; 
  border-radius: 12px; 
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Layout for reserva configurator (three columns: form / calendar / summary) */
.reserva-layout {
  display: grid;
  grid-template-columns: 1fr 420px 340px;
  gap: 24px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}
.calendar-panel {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  justify-self: center;
}

.summary-panel {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  min-width: 260px;
}

.summary-panel {
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

/* Summary panel inner layout */
.summary-panel h3 {
  margin: 0 0 12px 0;
  font-size: 1.1rem;
  color: #163b3f;
}
.summary-header { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:12px; }
.summary-left { color:#666; font-size:0.95rem; }
.summary-left .precio-base { font-weight:700; color:#2d3748; }
.summary-right { font-weight:800; color:#163b3f; font-size:1.05rem; }
.summary-desglose { margin-bottom: 12px; }
.summary-actions { margin-top: 12px; }
.summary-actions button { background:#1a7a8a; color:#fff; border:none; padding:12px; border-radius:8px; width:100%; font-weight:700; }
.summary-actions button:hover { background:#145a66; }

/* Contact panel (paso4) styling */
.contact-panel { background:#fff; border-radius:12px; padding:12px; box-shadow:0 6px 18px rgba(0,0,0,0.04); }

/* Ensure desglose entries look compact in summary */
.summary-desglose .linea-desglose { padding:6px 0; border-bottom:1px solid #f0f0f0; }

.calendar-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.calendar-nav { background:transparent; border:none; cursor:pointer; font-size:18px; }
.calendar-grid { display:grid; grid-template-columns: repeat(7, 1fr); gap:6px; }
.calendar-cell { padding:8px; text-align:center; border-radius:8px; cursor:pointer; }
.calendar-cell:hover { background:#f3f7f7; }
.calendar-cell.disabled { color:#c0c0c0; cursor:default; }
.calendar-cell.start { background:#1a7a8a; color:#fff; }
.calendar-cell.end { background:#145a66; color:#fff; }
.calendar-cell.inrange { background: rgba(26,122,138,0.12); }

@media (max-width: 1100px) {
  .reserva-layout { grid-template-columns: 1fr 360px; }
  .summary-panel { display: none; }
}

@media (max-width: 900px) {
  .reserva-layout { grid-template-columns: 1fr; }
  .calendar-panel { width: 100%; max-width: none; justify-self: stretch; }
  .summary-panel { display: block; }
}

.formulario-reserva h1 {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
}

.formulario-reserva h3 {
  margin: 20px 0 16px 0;
  color: #1a7a8a;
}

/* Resumen de Precio (Columna Derecha) */
.resumen-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 90px;
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  border: 2px solid #1a7a8a;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.resumen-sticky h2 {
  font-size: 2rem;
  color: #1a7a8a;
  margin: 0 0 20px 0;
  text-align: center;
  padding-bottom: 16px;
  border-bottom: 2px solid #e0e0e0;
}

/* Desglose */
.desglose { 
  margin-top: 16px; 
  text-align: left; 
}

.linea-desglose { 
  padding: 8px 0; 
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.linea-desglose span:first-child {
  color: #555;
}

.linea-desglose span:last-child {
  font-weight: 600;
  color: #333;
}

.linea-desglose.total-parcial {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 2px solid #ddd;
  font-weight: 600;
}

.linea-desglose.total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 2px solid #1a7a8a;
  font-size: 1rem;
  font-weight: 700;
}

.linea-desglose.descuento { 
  color: #28a745;
  font-weight: 600;
}

/* Labels e Inputs */
label { 
  display: block; 
  margin: 16px 0; 
  font-weight: 500;
  color: #555;
}

input, select { 
  width: 100%; 
  padding: 10px; 
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  margin-top: 4px;
}

input:focus, select:focus {
  outline: none;
  border-color: #1a7a8a;
}

button { 
  width: 100%;
  margin-top: 16px; 
  padding: 12px;
  background: #1a7a8a;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer; 
  transition: 0.3s;
}

button:hover {
  background: #145a66;
}

.auth-card h1,
.auth-card h2 {
  margin-bottom: 12px;
}

.auth-sep {
  margin: 24px 0;
  border: none;
  border-top: 1px solid #e0e0e0;
}

/* Login layout */
.login-shell {
  min-height: 100vh;
  padding: 120px 24px 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f7efec;
}

.login-card {
  width: min(1100px, 100%);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(60, 42, 33, 0.18);
  overflow: hidden;
}

.login-media {
  background: url('img/hero.jpeg') center/cover no-repeat;
  min-height: 520px;
}

.login-panel {
  padding: 48px 44px;
  background: #faf7f4;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #3d3029;
  font-size: 1.1rem;
}

.login-brand-icon {
  font-size: 1.3rem;
}

.login-title {
  font-size: 1.6rem;
  color: #3d3029;
  margin: 0;
}

.login-subtitle {
  margin: 0;
  color: #6b5a50;
}

.login-form-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(60, 42, 33, 0.12);
}

.login-form-card h2 {
  margin: 0 0 12px 0;
  color: #2d3748;
}

.login-form-card h3 {
  margin: 0 0 10px 0;
  color: #2d3748;
}

.login-switch {
  margin: 16px 0 0 0;
  text-align: center;
  color: #6b5a50;
  font-size: 0.95rem;
}

.login-switch a {
  color: #1a7a8a;
  font-weight: 600;
  text-decoration: none;
}

.login-switch a:hover {
  text-decoration: underline;
}

.register-panel {
  margin-top: 16px;
}

.register-panel.collapsed {
  display: none;
}

.register-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 12px 0 16px;
}

.login-footer {
  margin: 0;
  color: #6b5a50;
  font-size: 0.9rem;
  text-align: center;
}

/* Gracias page */
.thanks-shell {
  min-height: 100vh;
  padding: 120px 24px 60px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: #f7efec;
}

.thanks-card {
  width: min(1100px, 100%);
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(60, 42, 33, 0.16);
  padding: 32px 36px 36px;
}

.thanks-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.thanks-check {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #7aa08b;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  margin: 0 auto;
}

.thanks-header h1 {
  margin: 0;
  color: #3d3029;
  font-size: 2rem;
}

.thanks-header p {
  margin: 0;
  color: #6b5a50;
}

.thanks-body {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
  align-items: stretch;
}

.thanks-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border-radius: 16px;
  object-fit: cover;
}

.thanks-preview {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pdf-frame {
  background: #f3ede8;
  border-radius: 16px;
  padding: 12px;
  border: 1px solid #e7dcd4;
}

.pdf-frame iframe {
  width: 100%;
  height: 260px;
  border: none;
  border-radius: 12px;
  background: #fff;
}

.thanks-actions {
  display: grid;
  gap: 10px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  background: #2d6b73;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.btn-download:hover {
  background: #245860;
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .thanks-card {
    padding: 24px;
  }

  .thanks-body {
    grid-template-columns: 1fr;
  }

  .pdf-frame iframe {
    height: 220px;
  }
}

@media (max-width: 900px) {
  .login-card {
    grid-template-columns: 1fr;
  }

  .login-media {
    min-height: 280px;
  }

  .login-panel {
    padding: 32px 24px;
  }
}

#pagar {
  background: #ff8c42;
}

#pagar:hover {
  background: #ff7028;
}

/* Extras */
.extras { 
  margin: 12px 0; 
  padding: 16px; 
  border: 1px solid #ddd;
  border-radius: 6px;
}

/* Inline checkbox */
.inline { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
}

.inline input[type="checkbox"] {
  width: auto;
  margin: 0;
}

/* Formulario oculto */
.formulario-oculto { 
  display: none; 
}

/* Responsive */
@media (max-width: 992px) {
  .layout-dos-columnas {
    flex-direction: column;
  }
  
  .resumen-precio {
    width: 100%;
    order: -1;
  }
  
  .resumen-sticky {
    position: relative;
    top: 0;
    max-height: none;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .navbar {
    flex-wrap: wrap;
    gap: 10px;
  }
}

/* Calendario disponibilidad */
.calendario {
  margin-top: 20px;
}

.calendario-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 12px;
  flex-wrap: wrap;
}

.leyenda {
  display: flex;
  gap: 8px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.badge.disponible { background: #e8f6ee; color: #1e7a3a; }
.badge.ocupado { background: #e9eefb; color: #5787ce; }

.calendario-tabla {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

.calendario-tabla th,
.calendario-tabla td {
  border: 1px solid #e0e0e0;
  padding: 10px 0;
  width: 14.28%;
}

.calendario-tabla th {
  background: #f5f5f5;
  font-weight: 700;
}

.calendario-tabla td.disponible { background: #e8f6ee; }
.calendario-tabla td.ocupado { background: #e9eefb; color: #5787ce; }
.calendario-tabla td.vacio { background: #fafafa; }

/* Amenidades */
.amenidades {
  margin: 16px 0 24px 0;
}

.amenidades ul {
  margin-top: 8px;
  padding-left: 18px;
}

.amenidades li {
  margin: 6px 0;
}

/* Reseñas */
.resenas {
  margin-top: 24px;
}

.resenas-textarea {
  width: 100%;
  min-height: 120px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  margin-top: 8px;
  resize: vertical;
}

.resenas-btn {
  margin-top: 12px;
}

/* Mapa */
.mapa {
  margin-top: 24px;
}

.mapa-embed {
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

/* Estilos para panel de administración */
.admin-container {
  max-width: 1200px;
  margin: 100px auto 40px auto;
  padding: 20px;
}

.admin-header {
  text-align: center;
  margin-bottom: 40px;
}

.admin-header h1 {
  color: #2c5282;
  font-size: 2.5em;
  margin-bottom: 10px;
}

.admin-header p {
  color: #718096;
  font-size: 1.1em;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.admin-filter-row {
  margin: 10px 0 20px 0;
}

.admin-filter-row label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 240px;
  color: #4a5568;
}

.admin-reserva-form {
  margin: 20px 0 30px 0;
  padding: 20px;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.admin-reserva-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.btn-toggle-reserva {
  background: #1a7a8a;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-toggle-reserva:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(26, 122, 138, 0.35);
}

.admin-reserva-contenido.collapsed {
  display: none;
}

.admin-reserva-form h3 {
  margin: 0 0 16px 0;
  color: #2c5282;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.admin-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #4a5568;
  font-size: 0.95em;
}

.admin-form-grid input,
.admin-form-grid textarea {
  padding: 10px 12px;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  font-size: 0.95em;
  font-family: inherit;
}

.admin-form-grid input:focus,
.admin-form-grid textarea:focus {
  outline: none;
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

.admin-form-extras {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.admin-form-label {
  font-weight: 600;
  color: #2d3748;
}

.admin-form-checkbox {
  grid-column: 1 / -1;
}

.admin-form-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.ingresos-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.ingresos-chart {
  display: grid;
  gap: 12px;
}

.chart-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: center;
  gap: 12px;
}

.chart-bar-track {
  height: 12px;
  background: #edf2f7;
  border-radius: 999px;
  overflow: hidden;
}

.chart-bar {
  height: 100%;
  width: 0;
  background: #4299e1;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.chart-bar-externas {
  background: #ed8936;
}

.admin-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.admin-panel {
  background: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.admin-panel h3 {
  margin-top: 0;
  color: #2c5282;
}

.admin-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
}

.admin-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid #edf2f7;
  color: #2d3748;
}

.admin-item-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-photo-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.btn-icon {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.btn-icon.delete {
  background: #fc8181;
  color: white;
}

.btn-icon.delete:hover {
  background: #f56565;
}

.btn-icon.edit {
  background: #edf2f7;
  color: #2d3748;
}

.btn-icon.edit:hover {
  background: #e2e8f0;
}

.admin-item-row:last-child {
  border-bottom: none;
}

.admin-muted {
  color: #718096;
  font-size: 0.9em;
}

.ambiente-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
  background: #f7fafc;
}

.ambiente-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.ambiente-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.ambiente-actions input {
  flex: 1;
  min-width: 160px;
}

.faq-admin-item {
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 10px;
  background: #f9fafb;
}

.faq-admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.faq-list {
  margin-top: 16px;
}

body.faq-page {
  background: radial-gradient(circle at top, #f6efea 0%, #f2e9e2 40%, #efe3dc 100%);
  color: #3d3029;
  font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
}

.faq-page .contenedor {
  padding: 120px 24px 60px;
}

.faq-wrap {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.faq-hero {
  text-align: center;
}

.faq-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.faq-hero p {
  font-size: 1.05rem;
  color: #6b5a50;
}

.faq-panel {
  background: rgba(255, 255, 255, 0.86);
  border-radius: 22px;
  padding: 28px 32px 24px;
  box-shadow: 0 18px 40px rgba(60, 42, 33, 0.15);
  border: 1px solid rgba(120, 96, 84, 0.12);
}

.faq-panel h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #3d2f29;
}

.faq-list-modern .faq-item {
  border: none;
  border-radius: 14px;
  margin-bottom: 12px;
  padding: 0;
  background: #f9f3ee;
  box-shadow: inset 0 0 0 1px rgba(120, 96, 84, 0.12);
}

.faq-list-modern .faq-item summary {
  list-style: none;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: #4b3b34;
}

.faq-list-modern .faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-list-modern .faq-item summary::after {
  content: '+';
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(120, 96, 84, 0.4);
  color: #7a665b;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.faq-list-modern .faq-item[open] summary::after {
  content: '–';
  font-size: 1.4rem;
}

.faq-list-modern .faq-item p {
  padding: 0 20px 16px;
  color: #6a5a50;
  line-height: 1.5;
}

.faq-footnote {
  text-align: center;
  margin-top: 18px;
  color: #7a665b;
  font-size: 0.95rem;
}

@media (max-width: 700px) {
  .faq-panel {
    padding: 22px 18px 20px;
  }

  .faq-hero h1 {
    font-size: 2rem;
  }
}

.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  background: #fff;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: #2d3748;
}

.galeria-seccion {
  margin-top: 24px;
}

.galeria-hero {
  max-width: none;
  width: 100vw;
  margin: 24px calc(50% - 50vw) 32px;
}

.galeria-hero-placeholder {
  min-height: 420px;
  width: 100%;
  border-radius: 0;
  border: 2px dashed #cbd5e0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #718096;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.galeria-hero img {
  width: 100%;
  min-height: 420px;
  max-height: 520px;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

.galeria-mosaico {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
}

.galeria-item {
  border-radius: 12px;
  overflow: hidden;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.galeria-item-grande {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  min-height: 320px;
}

.galeria-item-sm1 {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  min-height: 155px;
}

.galeria-item-sm2 {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
  min-height: 155px;
}

.galeria-item-sm3 {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  min-height: 155px;
}

.galeria-item-sm4 {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
  min-height: 155px;
}

.galeria-item-vacio {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #718096;
  font-size: 0.9em;
}

@media (max-width: 900px) {
  .galeria-hero-placeholder,
  .galeria-hero img {
    min-height: 260px;
  }

  .galeria-mosaico {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .galeria-item-grande {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 240px;
  }

  .galeria-item-sm1,
  .galeria-item-sm2,
  .galeria-item-sm3,
  .galeria-item-sm4 {
    grid-column: auto;
    grid-row: auto;
  }
}

.stat-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
  font-size: 3em;
  margin: 0 0 10px 0;
}

.stat-card p {
  font-size: 1.1em;
  margin: 0;
  opacity: 0.9;
}

.users-table-container {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.users-table-container h2 {
  color: #2c5282;
  margin-bottom: 20px;
}

.users-table {
  width: 100%;
  border-collapse: collapse;
}

.users-table thead {
  background-color: #f7fafc;
}

.users-table th {
  padding: 15px;
  text-align: left;
  color: #2d3748;
  font-weight: 600;
  border-bottom: 2px solid #e2e8f0;
}

.users-table td {
  padding: 15px;
  border-bottom: 1px solid #e2e8f0;
  color: #4a5568;
}

.users-table tbody tr:hover {
  background-color: #f7fafc;
}

.role-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 600;
  text-transform: uppercase;
}

.role-badge.role-admin {
  background-color: #fed7d7;
  color: #c53030;
}

.role-badge.role-cliente {
  background-color: #c6f6d5;
  color: #2f855a;
}

.btn-delete {
  background-color: #fc8181;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9em;
  transition: background-color 0.3s;
}

.btn-delete:hover {
  background-color: #f56565;
}

/* Estilos para página de reservas */
.reservas-container {
  max-width: 1200px;
  margin: 100px auto 40px auto;
  padding: 20px;
}

.reservas-header {
  text-align: center;
  margin-bottom: 40px;
}

.reservas-header h1 {
  color: #2c5282;
  font-size: 2.5em;
  margin-bottom: 10px;
}

.reservas-header p {
  color: #718096;
  font-size: 1.1em;
}

.reservas-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card-small {
  background: linear-gradient(135deg, #4299e1 0%, #667eea 100%);
  color: white;
  padding: 24px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-card-small h3 {
  font-size: 2em;
  margin: 0 0 8px 0;
}

.stat-card-small p {
  font-size: 1em;
  margin: 0;
  opacity: 0.9;
}

.reservas-lista {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.reserva-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.reserva-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.reserva-card.highlight {
  outline: 2px solid #1a7a8a;
  box-shadow: 0 0 0 4px rgba(26, 122, 138, 0.15);
}

.reserva-header {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #e2e8f0;
}

.reserva-numero {
  font-weight: bold;
  color: #2d3748;
  font-size: 1.1em;
  margin-right: 12px;
}

.reserva-estado {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85em;
  font-weight: 600;
  text-transform: uppercase;
}

.reserva-estado.proxima {
  background-color: #bee3f8;
  color: #2c5282;
}

.reserva-estado.activa {
  background-color: #c6f6d5;
  color: #2f855a;
}

.reserva-estado.completada {
  background-color: #e2e8f0;
  color: #4a5568;
}

.reserva-estado.cancelada {
  background-color: #fed7d7;
  color: #9b2c2c;
}

.reserva-fecha-creacion {
  color: #718096;
  font-size: 0.9em;
}

.reserva-body {
  padding: 24px;
}

.reserva-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-label {
  font-size: 0.85em;
  color: #718096;
  font-weight: 600;
}

.info-value {
  font-size: 1em;
  color: #2d3748;
  font-weight: 500;
}

.reserva-montos {
  background: #f7fafc;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.monto-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.monto-label {
  font-size: 0.85em;
  color: #718096;
  font-weight: 600;
}

.monto-value {
  font-size: 1.2em;
  font-weight: bold;
}

.monto-value.total {
  color: #2c5282;
}

.monto-value.pagado {
  color: #2f855a;
}

.monto-value.insoluto.pendiente {
  color: #c53030;
}

.monto-value.insoluto.completo {
  color: #2f855a;
}

.reserva-comentarios {
  background: #fff5f5;
  border-left: 4px solid #fc8181;
  padding: 16px;
  border-radius: 4px;
}

.reserva-comentarios-form {
  margin-top: 16px;
  background: #f7fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  padding: 12px 16px;
}

.reserva-comentarios-form summary {
  font-weight: 600;
  color: #2c5282;
  cursor: pointer;
}

.comentarios-form-body {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comentarios-input {
  width: 100%;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.95em;
  resize: vertical;
  background: #fff;
}

.comentarios-input:focus {
  outline: none;
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

.admin-notas-form {
  margin-top: 16px;
  background: #f7fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  padding: 12px 16px;
}

.admin-notas-form summary {
  font-weight: 600;
  color: #2c5282;
  cursor: pointer;
}

.admin-notas-body {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-notas-input {
  width: 100%;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.95em;
  resize: vertical;
  background: #fff;
}

.admin-notas-input:focus {
  outline: none;
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
}

.admin-notas-preview {
  margin-top: 12px;
  background: #f0f4f8;
  border-left: 4px solid #4c51bf;
  padding: 14px 16px;
  border-radius: 4px;
}

.admin-notas-label {
  font-size: 0.9em;
  color: #2c5282;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.admin-notas-preview p {
  margin: 0;
  color: #2d3748;
  line-height: 1.5;
}

.reserva-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.btn-cancel-reserva {
  background: #e53e3e;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.btn-cancel-reserva:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(229, 62, 62, 0.35);
}

.btn-cancel-reserva:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.comentarios-label {
  font-size: 0.9em;
  color: #742a2a;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.reserva-comentarios p {
  margin: 0;
  color: #2d3748;
  line-height: 1.5;
}

.no-reservas {
  text-align: center;
  padding: 60px 20px;
}

.empty-state {
  max-width: 500px;
  margin: 0 auto;
}

.empty-state h2 {
  color: #2c5282;
  font-size: 2em;
  margin-bottom: 16px;
}

.empty-state p {
  color: #718096;
  font-size: 1.1em;
  margin-bottom: 24px;
}

.btn-primary {
  background: linear-gradient(135deg, #4299e1 0%, #667eea 100%);
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 24px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(66, 153, 225, 0.4);
}

/* Estilos para página de perfil */
.perfil-container, .seguridad-container {
  max-width: 900px;
  margin: 100px auto 40px auto;
  padding: 20px;
}

.perfil-header, .seguridad-header {
  text-align: center;
  margin-bottom: 40px;
}

.perfil-header h1, .seguridad-header h1 {
  color: #2c5282;
  font-size: 2.5em;
  margin-bottom: 10px;
}

.perfil-header p, .seguridad-header p {
  color: #718096;
  font-size: 1.1em;
}

.perfil-card, .security-card {
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
}

.perfil-foto-section {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 32px;
}

.foto-preview {
  position: relative;
  width: 120px;
  height: 120px;
}

.foto-preview img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #e2e8f0;
}

.foto-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3em;
  border: 4px solid #e2e8f0;
}

.foto-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-secondary {
  background: white;
  color: #4299e1;
  border: 2px solid #4299e1;
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #4299e1;
  color: white;
}

.btn-text {
  background: none;
  border: none;
  color: #718096;
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.9em;
}

.btn-text:hover {
  color: #4a5568;
}

.perfil-form, .security-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: #2d3748;
  font-size: 0.95em;
}

.form-group input, .form-group select {
  padding: 12px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1em;
  transition: border-color 0.2s;
}

.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: #4299e1;
}

.form-group input:disabled {
  background: #f7fafc;
  cursor: not-allowed;
}

.form-hint {
  color: #718096;
  font-size: 0.85em;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
}

.form-actions-horizontal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

/* Estilos para seguridad */
.card-header {
  margin-bottom: 24px;
}

.card-header h2 {
  color: #2c5282;
  font-size: 1.5em;
  margin-bottom: 8px;
}

.card-header p {
  color: #718096;
  font-size: 0.95em;
}

.twofa-status, .twofa-active {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #f7fafc;
  border-radius: 8px;
  margin-bottom: 16px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-icon {
  font-size: 2.5em;
}

.status-info h3 {
  color: #2d3748;
  font-size: 1.1em;
  margin-bottom: 4px;
}

.status-info p {
  color: #718096;
  font-size: 0.9em;
  margin: 0;
}

.status-info small {
  color: #a0aec0;
  font-size: 0.85em;
}

.setup-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.setup-step {
  display: flex;
  gap: 16px;
}

.step-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #4299e1 0%, #667eea 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1em;
}

.step-content {
  flex: 1;
}

.step-content h4 {
  color: #2d3748;
  margin-bottom: 8px;
}

.step-content p {
  color: #718096;
  font-size: 0.95em;
  margin: 8px 0;
}

.qr-placeholder {
  background: #f7fafc;
  border: 2px dashed #cbd5e0;
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  margin: 16px 0;
}

.qr-code {
  font-size: 4em;
  margin-bottom: 12px;
}

.manual-code {
  background: #edf2f7;
  padding: 12px;
  border-radius: 6px;
  margin-top: 16px;
}

.manual-code code {
  font-family: monospace;
  font-size: 1.1em;
  color: #2d3748;
  font-weight: 600;
}

.btn-danger {
  background: #fc8181;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-danger:hover {
  background: #f56565;
}

.btn-danger-outline {
  background: white;
  color: #fc8181;
  border: 2px solid #fc8181;
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.btn-danger-outline:hover {
  background: #fc8181;
  color: white;
}

.sessions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.session-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: #f7fafc;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
}

.session-item.current {
  border-color: #4299e1;
  background: #ebf8ff;
}

.session-icon {
  font-size: 2em;
}

.session-info h4 {
  color: #2d3748;
  margin-bottom: 4px;
  font-size: 1em;
}

.session-info p {
  color: #718096;
  font-size: 0.9em;
  margin: 4px 0;
}

/* Calendario Admin */
.calendario-admin {
  margin-top: 20px;
}

.admin-calendar-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.admin-calendar-left {
  flex: 1;
  min-width: 0;
}

.admin-price-panel {
  width: 320px;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.admin-price-panel h3 {
  margin: 0 0 12px 0;
  color: #2c5282;
  font-size: 1.1em;
}

.admin-panel-section {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px dashed #dfe6ef;
}

.admin-panel-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.admin-panel-section h4 {
  margin: 0 0 10px 0;
  color: #2d3748;
  font-size: 0.95em;
}

.calendario-tabla-admin {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

.calendario-tabla-admin th,
.calendario-tabla-admin td {
  border: 1px solid #e0e0e0;
  padding: 8px 0;
  width: 14.28%;
  height: 70px;
}

.calendario-tabla-admin th {
  background: #f5f5f5;
  font-weight: 700;
  color: #2d3748;
}

.calendario-tabla-admin td.disponible {
  background: #e8f6ee;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
  color: #1e7a3a;
}

.calendario-tabla-admin td.disponible:hover {
  background: #c6f6d5;
  transform: scale(1.05);
  box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
}

.calendario-tabla-admin td.ocupado {
  background: #e9eefb;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
  color: #5787ce;
}

.calendario-tabla-admin td.ocupado:hover {
  background: #7ea8ff;
  transform: scale(1.02);
  box-shadow: inset 0 0 5px rgba(0,0,0,0.04);
}

.calendario-tabla-admin td.vacio {
  background: #fafafa;
  cursor: default;
}

.calendario-dia-admin {
  user-select: none;
}

.calendario-dia-admin .dia-numero {
  font-weight: 700;
  font-size: 0.95rem;
}

.calendario-dia-admin .dia-precio {
  font-size: 0.75rem;
  margin-top: 2px;
  color: #2d3748;
}

.calendario-dia-admin .dia-huesped {
  font-size: 0.7rem;
  margin-top: 4px;
  color: #2d3748;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reserva-detalle {
  margin-top: 16px;
  background: #f7fafc;
  border-radius: 8px;
  padding: 12px;
}

.reserva-detalle summary {
  cursor: pointer;
  font-weight: 600;
  color: #2c5282;
  list-style: none;
}

.reserva-detalle summary::-webkit-details-marker {
  display: none;
}

.reserva-detalle-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

@media (max-width: 980px) {
  .admin-calendar-layout {
    flex-direction: column;
  }

  .admin-price-panel {
    width: 100%;
  }
}

/* Navegación de meses */
.month-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.btn-month-nav {
  background: #1a7a8a;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}

.btn-month-nav:hover {
  background: #145a66;
}

.month-selector-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 600px;
}

.month-tab {
  background: #f0f0f0;
  border: 2px solid #ddd;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  transition: all 0.3s;
}

.month-tab:hover {
  border-color: #1a7a8a;
  background: #e8f4f7;
}

.month-tab.active {
  background: #1a7a8a;
  color: white;
  border-color: #1a7a8a;
}

/* Navegación de meses para clientes */
.month-navigation-cliente {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 20px 0 30px 0;
  flex-wrap: wrap;
}

.btn-month-nav-cliente {
  background: #1a7a8a;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
  font-size: 14px;
}

.btn-month-nav-cliente:hover {
  background: #145a66;
}

.month-selector-tabs-cliente {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 600px;
}

/* Dropdown de meses */
.month-selector-dropdown {
  position: relative;
  display: inline-block;
  margin: 20px auto;
  display: flex;
  justify-content: center;
}

.month-selector-btn {
  background: #1a7a8a;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.month-selector-btn:hover {
  background: #145a66;
  transform: scale(1.05);
}

.month-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border: 2px solid #1a7a8a;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  min-width: 220px;
  z-index: 1000;
}

.month-dropdown-menu.active {
  max-height: 400px;
  overflow-y: auto;
}

.month-dropdown-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid #f0f0f0;
  color: #333;
  font-weight: 500;
}

.month-dropdown-item:hover {
  background: #f0f0f0;
}

.month-dropdown-item:last-child {
  border-bottom: none;
}

.month-dropdown-item.active {
  background: #e8f4f7;
  color: #1a7a8a;
  font-weight: 700;
  border-left: 4px solid #1a7a8a;
  padding-left: 12px;
}

/* Dropdown de meses para Admin */
.month-selector-dropdown-admin {
  position: relative;
  display: inline-block;
  margin: 20px auto;
  display: flex;
  justify-content: center;
}

.month-selector-btn-admin {
  background: #1a7a8a;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.month-selector-btn-admin:hover {
  background: #145a66;
  transform: scale(1.05);
}

.month-dropdown-menu-admin {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border: 2px solid #1a7a8a;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  min-width: 220px;
  z-index: 1000;
}

.month-dropdown-menu-admin.active {
  max-height: 400px;
  overflow-y: auto;
}

.month-dropdown-item-admin {
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid #f0f0f0;
  color: #333;
  font-weight: 500;
}

.month-dropdown-item-admin:hover {
  background: #f0f0f0;
}

.month-dropdown-item-admin:last-child {
  border-bottom: none;
}

.month-dropdown-item-admin.active {
  background: #e8f4f7;
  color: #1a7a8a;
  font-weight: 700;
  border-left: 4px solid #1a7a8a;
  padding-left: 12px;
}

/* Calendario en index.html */
.calendario-index {
  margin-bottom: 24px;
  padding: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: white;
}

.month-selector-dropdown-index {
  position: relative;
  display: inline-block;
  margin: 12px auto;
  display: flex;
  justify-content: center;
  width: 100%;
}

.month-selector-btn-index {
  background: #1a7a8a;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.month-selector-btn-index:hover {
  background: #145a66;
  transform: scale(1.05);
}

.month-dropdown-menu-index {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border: 2px solid #1a7a8a;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  min-width: 180px;
  z-index: 1000;
}

.month-dropdown-menu-index.active {
  max-height: 300px;
  overflow-y: auto;
}

.month-dropdown-item-index {
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid #f0f0f0;
  color: #333;
  font-weight: 500;
  font-size: 13px;
}

.month-dropdown-item-index:hover {
  background: #f0f0f0;
}

.month-dropdown-item-index:last-child {
  border-bottom: none;
}

.month-dropdown-item-index.active {
  background: #e8f4f7;
  color: #1a7a8a;
  font-weight: 700;
  border-left: 4px solid #1a7a8a;
  padding-left: 10px;
}

.calendario-tabla-index {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
}

.calendario-tabla-index th,
.calendario-tabla-index td {
  border: 1px solid #e0e0e0;
  padding: 8px 0;
  width: 14.28%;
}

.calendario-tabla-index th {
  background: #f5f5f5;
  font-weight: 700;
  color: #2d3748;
  font-size: 12px;
}

.calendario-tabla-index td.disponible {
  background: #e9f7f6; /* light teal, matches buttons */
  color: #1a7a8a; /* main button teal */
  font-weight: 600;
}

.calendario-tabla-index td.ocupado {
  background: #e9eefb;
  color: #5787ce;
  font-weight: 600;
}

.calendario-tabla-index td.vacio {
  background: #fafafa;
}

.calendario-tabla-index td.seleccionado {
  background: #145a66; /* darker button tone for selected */
  color: white;
  font-weight: 700;
}

.calendario-tabla-index td.inrange {
  background: rgba(26,122,138,0.12); /* subtle teal range */
}

.calendario-tabla-index td:hover {
  box-shadow: inset 0 0 0 2px rgba(26,122,138,0.06);
}

.leyenda-index {
  font-size: 12px;
}

.badge-no-disponible {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  background: #e9eefb;
  color: #5787ce;
}

.badge.seleccionado-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  background: #bee3f8;
  color: #2c5282;
}.current-label {
  color: #4299e1;
  font-weight: 600;
  font-size: 0.85em;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .perfil-foto-section {
    flex-direction: column;
    text-align: center;
  }
}

/* Casa page specific styles */
.section-title { font-size: 1.6rem; margin: 0 0 14px 0; color: #163b3f; }
.gallery-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; align-items: start; }
.gallery-main { position: relative; border-radius: 12px; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; display: block; object-fit: cover; min-height: 320px; }
.gallery-all { position: absolute; left: 18px; bottom: 18px; background: rgba(255,255,255,0.95); border: none; padding: 10px 14px; border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,0.08); cursor: pointer; }
.gallery-side { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gallery-side img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; min-height: 150px; }

.btn-ghost { background: transparent; border: 1px solid rgba(0,0,0,0.06); padding: 8px 12px; border-radius: 8px; }

.amenities-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.amenity { display:flex; gap:12px; background:#fff; padding:14px; border-radius:12px; align-items:flex-start; box-shadow:0 6px 18px rgba(0,0,0,0.04); }
.amenity-icon { width:44px; height:44px; border-radius:10px; display:grid; place-items:center; font-size:20px; background:#f3fbfb; }
.amenity-body p.muted { margin-top:6px; color:#6b7280; font-size:0.95rem; }
.amenities-footer { margin-top:12px; text-align:center; }
.link-muted { color:#1a7a8a; text-decoration:none; font-weight:600; }

.reviews-list { display:flex; gap:12px; flex-wrap:wrap; }
.review-card { display:flex; gap:12px; align-items:flex-start; background:#fff; padding:12px; border-radius:12px; box-shadow:0 6px 18px rgba(0,0,0,0.04); width:320px; }
.review-avatar { width:56px; height:56px; border-radius:50%; object-fit:cover; }
.review-body p { margin-top:6px; color:#374151; }
.review-meta { display:flex; gap:10px; align-items:center; }
.review-meta .muted { color:#9ca3af; font-size:0.9rem; margin-left:6px; }
.btn-link { color:#1a7a8a; text-decoration:none; font-weight:700; }

.location-bar { display:flex; gap:12px; flex-direction:column; }
.coords { background:#f7fafb; padding:8px 12px; border-radius:8px; display:inline-block; color:#334155; font-weight:600; }
.map-mini { margin-top:10px; border-radius:8px; overflow:hidden; }

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-side { grid-template-columns: repeat(2,1fr); }
  .reviews-list { justify-content: center; }
  .amenities-grid { grid-template-columns: 1fr; }
}

/* Lightbox styles */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: grid;
  place-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox .lb-viewport { max-width: 1100px; max-height: 90vh; padding: 12px; }
.lightbox .lb-img { max-width: calc(100% - 120px); max-height: calc(100vh - 120px); object-fit: contain; border-radius: 6px; display: block; margin: 0 auto; }
.lightbox .lb-close { position: fixed; top: 18px; right: 18px; background: rgba(255,255,255,0.06); color: #fff; border: none; font-size: 26px; width:44px; height:44px; border-radius:8px; cursor:pointer; z-index:2100; }
.lightbox .lb-prev, .lightbox .lb-next { position: fixed; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.25); color: #fff; border: none; font-size: 36px; width:56px; height:72px; border-radius:8px; cursor:pointer; z-index:2100; }
.lightbox .lb-prev { left: 18px; }
.lightbox .lb-next { right: 18px; }
.lightbox .lb-prev:hover, .lightbox .lb-next:hover, .lightbox .lb-close:hover { transform: translateY(-50%) scale(1.03); }

/* Mobile adjustments */
@media (max-width: 720px) {
  .contenedor { padding: 90px 12px 24px; }
  .gallery-main img { min-height: 200px; }
  .gallery-side img { min-height: 110px; }
  .review-card { width: 100%; }
  .section-title { font-size: 1.25rem; }
  .amenity { padding: 12px; }
  .lightbox .lb-img { max-width: calc(100% - 40px); max-height: calc(100vh - 120px); }
  .lightbox .lb-prev, .lightbox .lb-next { width:44px; height:56px; font-size:26px; }
}


