/* =========================
   CVT UI - FRONTEND DETALLE
========================= */

/* =========================
   TOKENS VISUALES
========================= */
:root {
  --cvt-bg: #f4f7fb;
  --cvt-surface: #ffffff;
  --cvt-surface-soft: #fbfcfe;
  --cvt-surface-muted: #f8fafc;
  --cvt-border: #e4ebf3;
  --cvt-border-strong: #d8e2ec;
  --cvt-text: #0f172a;
  --cvt-text-soft: #475569;
  --cvt-text-muted: #64748b;
  --cvt-primary: #08152f;
  --cvt-primary-2: #0d1d42;
  --cvt-primary-3: #132956;
  --cvt-accent: #3730a3;
  --cvt-accent-soft: #eef2ff;
  --cvt-success: #0f766e;
  --cvt-success-soft: #ecfdf5;
  --cvt-shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.05);
  --cvt-shadow-md: 0 18px 38px rgba(15, 23, 42, 0.07);
  --cvt-shadow-lg: 0 26px 56px rgba(15, 23, 42, 0.1);
  --cvt-radius-xs: 14px;
  --cvt-radius-sm: 18px;
  --cvt-radius-md: 24px;
  --cvt-radius-lg: 30px;
  --cvt-radius-xl: 36px;
}

/* =========================
   ROOT / OVERRIDES THEME + ELEMENTOR
========================= */
body .cvt-root.cvt-root-detalle {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  clear: both;
}

body .cvt-root.cvt-root-detalle .cvt-detalle-viewport {
  width: 100%;
  max-width: 1300px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  box-sizing: border-box;
}

body .cvt-root.cvt-root-detalle .cvt-detalle-viewport,
body .cvt-root.cvt-root-detalle .cvt-detalle-viewport * {
  box-sizing: border-box;
}

body .cvt-root.cvt-root-detalle .elementor,
body .cvt-root.cvt-root-detalle .elementor-section,
body .cvt-root.cvt-root-detalle .elementor-container,
body .cvt-root.cvt-root-detalle .elementor-column,
body .cvt-root.cvt-root-detalle .elementor-widget-wrap,
body .cvt-root.cvt-root-detalle .container,
body .cvt-root.cvt-root-detalle .site-main,
body .cvt-root.cvt-root-detalle .content-area,
body .cvt-root.cvt-root-detalle .ast-container,
body .cvt-root.cvt-root-detalle .e-con,
body .cvt-root.cvt-root-detalle .e-parent,
body .cvt-root.cvt-root-detalle .e-child {
  max-width: none;
}

body .cvt-root.cvt-root-detalle img {
  max-width: 100%;
  height: auto;
}

/* =========================
   LAYOUT BASE RENDER
========================= */
.cvt-site-main {
  width: 100%;
}

.cvt-render-detalle {
  width: 100%;
  max-width: 100%;
  margin: 32px auto 64px;
  padding: 0;
}

.cvt-detalle {
  width: 100%;
  color: var(--cvt-text);
}

.cvt-detalle-layout {
  display: grid;
  gap: 24px;
}

/* =========================
   DETAIL HERO
========================= */
.cvt-detalle-heroe {
  margin-bottom: 0;
}

.cvt-detalle-grid,
.cvt-detalle-superior {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 28px;
  align-items: start;
}

.cvt-detalle-left,
.cvt-detalle-right,
.cvt-detalle-imagen-columna,
.cvt-detalle-info-columna {
  min-width: 0;
}

.cvt-detalle-left,
.cvt-detalle-imagen-columna {
  position: sticky;
  top: 24px;
  align-self: start;
}

.cvt-detalle-right,
.cvt-detalle-info-columna {
  display: grid;
  gap: 20px;
}

/* =========================
   IMAGE AREA
========================= */
.cvt-detalle-imagen-marco {
  position: relative;
  overflow: hidden;
  width: 100%;
  border: 1px solid var(--cvt-border);
  border-radius: var(--cvt-radius-xl);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0) 34%),
    linear-gradient(145deg, #f8fafc 0%, #eef2f6 54%, #e8edf3 100%);
  box-shadow: var(--cvt-shadow-lg);
}

.cvt-detalle-imagen-marco::before {
  content: '';
  position: absolute;
  inset: 16px;
  border-radius: calc(var(--cvt-radius-xl) - 10px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

.cvt-detalle-imagen-marco::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 28%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.52) 100%);
  pointer-events: none;
}

.cvt-detalle-imagen {
  position: relative;
  z-index: 1;
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  padding: 38px;
  filter: drop-shadow(0 26px 32px rgba(15, 23, 42, 0.14));
}

.cvt-sin-imagen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding: 32px;
  color: var(--cvt-text-muted);
  font-weight: 700;
  text-align: center;
}

/* =========================
   HERO BOX / TITLES
========================= */
.cvt-card,
.cvt-caja,
.cvt-bloque,
.cvt-card-hero,
.cvt-card-precio {
  border: 1px solid var(--cvt-border);
  border-radius: var(--cvt-radius-lg);
  background: linear-gradient(180deg, var(--cvt-surface) 0%, var(--cvt-surface-soft) 100%);
  box-shadow: var(--cvt-shadow-md);
}

.cvt-caja,
.cvt-card,
.cvt-card-hero,
.cvt-card-precio {
  padding: 28px;
}

.cvt-caja-destacada,
.cvt-card-precio {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0) 35%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  border-color: var(--cvt-border-strong);
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.08);
}

.cvt-caja-hero {
  padding: 30px;
}

.cvt-detalle-heading-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cvt-detalle-heading-top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
}

.cvt-etiqueta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #eef8f4 0%, #e7f6f0 100%);
  border: 1px solid #d5ece2;
  color: var(--cvt-success);
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cvt-detalle-categoria {
  margin: 0;
  color: var(--cvt-text-muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cvt-detalle-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cvt-detalle-titulo,
.cvt-titulo {
  margin: 0;
  font-size: 52px;
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.06em;
  color: var(--cvt-text);
  text-wrap: balance;
}

.cvt-detalle-subtitulo,
.cvt-subtitulo {
  margin: 0;
  font-size: 17px;
  line-height: 1.8;
  color: var(--cvt-text-soft);
  max-width: 62ch;
}

/* =========================
   SPECS INLINE
========================= */
.cvt-specs,
.cvt-detalle-specs-inline {
  margin-top: 6px;
}

.cvt-specs-market {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.cvt-spec-market-item {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  text-align: left;
  padding: 0;
}

.cvt-spec-market-icon {
  width: 34px;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #e5eaf0;
  background: #f8fafc;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cvt-spec-market-svg {
  width: 16px;
  height: 16px;
  display: block;
  opacity: 0.95;
}

.cvt-spec-market-icon-text {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  color: #475569;
}

.cvt-spec-market-copy {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.cvt-spec-market-text {
  display: block !important;
  margin: 0;
  font-size: 14px;
  line-height: 1.15;
  font-weight: 800;
  color: var(--cvt-text);
  word-break: break-word;
}

.cvt-spec-market-label {
  display: block !important;
  margin: 0;
  font-size: 11px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--cvt-text-muted);
}

/* =========================
   PRICE CARD
========================= */
.cvt-detalle-resumen-premium,
.cvt-card-precio {
  padding: 24px;
}

.cvt-detalle-resumen-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cvt-detalle-resumen-copy {
  min-width: 0;
}

.cvt-detalle-resumen-label,
.cvt-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--cvt-text-muted);
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cvt-detalle-precio,
.cvt-precio {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.cvt-detalle-precio strong,
.cvt-precio strong {
  color: var(--cvt-text);
  font-size: 44px;
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.cvt-detalle-precio span,
.cvt-precio span {
  color: var(--cvt-text-muted);
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
}

.cvt-detalle-precio-vacio strong {
  font-size: 34px;
}

.cvt-detalle-resumen-cta {
  flex-shrink: 0;
}

/* =========================
   SECTION HEADERS
========================= */
.cvt-section,
.cvt-caja {
  width: 100%;
}

.cvt-seccion-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.cvt-seccion-head-inline {
  margin-bottom: 16px;
}

.cvt-seccion-head-inline p {
  margin: 0;
  color: var(--cvt-text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.cvt-badge-seccion {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--cvt-accent-soft);
  border: 1px solid #dbe4ff;
  color: var(--cvt-accent);
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.cvt-seccion-head h2,
.cvt-section h2,
.cvt-caja h2 {
  margin: 0;
  color: var(--cvt-text);
  font-size: 30px;
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.045em;
}

/* =========================
   DESCRIPTION
========================= */
.cvt-detalle-descripcion,
.cvt-texto {
  margin: 0;
}

.cvt-detalle-descripcion-copy,
.cvt-texto {
  color: #334155;
  font-size: 16px;
  line-height: 1.9;
}

.cvt-detalle-descripcion-copy p,
.cvt-texto p {
  margin: 0 0 14px;
}

.cvt-detalle-descripcion-copy p:last-child,
.cvt-texto p:last-child {
  margin-bottom: 0;
}

/* =========================
   META GRID
========================= */
.cvt-detalle-meta-wrap {
  margin-bottom: 0;
}

.cvt-detalle-meta,
.cvt-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.cvt-grid-2 > div,
.cvt-meta-item,
.cvt-detalle-meta > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 17px;
  border: 1px solid #e8edf3;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.03);
  color: var(--cvt-text);
  font-size: 14px;
  line-height: 1.45;
}

.cvt-grid-2 strong,
.cvt-detalle-meta strong {
  font-weight: 800;
  color: var(--cvt-text-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* =========================
   TARIFAS
========================= */
.cvt-tarifas-premium-box {
  overflow: hidden;
}

.cvt-cta {
  margin-top: 22px;
}

.cvt-tarifas {
  display: grid;
  gap: 12px;
}

.cvt-tarifa-linea {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid #e8edf3;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  color: #334155;
  font-size: 15px;
}

.cvt-tarifa-linea span {
  color: var(--cvt-text-muted);
  font-weight: 700;
}

.cvt-tarifa-linea strong {
  color: var(--cvt-text);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

/* =========================
   LISTAS DE BLOQUES
========================= */
.cvt-seccion-amplia {
  margin-top: 0;
}

.cvt-lista-bloques {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.cvt-lista-bloques-sucursales,
.cvt-lista-bloques-seguros {
  align-items: stretch;
}

.cvt-bloque {
  padding: 24px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.cvt-bloque:hover {
  transform: translateY(-3px);
  border-color: #d9e2ec;
  box-shadow: 0 20px 36px rgba(15, 23, 42, 0.07);
}

.cvt-bloque-info-lista {
  display: grid;
  gap: 10px;
}

.cvt-bloque p {
  margin: 0;
  color: var(--cvt-text-soft);
  line-height: 1.7;
}

.cvt-bloque strong {
  color: var(--cvt-text);
  font-weight: 800;
}

/* =========================
   GALLERY
========================= */
.cvt-galeria-wrap {
  margin-top: 18px;
}

.cvt-galeria {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.cvt-galeria-item {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  background: var(--cvt-surface-muted);
  border: 1px solid var(--cvt-border);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.cvt-galeria-item:hover {
  transform: translateY(-3px);
  border-color: #dbe4ee;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
}

.cvt-galeria-item img {
  width: 100%;
  height: 126px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.cvt-galeria-item:hover img {
  transform: scale(1.05);
}

/* =========================
   FAQ
========================= */
.cvt-faq-box {
  overflow: hidden;
}

.cvt-faq-lista {
  display: grid;
  gap: 14px;
}

.cvt-faq-item,
.cvt-section details {
  border: 1px solid var(--cvt-border);
  border-radius: 20px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  transition:
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.cvt-faq-item:hover,
.cvt-section details:hover {
  transform: translateY(-2px);
  border-color: #dbe4ef;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}

.cvt-faq-item[open],
.cvt-section details[open] {
  border-color: var(--cvt-border-strong);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.07);
}

.cvt-faq-item summary,
.cvt-section details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  font-weight: 800;
  color: var(--cvt-text);
  list-style: none;
  line-height: 1.45;
}

.cvt-faq-item summary::-webkit-details-marker,
.cvt-section details summary::-webkit-details-marker {
  display: none;
}

.cvt-faq-item summary::after,
.cvt-section details summary::after {
  content: '+';
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: var(--cvt-text);
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
}

.cvt-faq-item[open] summary::after,
.cvt-section details[open] summary::after {
  content: '−';
}

.cvt-faq-respuesta,
.cvt-section details p {
  margin-top: 14px;
  color: var(--cvt-text-soft);
  line-height: 1.82;
}

.cvt-faq-respuesta p:last-child,
.cvt-section details p:last-child {
  margin-bottom: 0;
}

/* =========================
   STATES
========================= */
.cvt-empty-section {
  margin: 0;
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed #d7e0ea;
  background: var(--cvt-surface-muted);
  color: var(--cvt-text-muted);
  line-height: 1.65;
}

/* =========================
   BUTTONS
========================= */
.cvt-boton,
.cvt-boton-reservar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  text-decoration: none;
  border: 0;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(
    135deg,
    var(--cvt-primary) 0%,
    var(--cvt-primary-2) 55%,
    #050b19 100%
  );
  box-shadow: 0 16px 28px rgba(7, 19, 44, 0.18);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.25s ease;
}

.cvt-boton:hover,
.cvt-boton-reservar:hover {
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 22px 34px rgba(7, 19, 44, 0.22);
}

.cvt-boton:focus,
.cvt-boton-reservar:focus {
  outline: none;
  color: #ffffff;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1240px) {
  body .cvt-root.cvt-root-detalle .cvt-detalle-viewport {
    max-width: 1300px !important;
  }

  .cvt-detalle-grid,
  .cvt-detalle-superior {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cvt-detalle-left,
  .cvt-detalle-imagen-columna {
    position: static;
  }

  .cvt-lista-bloques {
    grid-template-columns: 1fr;
  }

  .cvt-galeria {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cvt-detalle-titulo,
  .cvt-titulo {
    font-size: 42px;
  }
}

@media (max-width: 900px) {
  body .cvt-root.cvt-root-detalle .cvt-detalle-viewport {
    padding: 0 16px !important;
  }

  .cvt-detalle-resumen-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .cvt-detalle-resumen-cta {
    width: 100%;
  }

  .cvt-detalle-resumen-cta .cvt-boton-reservar {
    width: 100%;
  }

  .cvt-caja-hero,
  .cvt-caja,
  .cvt-card,
  .cvt-card-hero,
  .cvt-card-precio {
    padding: 24px;
  }

  .cvt-specs-market {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cvt-spec-market-item {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .cvt-spec-market-copy {
    gap: 4px;
  }
}

@media (max-width: 767px) {
  body .cvt-root.cvt-root-detalle .cvt-detalle-viewport {
    padding: 0 14px !important;
  }

  .cvt-render-detalle {
    margin: 20px auto 42px;
  }

  .cvt-detalle-imagen {
    padding: 20px;
  }

  .cvt-sin-imagen {
    min-height: 260px;
  }

  .cvt-detalle-titulo,
  .cvt-titulo {
    font-size: 32px;
  }

  .cvt-detalle-subtitulo,
  .cvt-subtitulo {
    font-size: 16px;
  }

  .cvt-detalle-descripcion-copy,
  .cvt-texto {
    font-size: 15px;
  }

  .cvt-detalle-meta,
  .cvt-grid-2 {
    grid-template-columns: 1fr;
  }

  .cvt-caja,
  .cvt-card,
  .cvt-card-hero,
  .cvt-card-precio {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .cvt-seccion-head h2,
  .cvt-section h2,
  .cvt-caja h2 {
    font-size: 24px;
  }

  .cvt-caja h3 {
    font-size: 18px;
  }

  .cvt-detalle-precio strong,
  .cvt-precio strong {
    font-size: 34px;
  }

  .cvt-detalle-precio span,
  .cvt-precio span {
    font-size: 14px;
  }

  .cvt-galeria {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cvt-galeria-item img {
    height: 108px;
  }

  .cvt-boton,
  .cvt-boton-reservar {
    width: 100%;
    min-height: 52px;
    font-size: 15px;
  }
}

@media (max-width: 520px) {
  .cvt-detalle-titulo,
  .cvt-titulo {
    font-size: 27px;
  }

  .cvt-etiqueta {
    font-size: 10px;
    letter-spacing: 0.07em;
  }

  .cvt-galeria {
    gap: 10px;
  }

  .cvt-galeria-item img {
    height: 94px;
  }

  .cvt-tarifa-linea {
    padding: 13px 14px;
    font-size: 14px;
  }

  .cvt-tarifa-linea strong {
    font-size: 15px;
  }

  .cvt-faq-item,
  .cvt-section details {
    padding: 16px;
  }

  .cvt-detalle-precio strong,
  .cvt-precio strong {
    font-size: 30px;
  }

  .cvt-detalle-resumen-premium,
  .cvt-card-precio {
    padding: 18px;
    border-radius: 22px;
  }
}
