:root {
  --bg: #0B0B0D;
  --card: #141418;
  --text: #F5F5F7;
  --muted: #B7B7C2;
  --accent: #C2182B;
  --accent2: #E01E37;
  --border: rgba(255, 255, 255, .08);
}

html,
body {
  background: var(--bg);
  color: var(--text);
}

.navbar,
.card {
  background: var(--card) !important;
  border: 1px solid var(--border);
}

.navbar .btn-outline-light.dropdown-toggle:hover,
.navbar .btn-outline-light.dropdown-toggle:focus,
.navbar .btn-outline-light.dropdown-toggle:active,
.navbar .btn-outline-light.dropdown-toggle.show,
.navbar .btn-outline-light.dropdown-toggle.active {
  color: #fff !important;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04)) !important;
  border-color: rgba(255,255,255,.24) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.18) !important;
}
a {
  color: var(--text) !important;
}

.text-muted {
  color: var(--muted) !important;
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent2);
  border-color: var(--accent2);
}

.badge-accent {
  background: rgba(194, 24, 43, .18);
  color: #fff;
  border: 1px solid rgba(194, 24, 43, .35);
}

.hero {
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse at top, rgba(194, 24, 43, .18), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, .05), transparent 60%);
  border-radius: 20px;
}

.section-title {
  letter-spacing: .5px;
}

.small-help {
  color: var(--muted);
  font-size: .95rem;
}

.navbar-toggler {
  border-color: var(--border);
}

.navbar-toggler-icon {
  filter: invert(1);
}

/* =========================
   NAVBAR / DROPDOWNS ADMIN
========================= */
.navbar .nav-link {
  color: var(--text) !important;
}

.navbar .dropdown-menu {
  background: #16181d !important;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  padding: .45rem;
  min-width: 240px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}

.navbar .dropdown-item {
  color: #f5f7fb !important;
  border-radius: 10px;
  padding: .7rem .9rem;
  font-weight: 500;
  background: transparent;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus,
.navbar .dropdown-item.active,
.navbar .dropdown-item:active {
  color: #ffffff !important;
  background: rgba(255, 255, 255, .08) !important;
}

.navbar .dropdown-divider {
  border-top: 1px solid rgba(255, 255, 255, .10);
}

.navbar .btn.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.navbar .dropdown-toggle::after {
  vertical-align: middle;
}

/* FullCalendar */
.fc .fc-button {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
}

.fc .fc-scrollgrid,
.fc-theme-standard td,
.fc-theme-standard th {
  border-color: var(--border);
}

/* Calendario público: bloques ocupados */
.fc .fc-event {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  padding: 2px 6px;
}

.fc .fc-event-title {
  font-weight: 600;
}

.fc .fc-event,
.fc-event-main {
  color: #fff;
}

/* --- Hero coqueto (home) --- */
.hero-panel {
  background:
    radial-gradient(1200px 500px at 10% 10%, rgba(255, 0, 70, .10), transparent 55%),
    radial-gradient(900px 400px at 80% 20%, rgba(255, 255, 255, .06), transparent 50%),
    rgba(255, 255, 255, .03);
  border-color: var(--border) !important;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .35);
  position: relative;
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(120deg, rgba(255, 0, 70, .18), transparent 35%, rgba(255, 255, 255, .06));
  pointer-events: none;
  opacity: .45;
  mask: radial-gradient(700px 380px at 20% 10%, #000 35%, transparent 70%);
}

.logo-wrap {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(0, 0, 0, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}

.hero-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.tracking {
  letter-spacing: .12em;
  opacity: .9;
}

.hero-title {
  font-weight: 800;
  line-height: 1.05;
}

.hero-underline {
  width: 92px;
  height: 4px;
  border-radius: 999px;
  margin-top: 10px;
  background: linear-gradient(90deg, rgba(255, 0, 70, 1), rgba(255, 0, 70, .2));
  box-shadow: 0 10px 30px rgba(255, 0, 70, .25);
}

.hero-lead {
  max-width: 52ch;
  opacity: .95;
}

.mini-stat {
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(0, 0, 0, .20);
  border-radius: 16px;
  padding: 10px 12px;
  height: 100%;
}

.mini-k {
  font-size: .78rem;
  opacity: .75;
}

.mini-v {
  font-size: .95rem;
  font-weight: 700;
  margin-top: 2px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .78rem;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .92);
  backdrop-filter: blur(6px);
}

/* Ajustes visuales (dark) para FullCalendar */
.fc {
  color: var(--text);
}

.fc .fc-toolbar-title {
  font-size: 1.15rem;
}

.fc .fc-button {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
}

.fc .fc-button:hover {
  filter: brightness(1.08);
}

.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
  background: rgba(194, 24, 43, .25);
  border-color: rgba(194, 24, 43, .55);
}

.fc-theme-standard .fc-scrollgrid,
.fc-theme-standard td,
.fc-theme-standard th {
  border-color: var(--border);
}

.fc .fc-daygrid-day-number,
.fc .fc-col-header-cell-cushion {
  color: var(--text);
  text-decoration: none;
}

.fc .fc-daygrid-event {
  border-radius: 10px;
  padding: 2px 6px;
  border: 1px solid var(--border);
}

.fc .fc-timegrid-event {
  border-radius: 12px;
  border: 1px solid var(--border);
}

/* Estados */
.ev-pendiente,
.ev-reservado {
  background: rgba(135, 7, 255, 0.308) !important;
}

.ev-confirmada,
.ev-ocupado {
  background: rgba(25, 135, 84, .18) !important;
}

.ev-cancelada {
  background: rgba(220, 53, 69, .18) !important;
}

.ev-completada {
  background: rgba(13, 110, 253, .18) !important;
}

/* Bloqueos */
.ev-bloqueo {
  background: rgba(233, 212, 215, 0.18) !important;
  border-style: dashed !important;
}

/* ===== Testimonios: 3 visibles en desktop ===== */
.testi-wrap {
  position: relative;
}

.testi-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.testi-row::-webkit-scrollbar {
  display: none;
}

.testi-card {
  flex: 0 0 auto;
  width: min(360px, 86vw);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 16px;
  padding: 14px;
  scroll-snap-align: start;
}

@media (min-width: 992px) {
  .testi-card {
    width: calc((100% - 28px) / 3);
  }
}

.testi-img {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  margin-bottom: 10px;
  cursor: zoom-in;
}

.testi-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.testi-img-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 12px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, .55);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
}

.testi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.testi-name {
  font-weight: 700;
}

.testi-stars {
  letter-spacing: 1px;
  opacity: .9;
}

.testi-text {
  color: var(--text);
  opacity: .92;
}

.testi-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 10px;
}

.testi-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .25);
}

.testi-dot.is-active {
  background: rgba(255, 255, 255, .85);
}

/* ===== Lightbox ===== */
.lb-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, .78);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.lb-backdrop.show {
  display: flex;
}

.lb-box {
  width: min(980px, 96vw);
  background: rgba(20, 20, 20, .9);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  overflow: hidden;
}

.lb-img {
  width: 100%;
  height: min(72vh, 720px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.lb-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.lb-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
}

.lb-btn {
  border: 1px solid rgba(255, 255, 255, .18);
  background: transparent;
  color: #fff;
  padding: 6px 10px;
  border-radius: 10px;
}

.title-pink {
  color: #ff4fa3 !important;
  font-weight: 600;
}

.title-gradient {
  font-weight: 600;
  background: linear-gradient(90deg, #ff4fa3, #ff2d55, #e60023) !important;
}

.service-img-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}

.service-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.svc-img-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .55);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  font-size: .85rem;
  backdrop-filter: blur(4px);
}

/* ===== Portafolio slider: 6 visibles, mueve 1 a 1 ===== */
.pf-wrap {
  position: relative;
}

.pf-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (5 * 12px)) / 5);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.pf-track::-webkit-scrollbar {
  display: none;
}

.pf-item {
  scroll-snap-align: start;
}

.pf-card {
  border-radius: 14px;
}

@media (max-width: 1199.98px) {
  .pf-track {
    grid-auto-columns: calc((100% - (3 * 12px)) / 4);
  }
}

@media (max-width: 991.98px) {
  .pf-track {
    grid-auto-columns: calc((100% - (2 * 12px)) / 3);
  }
}

@media (max-width: 767.98px) {
  .pf-track {
    grid-auto-columns: calc((100% - (1 * 12px)) / 2);
  }
}

@media (max-width: 575.98px) {
  .pf-track {
    grid-auto-columns: 85%;
  }
}

/* ===== Certificaciones (home) ===== */
.cert-card {
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
}

.cert-cat {
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .75;
}

.cert-title {
  font-size: 1rem;
  line-height: 1.25;
}

.cert-badges .badge {
  font-weight: 600;
  margin-left: .25rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .82rem;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .03);
}

.cert-filters .btn {
  border-radius: 999px;
}

.cert-filters .btn.active {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .18);
}

/* ===== Certificaciones: carrusel por páginas de 4 (2x2) ===== */
.certi-wrap {
  position: relative;
}

.certi-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.certi-track::-webkit-scrollbar {
  display: none;
}

.certi-item {
  scroll-snap-align: start;
  height: 100%;
}

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

.certi-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  opacity: .8;
}

.certi-dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .12);
  padding: 0;
}

.certi-dots button.active {
  background: rgba(255, 255, 255, .55);
  border-color: rgba(255, 255, 255, .55);
}

@media (max-width: 575.98px) {
  .certi-page {
    grid-template-columns: 1fr;
  }
}

.pdf-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(4px);
  z-index: 9999;
}

.pdf-modal.show {
  display: flex;
}

.pdf-modal__box {
  width: min(980px, 96vw);
  height: min(720px, 88vh);
  background: rgba(20, 20, 20, .95);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pdf-modal__bar {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pdf-modal__body {
  flex: 1;
  background: rgba(0, 0, 0, .25);
}

.pdf-modal__body iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #111;
}

/* =========================
   FIX VISIBILIDAD FORMULARIOS / BOTONES DARK
========================= */

/* Etiquetas de controles */
.form-label,
label {
  color: rgba(245, 245, 247, .92) !important;
  font-weight: 600;
}

/* Texto auxiliar debajo de controles */
.form-text,
.small,
small {
  color: rgba(183, 183, 194, .88) !important;
}

/* Checks / switches */
.form-check-label {
  color: rgba(245, 245, 247, .92) !important;
}

/* Placeholders visibles */
.form-control::placeholder,
.form-select::placeholder,
textarea::placeholder {
  color: rgba(120, 125, 140, .95) !important;
  opacity: 1;
}

/* Inputs, selects, textarea */
.form-control,
.form-select,
textarea {
  background-color: #f7f7f8 !important;
  color: #111827 !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
}

.form-control:focus,
.form-select:focus,
textarea:focus {
  background-color: #ffffff !important;
  color: #111827 !important;
  border-color: rgba(224, 30, 55, .55) !important;
  box-shadow: 0 0 0 .2rem rgba(224, 30, 55, .15) !important;
}

/* Inputs deshabilitados */
.form-control:disabled,
.form-select:disabled,
textarea:disabled {
  background-color: #dcdde1 !important;
  color: #6b7280 !important;
  opacity: 1;
}

/* Botones outline para que no se pierdan */
.btn-outline-secondary {
  color: #f5f5f7 !important;
  border-color: rgba(255,255,255,.28) !important;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active {
  color: #fff !important;
  background: rgba(255,255,255,.08) !important;
  border-color: rgba(255,255,255,.42) !important;
}

/* Botón dorado */
.btn-fc-gold {
  background: linear-gradient(135deg, #f6d365, #f1b70a) !important;
  color: #1a1a1a !important;
  border: 1px solid rgba(241, 183, 10, .45) !important;
  font-weight: 700;
}

.btn-fc-gold:hover,
.btn-fc-gold:focus,
.btn-fc-gold:active {
  color: #111 !important;
  filter: brightness(1.03);
  box-shadow: 0 0 0 .2rem rgba(241, 183, 10, .18) !important;
}

/* Títulos dentro de cards/formularios */
.card .card-header,
.card .card-title,
.card h1,
.card h2,
.card h3,
.card h4,
.card h5,
.card h6 {
  color: #f5f5f7 !important;
}

/* Tablas dentro de cards oscuras */
.table {
  color: #f5f5f7;
}

.table thead th {
  color: #f5f5f7;
  border-color: rgba(255,255,255,.12);
}

.table td,
.table th {
  border-color: rgba(255,255,255,.08);
}

/* Switch bootstrap */
.form-check-input {
  background-color: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.28);
}

.form-check-input:checked {
  background-color: var(--accent) !important;
  border-color: var(--accent) !important;
}

/* =========================
   FIX TEXTOS MUTED EN CARDS (DARK)
========================= */

/* Texto tipo "Fecha inicio", "Pagado real", etc */
.text-muted {
  color: rgba(200, 205, 220, 0.85) !important;
}

/* Texto principal dentro de cards (valores) */
.card .fw-semibold,
.card .fw-bold {
  color: #ffffff ;
}

/* Texto normal dentro de cards */
.card-body {
  color: rgba(245, 245, 247, 0.92);
}

/* Por si algún div no trae clase */
.card .small {
  color: rgba(200, 205, 220, 0.85) !important;
}

/* Títulos de bloques tipo dashboard */
.card .text-muted.small {
  color: rgba(200, 205, 220, 0.85) !important;
}

/* Afinar contraste general en tarjetas */
.card {
  color: #f5f5f7;
}

.bg-body-tertiary {
    --bs-bg-opacity: 1;
    background-color: rgba(255,255,255,0.03) !important; /* leve glass oscuro */
}

.table-hover tbody tr:hover {
    background-color: rgba(255,255,255,0.05) !important;
}