/* =============================================
   LUBRICENTRO O'HIGGINS — style.css v2.1
   Orden:
    1.  Variables
    2.  Reset
    3.  Base
    4.  Navbar
    5.  Helpers de sección
    6.  Hero — index
    7.  Hero — páginas internas
    8.  Marcas / Slider
    9.  Quiénes somos (index preview)
   10.  Tarjetas de servicio (index preview)
   11.  Por qué elegirnos
   12.  Historial preview (index)
   13.  Sala de espera / Experiencia
   14.  Medios de pago
   15.  CTA
   16.  Intro strip (servicios.html)
   17.  Reseñas Google
   18.  Bloques de servicio (servicios.html)
   19.  Mapa
   20.  Botones
   21.  WhatsApp flotante
   22.  Footer
   23.  Historial / Buscador
   24.  Panel de administrador
   25.  Página Nosotros
   26.  Privacidad / Legal
   27.  Página de Contacto
   28.  Botón volver arriba
   29.  Animaciones — clases de entrada
   30.  @keyframes
   31.  Media Queries
   ============================================= */

/* =============================================
   1. VARIABLES
   ============================================= */
:root {
  --red: #e30613;
  --red-dark: #f30216;
  --navy: #010a44;
  --blue: #0a1b8d;
  --blue-mid: #1b36d4;
  --white: #ffffff;
  --gray-100: #f8f9fc;
  --gray-200: #eef0f5;
  --gray-600: #666;
  --text: #1a1a2e;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.14);
  --transition: 0.3s ease;
}

/* =============================================
   2. RESET
   ============================================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  overflow-x: clip;
}

/* =============================================
   3. BASE
   ============================================= */
body {
  font-family: "Google Sans", sans-serif;
  padding-top: 90px;
  color: var(--text);
}

main {
  min-height: 100vh;
  padding-bottom: 120px;
}

h1,
h2,
h3 {
  font-weight: 800;
}

.row {
  --bs-gutter-x: 1.5rem;
  margin-left: calc(var(--bs-gutter-x) * -0.5);
  margin-right: calc(var(--bs-gutter-x) * -0.5);
}

input,
textarea,
select {
  font-size: 16px !important;
}

/* =============================================
   4. NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
  min-height: 90px;
  padding: 20px 0;
  background-color: #ffffff;
  transition:
    padding 0.4s ease,
    min-height 0.4s ease,
    background 0.4s ease,
    backdrop-filter 0.4s ease,
    box-shadow 0.4s ease;
}

.logo-custom {
  width: 130px;
  transition: width 0.4s ease;
}

.navbar-nav .nav-link {
  color: #c62e47;
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 8px;
  position: relative;
  padding-bottom: 4px;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width var(--transition);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

.navbar-nav .nav-link:hover {
  color: var(--blue);
}

.nav-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background var(--transition);
}

.nav-icon-btn i {
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
}

.nav-icon-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.nav-icon-ig {
  border-color: rgba(193, 53, 132, 0.25);
}

.nav-icon-loc {
  color: var(--navy);
}

.nav-icon-tel {
  color: #059669;
  border-color: rgba(5, 150, 105, 0.25);
}

.nav-icon-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.nav-icon-divider {
  width: 1px;
  height: 20px;
  background: rgba(0, 0, 0, 0.12);
}

.navbar-toggler {
  border: none;
  padding: 4px 8px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon-custom {
  font-size: 1.8rem;
  color: var(--navy);
  transition: transform 0.25s ease;
  display: block;
  line-height: 1;
}

.navbar-toggler[aria-expanded="true"] .bi-list::before {
  content: "\F659";
}

/* =============================================
   5. HELPERS DE SECCIÓN
   ============================================= */
.section-eyebrow {
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-eyebrow.light {
  color: rgba(255, 255, 255, 0.6);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  text-transform: none;
  margin-bottom: 16px;
  color: var(--text);
}

.section-title.light {
  color: white;
}

.section-text {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 28px;
}

.section-text.light {
  color: rgba(255, 255, 255, 0.8);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 560px;
  margin: 0 auto;
}

/* =============================================
   6. HERO — INDEX
   ============================================= */
.hero-section {
  position: relative;
  background-image:
    linear-gradient(90deg, rgba(1, 10, 68, 0.88) 45%, rgba(1, 10, 68, 0.25)),
    url("../img/lubri-mejorado.webp");
  background-size: cover;
  background-position: center;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 80% 50%,
    rgba(227, 6, 19, 0.08) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.hero-content {
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 40px;
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-accent {
  color: var(--red);
}

.hero-lead {
  font-size: 1.15rem;
  opacity: 0.88;
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* =============================================
   7. HERO — PÁGINAS INTERNAS
   ============================================= */
.hero-section-ser {
  position: relative;
  background-image:
    linear-gradient(90deg, rgba(1, 10, 68, 0.88) 45%, rgba(1, 10, 68, 0.25)),
    url("../img/cambio-de-aceite.webp");
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
  overflow: hidden;
  min-height: 565px;
}

.hero-section-historal {
  position: relative;
  background-image:
    linear-gradient(90deg, rgba(1, 10, 68, 0.88) 45%, rgba(1, 10, 68, 0.25)),
    url("../img/historial.webp");
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
  overflow: hidden;
  min-height: 450px;
}

.hero-section-contacto {
  position: relative;
  background-image:
    linear-gradient(90deg, rgba(1, 10, 68, 0.88) 45%, rgba(1, 10, 68, 0.25)),
    url("../img/contacto3.webp");
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: start;
  color: white;
  overflow: hidden;
  min-height: 565px;
}

.nos-page-hero {
  position: relative;
  background-image:
    linear-gradient(90deg, rgba(1, 10, 68, 0.88) 45%, rgba(1, 10, 68, 0.25)),
    url("../img/nosotros.webp");
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
  overflow: hidden;
  min-height: 565px;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 56px;
  padding-top: 40px;
}

.page-hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -1px;
  margin: 10px 0 14px;
}

.page-hero-lead {
  font-size: 1.08rem;
  opacity: 0.82;
  line-height: 1.6;
  max-width: 440px;
}

/* =============================================
   8. MARCAS / SLIDER
   ============================================= */
.brands-section {
  background: white;
}

.brands-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: #999;
  margin: 0;
}

.slider-container {
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
}

.slider-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: scroll 25s linear infinite;
}

.logo-item {
  flex: 0 0 auto;
  width: 100px;
}

.logo-item img {
  width: 100%;
  opacity: 0.75;
  transition:
    opacity var(--transition),
    transform var(--transition);
}

.logo-item img:hover {
  opacity: 1;
  transform: scale(1.12);
}

/* =============================================
   9. QUIÉNES SOMOS (index preview)
   ============================================= */
.about-preview {
  background: white;
}

.about-img-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.about-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--red);
  color: white;
  padding: 14px 20px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  box-shadow: 0 8px 24px rgba(227, 6, 19, 0.35);
}

.about-badge i {
  font-size: 1.5rem;
}

.btn-with-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.img-shadow {
  box-shadow: 0 0 50px rgba(227, 6, 19, 0.25);
  transition: box-shadow 0.4s ease;
}

.img-shadow:hover {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

/* =============================================
   10. TARJETAS DE SERVICIO (index preview)
   ============================================= */
.service-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: all var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(227, 6, 19, 0.15);
}

.service-icon-wrap {
  width: 56px;
  height: 56px;
  background: rgba(227, 6, 19, 0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: background var(--transition);
}

.service-card:hover .service-icon-wrap {
  background: rgba(227, 6, 19, 0.15);
}

.service-icon-wrap i {
  font-size: 1.6rem;
  color: var(--red);
}

.service-card h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.service-card p {
  color: var(--gray-600);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 16px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  margin-top: auto;
  transition: gap var(--transition);
}

.service-link:hover {
  gap: 10px;
  color: var(--red-dark);
}

/* =============================================
   11. POR QUÉ ELEGIRNOS
   ============================================= */
.why-section {
  background: var(--gray-100);
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: white;
  padding: 16px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.why-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-hover);
}

.why-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.why-icon i {
  color: var(--red);
  font-size: 1.25rem;
}

.why-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.why-item p {
  color: var(--gray-600);
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.5;
}

/* =============================================
   12. HISTORIAL PREVIEW (index)
   ============================================= */
.historial-preview {
  background: white;
}

.historial-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.historial-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--gray-100);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50px;
  padding: 7px 16px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text);
}

.historial-pill i {
  color: var(--red);
}

/* =============================================
   13. SALA DE ESPERA / EXPERIENCIA
   ============================================= */
.experience-section {
  background: white;
}

.experience-card {
  background: linear-gradient(
    135deg,
    var(--navy) 0%,
    var(--blue) 60%,
    var(--blue-mid) 100%
  );
  border-radius: 24px;
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
}

.experience-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(
    circle,
    rgba(227, 6, 19, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  width: 100%;
}

.amenity-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: center;
  color: white;
  font-size: 0.78rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
  transition: background var(--transition);
  width: 100%;
}

.amenity-item i {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.85);
}

.amenity-item:hover {
  background: rgba(255, 255, 255, 0.14);
}

.experience-photo {
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow:
    0 0 50px rgba(227, 6, 19, 0.2),
    0 20px 60px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

img.img-salita {
  max-height: 350px;
}

/* =============================================
   14. MEDIOS DE PAGO
   ============================================= */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.payment-item {
  background: white;
  border-radius: var(--radius);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.payment-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.payment-item i {
  font-size: 1.8rem;
  color: var(--red);
}

/* =============================================
   15. CTA
   ============================================= */
.cta-section {
  background: var(--gray-100);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cta-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}

.cta-subtitle {
  font-size: 1.05rem;
  color: var(--gray-600);
  margin-top: 8px;
}

/* =============================================
   16. INTRO STRIP (servicios.html)
   ============================================= */
.intro-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: fit-content;
}

.intro-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50px;
  padding: 7px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
}

.svc-hero-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.svc-hero-lead-main {
  font-size: 1.15rem;
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: 4px;
}

.svc-hero-lead-sub {
  font-size: 0.95rem;
  opacity: 0.65;
  margin-bottom: 0;
}

/* =============================================
   17. RESEÑAS GOOGLE
   ============================================= */

/* Encabezado dos columnas */
.rev-header-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.rev-header-left {
  text-align: center;
}

.rev-header-right {
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  padding-left: 2rem;
}

.rev-header-desc {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.65;
  margin-bottom: 12px;
}

.rev-stars-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rev-google-score-stars {
  font-size: 1.2rem;
  color: #fbbf24;
  letter-spacing: 2px;
}

.rev-score-count {
  font-size: 0.82rem;
  color: var(--gray-600);
  font-weight: 600;
}

/* Carrusel — layout con botones a los lados */
.rev-carousel-outer {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 85%;
  margin: 0 auto;
}

.rev-cards-wrap {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}

/* Grid de tarjetas */
.rev-google-wrap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

/* Tarjeta */
.rev-google-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 16px;
  padding: 20px 18px 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 280px;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.rev-google-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.rev-google-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rev-google-avatar {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
}

.rev-google-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.rev-google-avatar-txt {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
}

.rev-google-meta {
  flex: 1;
  min-width: 0;
}

.rev-google-nombre {
  display: block;
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}

.rev-google-nombre:hover {
  color: var(--red);
}

.rev-google-tiempo {
  display: block;
  font-size: 0.7rem;
  color: var(--gray-600);
  margin-top: 1px;
}

.rev-google-logo {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.65;
}

.rev-google-estrellas {
  display: flex;
  gap: 2px;
  font-size: 0.85rem;
}

.rev-star-llena {
  color: #fbbf24;
}

.rev-star-vacia {
  color: #d1d5db;
}

.rev-google-texto {
  font-size: 0.86rem;
  color: var(--gray-600);
  line-height: 1.65;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rev-google-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--gray-600);
  font-size: 0.9rem;
  padding: 32px 0;
}

/* Botones laterales */
.rev-nav-btn {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  background: white;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition),
    box-shadow var(--transition);
}

.rev-nav-btn:hover:not(:disabled) {
  background: var(--red);
  border-color: var(--red);
  color: white;
  box-shadow: 0 4px 16px rgba(227, 6, 19, 0.3);
}

.rev-nav-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

/* Dots */
.rev-dots-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
}

.rev-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  border: none;
  padding: 0;
  cursor: pointer;
  transition:
    background var(--transition),
    width var(--transition);
}

.rev-dot.active {
  background: var(--red);
  border-radius: 4px;
}

/* Botón ver todas */
.rev-footer-btn-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

/* =============================================
   18. BLOQUES DE SERVICIO (servicios.html)
   ============================================= */
.srv-block {
  padding: 88px 0;
  background: white;
}

.srv-block-alt {
  background: var(--gray-100);
}

.srv-icon-wrap {
  width: 58px;
  height: 58px;
  background: rgba(227, 6, 19, 0.08);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.srv-icon-wrap i {
  font-size: 1.7rem;
  color: var(--red);
}

.srv-img-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
}

.srv-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow:
    0 0 50px rgba(227, 6, 19, 0.18),
    0 16px 48px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.4s ease;
}

.srv-img:hover {
  box-shadow:
    0 0 60px rgba(227, 6, 19, 0.25),
    0 24px 60px rgba(0, 0, 0, 0.18);
}

.srv-img-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
}

.srv-img-badge.popular {
  background: var(--red);
  color: white;
  box-shadow: 0 4px 14px rgba(227, 6, 19, 0.35);
}

.srv-img-badge.free {
  background: #059669;
  color: white;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}

.srv-feature-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.srv-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.93rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.srv-feature-list li i {
  color: var(--red);
  font-size: 1.05rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.filter-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.filter-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.28s ease;
}

.filter-card:hover {
  transform: translateX(5px);
  border-color: rgba(227, 6, 19, 0.2);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.filter-card > i {
  font-size: 1.5rem;
  color: var(--red);
  flex-shrink: 0;
  margin-top: 2px;
}

.filter-card strong {
  display: block;
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}

.filter-card span {
  font-size: 0.82rem;
  color: var(--gray-600);
  line-height: 1.4;
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.control-item {
  background: var(--gray-100);
  border-radius: 10px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
}

.control-item:hover {
  background: white;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.control-item i {
  font-size: 1.2rem;
}

.free-notice {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(5, 150, 105, 0.07);
  border: 1px solid rgba(5, 150, 105, 0.2);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.88rem;
  color: #065f46;
  line-height: 1.5;
}

.free-notice i {
  color: #059669;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.accessories-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.acc-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}

.acc-tag:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(227, 6, 19, 0.12);
}

.acc-tag i {
  font-size: 0.9rem;
}

/* =============================================
   19. MAPA
   ============================================= */
.map-container {
  overflow: hidden;
  border-radius: var(--radius);
}

.map-container iframe {
  width: 100%;
  height: 280px;
  border: 0;
  display: block;
  border-radius: var(--radius);
}

/* =============================================
   20. BOTONES
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 500;
  transition: all var(--transition);
}

.btn-danger {
  background: var(--red);
  border-color: var(--red);
  transition: all 0.25s ease;
}

.btn-danger:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 28px rgba(227, 6, 19, 0.45);
}

.btn-outline-light {
  border-radius: 10px;
}

.btn-outline-dark {
  border-color: var(--text);
  color: var(--text);
}

.btn-outline-dark:hover {
  background: var(--text);
  color: white;
}

/* =============================================
   21. WHATSAPP FLOTANTE
   ============================================= */
.whatsapp-float {
  position: fixed;
  width: 58px;
  height: 58px;
  bottom: 24px;
  right: 24px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.whatsapp-float img {
  width: 28px;
  height: 28px;
  filter: invert(1);
}

.whatsapp-float:hover {
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.55);
  transform: scale(1.1) rotate(8deg);
}

/* =============================================
   22. FOOTER
   ============================================= */
.footer-pro {
  background: linear-gradient(90deg, var(--blue-mid), var(--blue), var(--navy));
  color: white;
  padding-top: 60px;
  position: relative;
  overflow: hidden;
}

.footer-pro::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.09) 1px,
    transparent 1px
  );
  background-size: 22px 22px;
  pointer-events: none;
}

.footer-pro::after {
  content: "";
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(227, 6, 19, 0.13) 0%,
    rgba(227, 6, 19, 0.04) 45%,
    transparent 70%
  );
  pointer-events: none;
}

.footer-pro .container {
  position: relative;
  z-index: 2;
}

.footer-logo {
  max-width: 180px;
}

.footer-title::after {
  content: "";
  width: 36px;
  height: 3px;
  background: var(--red);
  display: block;
  margin-top: 8px;
}

.footer-link {
  display: inline-block;
  color: white;
  text-decoration: none;
  transition: transform 0.2s ease;
  transform-origin: left center;
}

.footer-link:hover {
  transform: scale(1.04);
  text-decoration: underline;
  color: white;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.footer-qr {
  max-width: 70px;
}

.footer-margin {
  margin-top: 2.25rem;
}

.top-link {
  display: block;
  padding: 2px 0;
  color: white;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    color 0.2s ease;
}

.top-link:hover {
  color: rgba(255, 255, 255, 0.8);
  transform: scale(1.05);
}

/* =============================================
   23. HISTORIAL / BUSCADOR
   ============================================= */
.search-box {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  height: 50px;
  padding: 0 55px 0 15px;
  border-radius: 10px;
  border: 1px solid #ccc;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.search-input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(227, 6, 19, 0.2);
}

.search-input::placeholder {
  opacity: 0.7;
}

.search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  height: 38px;
  width: 38px;
  border: none;
  background: var(--red);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#resultado {
  margin-top: 10px;
}

/* Panel de búsqueda (hero de historial) */
.hst-search-panel {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 32px 28px;
  backdrop-filter: blur(8px);
}

.hst-search-panel-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
}

.hst-input {
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  letter-spacing: 5px !important;
  text-align: center !important;
  text-transform: uppercase !important;
  height: 58px !important;
  padding: 0 68px 0 20px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: white !important;
  border-radius: 12px !important;
}

.hst-input::placeholder {
  color: rgba(255, 255, 255, 0.28) !important;
  letter-spacing: 2px !important;
  font-weight: 400 !important;
}

.hst-input:focus {
  border-color: rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08) !important;
}

.hst-search-panel .search-btn {
  height: 46px;
  width: 46px;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 10px;
  font-size: 1rem;
}

.hst-format-hint {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  margin-top: 14px;
  margin-bottom: 0;
}

.hst-format-hint code {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 1px 7px;
  font-size: 0.73rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Header de resultados */
.hst-results-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 20px;
}

.hst-results-header::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
}

.hst-results-wrap {
  display: flex;
  flex-direction: column;
}

/* Tarjeta de resultado */
.hst-record-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.hst-record-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.hst-record-card.is-recent {
  border-top: 3px solid var(--red);
}

.hst-record-card.is-old {
  border-top: 3px solid rgba(0, 0, 0, 0.1);
  opacity: 0.85;
}

.hst-record-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  background: var(--gray-100);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.hst-record-date-wrap {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.hst-record-day {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.hst-record-month-year {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hst-record-month {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  text-transform: capitalize;
}

.hst-record-year {
  font-size: 0.8rem;
  color: var(--gray-600);
}

.hst-record-top-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hst-plate-tag {
  background: var(--navy);
  color: white;
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2.5px;
}

.hst-tag-reciente {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(227, 6, 19, 0.08);
  border: 1px solid rgba(227, 6, 19, 0.2);
  border-radius: 50px;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--red);
}

.hst-record-body {
  display: flex;
  align-items: stretch;
}

.hst-record-stat {
  flex: 1;
  padding: 20px 24px;
}

.hst-record-divider {
  width: 1px;
  background: rgba(0, 0, 0, 0.06);
  margin: 16px 0;
}

.hst-record-stat-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 8px;
  white-space: nowrap;
}

.hst-record-stat-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
}

.hst-record-stat-val.is-next {
  color: var(--red);
}

.hst-record-card.is-old .hst-record-stat-val {
  font-weight: 600;
  color: var(--gray-600);
}

/* Skeleton loader */
.hst-skeleton-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hst-skeleton-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.hst-sk-top {
  display: flex;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--gray-100);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.hst-sk-body {
  display: flex;
  gap: 24px;
  padding: 20px 24px;
}

.hst-sk-block {
  height: 20px;
  border-radius: 6px;
  animation: skeleton-loading 1.2s infinite ease-in-out;
  background: linear-gradient(90deg, #f0f0f0 25%, #e2e2e2 37%, #f0f0f0 63%);
  background-size: 400% 100%;
}

.hst-sk-block.wide {
  width: 120px;
}
.hst-sk-block.narrow {
  width: 80px;
}
.hst-sk-block.mid {
  flex: 1;
}

/* Acordeón por año */
.hst-accordion-wrap {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hst-accordion-item {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hst-accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--gray-100);
  border: none;
  cursor: pointer;
  font-family: "Google Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  transition: background 0.2s ease;
  text-align: left;
}

.hst-accordion-btn:hover {
  background: var(--gray-200);
}

.hst-accordion-btn.expanded {
  background: var(--navy);
  color: white;
}

.hst-accordion-btn.expanded .hst-accordion-count {
  color: rgba(255, 255, 255, 0.55);
}

.hst-accordion-btn.expanded .hst-accordion-chevron {
  color: white;
  transform: rotate(180deg);
}

.hst-accordion-year-label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.hst-accordion-year-label i {
  font-size: 1rem;
  color: var(--red);
}

.hst-accordion-btn.expanded .hst-accordion-year-label i {
  color: rgba(255, 255, 255, 0.7);
}

.hst-accordion-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-600);
  background: rgba(0, 0, 0, 0.06);
  padding: 3px 10px;
  border-radius: 50px;
  white-space: nowrap;
}

.hst-accordion-btn.expanded .hst-accordion-count {
  background: rgba(255, 255, 255, 0.12);
}

.hst-accordion-chevron {
  font-size: 0.85rem;
  color: var(--gray-600);
  transition:
    transform 0.3s ease,
    color 0.2s ease;
  flex-shrink: 0;
}

.hst-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 16px;
}

.hst-accordion-body.open {
  max-height: 2000px;
  padding: 16px;
}

.hst-accordion-body .hst-record-card {
  margin-bottom: 12px;
}

.hst-accordion-body .hst-record-card:last-child {
  margin-bottom: 0;
}

/* Botón reportar error */
.hst-report-wrap {
  margin-top: 20px;
  text-align: center;
}

.hst-report-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-600);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 50px;
  padding: 8px 18px;
  text-decoration: none;
  background: white;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.hst-report-btn i {
  font-size: 0.9rem;
}

.hst-report-btn:hover {
  color: var(--red);
  border-color: var(--red-dark);
  background: rgba(150, 5, 5, 0.247);
}

/* =============================================
   24. PANEL DE ADMINISTRADOR
   ============================================= */

/* ── BASE ── */
.adm-body {
  background: #f0f2f7;
  min-height: 100vh;
  padding: 0;
  display: block;
  font-family: "Google Sans", sans-serif;
}

/* ── MODO OSCURO ── */
.adm-body.dark-mode {
  background: #07102e;
  background-image:
    radial-gradient(
      ellipse 80% 60% at 10% 20%,
      rgba(227, 6, 19, 0.07) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 50% at 90% 80%,
      rgba(27, 54, 212, 0.12) 0%,
      transparent 55%
    );
}

.adm-hidden {
  display: none !important;
}

/* ── SHELL / LAYOUT ── */
.adm-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  width: 100%;
}

/* ── SIDEBAR ── */
.adm-sidebar {
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  padding: 28px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  flex-shrink: 0;
}

.adm-body.dark-mode .adm-sidebar {
  background: rgba(255, 255, 255, 0.03);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.adm-sidebar-logo {
  padding: 0 24px 28px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 20px;
}

.adm-body.dark-mode .adm-sidebar-logo {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.adm-sidebar-logo img {
  max-width: 160px;
}

.adm-sidebar-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #94a3b8;
  padding: 0 24px 8px;
  display: block;
}

.adm-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 24px;
  font-size: 0.87rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  transition:
    color 0.2s,
    background 0.2s;
  position: relative;
  font-family: "Google Sans", sans-serif;
}

.adm-body.dark-mode .adm-nav-item {
  color: rgba(255, 255, 255, 0.45);
}

.adm-nav-item i {
  font-size: 1rem;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.adm-nav-item:hover {
  color: #1e293b;
  background: #f1f5f9;
}

.adm-body.dark-mode .adm-nav-item:hover {
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.04);
}

.adm-nav-item.active {
  color: #e30613;
  background: rgba(227, 6, 19, 0.06);
}

.adm-body.dark-mode .adm-nav-item.active {
  color: #fff;
  background: rgba(227, 6, 19, 0.12);
}

.adm-nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #e30613;
  border-radius: 0 3px 3px 0;
}

.adm-sidebar-spacer {
  flex: 1;
}

/* ── USER PILL ── */
.adm-user-pill {
  margin: 0 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.adm-body.dark-mode .adm-user-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.adm-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e30613, #c00);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.adm-user-info {
  flex: 1;
  min-width: 0;
}

.adm-user-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.adm-body.dark-mode .adm-user-name {
  color: #fff;
}

.adm-user-role {
  font-size: 0.65rem;
  color: #94a3b8;
  margin-top: 1px;
}

.adm-logout-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  font-size: 0.85rem;
  padding: 4px;
  border-radius: 6px;
  transition:
    color 0.2s,
    background 0.2s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.adm-logout-btn:hover {
  color: #e30613;
  background: rgba(227, 6, 19, 0.08);
}

/* ── THEME TOGGLE ── */
.adm-theme-toggle {
  margin: 0 16px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
}

.adm-body.dark-mode .adm-theme-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.5);
}

.adm-theme-toggle:hover {
  background: #f1f5f9;
}

.adm-body.dark-mode .adm-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.adm-toggle-track {
  width: 36px;
  height: 20px;
  background: #cbd5e1;
  border-radius: 10px;
  position: relative;
  transition: background 0.25s;
  flex-shrink: 0;
}

.adm-body.dark-mode .adm-toggle-track {
  background: #e30613;
}

.adm-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s;
}

.adm-body.dark-mode .adm-toggle-thumb {
  transform: translateX(16px);
}

/* ── MAIN ── */
.adm-main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
  background: #f0f2f7;
}

.adm-body.dark-mode .adm-main {
  background: transparent;
}

/* ── TOPBAR ── */
.adm-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 36px;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}

.adm-body.dark-mode .adm-topbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
}

.adm-page-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.adm-body.dark-mode .adm-page-title {
  color: #fff;
}

.adm-page-subtitle {
  font-size: 0.78rem;
  color: #94a3b8;
  margin: 2px 0 0;
}

.adm-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.73rem;
  font-weight: 700;
  background: rgba(5, 150, 105, 0.08);
  color: #059669;
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.adm-body.dark-mode .adm-status-badge {
  background: rgba(5, 150, 105, 0.12);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.adm-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #059669;
  animation: adm-pulse-dot 2s infinite;
}

.adm-body.dark-mode .adm-status-dot {
  background: #34d399;
}

/* ── CONTENT ── */
.adm-content {
  flex: 1;
  padding: 32px 36px;
  overflow-y: auto;
}

/* ── SPINNER ── */
#authLoader {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
}

.adm-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e2e8f0;
  border-top-color: #e30613;
  border-radius: 50%;
  animation: adm-spin 0.8s linear infinite;
}

.adm-body.dark-mode .adm-spinner {
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #e30613;
}

/* ── LOGIN PANEL ── */
.adm-login-wrap {
  max-width: 400px;
  margin: 0 auto;
}

.adm-login-header {
  text-align: center;
  margin-bottom: 28px;
}

.adm-login-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.adm-body.dark-mode .adm-login-title {
  color: #fff;
}

.adm-login-subtitle {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0;
}

/* ── STAT CARDS ── */
.adm-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.adm-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.adm-body.dark-mode .adm-stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.adm-stat-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.adm-body.dark-mode .adm-stat-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: none;
}

.adm-stat-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 0 0 14px 14px;
}

.adm-stat-red::after {
  background: #e30613;
}
.adm-stat-blue::after {
  background: #1b36d4;
}
.adm-stat-green::after {
  background: #059669;
}

.adm-stat-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.adm-stat-label i {
  font-size: 0.8rem;
}

.adm-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.adm-body.dark-mode .adm-stat-value {
  color: #fff;
}

.adm-stat-active {
  font-size: 1rem !important;
  margin-top: 4px;
  color: #059669 !important;
}

.adm-body.dark-mode .adm-stat-active {
  color: #34d399 !important;
}

.adm-stat-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 5px;
}

/* ── PANELS GRID ── */
.adm-panels {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
}

.adm-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  min-width: 0;
}

.adm-body.dark-mode .adm-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.adm-panel-head {
  padding: 18px 22px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 10px;
}

.adm-body.dark-mode .adm-panel-head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.adm-panel-head-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
  flex: 1;
}

.adm-body.dark-mode .adm-panel-head-title {
  color: #fff;
}

.adm-panel-head-sub {
  font-size: 0.72rem;
  color: #94a3b8;
}

.adm-panel-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.adm-icon-red {
  background: rgba(227, 6, 19, 0.1);
  color: #e30613;
}
.adm-icon-blue {
  background: rgba(27, 54, 212, 0.08);
  color: #1b36d4;
}
.adm-icon-green {
  background: rgba(5, 150, 105, 0.1);
  color: #059669;
}

.adm-body.dark-mode .adm-icon-blue {
  color: #6080f5;
}
.adm-body.dark-mode .adm-icon-green {
  color: #34d399;
}

.adm-panel-body {
  padding: 22px;
}

/* ── DROP ZONE ── */
.adm-drop-zone {
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.25s,
    background 0.25s;
  background: #f8fafc;
}

.adm-body.dark-mode .adm-drop-zone {
  border: 1.5px dashed rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.02);
}

.adm-drop-zone:hover,
.adm-drop-zone.dragover {
  border-color: #e30613;
  background: rgba(227, 6, 19, 0.04);
}

.adm-drop-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(227, 6, 19, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.4rem;
  color: #e30613;
  transition:
    background 0.25s,
    transform 0.2s;
}

.adm-drop-zone:hover .adm-drop-icon-wrap {
  transform: scale(1.08);
  background: rgba(227, 6, 19, 0.14);
}

.adm-drop-title {
  color: #475569;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.adm-body.dark-mode .adm-drop-title {
  color: rgba(255, 255, 255, 0.75);
}

.adm-drop-hint {
  color: #94a3b8;
  font-size: 0.75rem;
}

/* ── FILE INFO ROW ── */
.adm-file-info-row {
  display: none;
  align-items: center;
  gap: 10px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  padding: 11px 14px;
  margin-top: 14px;
  font-size: 0.83rem;
  font-weight: 600;
  color: #0369a1;
}

.adm-body.dark-mode .adm-file-info-row {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #60c8f5;
}

.adm-file-info-row.visible {
  display: flex;
}

.adm-file-info-row i {
  font-size: 1rem;
}

#fileInfoName {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adm-file-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  font-size: 0.85rem;
  margin-left: auto;
  padding: 2px;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.adm-file-remove:hover {
  color: #e30613;
}

/* ── UPLOAD BUTTON ── */
.adm-upload-btn {
  width: 100%;
  background: #e30613;
  border: none;
  border-radius: 11px;
  padding: 14px;
  color: #fff;
  font-family: "Google Sans", sans-serif;
  font-size: 0.93rem;
  font-weight: 700;
  margin-top: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    background 0.2s,
    transform 0.15s,
    box-shadow 0.2s,
    opacity 0.2s;
}

.adm-upload-btn:not(:disabled) {
  box-shadow: 0 4px 14px rgba(227, 6, 19, 0.25);
}

.adm-upload-btn:not(:disabled):hover {
  background: #c00;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(227, 6, 19, 0.35);
}

.adm-upload-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── LOG ── */
.adm-log-wrap {
  margin-top: 16px;
}

.adm-log-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 8px;
}

.adm-log {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
  height: 90px;
  overflow-y: auto;
  font-size: 0.75rem;
  color: #64748b;
  font-family: monospace;
  line-height: 1.65;
}

.adm-body.dark-mode .adm-log {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.35);
}

.adm-log div {
  padding: 1px 0;
  border-bottom: 1px solid #f1f5f9;
}

.adm-body.dark-mode .adm-log div {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.adm-log div.success {
  color: #059669;
}
.adm-body.dark-mode .adm-log div.success {
  color: #34d399;
}
.adm-log div.error {
  color: #e30613;
}
.adm-body.dark-mode .adm-log div.error {
  color: #f87171;
}

/* ── FORM FIELDS ── */
.adm-field {
  margin-bottom: 14px;
}

.adm-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #64748b;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.adm-body.dark-mode .adm-field label {
  color: rgba(255, 255, 255, 0.45);
}

.adm-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.adm-input {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 11px 14px;
  color: #1e293b;
  font-family: "Google Sans", sans-serif;
  font-size: 0.88rem;
  outline: none;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.adm-input::placeholder {
  color: #94a3b8;
}

.adm-input:focus {
  border-color: #e30613;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.08);
}

.adm-input.has-toggle {
  padding-right: 44px;
}

.adm-body.dark-mode .adm-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}

.adm-body.dark-mode .adm-input::placeholder {
  color: rgba(255, 255, 255, 0.22);
}

.adm-body.dark-mode .adm-input:focus {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: none;
}

/* ── EYE BUTTON ── */
.adm-eye-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  font-size: 0.95rem;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  line-height: 1;
  z-index: 1;
}

.adm-eye-btn:hover {
  color: #475569;
}
.adm-body.dark-mode .adm-eye-btn:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ── GOOGLE BUTTON ── */
.adm-google-btn {
  width: 100%;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  font-family: "Google Sans", sans-serif;
  transition:
    background 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
  margin-bottom: 16px;
}

.adm-google-btn:hover {
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.adm-body.dark-mode .adm-google-btn {
  background: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

/* ── SEPARATOR ── */
.adm-separator {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.adm-separator::before,
.adm-separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.adm-body.dark-mode .adm-separator::before,
.adm-body.dark-mode .adm-separator::after {
  background: rgba(255, 255, 255, 0.08);
}

.adm-separator span {
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
}

/* ── SUBMIT BUTTON ── */
.adm-submit-btn {
  width: 100%;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  color: #1e293b;
  font-family: "Google Sans", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.adm-submit-btn:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

.adm-body.dark-mode .adm-submit-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}

.adm-body.dark-mode .adm-submit-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.adm-submit-btn--top {
  margin-top: 6px;
}

/* ── SECURITY — unavailable ── */
.adm-pass-unavailable {
  font-size: 0.84rem;
  color: #94a3b8;
  text-align: center;
  padding: 20px 0;
  margin: 0;
}

/* ── INSTRUCTIONS ── */
.adm-instructions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.adm-instr-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.adm-instr-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 800;
}

.adm-instr-num--red {
  background: rgba(227, 6, 19, 0.1);
  color: #e30613;
}
.adm-instr-num--green {
  background: rgba(5, 150, 105, 0.1);
  color: #059669;
  font-size: 0.85rem;
}

.adm-instr-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 2px;
}

.adm-body.dark-mode .adm-instr-title {
  color: rgba(255, 255, 255, 0.75);
}

.adm-instr-desc {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.adm-body.dark-mode .adm-instr-desc {
  color: rgba(255, 255, 255, 0.35);
}

/* ── FOOTER ── */
.adm-footer {
  padding: 14px 36px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.adm-body.dark-mode .adm-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: transparent;
}

.adm-footer-note {
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 0;
}

.adm-footer-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s;
}

.adm-footer-link:hover {
  color: #1e293b;
}
.adm-body.dark-mode .adm-footer-link {
  color: rgba(255, 255, 255, 0.3);
}
.adm-body.dark-mode .adm-footer-link:hover {
  color: rgba(255, 255, 255, 0.65);
}

/* ── HAMBURGER ── */
.adm-hamburger {
  background: none;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  font-size: 1.2rem;
  transition:
    background 0.2s,
    color 0.2s;
  flex-shrink: 0;
}

.adm-hamburger:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.adm-body.dark-mode .adm-hamburger {
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.5);
}

.adm-body.dark-mode .adm-hamburger:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* Login sin sidebar — centrar contenido */
.adm-shell:has(#adminSidebar.adm-hidden) {
  grid-template-columns: 1fr;
}

.adm-shell:has(#adminSidebar.adm-hidden) .adm-main {
  background: #f0f2f7;
}

.adm-shell:has(#adminSidebar.adm-hidden) .adm-topbar {
  display: none;
}

.adm-shell:has(#adminSidebar.adm-hidden) .adm-content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 16px;
}

.adm-body.dark-mode .adm-shell:has(#adminSidebar.adm-hidden) .adm-main {
  background: #07102e;
}

/* ── SKELETON admin (modo oscuro) ── */
.adm-body.dark-mode .hst-skeleton-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.adm-body.dark-mode .hst-sk-top {
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.adm-body.dark-mode .hst-sk-body {
  background: transparent;
}

.adm-body.dark-mode .hst-sk-block {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06) 25%,
    rgba(255, 255, 255, 0.12) 37%,
    rgba(255, 255, 255, 0.06) 63%
  );
  background-size: 400% 100%;
}

/* ── SEARCH RESULT CARDS (admin) ── */
:root {
  --sr-bg: #ffffff;
  --sr-bg-head: #f8fafc;
  --sr-border: #e2e8f0;
  --sr-border-old: #e2e8f0;
  --sr-text: #1e293b;
  --sr-muted: #64748b;
  --sr-recent: #e30613;
}

.adm-body.dark-mode {
  --sr-bg: rgba(255, 255, 255, 0.04);
  --sr-bg-head: rgba(255, 255, 255, 0.06);
  --sr-border: rgba(255, 255, 255, 0.08);
  --sr-border-old: rgba(255, 255, 255, 0.06);
  --sr-text: #ffffff;
  --sr-muted: rgba(255, 255, 255, 0.4);
  --sr-recent: #e30613;
}

.sr-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sr-muted);
  margin-bottom: 16px;
}

.sr-header::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--sr-border);
  display: block;
}

.sr-empty,
.sr-error,
.sr-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 24px 0;
  font-size: 14px;
}

.sr-empty {
  flex-direction: column;
  text-align: center;
  color: var(--sr-muted);
}

.sr-empty i {
  font-size: 2rem;
  opacity: 0.4;
}

.sr-error {
  color: rgba(255, 100, 100, 0.8);
}
.sr-loading {
  color: var(--sr-muted);
}

.sr-card {
  background: var(--sr-bg);
  border: 1px solid var(--sr-border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
  transition: box-shadow 0.2s ease;
}

.sr-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.adm-body.dark-mode .sr-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.sr-card--recent {
  border-top: 3px solid var(--sr-recent);
}
.sr-card--old {
  border-top: 3px solid var(--sr-border-old);
}

.sr-card-head {
  background: var(--sr-bg-head);
  border-bottom: 1px solid var(--sr-border);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sr-card-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

.sr-card-head-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.sr-plate {
  background: #010a44;
  color: #ffffff;
  border-radius: 6px;
  padding: 5px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  white-space: nowrap;
}

.sr-fecha-display {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sr-muted);
  white-space: nowrap;
}

.sr-badge-recent {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(227, 6, 19, 0.08);
  border: 1px solid rgba(227, 6, 19, 0.2);
  border-radius: 50px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #e30613;
  white-space: nowrap;
}

.sr-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 0;
}

.sr-field {
  padding: 16px 18px;
  border-right: 1px solid var(--sr-border);
}

.sr-field:last-child {
  border-right: none;
}

.sr-field-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--sr-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.sr-input {
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--sr-text);
  font-family: "Google Sans", sans-serif;
  transition:
    background 0.2s,
    border-color 0.2s;
  outline: none;
}

.sr-input:disabled {
  cursor: default;
  -webkit-text-fill-color: var(--sr-text);
  opacity: 1;
}

.sr-input--editing {
  background: var(--sr-bg-head) !important;
  border-color: rgba(227, 6, 19, 0.4) !important;
  cursor: text !important;
}

.sr-input--editing:focus {
  border-color: #e30613 !important;
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.1);
}

.sr-edit-actions {
  padding: 12px 18px;
  border-top: 1px solid var(--sr-border);
  display: flex;
  gap: 8px;
  background: var(--sr-bg-head);
  flex-wrap: wrap;
}

.sr-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: "Google Sans", sans-serif;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.15s,
    opacity 0.2s;
  white-space: nowrap;
}

.sr-btn:hover {
  transform: translateY(-1px);
}
.sr-btn:active {
  transform: translateY(0);
}

.sr-btn--edit {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--sr-border);
  color: var(--sr-text);
}

.sr-btn--edit:hover {
  background: var(--sr-bg-head);
  border-color: var(--sr-muted);
}

.sr-btn--delete {
  background: rgba(227, 6, 19, 0.06);
  border-color: rgba(227, 6, 19, 0.2);
  color: #e30613;
}

.sr-btn--delete:hover {
  background: rgba(227, 6, 19, 0.12);
  border-color: rgba(227, 6, 19, 0.4);
}

.sr-btn--save {
  background: rgba(5, 150, 105, 0.08);
  border-color: rgba(5, 150, 105, 0.25);
  color: #059669;
}

.adm-body.dark-mode .sr-btn--save {
  color: #34d399;
}

.sr-btn--save:hover {
  background: rgba(5, 150, 105, 0.15);
  border-color: rgba(5, 150, 105, 0.4);
}

.sr-btn--cancel {
  background: transparent;
  border-color: var(--sr-border);
  color: var(--sr-muted);
}

.sr-btn--cancel:hover {
  background: var(--sr-bg-head);
}

/* SweetAlert fix */
.swal2-close:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* =============================================
   25. PÁGINA NOSOTROS
   ============================================= */
.nos-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.nos-hero-title {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 900;
  line-height: 1.13;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  margin: 0;
}

.nos-hero-title .accent {
  color: var(--red);
}

.nos-hero-glass {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 32px 36px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.nos-hero-glass::before {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
  margin-bottom: 20px;
}

.nos-hero-glass p {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}

#nosCarousel {
  border-radius: 24px;
  overflow: hidden;
}

#nosCarousel .carousel-inner {
  border-radius: 24px;
}

#nosCarousel .carousel-item {
  background: #fff;
  overflow: hidden;
}

#nosCarousel .carousel-item img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  display: block;
}

.nos-section-lead {
  font-size: 0.97rem;
  color: var(--gray-600);
  line-height: 1.72;
  margin-bottom: 20px;
}

.nos-values-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.nos-value-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 190px;
  background: var(--gray-100);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  transition:
    background 0.25s,
    border-color 0.25s,
    transform 0.25s,
    box-shadow 0.25s;
}

.nos-value-pill:hover {
  background: white;
  border-color: rgba(227, 6, 19, 0.18);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
}

.nos-value-pill i {
  font-size: 1rem;
  color: var(--red);
  flex-shrink: 0;
}

/* Misión / Visión */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.mv-card {
  border-radius: 20px;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  cursor: default;
}

.mv-card-mision {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  box-shadow: 0 16px 48px rgba(1, 10, 68, 0.3);
}

.mv-card-vision {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: var(--shadow);
}

.mv-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mv-card-mision::before {
  background: white;
}
.mv-card-vision::before {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
}

.mv-card.mv-inverted::before {
  opacity: 1;
}

.mv-card::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(227, 6, 19, 0.18) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mv-card-mision::after {
  opacity: 1;
}
.mv-card-mision.mv-inverted::after {
  opacity: 0;
}
.mv-card-vision.mv-inverted::after {
  opacity: 1;
}

.mv-icon,
.mv-label,
.mv-title,
.mv-text {
  position: relative;
  z-index: 1;
}

.mv-label {
  color: var(--red);
}

.mv-title::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
  margin-top: 10px;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mv-card-mision .mv-title::after {
  opacity: 1;
}
.mv-card-mision.mv-inverted .mv-title::after {
  opacity: 0;
}
.mv-card-vision.mv-inverted .mv-title::after {
  opacity: 1;
}

.mv-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
  transition:
    background 1.2s cubic-bezier(0.4, 0, 0.2, 1),
    color 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mv-card-mision .mv-icon {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}
.mv-card-vision .mv-icon {
  background: rgba(227, 6, 19, 0.08);
  color: var(--red);
}
.mv-card-mision.mv-inverted .mv-icon {
  background: rgba(227, 6, 19, 0.08);
  color: var(--red);
}
.mv-card-vision.mv-inverted .mv-icon {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.mv-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.mv-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 12px;
  transition: color 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mv-card-mision .mv-title {
  color: white;
}
.mv-card-vision .mv-title {
  color: var(--text);
}
.mv-card-mision.mv-inverted .mv-title {
  color: var(--text);
}
.mv-card-vision.mv-inverted .mv-title {
  color: white;
}

.mv-text {
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
  transition: color 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mv-card-mision .mv-text {
  color: rgba(255, 255, 255, 0.72);
}
.mv-card-vision .mv-text {
  color: var(--gray-600);
}
.mv-card-mision.mv-inverted .mv-text {
  color: var(--gray-600);
}
.mv-card-vision.mv-inverted .mv-text {
  color: rgba(255, 255, 255, 0.72);
}

/* Valores */
.values-section {
  background: white;
}

.value-card {
  background: var(--gray-100);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  padding: 28px 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(227, 6, 19, 0.15);
}

.value-icon {
  width: 48px;
  height: 48px;
  background: rgba(227, 6, 19, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--red);
  margin-bottom: 16px;
  transition: background var(--transition);
}

.value-card:hover .value-icon {
  background: rgba(227, 6, 19, 0.14);
}

.value-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.value-desc {
  font-size: 0.87rem;
  color: var(--gray-600);
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
}

.value-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 14px;
  margin-top: auto;
}

.value-action-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--gray-600);
  line-height: 1.4;
}

.value-action-item i {
  color: var(--red);
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* =============================================
   26. PRIVACIDAD / LEGAL
   ============================================= */
.privacy-content {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #2b2b2b;
}

.privacy-content h1 {
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.privacy-content h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: #111;
}

.privacy-content p {
  margin-bottom: 0.75rem;
}

.privacy-content ul {
  padding-left: 1.1rem;
  margin-bottom: 1rem;
}

.privacy-content li {
  margin-bottom: 0.25rem;
}

.link-privacity {
  display: inline-block;
  color: --var(--navy);
  text-decoration: none;
  transition: transform 0.2s ease;
  transform-origin: left center;
}
.link-privacity:hover {
  color: var(--red-dark);
  transform: scale(1.04);
}

/* =============================================
   27. PÁGINA DE CONTACTO
   ============================================= */
.contact-hero-content {
  position: relative;
  z-index: 2;
  padding-top: 25px;
  padding-bottom: 40px;
}

.contact-full-width {
  width: 100%;
}

.contact-hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  margin: 10px 0 14px;
}

.contact-hero-lead {
  font-size: 1.25rem;
  opacity: 0.82;
  line-height: 1.6;
  max-width: 480px;
  margin: 0;
}

.text-red {
  font-weight: 800;
  color: var(--red-dark);
}

.contact-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  padding-top: 15px;
  align-items: center;
}

.contact-hero-info {
  background: rgba(255, 255, 255, 0.151);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  margin-top: 50px;
  padding: 6px 20px;
}

.chi-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.chi-item-empty {
  border-bottom: none;
  padding-bottom: 0;
}

.chi-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  color: white;
}

.chi-icon.red {
  background: rgba(197, 3, 16, 0.74);
}

.chi-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.904);
  margin-bottom: 2px;
}

.chi-value {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
  line-height: 1.4;
}

.chi-value:hover {
  opacity: 0.75;
  color: white;
}

.contact-form-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 6px;
}

.form-control,
.form-select {
  border-radius: 10px;
  border: 1.5px solid #e2e6ee;
  font-family: "Google Sans", sans-serif;
  font-size: 0.95rem;
  padding: 12px 16px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  color: var(--text);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.1);
  outline: none;
}

textarea.form-control {
  resize: none;
}

.form-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

.form-divider {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 28px 0;
}

.btn-submit {
  background: var(--red);
  border: none;
  border-radius: 12px;
  padding: 16px 36px;
  font-family: "Google Sans", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  width: 100%;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-submit:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(227, 6, 19, 0.3);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
}

.form-success.show {
  display: block;
}

.success-icon {
  width: 72px;
  height: 72px;
  background: rgba(5, 150, 105, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: #059669;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.904);
  margin-bottom: 4px;
  display: block;
}

.contact-info-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
  line-height: 1.5;
}

.contact-info-value a {
  color: white;
  text-decoration: none;
  transition: opacity 0.2s;
}

.contact-info-value a:hover {
  opacity: 0.75;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.88rem;
  gap: 16px;
}

.hours-day {
  color: rgba(255, 255, 255, 0.904);
  font-weight: 500;
  flex-shrink: 0;
}

.hours-time {
  color: white;
  font-weight: 600;
  text-align: right;
}

.hours-closed {
  color: rgba(255, 255, 255, 0.4);
}

.contact-map-wrapper {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.contact-map-wrapper iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

/* =============================================
   28. BOTÓN VOLVER ARRIBA
   ============================================= */
.back-to-top {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  width: 44px;
  height: 44px;
  background: rgba(227, 6, 19, 0.15);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: var(--red);
  border: 1px solid rgba(227, 6, 19, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  box-shadow:
    0 2px 12px rgba(227, 6, 19, 0.15),
    0 1px 3px rgba(0, 0, 0, 0.08);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: rgba(227, 6, 19, 0.25);
  box-shadow:
    0 4px 20px rgba(227, 6, 19, 0.25),
    0 1px 3px rgba(0, 0, 0, 0.1);
}

.back-to-top i {
  font-size: 1rem;
  line-height: 1;
}

/* =============================================
   29. ANIMACIONES — clases de entrada
   ============================================= */
[data-animate] {
  opacity: 0;
  will-change: transform, opacity;
}

.fade-left {
  transform: translateX(-45px);
}
.fade-right {
  transform: translateX(45px);
}
.fade-up {
  transform: translateY(30px);
}

.fade-left.show,
.fade-right.show,
.fade-up.show {
  opacity: 1;
  transform: translate(0);
}

.fade-left,
.fade-right,
.fade-up {
  transition:
    opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =============================================
   30. @KEYFRAMES
   ============================================= */
@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes rev-slide-in {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes skeleton-loading {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: 0 0;
  }
}

@keyframes adm-pulse-dot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

@keyframes adm-spin {
  to {
    transform: rotate(360deg);
  }
}

/* =============================================
   31. MEDIA QUERIES
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ── 991px: navbar icons ── */
@media (max-width: 991px) {
  .nav-icon-label {
    display: none;
  }
  .nav-icon-divider {
    display: none;
  }
  .nav-icon-btn {
    padding: 7px 9px;
  }
  .nav-icon-btn i,
  .nav-icon-btn svg {
    width: 18px;
    height: 18px;
    font-size: 18px;
  }
  .navbar-icons {
    padding-top: 10px;
    gap: 10px !important;
  }

  .contact-hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .contact-hero-info {
    margin-top: 10px;
  }

  .nos-page-hero {
    padding: 60px 0 52px;
  }
  .nos-hero-glass {
    padding: 24px 22px;
  }

  .input-historial-col {
    margin-top: 10px;
  }
}

/* ── 768px: general ── */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.6rem;
  }

  .experience-card {
    padding: 36px 24px;
  }
  .amenities-grid {
    grid-template-columns: 1fr 1fr;
  }
  .experience-photo {
    aspect-ratio: 16 / 9;
  }

  .logo-item {
    width: 60px;
  }
  .slider-track {
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
  }
  .footer-qr {
    margin-top: 10px;
  }
  .footer-margin {
    margin-top: 0.25rem;
  }
  .footer-logo {
    display: none;
  }

  .about-badge {
    bottom: -10px;
    right: -10px;
    font-size: 0.8rem;
    padding: 10px 14px;
  }

  .srv-block {
    padding: 56px 0;
  }
  .control-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .intro-pill {
    font-size: 0.78rem;
    padding: 6px 12px;
  }

  /* Reseñas */
  .rev-header-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    text-align: center;
  }
  .rev-header-right {
    border-left: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-left: 0;
    padding-top: 1.25rem;
    text-align: center;
  }
  .rev-stars-row {
    justify-content: center;
  }
  .rev-google-wrap {
    grid-template-columns: 1fr;
  }
  .rev-carousel-outer {
    width: 100%;
    gap: 10px;
  }

  /* Historial */
  .hst-search-panel {
    padding: 24px 18px;
    margin-top: 8px;
  }
  .hst-record-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px 12px;
  }
  .hst-record-top-right {
    justify-content: flex-start;
  }
  .hst-record-day {
    font-size: 2rem;
  }
  .hst-record-stat {
    padding: 16px 18px;
  }

  /* Admin */
  .adm-footer {
    flex-direction: column;
    justify-content: center !important;
    text-align: center;
    padding: 1.2rem !important;
    gap: 0.4rem;
  }
  .adm-footer-note {
    font-size: 0.82rem;
    line-height: 1.4;
  }

  /* Contacto */
  .contact-form-card {
    padding: 24px 20px;
  }

  /* Nosotros */
  .mv-grid {
    grid-template-columns: 1fr;
  }
  .mv-card {
    padding: 28px 22px;
  }
  #nosCarousel .carousel-item img {
    max-height: 250px;
  }

  .hero-section-ser {
    min-height: 100svh;
  }
  .payment-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── 576px ── */
@media (max-width: 576px) {
  .payment-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .amenities-grid {
    grid-template-columns: 1fr 1fr;
  }
  .control-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .accessories-grid {
    gap: 8px;
  }
}

/* ── 768px+ ── */
@media (min-width: 768px) {
  .srv-img {
    height: 400px;
  }
  .privacy-content {
    font-size: 0.95rem;
  }
}

/* =============================================
   ADMIN — SIDEBAR COLAPSADO (desktop ≥ 901px)
   ============================================= */
@media (min-width: 901px) {
  .adm-shell {
    transition: grid-template-columns 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .adm-sidebar {
    transition:
      width 0.28s cubic-bezier(0.4, 0, 0.2, 1),
      padding 0.28s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.28s ease;
    overflow: hidden;
  }

  .adm-shell.sidebar-collapsed {
    grid-template-columns: 0 1fr;
  }

  .adm-shell.sidebar-collapsed .adm-sidebar {
    width: 0;
    padding: 0;
    border-right: none;
    opacity: 0;
    pointer-events: none;
  }

  /* Ocultar mobile-toggle en desktop */
  .adm-mobile-toggle {
    display: none;
  }
}

/* =============================================
   ADMIN — DRAWER MOBILE (≤ 900px)
   ============================================= */
@media (max-width: 900px) {
  /* Ocultar hamburguesa del topbar */
  .adm-hamburger {
    display: none;
  }

  /* Shell: columna única */
  .adm-shell {
    grid-template-columns: 1fr;
  }

  /* Sidebar como barra fija */
  .adm-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 300;
    height: 56px;
    flex-direction: row;
    align-items: center;
    padding: 0 16px;
    gap: 0;
    overflow: hidden;
    flex-wrap: nowrap;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition:
      height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
      box-shadow 0.3s ease;
    background: #ffffff;
    width: 100%;
    box-sizing: border-box;
  }

  .adm-body.dark-mode .adm-sidebar {
    background: #0d1830;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  }

  /* Sidebar abierto */
  .adm-sidebar.mobile-open {
    height: auto;
    max-height: calc(100vh - 0px);
    overflow-y: auto;
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 0 16px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    z-index: 300;
  }

  .adm-body.dark-mode .adm-sidebar.mobile-open {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  }

  /* Main con padding-top para no quedar debajo de la barra */
  .adm-main {
    padding-top: 56px;
    min-width: 0;
  }

  /* Logo siempre visible */
  .adm-sidebar-logo {
    padding: 0;
    border: none;
    margin: 0;
    flex-shrink: 0;
    height: 56px;
    display: flex;
    align-items: center;
  }

  .adm-sidebar-logo img {
    max-width: 90px;
  }

  /* Ocultar cuando está cerrado */
  .adm-sidebar:not(.mobile-open) .adm-sidebar-label,
  .adm-sidebar:not(.mobile-open) .adm-nav-item,
  .adm-sidebar:not(.mobile-open) .adm-sidebar-spacer,
  .adm-sidebar:not(.mobile-open) .adm-theme-toggle,
  .adm-sidebar:not(.mobile-open) .adm-user-pill {
    display: none;
  }

  /* Cuando está abierto */
  .adm-sidebar.mobile-open .adm-sidebar-logo {
    width: 100%;
    height: 56px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 8px;
  }

  .adm-body.dark-mode .adm-sidebar.mobile-open .adm-sidebar-logo {
    border-bottom-color: rgba(255, 255, 255, 0.07);
  }

  .adm-sidebar.mobile-open .adm-mobile-toggle {
    position: absolute;
    top: 12px;
    right: 16px;
  }

  .adm-sidebar.mobile-open .adm-sidebar-label {
    display: block;
    width: 100%;
    padding: 8px 0 4px;
  }

  .adm-sidebar.mobile-open .adm-nav-item {
    display: flex;
    width: 100%;
    border-radius: 8px;
    padding: 10px 12px;
  }

  .adm-sidebar.mobile-open .adm-sidebar-spacer {
    display: none;
  }

  .adm-sidebar.mobile-open .adm-theme-toggle {
    display: flex;
    width: 100%;
    margin: 8px 0 0;
    box-sizing: border-box;
  }

  .adm-sidebar.mobile-open .adm-user-pill {
    display: flex;
    width: 100%;
    margin: 8px 0 0;
    box-sizing: border-box;
  }

  .adm-sidebar.mobile-open .adm-user-info {
    display: block;
  }

  /* Overlay */
  .adm-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 299;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  .adm-sidebar-overlay.visible {
    display: block;
  }

  /* Mobile toggle */
  .adm-mobile-toggle {
    background: rgba(227, 6, 19, 0.08);
    border: 1px solid rgba(227, 6, 19, 0.2);
    border-radius: 8px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #e30613;
    font-size: 0.95rem;
    flex-shrink: 0;
    transition:
      background 0.2s,
      border-color 0.2s;
    margin-left: auto;
  }

  .adm-mobile-toggle:hover {
    background: rgba(227, 6, 19, 0.14);
    border-color: rgba(227, 6, 19, 0.35);
  }

  .adm-body.dark-mode .adm-mobile-toggle {
    background: rgba(227, 6, 19, 0.1);
    border-color: rgba(227, 6, 19, 0.25);
    color: #ff4d57;
  }

  .adm-mobile-toggle i {
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    line-height: 1;
  }

  .adm-sidebar.mobile-open .adm-mobile-toggle i {
    transform: rotate(180deg);
  }

  /* Responsive admin menor */
  .adm-stats-grid {
    grid-template-columns: 1fr;
  }
  .adm-panels {
    grid-template-columns: 1fr;
  }

  .adm-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 12px;
  }

  .adm-content {
    padding: 16px 12px;
  }

  .adm-footer {
    padding: 12px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* ── sr-fields responsive ── */
@media (max-width: 600px) {
  .sr-fields {
    grid-template-columns: 1fr;
  }
  .sr-field {
    border-right: none;
    border-bottom: 1px solid var(--sr-border);
  }
  .sr-field:last-child {
    border-bottom: none;
  }
  .sr-card-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .sr-card-head-right {
    width: 100%;
  }
  .sr-btn {
    flex: 1;
    justify-content: center;
  }
}
