* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;

  /* Fondo con foto + capa clara encima para que no se vea muy fuerte */
  background: linear-gradient(
      rgba(245, 247, 251, 0.85),
      rgba(245, 247, 251, 0.85)
    ),
    url("../images/terraza1.jpg") center center no-repeat fixed;
  background-size: cover;
  color: #222;
}

/* HEADER NUEVO */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  display: flex;
  align-items: center;
}

/* Contenedor interno centrado */
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

/* Logo con imagen + texto */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-main {
  font-weight: 700;
  font-size: 18px;
  color: #005ba4;
}

.logo-sub {
  font-size: 12px;
  color: #777;
}

.nav-title {
  display: none;
}

/* En pantallas pequeñas podemos reducir un poco el logo */
@media (max-width: 900px) {
  .logo-img {
    height: 32px;
  }

  .logo-main {
    font-size: 16px;
  }

  .logo-sub {
    display: none;
  }
}

/* En móvil (max-width: 1200px), mostrar título en header */
@media (max-width: 1200px) {
  .logo-link {
    flex: 1;
  }

  .logo {
    gap: 8px;
  }

  .logo-img {
    height: 35px;
  }

  .logo-main {
    font-size: 13px;
    line-height: 1.3;
  }

  .logo-sub {
    display: none;
  }
}

.logo-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.logo-link:focus-visible {
  outline-offset: 4px;
  border-radius: 8px;
}

/* El link no debe alterar colores, solo quitar subrayado */
.logo-link,
.logo-link:visited,
.logo-link:hover,
.logo-link:active {
  text-decoration: none;
}

/* Por si algún navegador subraya elementos internos */
.logo-link * {
  text-decoration: none;
}

.logo-link {
  display: inline-block;
  cursor: pointer;
}

/* Menú principal */
.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

.main-nav a {
  text-decoration: none;
  color: #333;
  padding: 6px 4px;
  position: relative;
  transition: color 0.2s ease;
}

/* subrayado suave al pasar el ratón */
.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background-color: transparent;
  transition: background-color 0.2s ease, transform 0.2s ease;
  transform: scaleX(0);
  transform-origin: center;
}

.main-nav a:not(.nav-cta):hover {
  color: #005ba4;
}

.main-nav a:not(.nav-cta):hover::after {
  background-color: #005ba4;
  transform: scaleX(1);
}

/* Botón de Reservas en el header */
.nav-cta {
  padding: 8px 16px;
  border-radius: 999px;
  background-color: #005ba4;
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(0, 91, 164, 0.3);
  transition: background-color 0.2s ease, transform 0.1s ease,
    box-shadow 0.2s ease;
}

.nav-cta:hover {
  background-color: #004580;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(0, 91, 164, 0.4);
}

/* Botón hamburguesa (oculto en desktop) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  justify-content: center;
  align-items: center;
}

.hamburger span {
  width: 24px;
  height: 2.5px;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
  display: block;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* RESPONSIVE HEADER */
@media (max-width: 1200px) {
  .hamburger {
    display: flex !important;
  }

  .main-nav {
    display: none !important;
  }

  .main-nav.active {
    display: flex !important;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    font-size: 13px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    z-index: 999;
  }

  .main-nav a {
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    display: block;
    width: 100%;
  }

  .nav-title {
    display: none !important;
  }

  .main-nav a:not(.nav-cta)::after {
    display: none !important;
  }

  .main-nav a:not(.nav-cta):hover {
    background-color: #f5f5f5;
  }

  .nav-cta {
    padding: 12px 16px;
    font-size: 13px;
    background-color: #005ba4;
    border-radius: 0;
    margin: 8px 16px;
    width: calc(100% - 32px);
    box-shadow: none;
  }

  .logo-text {
    display: flex !important;
  }

  .logo-img {
    height: 35px;
  }

  .header-inner {
    padding: 10px 16px !important;
    gap: 10px !important;
  }
}

main {
  padding-top: 90px; /* deja hueco para el header fijo */
  max-width: 1400px;
  margin: 0 auto 40px; /* centrado y con algo de margen abajo */
  padding-left: 20px;
  padding-right: 20px;
}

/* BOTÓN PRINCIPAL */
.btn-primario {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  background-color: #005ba4;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

/* ---- SECCIONES GENERALES (tarjetas blancas anchas) ---- */
section {
  padding: 40px 20px;
  max-width: 1400px;
  margin: 0 auto 20px;
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* Estilos para el h2 de section */
section h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
  font-weight: 700;
  color: #005ba4;
}

/* Estilos para los párrafos de section */
section p {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 20px;
  text-align: center;
}

@media (max-width: 1200px) {
  section {
    padding: 30px 16px;
    margin: 0 16px 15px;
    border-radius: 12px;
  }

  section h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  section p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
  }
}

main {
  padding-top: 90px; /* deja hueco para el header fijo */
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 1200px) {
  main {
    padding-top: 80px;
  }
}

/* ---- SECCIÓN APARTAMENTO ---- */

#apartamento {
  padding: 40px 30px 45px;
}

#apartamento h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #005ba4;
  text-align: center;
}

#apartamento p {
  text-align: center; /* aquí mejor alineado a la izquierda */
}

/* Grid de bloques del apartamento */
.apartamento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Cada bloque: mini-tarjeta dentro de la sección */
.apartamento-bloque {
  background-color: #f7f9ff;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Bloque que ocupa todo el ancho (terraza) */
.apartamento-bloque-full {
  grid-column: 1 / -1;
}

/* Intro apartamento: texto + foto lado a lado */
.apartamento-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 40px; /* más separación con las tarjetas inferiores */
}

.apartamento-intro-text {
  max-width: 520px; /* evita líneas demasiado largas */
}

.apartamento-intro-text p {
  text-align: left;
}

@media (max-width: 1200px) {
  #apartamento {
    padding: 30px 20px 35px;
  }

  #apartamento h3 {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .apartamento-intro {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
  }

  .apartamento-intro-text {
    max-width: 100%;
  }

  .apartamento-intro img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
  }

  .apartamento-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
  }

  .apartamento-bloque {
    padding: 14px 16px;
    border-radius: 10px;
  }

  .apartamento-bloque h4 {
    font-size: 14px;
  }

  .apartamento-bloque p {
    font-size: 13px;
  }
}

.apartamento-intro-text h4 {
  text-align: left;
  margin-bottom: 10px;
}

.apartamento-intro-foto {
  display: flex;
  justify-content: flex-end;
}

.apartamento-intro-foto img {
  width: 100%;
  max-width: 520px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  display: block;
  object-fit: cover;
  max-height: 360px;
}

/* Responsive: apilar en columna en pantallas pequeñas */
@media (max-width: 900px) {
  .apartamento-intro {
    grid-template-columns: 1fr;
  }

  .apartamento-intro-foto {
    justify-content: center;
    order: -1; /* foto arriba, texto debajo; quítalo si no te gusta */
  }

  .apartamento-intro-foto img {
    max-width: 100%;
  }
}

/* ---- HERO ---- */
.hero {
  padding-top: 90px; /* deja sitio al header fijo */
  padding-bottom: 40px;
  display: flex;
  justify-content: center;
  align-items: center;

  /* Sobrescribe el estilo general de section
     para que la tarjeta sea solo .hero-card */
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

/* Tarjeta del hero con el mismo estilo que las secciones */
.hero-card {
  max-width: 1400px;
  width: 100%;
  margin: 0 20px;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  padding: 40px 30px;
  text-align: center;
}

.hero-card h1 {
  font-size: 32px;
  margin-bottom: 12px;
  color: #005ba4;
}

.hero-card p {
  max-width: 650px;
  margin: 0 auto 20px;
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

@media (max-width: 1200px) {
  .hero {
    padding-top: 80px;
    padding-bottom: 30px;
  }

  .hero-card {
    margin: 0 16px;
    padding: 30px 20px;
    border-radius: 12px;
  }

  .hero-card h1 {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .hero-card p {
    font-size: 14px;
    line-height: 1.5;
    max-width: 100%;
  }
}

/* ---- SERVICIOS ---- */
#servicios .servicios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 260px));
  gap: 20px;
  justify-content: center;
  padding: 20px;
}

#servicios .servicio-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  flex: 0 1 260px;
  max-width: 260px;
  margin: 0;
}

.servicio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.servicio-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: #005ba4;
  text-align: center;
}

.servicio-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555;
  text-align: center;
}

/* Icono destacado en las tarjetas de servicio */
.highlight-icon {
  font-size: 40px;
  margin-bottom: 15px;
  text-align: center;
}

@media (max-width: 1200px) {
  #servicios .servicios {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 15px;
  }

  #servicios .servicio-card {
    padding: 16px;
    border-radius: 10px;
    max-width: none;
  }

  .servicio-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }

  .servicio-card p {
    font-size: 0.9rem;
  }

  .highlight-icon {
    font-size: 32px;
    margin-bottom: 12px;
  }
}

/* ---- SELECTOR MESES CALENDARIO ---- */
.selector-meses {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0;
  padding: 12px;
  background-color: #f5f7fb;
  border-radius: 8px;
}

.selector-meses span {
  font-weight: 600;
  color: #333;
}

.btn-mes {
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  background-color: #005ba4;
  color: white;
  cursor: pointer;
  margin: 0 5px;
  text-decoration: none;
  font-size: 13px;
  transition: background-color 0.3s;
}

.btn-mes:hover {
  background-color: #004580;
}

@media (max-width: 1200px) {
  .selector-meses {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    margin: 10px 0;
  }

  .selector-meses span {
    width: 100%;
    text-align: center;
    margin-bottom: 8px;
  }

  .btn-mes {
    padding: 10px 12px;
    margin: 4px;
    font-size: 12px;
    flex: 1;
    min-width: 80px;
  }
}

/* ---- MAPA UBICACIÓN ---- */
/* ---- MAPA UBICACIÓN (base) ---- */
.mapa-ubicacion iframe {
  width: 100%;
  height: 350px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: block;
  margin-top: 20px;
}

/* Layout de ubicación: texto + mapa */
.ubicacion-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  flex-wrap: wrap; /* extra seguridad */
}

.ubicacion-texto {
  width: 45%;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.ubicacion-layout .mapa-ubicacion {
  width: 45%;
  margin-top: 0;
  flex-shrink: 0;
}

#ubicacion p {
  text-align: left;
}

/* Tablet: una sola columna */
@media (max-width: 1024px) {
  .ubicacion-layout {
    flex-direction: column; /* CLAVE */
    gap: 20px;
  }

  .ubicacion-texto,
  .ubicacion-layout .mapa-ubicacion {
    width: 100%;
  }

  /* Si quieres el mapa arriba, cambia los order */
  .ubicacion-texto {
    order: 1;
  }
  .ubicacion-layout .mapa-ubicacion {
    order: 2;
  }

  .mapa-ubicacion iframe {
    height: 300px;
  }

  #ubicacion p {
    font-size: 14px;
    line-height: 1.5;
  }
}

/* Móvil */
@media (max-width: 480px) {
  .ubicacion-layout {
    gap: 15px;
  }
  .mapa-ubicacion iframe {
    height: 250px;
  }
}

/* ---- RESERVAS ---- */
#reservas {
  max-width: 1400px;
}

.reservas-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 25px;
  margin-top: 20px;
  align-items: start;
}

@media (max-width: 1100px) {
  .reservas-container {
    grid-template-columns: 1fr;
  }
}

.titulo-reservas {
  text-align: center;
  margin-bottom: 20px;
  font-size: 28px;
  font-weight: 700;
  color: #005ba4;
}

.descripcion-reservas {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 10px;
  color: #555;
  font-size: 15px;
}

/* RESERVAS IZQUIERDA - CALENDARIO */
.reservas-izquierda {
  width: 100%;
}

/* SELECTOR MESES */
.selector-meses {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 15px 0;
  padding: 12px;
  background-color: #f5f7fb;
  border-radius: 8px;
  flex-wrap: wrap;
  gap: 10px;
}

.selector-meses span {
  font-weight: 600;
  color: #333;
  flex: 1;
  text-align: center;
  min-width: 150px;
}

.btn-mes {
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  background-color: #005ba4;
  color: white;
  cursor: pointer;
  text-decoration: none;
  font-size: 12px;
  transition: background-color 0.3s;
  flex-shrink: 0;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.btn-mes:hover {
  background-color: #004580;
}

/* CALENDARIO GRID */
.calendario {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
  margin-top: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 6px;
  max-width: 100%;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.cal-dia {
  padding: 6px 2px;
  text-align: center;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: default;
  user-select: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1px;
  min-height: 50px;
  aspect-ratio: 1;
  transition: all 0.2s ease;
}

.cal-dia .dia-numero {
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.cal-dia .dia-precio {
  font-size: 9px;
  font-weight: 600;
  color: #005ba4;
  line-height: 1;
}

.cal-dia.disponible {
  background-color: #d7f5e3;
  cursor: pointer;
  border: 1px solid #a8e6c3;
}

.cal-dia.disponible:hover {
  background-color: #b8e6cc;
  transform: scale(1.05);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.cal-dia.ocupado {
  background-color: #ffd5d5;
  border: 1px solid #ffb3b3;
}

.cal-dia.ocupado .dia-precio {
  color: #888;
}

.cal-dia.pasado {
  background-color: #e0e0e0;
  border: 1px solid #bdbdbd;
  cursor: not-allowed;
  opacity: 0.6;
}

/* LEYENDA CALENDARIO */
.leyenda-calendario {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 6px;
}

.leyenda-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.leyenda-color {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.leyenda-color.disponible {
  background-color: #d7f5e3;
}

.leyenda-color.ocupado {
  background-color: #ffd5d5;
}

.leyenda-color.pasado {
  background-color: #e0e0e0;
}

/* RESPONSIVE MÓVIL */
@media (max-width: 1200px) {
  #reservas {
    padding: 0 16px;
  }

  .reservas-izquierda {
    width: 100%;
  }

  .selector-meses {
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    margin: 12px 0;
  }

  .selector-meses span {
    width: 100%;
    min-width: auto;
    padding: 8px 0;
    border-bottom: 2px solid #ddd;
    margin-bottom: 8px;
  }

  .btn-mes {
    flex: 1;
    min-width: auto;
    width: 100%;
    padding: 10px;
    font-size: 13px;
    min-height: 44px;
  }

  .calendario {
    gap: 2px;
    padding: 5px;
    margin-top: 10px;
  }

  .cal-dia {
    min-height: 48px;
    padding: 4px 1px;
    font-size: 10px;
    gap: 0px;
  }

  .cal-dia .dia-numero {
    font-size: 12px;
  }

  .cal-dia .dia-precio {
    font-size: 8px;
  }

  .leyenda-calendario {
    gap: 10px;
    padding: 8px;
    margin-top: 10px;
  }

  .leyenda-item {
    font-size: 11px;
    gap: 5px;
  }

  .leyenda-color {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 600px) {
  .calendario {
    gap: 2px;
    padding: 5px;
    margin-top: 10px;
    border-radius: 6px;
  }

  .cal-dia {
    min-height: 46px;
    padding: 4px 1px;
    font-size: 10px;
    border-radius: 3px;
    gap: 0;
  }

  .cal-dia .dia-numero {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
  }

  .cal-dia .dia-precio {
    font-size: 8px;
    line-height: 1;
  }

  .leyenda-calendario {
    gap: 8px;
    padding: 8px 6px;
    margin-top: 10px;
  }

  .leyenda-item {
    font-size: 11px;
    gap: 5px;
  }

  .leyenda-color {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 480px) {
  .selector-meses {
    flex-direction: column;
    padding: 8px;
    gap: 6px;
  }

  .selector-meses span {
    font-size: 13px;
    padding: 6px 0;
    margin-bottom: 6px;
  }

  .btn-mes {
    width: 100%;
    padding: 10px 8px;
    font-size: 12px;
    min-height: 44px;
  }

  .calendario {
    gap: 1px;
    padding: 4px;
    border-radius: 6px;
    margin-top: 10px;
  }

  .cal-dia {
    min-height: 40px;
    padding: 3px 0;
    font-size: 9px;
    border-radius: 3px;
    gap: 0;
  }

  .cal-dia .dia-numero {
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
  }

  .cal-dia .dia-precio {
    font-size: 7px;
    line-height: 1;
  }

  .leyenda-calendario {
    flex-direction: column;
    gap: 6px;
    padding: 6px;
    margin-top: 8px;
  }

  .leyenda-item {
    width: 100%;
    font-size: 10px;
    gap: 6px;
  }

  .leyenda-color {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
  }
}

@media (max-width: 380px) {
  .calendario {
    gap: 1px;
    padding: 3px;
    margin-top: 8px;
  }

  .cal-dia {
    min-height: 36px;
    padding: 2px 0;
    font-size: 8px;
  }

  .cal-dia .dia-numero {
    font-size: 10px;
  }

  .cal-dia .dia-precio {
    font-size: 6px;
  }

  .leyenda-calendario {
    gap: 4px;
    padding: 4px;
  }

  .leyenda-item {
    font-size: 9px;
    gap: 4px;
  }

  .leyenda-color {
    width: 20px;
    height: 20px;
  }
}

/* Días seleccionados */
.cal-dia.seleccionado-entrada {
  background-color: #005ba4 !important;
  color: white;
  font-weight: bold;
  border: 2px solid #003d75;
}

.cal-dia.seleccionado-entrada .dia-numero,
.cal-dia.seleccionado-entrada .dia-precio {
  color: white;
}

.cal-dia.seleccionado-salida {
  background-color: #0077cc !important;
  color: white;
  font-weight: bold;
  border: 2px solid #005ba4;
}

.cal-dia.seleccionado-salida .dia-numero,
.cal-dia.seleccionado-salida .dia-precio {
  color: white;
}

.cal-dia.seleccionado-rango {
  background-color: #a8d5f7 !important;
  border: 1px solid #0077cc;
}

.cal-dia.seleccionado-rango .dia-precio {
  color: #003d75;
}

/* Efecto hover para preview del rango */
.cal-dia.hover-rango {
  background-color: #c8e3f7 !important;
  border: 1px dashed #0077cc;
}

/* ---- FORMULARIOS GENERALES ---- */
form input,
form select,
form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 5px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.3s;
}

form input:focus,
form select:focus,
form textarea:focus {
  outline: none;
  border-color: #005ba4;
  box-shadow: 0 0 0 3px rgba(0, 91, 164, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
  font-size: 14px;
}

.form-hint {
  display: block;
  font-size: 12px;
  color: #666;
  margin-top: 4px;
  font-style: italic;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

/* Espacio entre campos en filas */
.form-row .form-group {
  margin-bottom: 0;
}

@media (max-width: 1200px) {
  form input,
  form select,
  form textarea {
    padding: 10px;
    font-size: 16px;
    border-radius: 6px;
    margin-bottom: 4px;
  }

  .form-group {
    margin-bottom: 15px;
  }

  .form-group label {
    font-size: 13px;
    margin-bottom: 5px;
  }

  .form-hint {
    font-size: 11px;
    margin-top: 3px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ---- CONTACTO ---- */
#contacto {
  max-width: 1400px;
  margin: 40px auto;
  padding: 40px 30px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

#contacto h2 {
  text-align: center;
  margin-bottom: 10px;
  color: #005ba4;
}

#contacto p {
  text-align: center;
  margin-bottom: 10px;
  color: #555;
}

/* Enlace de WhatsApp */
#contacto a {
  color: #0a8f3a;
  font-weight: 600;
  text-decoration: none;
}

#contacto a:hover {
  text-decoration: underline;
}

/* Formulario rápido de contacto */
.formulario-rapido {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.formulario-rapido label {
  font-weight: 600;
  margin-bottom: 4px;
  color: #333;
}

.formulario-rapido input,
.formulario-rapido textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d0d0d0;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.formulario-rapido input:focus,
.formulario-rapido textarea:focus {
  outline: none;
  border-color: #0056b3;
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.15);
}

/* Botón enviar contacto */
.formulario-rapido button {
  margin-top: 10px;
  padding: 10px 18px;
  border: none;
  border-radius: 999px;
  background: #0056b3;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.formulario-rapido button:hover {
  background: #004292;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.formulario-rapido button:active {
  transform: translateY(0);
  box-shadow: none;
}

@media (max-width: 1200px) {
  #contacto {
    margin: 30px 16px;
    padding: 30px 20px;
    border-radius: 12px;
  }

  #contacto h2 {
    font-size: 24px;
    margin-bottom: 8px;
  }

  #contacto p {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .formulario-rapido {
    gap: 10px;
    margin-top: 15px;
  }

  .formulario-rapido label {
    font-size: 13px;
    margin-bottom: 3px;
  }

  .formulario-rapido input,
  .formulario-rapido textarea {
    padding: 10px;
    font-size: 16px;
    border-radius: 6px;
  }

  .formulario-rapido button {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    align-self: stretch;
    text-align: center;
    margin-top: 8px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
    gap: 10px;
  }

  .btn-submit,
  .btn-limpiar {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
  }
}

/* ---- CHECKBOX / PRIVACIDAD ---- */
.checkbox-group {
  margin: 20px 0;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 3px 0 0 0;
  cursor: pointer;
}

.checkbox-label span {
  flex: 1;
  font-size: 13px;
  line-height: 1.5;
}

.checkbox-label a {
  color: #005ba4;
  text-decoration: underline;
}

.form-actions {
  margin-top: 25px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.btn-submit {
  padding: 14px 30px;
  border-radius: 999px;
  border: none;
  background-color: #005ba4;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.3s;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-submit:hover {
  background-color: #004580;
}

.btn-limpiar {
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background-color: #f5f5f5;
  color: #333;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px auto;
  width: fit-content;
}

.btn-limpiar:hover {
  background-color: #e8e8e8;
  border-color: #bbb;
}

.form-note {
  text-align: center;
  font-size: 12px;
  color: #666;
  margin-top: 10px;
}

.info-privacidad {
  background-color: #e8f4fd;
  border-left: 4px solid #005ba4;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 25px;
}

.info-privacidad p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

/* Botones genéricos en formularios */
form button {
  padding: 10px 15px;
  border-radius: 999px;
  border: none;
  background-color: #005ba4;
  color: #fff;
  cursor: pointer;
  min-height: 44px;
}

form button:hover {
  background-color: #004580;
}

@media (max-width: 1200px) {
  .btn-submit {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    min-height: 48px;
  }

  form button {
    width: 100%;
    padding: 12px;
    min-height: 48px;
  }

  .info-privacidad {
    padding: 12px;
    font-size: 13px;
  }

  .info-privacidad p {
    font-size: 13px;
  }

  .form-note {
    font-size: 11px;
  }
}

/* ---- RESUMEN DE RESERVA ---- */
.resumen-reserva {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  color: white;
}

.resumen-reserva h4 {
  margin: 0 0 15px 0;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

.resumen-contenido {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 15px;
  backdrop-filter: blur(10px);
}

.resumen-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
}

.resumen-label {
  font-weight: 500;
  opacity: 0.95;
}

.resumen-valor {
  font-weight: 600;
}

.resumen-separador {
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
  margin: 10px 0;
}

.resumen-total {
  font-size: 18px;
  padding-top: 10px;
}

.resumen-total .resumen-valor {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ---- GALERÍA IMÁGENES ---- */
table {
  border-collapse: collapse;
}

table th,
table td {
  padding: 5px;
}

.disenio-imagenes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.disenio-imagenes h2 {
  text-align: center;
  color: #005ba4;
  font-size: 24px;
  margin-bottom: 20px;
}

.disenio-imagenes img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.disenio-imagenes img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Título de la página de imágenes */
.titulo-imagenes {
  text-align: center;
  margin-bottom: 25px;
  font-size: 28px;
  font-weight: 700;
  color: #005ba4;
}

/* ---- MODAL DE IMÁGENES ---- */
.modal {
  display: none; /* Se cambia a flex desde JS */
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 10px;
  display: block;
}

/* Botones anterior/siguiente */
.modal .prev,
.modal .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 50px;
  color: #fff;
  cursor: pointer;
  user-select: none;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  border: none;
  z-index: 2100;
}

.modal .prev {
  left: 350px;
}

.modal .next {
  right: 350px;
}

/* Botón de cierre (X) */
.modal .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
}

/* ---- FOOTER ---- */
footer {
  text-align: center;
  padding: 20px;
  background-color: #f5f7fb;
  color: #777;
  font-size: 14px;
  margin-top: 40px;
}

footer a {
  color: #005ba4;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 1200px) {
  footer {
    padding: 15px 10px;
    font-size: 12px;
    margin-top: 30px;
  }

  footer p {
    margin: 5px 0;
  }

  footer a {
    display: block;
    margin: 3px 0;
  }
}

/* Badge de origen en el calendario */
.cal-dia {
  position: relative;
}

.badge-origen {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 11px;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* Si quieres que en móvil no moleste */
@media (max-width: 520px) {
  .badge-origen {
    top: 4px;
    right: 4px;
    font-size: 10px;
    padding: 3px 5px;
  }
}

/* ==== ESTILOS MEJORADOS DE FORMULARIOS ADMIN ==== */

/* Resumen de facturación */
.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 900px) {
  .admin-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .admin-summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .admin-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .admin-summary-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.admin-summary-card {
  background: #f5f7fb;
  border-radius: 10px;
  padding: 12px 14px;
}

.admin-summary-label {
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
}

.admin-summary-value {
  font-size: 20px;
  font-weight: 700;
}

@media (max-width: 700px) {
  .admin-summary-card {
    padding: 10px 12px;
  }

  .admin-summary-label {
    font-size: 11px;
  }

  .admin-summary-value {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .admin-summary-card {
    padding: 8px 10px;
  }

  .admin-summary-label {
    font-size: 10px;
  }

  .admin-summary-value {
    font-size: 14px;
  }
}

/* Filtros listados facturas */
.admin-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 18px;
  margin-top: 10px;
}

.admin-filters-actions {
  text-align: right;
}

@media (max-width: 900px) {
  .admin-filters {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

@media (max-width: 700px) {
  .admin-filters {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .admin-filters-actions {
    text-align: left;
  }
}

@media (max-width: 600px) {
  .admin-filters {
    grid-template-columns: 1fr;
  }

  .admin-filters-actions {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .admin-filters {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 12px;
    margin-top: 8px;
  }
}

/* Tabla facturas */
.admin-table-wrapper {
  overflow: auto;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table thead {
  background: #f5f7fb;
}

.admin-table th,
.admin-table td {
  padding: 10px 8px;
  text-align: left;
}

.admin-table th.text-right,
.admin-table td.text-right {
  text-align: right;
}

.admin-table-empty {
  padding: 12px 10px;
  text-align: center;
  color: #777;
}

@media (max-width: 700px) {
  .admin-table {
    font-size: 11px;
  }

  .admin-table th,
  .admin-table td {
    padding: 8px 6px;
  }

  .admin-table-wrapper {
    border-radius: 8px;
  }
}

@media (max-width: 600px) {
  .admin-table {
    font-size: 10px;
  }

  .admin-table th,
  .admin-table td {
    padding: 6px 4px;
  }

  .admin-table-empty {
    padding: 10px 8px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .admin-table {
    font-size: 9px;
  }

  .admin-table th,
  .admin-table td {
    padding: 5px 3px;
  }
}

/* Acciones y botones pequeños */
.admin-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-inline-form {
  display: inline;
  margin: 0;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: #f1f3f7;
  color: #005ba4;
  text-decoration: none;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease, transform 0.1s ease,
    box-shadow 0.2s ease;
  flex-shrink: 0;
}

.btn-icon:hover {
  background: #e0e7ff;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

@media (max-width: 700px) {
  .btn-icon {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .btn-icon {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
}

.btn-chip {
  padding: 8px 14px;
  border-radius: 6px;
  border: none;
  background: linear-gradient(135deg, #005ba4 0%, #004580 100%);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 36px;
  box-shadow: 0 2px 6px rgba(0, 91, 164, 0.25);
  font-weight: 600;
}

.btn-chip--success {
  background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
  box-shadow: 0 2px 6px rgba(46, 125, 50, 0.25);
}

.btn-chip--danger {
  background: linear-gradient(135deg, #c62828 0%, #ad1457 100%);
  box-shadow: 0 2px 6px rgba(198, 40, 40, 0.25);
}

.btn-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 91, 164, 0.35);
}

.btn-chip--success:hover {
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.35);
}

.btn-chip--danger:hover {
  box-shadow: 0 4px 12px rgba(198, 40, 40, 0.35);
}

.btn-chip:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 91, 164, 0.25);
}

.btn-chip:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 700px) {
  .btn-chip {
    padding: 7px 12px;
    font-size: 11px;
    min-height: 40px;
  }
}

@media (max-width: 480px) {
  .btn-chip {
    padding: 6px 10px;
    font-size: 10px;
    min-height: 36px;
  }
}

/* Badges de estado factura */
.badge-estado {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.badge-estado--emitida {
  background: #e3f2fd;
  color: #1565c0;
}

.badge-estado--pagada {
  background: #e8f5e9;
  color: #2e7d32;
}

.badge-estado--anulada {
  background: #ffebee;
  color: #c62828;
}

.badge-estado--borrador {
  background: #fff3e0;
  color: #ef6c00;
}

/* Alinear acciones de formularios en admin */
.form-actions-left {
  text-align: left;
}

.pago-contenedor {
  max-width: 600px;
  margin: 80px auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  font-family: Arial, sans-serif;
}
.pago-contenedor h1 {
  margin-top: 0;
  margin-bottom: 10px;
}
.pago-resumen {
  margin-bottom: 20px;
}
.pago-resumen p {
  margin: 5px 0;
}
.pago-total {
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 10px;
}
.btn-pagar {
  display: inline-block;
  background: #28a745;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  text-decoration: none;
}
.btn-pagar:hover {
  background: #218838;
}
.pago-error {
  background: #f8d7da;
  color: #721c24;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 15px;
}

/* ---- SECCIÓN SEO APARTAMENTO (debajo del calendario) ---- */
#seo-apartamento {
  padding: 40px 30px 50px;
}

#seo-apartamento h2 {
  text-align: center; /* mantiene coherencia con otras secciones */
  margin-bottom: 25px;
}

#seo-apartamento p {
  max-width: 900px; /* para que no se hagan líneas demasiado largas */
  margin: 0 auto 16px; /* centramos el bloque pero texto alineado a la izquierda */
  text-align: left;
}

/* =======================================
   LAYOUT 2 COLUMNAS: SEO + RESEÑAS
   ======================================= */
.seo-apartamento-wrapper {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
  padding: 0 20px;
}

.seo-apartamento-dos-columnas {
  display: block;
  padding: 40px 30px 50px;
}

.seo-texto h2 {
  font-size: 28px;
  color: #005ba4;
  margin-bottom: 20px;
  font-weight: 700;
}

.seo-texto p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 15px;
  text-align: justify;
}

/* RESEÑAS COMPACTAS EN COLUMNA DERECHA */
.seo-resenas {
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.15) 0%,
    rgba(118, 75, 162, 0.15) 100%
  );
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.resenas-header-compacta h3 {
  font-size: 20px;
  color: #005ba4;
  margin-bottom: 15px;
  margin-top: 0;
  font-weight: 600;
}

.resenas-stats-compacta {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.resena-promedio-compacta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.resena-estrellas-compacta {
  font-size: 18px;
  color: #ffc107;
}

.resena-total-compacta {
  font-size: 13px;
  color: #999;
}

.resenas-grid-compacta {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.resena-card-compacta {
  padding: 15px;
  background: #f9f9f9;
  border-radius: 6px;
  border-left: 3px solid #667eea;
}

.resena-header-card-compacta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.resena-nombre-compacta {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.resena-estrellas-compacta-card {
  font-size: 14px;
  color: #ffc107;
}

.resena-comentario-compacta {
  font-size: 14px;
  line-height: 1.7;
  color: #666;
  margin: 10px 0;
  font-style: italic;
}

.resena-fecha-compacta {
  font-size: 12px;
  color: #999;
}

/* RESPONSIVE: 1 columna en mobile */
@media (max-width: 768px) {
  .seo-apartamento-wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .seo-apartamento-dos-columnas {
    padding: 30px 20px;
  }

  .seo-resenas {
    position: static;
    width: 100%;
  }

  .seo-texto h2 {
    font-size: 24px;
  }

  .seo-texto p {
    font-size: 15px;
    text-align: left;
  }
}

/* FONDO PARA SECCIÓN DE RESEÑAS - FUERA DEL CONTENEDOR */
.seo-apartamento-dos-columnas::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 45%;
  height: 100%;
  background-image: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.08) 0%,
    rgba(118, 75, 162, 0.08) 100%
  );
  z-index: -1;
  border-radius: 8px;
  pointer-events: none;
}

.seo-apartamento-dos-columnas {
  position: relative;
}

/* =======================================
   AJUSTES DE TAMAÑO GENERAL + NAV
   ======================================= */

/* Subimos un poco el tamaño base de texto */
body {
  font-size: 17px;
}

/* Titulares y textos principales un poco más grandes */
.hero-card h1 {
  font-size: 34px;
}

section h2,
.titulo-reservas,
.titulo-imagenes {
  font-size: 30px;
}

section p,
.hero-card p,
.descripcion-reservas,
#contacto p,
#seo-apartamento p {
  font-size: 17px;
}

/* Formularios: inputs y textarea más cómodos */
form input,
form select,
form textarea,
.formulario-rapido input,
.formulario-rapido textarea {
  font-size: 15px;
}

/* Calendario un poco más legible */
.cal-dia {
  font-size: 13px;
}

.cal-dia .dia-numero {
  font-size: 16px;
}

.cal-dia .dia-precio {
  font-size: 12px;
}

/* NAV ESCRITORIO: más alto y con texto más grande */
@media (min-width: 901px) {
  header {
    height: 80px;
  }
}

.logo-img {
  height: 44px;
}

.logo-main {
  font-size: 20px;
}

.logo-sub {
  font-size: 13px;
}

.main-nav {
  gap: 20px;
  font-size: 15px;
}

.nav-cta {
  padding: 9px 18px;
  font-size: 15px;
}

/* NAV + TIPOS EN MÓVIL */
@media (max-width: 900px) {
  .header-inner {
    gap: 10px;
  }

  .logo-img {
    height: 38px;
  }

  .logo-main {
    font-size: 18px;
  }

  .main-nav {
    font-size: 15px; /* antes 13px */
  }

  .nav-cta {
    font-size: 15px;
    padding: 8px 18px;
  }
}

/* Ajustes suaves para móvil (texto algo más grande y cómodo) */
@media (max-width: 600px) {
  section {
    padding: 28px 18px;
  }

  .hero-card {
    padding: 30px 18px;
  }

  .hero-card h1 {
    font-size: 28px;
  }

  .hero-card p {
    font-size: 16px;
  }
}

/* =======================================
   BANNER DE COOKIES
   ======================================= */

/* =======================================
   BACKDROP PARA COOKIES
   ======================================= */
.cookie-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 3999;
  display: none;
}

.cookie-backdrop.active {
  display: block;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 4000;
  background: rgba(15, 23, 42, 0.98); /* fondo oscuro moderno */
  color: #ffffff;
  padding: 24px 32px;
  display: none; /* se muestra por JS si no hay decisión */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  font-size: 15px;
  border-radius: 8px;
  max-width: 800px;
  width: 90%;
}

.cookie-banner__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  flex-wrap: wrap;
  text-align: left;
}

.cookie-banner__text {
  margin: 0;
  flex: 1 1 auto;
  line-height: 1.6;
  font-size: 15px;
  min-width: 250px;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  justify-content: flex-end;
  flex-shrink: 0;
}

.cookie-banner__link {
  color: #a5b4fc;
  font-size: 13px;
  text-decoration: underline;
  flex: 0 0 auto;
  margin-top: 0;
}

.cookie-banner__link:hover {
  color: #e5e7eb;
}

/* Botones cookies */
.cookie-btn {
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.cookie-btn--primario {
  background-color: #005ba4;
  color: #ffffff;
}

.cookie-btn--primario:hover {
  background-color: #004580;
}

.cookie-btn--secundario {
  background-color: #e5e7eb;
  color: #111827;
}

.cookie-btn--secundario:hover {
  background-color: #d1d5db;
}

/* Móvil: más alto y texto un poco mayor */
@media (max-width: 600px) {
  .cookie-banner {
    font-size: 15px;
    padding: 16px 14px 20px;
  }

  .cookie-banner__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .cookie-banner__link {
    margin-top: 4px;
  }
}

/* =======================================
   ESTILOS MEJORADOS DE FORMULARIOS ADMIN
   ======================================= */

/* Inputs y textarea generales del admin */
.admin-wrapper input[type="text"],
.admin-wrapper input[type="email"],
.admin-wrapper input[type="password"],
.admin-wrapper input[type="date"],
.admin-wrapper input[type="number"],
.admin-wrapper input[type="tel"],
.admin-wrapper select,
.admin-wrapper textarea,
.admin-section input[type="text"],
.admin-section input[type="email"],
.admin-section input[type="password"],
.admin-section input[type="date"],
.admin-section input[type="number"],
.admin-section input[type="tel"],
.admin-section select,
.admin-section textarea {
  font-size: 14px;
  padding: 10px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  background: white;
  color: #333;
  font-family: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 40px;
}

.admin-wrapper input[type="text"]:focus,
.admin-wrapper input[type="email"]:focus,
.admin-wrapper input[type="password"]:focus,
.admin-wrapper input[type="date"]:focus,
.admin-wrapper input[type="number"]:focus,
.admin-wrapper input[type="tel"]:focus,
.admin-wrapper select:focus,
.admin-wrapper textarea:focus,
.admin-section input[type="text"]:focus,
.admin-section input[type="email"]:focus,
.admin-section input[type="password"]:focus,
.admin-section input[type="date"]:focus,
.admin-section input[type="number"]:focus,
.admin-section input[type="tel"]:focus,
.admin-section select:focus,
.admin-section textarea:focus {
  border-color: #005ba4;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 91, 164, 0.1);
  background: #fafbff;
}

.admin-wrapper textarea,
.admin-section textarea {
  resize: vertical;
  min-height: 100px;
}

.admin-wrapper select,
.admin-section select {
  cursor: pointer;
}

/* Group de formulario */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #333;
  font-size: 13px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  min-height: 36px;
  box-sizing: border-box;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

@media (max-width: 700px) {
  .admin-wrapper input[type="text"],
  .admin-wrapper input[type="email"],
  .admin-wrapper input[type="password"],
  .admin-wrapper input[type="date"],
  .admin-wrapper input[type="number"],
  .admin-wrapper input[type="tel"],
  .admin-wrapper select,
  .admin-wrapper textarea,
  .admin-section input[type="text"],
  .admin-section input[type="email"],
  .admin-section input[type="password"],
  .admin-section input[type="date"],
  .admin-section input[type="number"],
  .admin-section input[type="tel"],
  .admin-section select,
  .admin-section textarea {
    font-size: 15px; /* Previene zoom en iOS */
    padding: 12px 14px;
    min-height: 44px;
  }

  .form-group {
    margin-bottom: 18px;
  }

  .form-group label {
    font-size: 14px;
    margin-bottom: 8px;
  }
}

@media (max-width: 480px) {
  .admin-wrapper input[type="text"],
  .admin-wrapper input[type="email"],
  .admin-wrapper input[type="password"],
  .admin-wrapper input[type="date"],
  .admin-wrapper input[type="number"],
  .admin-wrapper input[type="tel"],
  .admin-wrapper select,
  .admin-wrapper textarea,
  .admin-section input[type="text"],
  .admin-section input[type="email"],
  .admin-section input[type="password"],
  .admin-section input[type="date"],
  .admin-section input[type="number"],
  .admin-section input[type="tel"],
  .admin-section select,
  .admin-section textarea {
    font-size: 16px; /* Tambi\u00e9n 16px para evitar zoom */
    padding: 11px 12px;
    min-height: 44px;
  }

  .form-group {
    margin-bottom: 16px;
  }

  .form-group label {
    font-size: 13px;
    margin-bottom: 6px;
  }
}

/* Mensajes y alertas mejoradas */
.admin-msg {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14px;
  border-left: 4px solid;
  background: #e8f5e9;
  border-color: #2e7d32;
  color: #1b5e20;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(46, 125, 50, 0.15);
  animation: slideIn 0.3s ease;
}

.admin-msg.error {
  background: #ffebee;
  border-color: #c62828;
  color: #7d1d1d;
  box-shadow: 0 2px 8px rgba(198, 40, 40, 0.15);
}

.admin-msg.warning {
  background: #fff3e0;
  border-color: #ef6c00;
  color: #7d3c02;
  box-shadow: 0 2px 8px rgba(239, 108, 0, 0.15);
}

.admin-msg.info {
  background: #e3f2fd;
  border-color: #1565c0;
  color: #0d3c91;
  box-shadow: 0 2px 8px rgba(21, 101, 192, 0.15);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mejorar apariencia de headers y secciones */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f0f0f0;
}

.admin-header h1 {
  margin: 0;
  font-size: 28px;
  color: #005ba4;
  flex: 1;
}

.admin-header p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.admin-link-light {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  text-decoration: none;
  color: #005ba4;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 6px 12px;
  border-radius: 4px;
}

.admin-link-light:hover {
  background: rgba(0, 91, 164, 0.1);
  color: #004580;
}

/* =======================================
   MEDIA QUERIES MEJORADAS - ADMIN (RESPONSIVE)
   ======================================= */

/* Ultra-responsive para dispositivos pequeños (max-width: 380px) */
@media (max-width: 380px) {
  .admin-panel,
  .admin-wrapper,
  .admin-section {
    border-radius: 12px;
  }

  .admin-panel {
    margin: 80px 10px 15px;
    padding: 18px 12px 22px;
  }

  .admin-header h1 {
    font-size: 20px;
  }

  .admin-header p {
    font-size: 14px;
  }

  .admin-card {
    padding: 16px 12px 14px;
  }

  .admin-card-icon {
    width: 46px;
    height: 46px;
    font-size: 24px;
    margin-bottom: 10px;
  }

  .admin-card h2 {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .admin-card p {
    font-size: 12px;
    line-height: 1.4;
  }

  .admin-table {
    font-size: 11px;
  }

  .admin-table th,
  .admin-table td {
    padding: 6px 4px;
  }

  .btn-primary,
  .btn-small {
    padding: 10px 14px;
    font-size: 13px;
  }

  .btn-small {
    margin-right: 4px;
  }

  .btn-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

/* Landscape (horizontal) - tablets pequeñas y móviles en horizontal */
@media (max-height: 500px) and (orientation: landscape) {
  .admin-panel {
    margin-top: 70px;
    margin-bottom: 15px;
    padding: 16px 12px;
  }

  .admin-header h1 {
    font-size: 18px;
    margin-bottom: 3px;
  }

  .admin-grid {
    gap: 10px;
  }

  .admin-card {
    padding: 12px 10px;
  }

  .admin-card-icon {
    width: 34px;
    height: 34px;
    font-size: 16px;
    margin-bottom: 6px;
  }
}

/* Pantallas grandes - mejoras adicionales */
@media (min-width: 1200px) {
  .admin-panel {
    max-width: 1200px;
  }

  .admin-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
  }

  .admin-section {
    max-width: 1200px;
  }

  .admin-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Ajustes adicionales para mejor accesibilidad en móviles */
@media (max-width: 600px) {
  /* Aumentar área de click de botones */
  .btn-primary,
  .btn-small,
  .btn-icon,
  .btn-chip {
    min-height: 44px;
    min-width: 44px;
  }

  /* Input fields más grandes en móvil */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="date"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px; /* Previene zoom automático en iOS */
    min-height: 44px;
  }

  /* Espaciado mejor para interacción touch */
  .admin-form-inline {
    gap: 12px;
  }

  .admin-actions {
    gap: 8px;
  }
}

/* =======================================
   PÁGINAS LEGALES (Privacidad / Cookies / Aviso legal)
   ======================================= */

.legal-page {
  padding-top: 100px; /* deja espacio real con header fijo */
  max-width: 1400px;
  margin: 0 auto 40px;
  padding-left: 20px;
  padding-right: 20px;
}

/* Tarjeta legal: reutiliza tu estilo de section, pero con tipografía de lectura */
.legal-card {
  padding: 36px 28px;
}

/* Sobrescribimos el centrado global dentro de páginas legales */
.legal-card h1,
.legal-card h2,
.legal-card p,
.legal-card ul,
.legal-card li {
  text-align: left;
}

.legal-title {
  margin: 0 0 6px 0;
  font-size: 32px;
  color: #005ba4;
}

.legal-meta {
  margin: 0 0 18px 0;
  color: #666;
  font-size: 14px;
}

/* H2 en páginas legales (no centrado) */
.legal-card h2 {
  margin-top: 26px;
  margin-bottom: 10px;
  font-size: 20px;
  color: #005ba4;
}

/* Párrafos de lectura */
.legal-card p {
  margin: 0 0 14px 0;
  color: #555;
  line-height: 1.75;
}

/* Listas con mejor espaciado */
.legal-card ul {
  margin: 10px 0 18px 0;
  padding-left: 18px;
  color: #555;
}

.legal-card li {
  margin: 6px 0;
  line-height: 1.65;
}

/* Links dentro del contenido legal */
.legal-card a {
  color: #005ba4;
  text-decoration: underline;
}

.legal-card a:hover {
  color: #004580;
}

/* Caja informativa */
.legal-callout {
  background-color: #e8f4fd;
  border-left: 4px solid #005ba4;
  padding: 14px 14px;
  border-radius: 8px;
  margin: 16px 0 10px;
}

.legal-callout p {
  margin: 0;
  color: #333;
}

/* Acciones finales */
.legal-actions {
  margin-top: 26px;
  text-align: center;
}

/* Placeholder visual para campos pendientes */
.placeholder {
  color: #8a6d3b;
  background: #fff3cd;
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px solid rgba(138, 109, 59, 0.25);
}

/* Ficha del alojamiento */
.property-card {
  margin: 14px 0 18px;
  padding: 16px 16px;
  background: #f7f9ff;
  border: 1px solid rgba(0, 91, 164, 0.12);
  border-radius: 14px;
}

.property-card__title {
  font-weight: 800;
  color: #005ba4;
  margin-bottom: 10px;
  font-size: 15px;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.property-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.property-label {
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
}

.property-value {
  font-size: 14px;
  color: #222;
  font-weight: 600;
}

.property-note {
  margin-top: 12px;
  margin-bottom: 0;
  font-size: 13px;
  color: #666;
}

/* Footer links (si no lo tenías ya) */
.footer-links {
  margin: 8px 0 0;
  font-size: 13px;
}

/* Responsive legal */
@media (max-width: 700px) {
  .legal-card {
    padding: 28px 18px;
  }

  .legal-title {
    font-size: 26px;
  }

  .property-grid {
    grid-template-columns: 1fr;
  }
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  background: white;
}

.tabla-admin {
  width: 100%;
  border-collapse: collapse;
  min-width: 1150px;
  font-size: 12px;
}

.tabla-admin th,
.tabla-admin td {
  padding: 10px 7px;
  border-bottom: 1px solid #e0e0e0;
  text-align: left;
  vertical-align: middle;
}

.tabla-admin th {
  background-color: #f5f7fb;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  position: sticky;
  top: 0;
}

.tabla-admin tbody tr:hover {
  background-color: #fafbff;
}

/* Permitir que Comentarios rompa línea */
.tabla-admin td.col-comentarios {
  white-space: normal;
  min-width: 200px;
  max-width: 280px;
  word-break: break-word;
}

/* Hacer fechas más compactas */
.tabla-admin td:nth-child(5),
.tabla-admin td:nth-child(6) {
  font-size: 11px;
  font-weight: 500;
}

/* Estado en color */
.tabla-admin td:nth-child(14) {
  font-weight: 600;
  font-size: 11px;
}

@media (max-width: 1100px) {
  .tabla-admin {
    min-width: 1000px;
    font-size: 11px;
  }

  .tabla-admin th,
  .tabla-admin td {
    padding: 8px 5px;
  }

  .tabla-admin td.col-comentarios {
    min-width: 180px;
    max-width: 240px;
  }
}

@media (max-width: 900px) {
  .tabla-admin {
    min-width: 900px;
    font-size: 10px;
  }

  .tabla-admin th,
  .tabla-admin td {
    padding: 7px 4px;
  }

  /* Ocultar columna de Teléfono en tablet */
  .tabla-admin th:nth-child(4),
  .tabla-admin td:nth-child(4) {
    display: none;
  }

  .tabla-admin td.col-comentarios {
    min-width: 160px;
    max-width: 200px;
  }
}

@media (max-width: 700px) {
  .table-responsive {
    border-radius: 6px;
    margin: 16px 0;
  }

  .tabla-admin {
    min-width: 750px;
    font-size: 10px;
  }

  .tabla-admin th,
  .tabla-admin td {
    padding: 6px 3px;
  }

  /* Ocultar Teléfono y Email en móvil */
  .tabla-admin th:nth-child(3),
  .tabla-admin td:nth-child(3),
  .tabla-admin th:nth-child(4),
  .tabla-admin td:nth-child(4) {
    display: none;
  }

  /* Reducir ancho de comentarios */
  .tabla-admin td.col-comentarios {
    min-width: 120px;
    max-width: 160px;
    font-size: 9px;
    max-height: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Método pago más compacto */
  .tabla-admin th:nth-child(12),
  .tabla-admin td:nth-child(12) {
    display: none;
  }
}

@media (max-width: 600px) {
  .tabla-admin {
    min-width: 680px;
    font-size: 9px;
  }

  .tabla-admin th,
  .tabla-admin td {
    padding: 5px 2px;
  }

  /* Ocultar Origen */
  .tabla-admin th:nth-child(11),
  .tabla-admin td:nth-child(11) {
    display: none;
  }

  .tabla-admin td.col-comentarios {
    min-width: 100px;
    max-width: 140px;
    font-size: 8px;
  }

  /* Hacer más compactos los números */
  .tabla-admin td:nth-child(7),
  .tabla-admin td:nth-child(8),
  .tabla-admin td:nth-child(9),
  .tabla-admin td:nth-child(10) {
    font-size: 8px;
  }
}

@media (max-width: 480px) {
  .tabla-admin {
    min-width: 600px;
    font-size: 8px;
  }

  .tabla-admin th,
  .tabla-admin td {
    padding: 4px 2px;
  }

  /* En muy pequeño, ocultar más columnas */
  /* Ocultar Email, Teléfono, Noches, Precio Noche, Origen, Método Pago */
  .tabla-admin th:nth-child(3),
  .tabla-admin td:nth-child(3),
  .tabla-admin th:nth-child(4),
  .tabla-admin td:nth-child(4),
  .tabla-admin th:nth-child(8),
  .tabla-admin td:nth-child(8),
  .tabla-admin th:nth-child(9),
  .tabla-admin td:nth-child(9),
  .tabla-admin th:nth-child(11),
  .tabla-admin td:nth-child(11),
  .tabla-admin th:nth-child(12),
  .tabla-admin td:nth-child(12) {
    display: none;
  }

  .tabla-admin td.col-comentarios {
    min-width: 80px;
    max-width: 120px;
    font-size: 7px;
  }

  /* Condensar filas */
  .tabla-admin th:nth-child(5),
  .tabla-admin td:nth-child(5),
  .tabla-admin th:nth-child(6),
  .tabla-admin td:nth-child(6) {
    font-size: 7px;
  }
}

/* Mejorar acciones en tabla de reservas */
.admin-actions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}

.admin-actions .btn-chip {
  padding: 6px 8px;
  font-size: 11px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 700px) {
  .admin-actions .btn-chip {
    padding: 5px 6px;
    font-size: 10px;
    min-height: 28px;
  }
}

@media (max-width: 480px) {
  .admin-actions {
    gap: 2px;
  }

  .admin-actions .btn-chip {
    padding: 4px 5px;
    font-size: 9px;
    min-height: 24px;
  }
}

/* ===== ESTILOS PÁGINA DE PAGO ===== */
.pago-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 60px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pago-card {
  max-width: 700px;
  width: 100%;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.pago-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 40px 30px;
  text-align: center;
}

.pago-header h1 {
  margin: 0 0 10px 0;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.pago-header p {
  margin: 0;
  font-size: 16px;
  opacity: 0.95;
  font-weight: 300;
}

.pago-contenedor {
  padding: 40px 30px;
}

.pago-saludo {
  font-size: 16px;
  color: #333;
  margin: 0 0 30px 0;
  line-height: 1.6;
}

.pago-resumen {
  background: #f8f9fb;
  border: 1px solid #e8eaed;
  border-radius: 10px;
  padding: 25px;
  margin: 30px 0;
}

.pago-resumen p {
  margin: 12px 0;
  font-size: 15px;
  color: #555;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pago-resumen strong {
  color: #333;
  font-weight: 600;
}

.pago-total {
  border-top: 2px solid #ddd;
  padding-top: 15px;
  margin-top: 20px !important;
  font-size: 18px !important;
  color: #667eea !important;
}

.pago-total strong {
  color: #667eea !important;
}

.pago-metodos {
  margin: 35px 0;
}

.pago-metodos h3 {
  font-size: 16px;
  color: #333;
  margin: 0 0 20px 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pago-botones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.btn-pagar {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-pagar:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-stripe {
  background: linear-gradient(135deg, #635bff 0%, #4945d8 100%);
}

.btn-stripe:hover {
  background: linear-gradient(135deg, #4945d8 0%, #3a36b0 100%);
}

.btn-paypal {
  background: linear-gradient(135deg, #0070ba 0%, #005a94 100%);
}

.btn-paypal:hover {
  background: linear-gradient(135deg, #005a94 0%, #004470 100%);
}

.pago-seguridad {
  background: #f0f8ff;
  border-left: 4px solid #667eea;
  padding: 15px;
  border-radius: 6px;
  margin: 20px 0;
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}

.pago-seguridad strong {
  color: #667eea;
  display: block;
  margin-bottom: 8px;
}

.pago-error {
  background: #fff3cd;
  border: 1px solid #ffc107;
  color: #856404;
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
  font-size: 14px;
  border-left: 4px solid #ffc107;
}

.pago-footer {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #eee;
  margin-top: 30px;
}

.pago-footer a {
  color: #667eea;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
  font-weight: 500;
}

.pago-footer a:hover {
  color: #764ba2;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .pago-botones {
    grid-template-columns: 1fr;
  }

  .pago-header h1 {
    font-size: 24px;
  }

  .pago-contenedor {
    padding: 25px 20px;
  }

  .pago-header {
    padding: 30px 20px;
  }

  .pago-wrapper {
    padding: 40px 15px;
  }
}

/* ===== ESTILOS PÁGINAS DE CONFIRMACIÓN (Pago y Emails) ===== */
.pago-confirmacion {
  max-width: 600px;
  margin: 100px auto;
  padding: 40px;
  background: #f9f9f9;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pago-confirmacion h1 {
  margin-bottom: 20px;
  color: #333;
  font-size: 28px;
}

.pago-confirmacion p {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

.confirmacion-detalles {
  background: #fff;
  padding: 20px;
  border-radius: 6px;
  margin: 20px 0;
  text-align: left;
  border-left: 4px solid #28a745;
}

.confirmacion-detalles p {
  margin: 8px 0;
  font-size: 14px;
}

.confirmacion-detalles strong {
  color: #333;
}

.error-box {
  background: #fff3cd;
  border: 1px solid #ffc107;
  color: #856404;
  padding: 15px;
  border-radius: 6px;
  margin: 20px 0;
  border-left: 4px solid #ffc107;
}

.success-box {
  background: #d4edda;
  border: 1px solid #28a745;
  color: #155724;
  padding: 15px;
  border-radius: 6px;
  margin: 20px 0;
  border-left: 4px solid #28a745;
}

.btn-home {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background: #667eea;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
}

.btn-home:hover {
  background: #5568d3;
}

/* ============================================
   MEDIA QUERIES FINALES PARA MÓVIL
   ============================================ */

@media (max-width: 1200px) {
  /* Imágenes responsivas */
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  /* Tablas responsivas */
  table {
    font-size: 13px;
  }

  /* Espacios generales */
  body {
    background-attachment: scroll;
  }

  /* Headings */
  h1 {
    font-size: 24px !important;
  }

  h2 {
    font-size: 20px !important;
  }

  h3 {
    font-size: 17px !important;
  }

  h4 {
    font-size: 15px !important;
  }

  /* Links clickeables */
  a {
    min-height: 44px;
    display: inline-block;
    padding: 8px 0;
  }

  /* Elementos interactivos con touch-friendly size */
  button,
  input[type="button"],
  input[type="submit"],
  .btn-mes,
  .btn-submit,
  form button {
    min-height: 44px;
    min-width: 44px;
  }

  /* Espacios entre elementos */
  section,
  #reservas,
  #contacto {
    margin-bottom: 15px;
  }

  /* Padding para contenedores */
  .hero,
  main {
    padding-left: 0;
    padding-right: 0;
  }

  /* Cookie banner responsive */
  .cookie-banner {
    padding: 12px;
  }

  .cookie-banner__text {
    font-size: 12px;
    line-height: 1.4;
  }

  .cookie-banner__actions {
    flex-direction: column;
    gap: 8px;
  }

  .cookie-btn {
    width: 100%;
    padding: 10px;
    font-size: 13px;
  }

  /* Texto legible en móvil */
  body {
    font-size: 14px;
  }

  p {
    line-height: 1.5;
  }

  /* Bordes suaves en móvil */
  section,
  .hero-card,
  .servicio-card,
  .apartamento-bloque {
    border-radius: 10px;
  }

  /* Sombras suaves */
  section,
  .hero-card,
  .servicio-card,
  .apartamento-bloque {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }

  /* Transiciones rápidas */
  * {
    transition-duration: 0.2s !important;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  body {
    font-size: 13px;
  }

  h1 {
    font-size: 20px !important;
  }

  h2 {
    font-size: 18px !important;
  }

  section,
  #reservas,
  #contacto {
    padding: 20px 12px;
    margin: 0 0 10px 0;
  }

  section h2 {
    margin-bottom: 15px;
    font-size: 18px;
  }

  .hero-card {
    margin: 0 10px;
    padding: 20px 15px;
  }

  .hero-card h1 {
    font-size: 20px;
  }

  .hero-card p {
    font-size: 13px;
  }

  .servicio-card {
    padding: 12px;
  }

  .apartamento-grid {
    gap: 10px;
  }

  .apartamento-bloque {
    padding: 12px 14px;
  }

  .selector-meses {
    padding: 8px;
  }

  .btn-mes {
    padding: 8px 10px;
    font-size: 11px;
    min-width: 70px;
  }

  form input,
  form select,
  form textarea {
    font-size: 16px;
  }

  button,
  .btn-submit,
  form button {
    min-height: 48px;
    font-size: 14px;
  }

  main {
    padding-top: 75px;
  }

  header {
    height: 65px;
  }

  .main-nav.active {
    top: 65px;
  }
}
/* ====================================
   ESTILOS ADICIONALES PARA ADMIN
   ==================================== */

/* Grid para dos columnas en formularios grandes */
.admin-forms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

@media (max-width: 1000px) {
  .admin-forms-grid {
    gap: 18px;
  }
}

@media (max-width: 900px) {
  .admin-forms-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .admin-forms-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 24px;
  }
}

@media (max-width: 480px) {
  .admin-forms-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 20px;
  }
}

/* Sección de formulario general */
.admin-form-section {
  background: white;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #eee;
  margin-bottom: 20px;
}

.admin-form-section h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 18px;
  color: #333;
}

.admin-form-section p {
  margin: 0 0 12px 0;
}

/* Filtros en fila */
.admin-filter-form {
  margin-bottom: 20px;
}

.admin-filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 15px;
}

.admin-filter-row .form-group {
  margin-bottom: 0;
}

/* Resumen estadísticas */
.admin-summary-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.admin-stat {
  background: #f5f5f5;
  padding: 15px;
  border-radius: 6px;
  text-align: center;
}

.admin-stat-label {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.admin-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #333;
}

/* Tabla admin mejorada */
.tabla-admin-container {
  overflow-x: auto;
  border-radius: 6px;
  border: 1px solid #eee;
  -webkit-overflow-scrolling: touch;
  margin-top: 12px;
}

.tabla-admin {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.tabla-admin thead {
  background: #f5f5f5;
  border-bottom: 2px solid #ddd;
  position: sticky;
  top: 0;
}

.tabla-admin th {
  padding: 12px;
  text-align: left;
  font-weight: 600;
  color: #333;
  font-size: 13px;
  white-space: nowrap;
}

.tabla-admin td {
  padding: 12px;
  border-bottom: 1px solid #eee;
  color: #555;
  font-size: 14px;
}

.tabla-admin tbody tr:hover {
  background: #fafafa;
}

.tabla-admin .text-right {
  text-align: right;
}

/* Responsive para form-section */
@media (max-width: 900px) {
  .admin-form-section {
    padding: 18px;
  }

  .admin-form-section h2 {
    font-size: 17px;
  }

  .admin-filter-row {
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .admin-form-section {
    padding: 16px;
    margin-bottom: 18px;
  }

  .admin-form-section h2 {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .admin-form-section p {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .admin-filter-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tabla-admin-container {
    border-radius: 4px;
  }

  .tabla-admin th,
  .tabla-admin td {
    padding: 10px;
    font-size: 12px;
  }

  .tabla-admin th {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .admin-form-section {
    padding: 14px;
    margin-bottom: 16px;
    border-radius: 6px;
  }

  .admin-form-section h2 {
    font-size: 15px;
    margin-bottom: 8px;
  }

  .admin-form-section p {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .admin-filter-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .tabla-admin-container {
    border-radius: 4px;
    margin-top: 10px;
    border: 1px solid #ddd;
  }

  .tabla-admin {
    font-size: 11px;
  }

  .tabla-admin th,
  .tabla-admin td {
    padding: 8px;
    font-size: 10px;
  }

  .tabla-admin th {
    font-size: 10px;
    font-weight: 600;
  }
}

@media (max-width: 900px) {
  .tabla-admin th,
  .tabla-admin td {
    padding: 8px;
    font-size: 12px;
  }
}

@media (max-width: 600px) {
  .tabla-admin th,
  .tabla-admin td {
    padding: 6px;
    font-size: 11px;
  }
}
/* ====================================
   ESTILOS MODERNOS PARA ADMIN (NUEVO)
   ==================================== */

/* Fondo degradado para todas las páginas admin */
body.admin-body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
  margin: 0;
}

/* Panel principal admin (tarjeta blanca centrada) */
.admin-panel {
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

/* Encabezado del panel */
.admin-panel-top {
  margin-bottom: 40px;
  text-align: center;
}

.admin-panel-top h1 {
  margin: 0 0 12px 0;
  font-size: 36px;
  color: #005ba4;
  font-weight: 700;
}

.admin-panel-top p {
  margin: 0 0 20px 0;
  font-size: 16px;
  color: #666;
  line-height: 1.6;
}

/* Botón "Ver web pública" */
.admin-view-site {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.admin-view-site:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

/* Grid de tarjetas admin */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* Tarjeta individual */
.admin-card {
  display: block;
  padding: 32px 28px;
  background: #f8fafb;
  border: 2px solid #e8ebf0;
  border-radius: 16px;
  text-decoration: none;
  color: #222;
  transition: all 0.3s ease;
  cursor: pointer;
}

.admin-card:hover {
  transform: translateY(-8px);
  border-color: #667eea;
  box-shadow: 0 16px 40px rgba(102, 126, 234, 0.2);
  background: #f0f4ff;
}

/* Tarjeta logout especial */
.admin-card-logout {
  background: #fef5f5;
  border-color: #ffe4e4;
}

.admin-card-logout:hover {
  border-color: #dc3545;
  background: #fff0f0;
  box-shadow: 0 16px 40px rgba(220, 53, 69, 0.15);
}

/* Icono de tarjeta */
.admin-card-icon {
  display: block;
  font-size: 48px;
  margin-bottom: 16px;
  line-height: 1;
}

.admin-card h2 {
  margin: 0 0 12px 0;
  font-size: 20px;
  color: #005ba4;
  font-weight: 600;
}

.admin-card p {
  margin: 0;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* Responsive para tablet */
@media (max-width: 900px) {
  .admin-panel {
    padding: 30px;
    margin: 30px auto;
  }

  .admin-panel-top h1 {
    font-size: 28px;
  }

  .admin-panel-top p {
    font-size: 15px;
  }

  .admin-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
  }

  .admin-card {
    padding: 24px 20px;
  }

  .admin-card-icon {
    font-size: 40px;
    margin-bottom: 12px;
  }

  .admin-card h2 {
    font-size: 18px;
  }

  .admin-card p {
    font-size: 13px;
  }
}

/* Responsive para móvil */
@media (max-width: 600px) {
  .admin-panel {
    padding: 24px 18px;
    margin: 20px auto;
    border-radius: 16px;
  }

  .admin-panel-top {
    margin-bottom: 30px;
  }

  .admin-panel-top h1 {
    font-size: 24px;
  }

  .admin-panel-top p {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .admin-view-site {
    padding: 11px 22px;
    font-size: 13px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .admin-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .admin-card {
    padding: 20px 18px;
  }

  .admin-card-icon {
    font-size: 36px;
    margin-bottom: 10px;
  }

  .admin-card h2 {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .admin-card p {
    font-size: 12px;
  }
}
/* ════════════════════════════════════════════════════════════════ */
/* 🌟 RESEÑAS Y VALORACIONES */
/* ════════════════════════════════════════════════════════════════ */

.resenas-section {
  margin: 60px auto;
  padding: 40px 20px;
  max-width: 1200px;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.05) 0%,
    rgba(118, 75, 162, 0.05) 100%
  );
  border-radius: 8px;
}

.resenas-header {
  text-align: center;
  margin-bottom: 40px;
}

.resenas-header h2 {
  font-size: 32px;
  color: #005ba4;
  margin-bottom: 10px;
  font-weight: 700;
}

.resenas-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.resena-promedio {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.resena-estrellas-grande {
  font-size: 24px;
  color: #ffc107;
}

.resena-total {
  font-size: 14px;
  color: #777;
}

/* Contenedor de reseñas */
.resenas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.resena-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.resena-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.resena-header-card {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 15px;
}

.resena-nombre {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.resena-estrellas {
  font-size: 16px;
  color: #ffc107;
  letter-spacing: 2px;
}

.resena-comentario {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 12px;
  font-style: italic;
}

.resena-fecha {
  font-size: 12px;
  color: #999;
}

/* Formulario de reseña */
.resena-formulario {
  background: white;
  border-radius: 8px;
  padding: 30px;
  margin: 30px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.resena-formulario h3 {
  font-size: 20px;
  color: #005ba4;
  margin-bottom: 20px;
  font-weight: 600;
}

.resena-form-group {
  margin-bottom: 18px;
}

.resena-form-group label {
  display: block;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
  font-size: 14px;
}

.resena-form-group input,
.resena-form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
}

.resena-form-group input:focus,
.resena-form-group textarea:focus {
  outline: none;
  border-color: #005ba4;
  box-shadow: 0 0 0 3px rgba(0, 91, 164, 0.1);
}

.resena-form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.resena-rating {
  display: flex;
  gap: 10px;
  margin-bottom: 5px;
}

.resena-rating input[type="radio"] {
  display: none;
}

.resena-rating label {
  font-size: 24px;
  color: #ddd;
  cursor: pointer;
  transition: color 0.2s;
  margin: 0;
}

.resena-rating input[type="radio"]:checked ~ label,
.resena-rating label:hover,
.resena-rating label:hover ~ label {
  color: #ffc107;
}

/* Inversión: clickear una estrella marca esa y anteriores */
.resena-rating {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.resena-form-grupo-botones {
  display: flex;
  gap: 10px;
  margin-top: 25px;
}

.btn-enviar-resena {
  flex: 1;
  padding: 12px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  transition: opacity 0.3s, transform 0.2s;
}

.btn-enviar-resena:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.btn-cancelar-resena {
  flex: 1;
  padding: 12px 24px;
  background: #eee;
  color: #666;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
}

.btn-cancelar-resena:hover {
  background: #ddd;
}

.resena-mensaje {
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 15px;
  font-size: 14px;
}

.resena-mensaje.exito {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.resena-mensaje.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.resena-loading {
  display: none;
  text-align: center;
  padding: 20px;
  color: #005ba4;
  font-size: 14px;
}

.resena-loading.visible {
  display: block;
}

/* En móvil */
@media (max-width: 600px) {
  .resenas-section {
    margin: 40px 0;
    padding: 30px 15px;
  }

  .resenas-header h2 {
    font-size: 24px;
  }

  .resena-formulario {
    padding: 20px;
  }

  .resena-formulario h3 {
    font-size: 18px;
  }

  .resena-stats {
    flex-direction: column;
  }

  .resenas-grid {
    grid-template-columns: 1fr;
  }

  .resena-form-grupo-botones {
    flex-direction: column;
  }

  .btn-enviar-resena,
  .btn-cancelar-resena {
    width: 100%;
  }
}

/* ╔════════════════════════════════════════════════════════════════╗
   ║ CALENDARIO ADMIN - SELECCIÓN DE RANGOS                         ║
   ╚════════════════════════════════════════════════════════════════╝ */

/* Estilos para selección de bloqueo */
.cal-dia.sel-bloq-inicio,
.cal-dia.sel-bloq-fin {
  background-color: #f39c12 !important;
  color: white !important;
  font-weight: bold;
}

.cal-dia.sel-bloq-rango,
.cal-dia.hover-bloq-rango {
  background-color: #f9d5a1 !important;
  opacity: 0.8;
}

/* Estilos para selección de desbloqueo */
.cal-dia.sel-desbloq-inicio,
.cal-dia.sel-desbloq-fin {
  background-color: #27ae60 !important;
  color: white !important;
  font-weight: bold;
}

.cal-dia.sel-desbloq-rango,
.cal-dia.hover-desbloq-rango {
  background-color: #a9dfbf !important;
  opacity: 0.8;
}

.btn-secondary {
  background-color: #95a5a6;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.3s;
}

.btn-secondary:hover {
  background-color: #7f8c8d;
}

.info-calendario-admin {
  margin-top: 20px;
  padding: 15px;
  background-color: #e8f4f8;
  border-radius: 5px;
  font-size: 0.9rem;
  color: #333;
}

/* Contenedor de selectores de modo */
.modo-selector-container {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.modo-selector {
  background-color: #ecf0f1;
  color: #333;
  border: 2px solid #bdc3c7;
  padding: 12px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.3s;
  font-weight: 500;
  flex: 1;
  min-width: 140px;
  text-align: center;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modo-selector:hover {
  border-color: #95a5a6;
  background-color: #d5dbdb;
}

.modo-selector--activo {
  background-color: #3498db;
  color: white;
  border-color: #2980b9;
}

/* Responsive para modo-selector */
@media (max-width: 600px) {
  .modo-selector-container {
    gap: 10px;
  }

  .modo-selector {
    flex: 1;
    min-width: calc(50% - 5px);
    padding: 12px 16px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .modo-selector-container {
    gap: 8px;
    margin-bottom: 14px;
  }

  .modo-selector {
    flex: 1;
    min-width: calc(50% - 4px);
    padding: 11px 14px;
    font-size: 0.85rem;
    min-height: 40px;
  }
}

/* ============================================================
   ESTILOS DEL DASHBOARD ANALÍTICO
   ============================================================ */

.dashboard-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 20px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.dashboard-header a {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  transition: opacity 0.3s;
}

.dashboard-header a:hover {
  opacity: 0.9;
}

.dashboard-header-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-dashboard {
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-dashboard-csv {
  background: #51cf66;
}

.btn-dashboard-pdf {
  background: #ff6b6b;
}

.btn-dashboard-back {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* GRID DE TARJETAS DE ESTADÍSTICAS */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  border-left: 5px solid #667eea;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.stat-card.danger {
  border-left-color: #ff6b6b;
}

.stat-card.success {
  border-left-color: #51cf66;
}

.stat-card.warning {
  border-left-color: #ffd93d;
}

.stat-card.info {
  border-left-color: #4dabf7;
}

.stat-card-title {
  font-size: 13px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  font-weight: 600;
}

.stat-card-value {
  font-size: 32px;
  font-weight: 700;
  color: #333;
  margin-bottom: 5px;
}

.stat-card-subtitle {
  font-size: 12px;
  color: #aaa;
}

/* GRID DE GRÁFICOS Y SECCIONES */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.chart-section {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  width: 100%;
}

.chart-section h3 {
  font-size: 18px;
  margin: 0 0 20px 0;
  color: #333;
}

.chart-container {
  position: relative;
  height: 300px;
  margin-bottom: 20px;
  width: 100%;
  overflow: hidden;
}

/* TABLA DE PRÓXIMAS RESERVAS */
.section-full {
  grid-column: 1 / -1;
}

.reserves-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.reserves-table thead {
  background: #f8f9fa;
  border-bottom: 2px solid #e9ecef;
}

.reserves-table th {
  padding: 12px 15px;
  text-align: left;
  font-weight: 600;
  color: #495057;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.reserves-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #e9ecef;
  color: #555;
}

.reserves-table tbody tr:hover {
  background-color: #f8f9fa;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-success {
  background: #d4edda;
  color: #155724;
}

.badge-pending {
  background: #fff3cd;
  color: #856404;
}

.badge-danger {
  background: #f8d7da;
  color: #721c24;
}

/* RESEÑAS RECIENTES */
.reviews-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.review-item {
  padding: 15px;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 0;
}

.review-item:last-child {
  border-bottom: none;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 8px;
}

.review-name {
  font-weight: 600;
  color: #333;
}

.review-stars {
  color: #ffc107;
  font-size: 14px;
}

.review-comment {
  color: #666;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 5px;
}

.review-date {
  font-size: 12px;
  color: #aaa;
}

/* RESPONSIVE DASHBOARD */

/* Tablets (768px) */
@media (max-width: 1200px) {
  .dashboard-container {
    padding: 20px 15px;
  }

  .dashboard-header {
    margin-bottom: 30px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .chart-section {
    padding: 20px;
  }

  .stat-card {
    padding: 20px;
  }

  .stat-card-value {
    font-size: 28px;
  }
}

/* Tablets pequeños (900px) */
@media (max-width: 900px) {
  .dashboard-header h1 {
    font-size: 24px;
  }

  .dashboard-header-buttons {
    flex-direction: column;
    width: 100%;
  }

  .dashboard-header a {
    width: 100%;
    text-align: center;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-card-title {
    font-size: 12px;
  }

  .stat-card-value {
    font-size: 24px;
  }
}

/* Teléfonos grandes (768px) */
@media (max-width: 768px) {
  .dashboard-container {
    padding: 15px 10px;
  }

  .dashboard-header {
    gap: 15px;
    margin-bottom: 20px;
  }

  .dashboard-header h1 {
    font-size: 22px;
  }

  .dashboard-header-buttons {
    flex-direction: column;
    width: 100%;
  }

  .dashboard-header a {
    padding: 8px 15px;
    font-size: 13px;
    width: 100%;
    text-align: center;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat-card {
    padding: 15px;
    border-left-width: 3px;
  }

  .stat-card-value {
    font-size: 22px;
  }

  .stat-card-subtitle {
    font-size: 11px;
  }

  .chart-section {
    padding: 15px;
  }

  .chart-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .chart-container {
    height: 250px;
    margin-bottom: 15px;
  }

  .reserves-table th,
  .reserves-table td {
    padding: 8px 10px;
    font-size: 12px;
  }

  .reserves-table th {
    font-size: 11px;
  }

  .badge {
    padding: 3px 8px;
    font-size: 11px;
  }

  .review-item {
    padding: 12px;
  }

  .review-name {
    font-size: 14px;
  }

  .review-comment {
    font-size: 12px;
  }
}

/* Teléfonos medianos (600px) */
@media (max-width: 600px) {
  .dashboard-container {
    padding: 10px 8px;
  }

  .dashboard-header {
    gap: 10px;
    margin-bottom: 15px;
  }

  .dashboard-header h1 {
    font-size: 18px;
  }

  .dashboard-header p {
    font-size: 12px;
  }

  .dashboard-header-buttons {
    width: 100%;
  }

  .dashboard-header a {
    padding: 6px 12px;
    font-size: 12px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stat-card {
    padding: 12px;
  }

  .stat-card-title {
    font-size: 11px;
    margin-bottom: 8px;
  }

  .stat-card-value {
    font-size: 20px;
  }

  .stat-card-subtitle {
    font-size: 10px;
  }

  .chart-section {
    padding: 12px;
  }

  .chart-section h3 {
    font-size: 15px;
    margin-bottom: 12px;
  }

  .chart-container {
    height: 200px;
  }

  .reserves-table {
    font-size: 11px;
  }

  .reserves-table th,
  .reserves-table td {
    padding: 6px 8px;
  }

  .reserves-table th {
    font-size: 10px;
  }

  .badge {
    padding: 2px 6px;
    font-size: 10px;
  }

  .review-item {
    padding: 10px;
    margin-bottom: 8px;
  }

  .review-name {
    font-size: 13px;
  }

  .review-stars {
    font-size: 12px;
  }

  .review-comment {
    font-size: 11px;
    margin-bottom: 4px;
  }

  .review-date {
    font-size: 10px;
  }
}

/* Teléfonos pequeños (480px) */
@media (max-width: 480px) {
  .dashboard-container {
    padding: 8px 6px;
  }

  .dashboard-header {
    gap: 8px;
    margin-bottom: 12px;
  }

  .dashboard-header h1 {
    font-size: 16px;
  }

  .dashboard-header p {
    font-size: 11px;
  }

  .dashboard-header-buttons {
    width: 100%;
  }

  .dashboard-header a {
    padding: 5px 10px;
    font-size: 11px;
  }

  .stats-grid {
    gap: 8px;
  }

  .stat-card {
    padding: 10px;
    border-left-width: 2px;
  }

  .stat-card-title {
    font-size: 10px;
    margin-bottom: 6px;
  }

  .stat-card-value {
    font-size: 18px;
  }

  .stat-card-subtitle {
    font-size: 9px;
  }

  .chart-section {
    padding: 10px;
  }

  .chart-section h3 {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .chart-container {
    height: 180px;
    margin-bottom: 10px;
  }

  .reserves-table {
    font-size: 10px;
  }

  .reserves-table th,
  .reserves-table td {
    padding: 5px 6px;
  }

  .reserves-table th {
    font-size: 9px;
  }

  .badge {
    padding: 2px 5px;
    font-size: 9px;
  }

  .review-item {
    padding: 8px;
    margin-bottom: 6px;
  }

  .review-name {
    font-size: 12px;
  }

  .review-stars {
    font-size: 11px;
  }

  .review-comment {
    font-size: 10px;
    margin-bottom: 3px;
  }

  .review-date {
    font-size: 9px;
  }
}

/* Ultra-pequeños (menos de 380px) */
@media (max-width: 380px) {
  .dashboard-container {
    padding: 6px 4px;
  }

  .dashboard-header h1 {
    font-size: 14px;
  }

  .dashboard-header p {
    font-size: 10px;
  }

  .dashboard-header a {
    padding: 4px 8px;
    font-size: 10px;
  }

  .stat-card {
    padding: 8px;
  }

  .stat-card-title {
    font-size: 9px;
  }

  .stat-card-value {
    font-size: 16px;
  }

  .chart-section {
    padding: 8px;
  }

  .chart-section h3 {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .chart-container {
    height: 160px;
  }
}

/* ╔════════════════════════════════════════════════════════════════╗ */
/* ║ GALERÍA MODAL                                                   ║ */
/* ╚════════════════════════════════════════════════════════════════╝ */

.galeria-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.galeria-modal.activo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.galeria-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.galeria-modal__contenedor {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 90vw;
  max-height: 90vh;
  padding: 20px;
}

.galeria-modal__imagen {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: modalImageFadeIn 0.3s ease-in-out;
}

@keyframes modalImageFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.galeria-modal__anterior,
.galeria-modal__siguiente {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 2;
}

.galeria-modal__anterior:hover,
.galeria-modal__siguiente:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.1);
}

.galeria-modal__anterior {
  left: 10px;
}

.galeria-modal__siguiente {
  right: 10px;
}

.galeria-modal__cerrar {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 3;
}

.galeria-modal__cerrar:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1) rotate(90deg);
}

.galeria-modal__contador {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  z-index: 3;
}

/* Responsivo */
@media (max-width: 768px) {
  .galeria-modal__anterior,
  .galeria-modal__siguiente {
    width: 40px;
    height: 40px;
  }

  .galeria-modal__anterior {
    left: 5px;
  }

  .galeria-modal__siguiente {
    right: 5px;
  }

  .galeria-modal__cerrar {
    width: 40px;
    height: 40px;
    top: 10px;
    right: 10px;
  }

  .galeria-modal__imagen {
    max-height: 80vh;
  }
}

@media (max-width: 480px) {
  .galeria-modal__contenedor {
    gap: 10px;
    padding: 10px;
  }

  .galeria-modal__anterior,
  .galeria-modal__siguiente {
    width: 35px;
    height: 35px;
  }

  .galeria-modal__cerrar {
    width: 35px;
    height: 35px;
  }

  .galeria-modal__imagen {
    max-height: 75vh;
  }

  .galeria-modal__contador {
    bottom: 10px;
    font-size: 12px;
    padding: 6px 12px;
  }
}

/* ╔════════════════════════════════════════════════════════════════╗ */
/* ║ BOTÓN FLOTANTE WHATSAPP                                         ║ */
/* ╚════════════════════════════════════════════════════════════════╝ */

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #f9fafb;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(22, 163, 74, 0.65);
  transform: translateY(0);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out,
    background 0.2s ease-out;
}

.whatsapp-float::before {
  content: "💬";
  font-size: 1.1rem;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(22, 163, 74, 0.8);
  background: linear-gradient(135deg, #16a34a, #15803d);
}

@media (max-width: 480px) {
  .whatsapp-float span {
    display: none; /* en móvil solo el icono */
  }

  .whatsapp-float {
    padding-inline: 0.9rem;
  }
}
