* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --dark: #222831;
  --dark-soft: #393e46;
  --bronze: #948979;
  --cream: #dfd0b8;
  --white: #fff;
  --text-soft: rgba(255, 255, 255, 0.72);
  --glass: rgba(57, 62, 70, 0.68);
  --border: rgba(223, 208, 184, 0.22);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}
html {
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--white);
  background:
    radial-gradient(
      circle at 10% 5%,
      rgba(148, 137, 121, 0.3),
      transparent 28%
    ),
    radial-gradient(
      circle at 90% 25%,
      rgba(223, 208, 184, 0.18),
      transparent 25%
    ),
    linear-gradient(145deg, #171c22, var(--dark) 45%, #151a20);
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 28px 28px;
}
img {
  display: block;
  max-width: 100%;
}
.background-shape {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(18px);
  pointer-events: none;
}
.shape-one {
  width: 210px;
  height: 210px;
  top: -60px;
  right: -80px;
  background: rgba(223, 208, 184, 0.14);
}
.shape-two {
  width: 180px;
  height: 180px;
  bottom: 5%;
  left: -90px;
  background: rgba(148, 137, 121, 0.15);
}
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px 14px 34px;
}
.profile-card {
  width: min(100%, 460px);
  display: grid;
  gap: 14px;
}
.glass {
  border: 1px solid var(--border);
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.075),
      rgba(255, 255, 255, 0.025)
    ),
    var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border-radius: 24px;
}
.logo-wrap {
  width: 67px;
  height: 67px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
}
.company-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}
.company-tag,
.section-label {
  color: var(--cream);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.7px;
}
.company-copy h1 {
  margin-top: 3px;
  font-size: 17px;
  line-height: 1.12;
}
.company-copy p {
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 11px;
}
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.45);
  color: #25d366;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.12);
}
.verified-dot {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #ffffff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
}
.driver-section {
  overflow: hidden;
  border-radius: 26px;
}
.driver-image-box {
  position: relative;
  height: 600px;
  overflow: hidden;
}
.driver-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.driver-image-box:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(34, 40, 49, 0.92), transparent 52%),
    linear-gradient(to right, rgba(34, 40, 49, 0.18), transparent);
}
.photo-overlay {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
}

.driver-info {
  padding: 19px 18px 20px;
}
.driver-info h2 {
  margin-top: 6px;
  font-size: 25px;
  line-height: 1.12;
}
.driver-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 12px;
}
.status-indicator {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #7ddc9f;
  box-shadow: 0 0 0 5px rgba(125, 220, 159, 0.1);
}
.vehicle-section {
  padding: 17px;
  border-radius: 26px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 14px;
}
.section-heading h3 {
  margin-top: 4px;
  font-size: 19px;
}
.mobile-number {
  padding: 9px 11px;
  border-radius: 13px;
  color: var(--dark);
  background: var(--cream);
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(223, 208, 184, 0.15);
}
.taxi-image-box {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 35px;
  background: var(--dark);
}
.taxi-image {
  width: 100%;
  height: 600px;
  object-fit: cover;
  display: block;
}
.taxi-image-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(19, 23, 29, 0.95), transparent 55%);
}
.taxi-caption {
  position: absolute;
  right: 14px;
  bottom: 13px;
  left: 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
}
.taxi-caption strong {
  color: var(--cream);
  white-space: nowrap;
}
.data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 13px;
}
.data-card {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(223, 208, 184, 0.14);
  border-radius: 17px;
  background:
    linear-gradient(
      145deg,
      rgba(223, 208, 184, 0.07),
      rgba(255, 255, 255, 0.02)
    ),
    rgba(34, 40, 49, 0.48);
}
.data-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 11px;
  background: rgba(223, 208, 184, 0.12);
  font-size: 16px;
}
.data-card span {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
}
.data-card strong {
  display: block;
  font-size: 13px;
  line-height: 1.25;
}
.license-category {
  color: var(--cream) !important;
  font-size: 22px !important;
}
.full-width {
  grid-column: 1/-1;
}
.restriction-card {
  min-height: 76px;
}
.security-message {
  display: flex;
  gap: 12px;
  padding: 15px;
  border-radius: 20px;
}
.security-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(223, 208, 184, 0.3);
  border-radius: 50%;
  color: var(--dark);
  background: var(--cream);
  font-weight: 950;
}
.security-message strong {
  color: var(--cream);
  font-size: 12px;
}
.security-message p {
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.48;
}
.actions {
  display: grid;
  gap: 10px;
}
.action-button {
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-radius: 18px;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}
.action-button:hover {
  transform: translateY(-2px);
}
.action-button:active {
  transform: scale(0.985);
}
.button-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px;
  font-size: 19px;
}
.action-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.action-label {
  margin-bottom: 2px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  opacity: 0.72;
}

.action-title {
  font-size: 14px;
  font-weight: 900;
}
.action-button small {
  margin-bottom: 2px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  opacity: 0.72;
}
.call-button {
  color: var(--dark);
  background: linear-gradient(135deg, #272726, var(--cream));
  box-shadow: 0 14px 28px rgba(223, 208, 184, 0.15);
}
.call-button .button-icon {
  background: rgba(178, 185, 196, 0.1);
}
.whatsapp-button {
  display: flex;
  align-items: center;
  gap: 14px;

  width: 100%;
  padding: 16px 18px;

  background: #25d366;
  color: #ffffff;

  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;

  text-decoration: none;

  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.22);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}
.whatsapp-button .action-icon {
  width: 44px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.18);

  border-radius: 12px;

  flex-shrink: 0;
}

.whatsapp-button .action-icon i {
  font-size: 25px;
  color: white;
}
.whatsapp-action {
  margin-left: auto;

  padding: 9px 12px;

  background: rgba(255, 255, 255, 0.18);

  border: 1px solid rgba(255, 255, 255, 0.25);

  border-radius: 10px;

  font-size: 11px;
  font-weight: 800;

  white-space: nowrap;

  transition: background 0.2s ease;
}

.whatsapp-button:hover .whatsapp-action {
  background: rgba(255, 255, 255, 0.28);
}
.whatsapp-button:hover {
  background: #20bd5a;
  transform: translateY(-2px);

  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.3);
}

.whatsapp-button:active {
  transform: scale(0.98);
}
.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  border-radius: 19px;
  text-align: left;
}
.footer-logo {
  width: 43px;
  height: 43px;
  object-fit: contain;
  padding: 3px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
}
.footer strong {
  display: block;
  color: var(--cream);
  font-size: 11px;
}
.footer p {
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 10px;
}
.driver-verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 8px 12px;

  background: #25d366;
  color: #ffffff;

  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;

  box-shadow: 0 5px 18px rgba(37, 211, 102, 0.3);
}

.driver-verified i {
  font-size: 10px;
}
/* botones para previzualisar al taxi y conductor */
.image-preview-button {
  position: relative;

  display: block;

  width: 100%;
  height: 100%;

  padding: 0;
  margin: 0;

  border: 0;
  background: transparent;

  cursor: pointer;

  overflow: hidden;
}

.image-preview-button img {
  transition: transform 0.3s ease;
}
.image-preview {
  position: fixed;
  inset: 0;

  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 25px;

  background: rgba(10, 12, 16, 0.88);
  backdrop-filter: blur(12px);

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.image-preview.active {
  opacity: 1;
  visibility: visible;
}
.image-preview-button:hover img {
  transform: scale(1.03);
}
.image-preview-button {
  position: relative;
  z-index: 2;

  display: block;
  width: 100%;
  height: 100%;

  padding: 0;
  margin: 0;

  border: 0;
  background: transparent;

  cursor: pointer;
  overflow: hidden;
}

.photo-overlay,
.taxi-image-gradient,
.taxi-caption {
  pointer-events: none;
}
.preview-hint {
  position: absolute;
  left: 50%;
  bottom: 50px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  color: #ffffff;
  background: rgba(34, 40, 49, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
}
/* VISOR */
.image-preview {
  position: fixed;

  inset: 0;

  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 25px;

  background: rgba(10, 12, 16, 0.88);

  backdrop-filter: blur(12px);

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.image-preview.active {
  opacity: 1;
  visibility: visible;
}

.image-preview img {
  max-width: 95vw;
  max-height: 90vh;

  width: auto;
  height: auto;

  object-fit: contain;

  border-radius: 18px;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);

  transform: scale(0.95);

  transition: transform 0.25s ease;
}

.image-preview.active img {
  transform: scale(1);
}

.preview-close {
  position: absolute;

  top: 20px;
  right: 20px;

  width: 44px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255, 255, 255, 0.18);

  border-radius: 50%;

  background: rgba(34, 40, 49, 0.8);

  color: #ffffff;

  font-size: 18px;

  cursor: pointer;

  backdrop-filter: blur(10px);

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.preview-close:hover {
  background: rgba(37, 211, 102, 0.8);

  transform: scale(1.05);
}

.no-scroll {
  overflow: hidden;
}
/* ================================
   CALIFICACIÓN DEL SERVICIO
================================ */

.service-rating {
  padding: 24px;
  margin-top: 16px;
}

.rating-header {
  margin-bottom: 22px;
}

.rating-header h3 {
  margin: 5px 0 6px;
  font-size: 20px;
  color: #fff;
}

.rating-description {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  line-height: 1.5;
}

/* Cada categoría */

.rating-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;

  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rating-item:last-of-type {
  border-bottom: none;
}

.rating-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rating-title {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.rating-subtitle {
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
}

/* Estrellas */

.stars {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
}

.stars button {
  border: none;
  background: transparent;
  padding: 3px;
  cursor: pointer;

  font-size: 25px;
  line-height: 1;

  color: rgba(255, 255, 255, 0.2);

  transition:
    color 0.15s ease,
    transform 0.15s ease;
}

.stars button:hover {
  transform: scale(1.12);
}

.stars button.active {
  color: #f5c86a;
}
/* ================================
   RESPUESTA SÍ / NO
================================ */

.yes-no-buttons {
  display: flex;
  gap: 7px;
  flex-shrink: 0;
}

.yes-no-buttons button {
  min-width: 52px;
  padding: 9px 12px;

  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;

  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.65);

  font-size: 11px;
  font-weight: 800;

  cursor: pointer;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.yes-no-buttons button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.yes-no-buttons button.active {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.18);
}

.yes-no-buttons button[data-value="no"].active {
  background: #d9534f;
  border-color: #d9534f;
  box-shadow: 0 5px 15px rgba(217, 83, 79, 0.18);
}
/* Botón enviar */

.send-rating-button {
  width: 100%;
  margin-top: 20px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 15px 18px;

  border: none;
  border-radius: 16px;

  background: #25d366;
  color: #fff;

  font-size: 14px;
  font-weight: 700;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.send-rating-button:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.send-rating-button:active {
  transform: translateY(0);
}

.send-rating-button .fa-whatsapp {
  font-size: 21px;
}

.send-rating-button .fa-arrow-right {
  font-size: 12px;
  margin-left: 4px;
}

/* Botón de queja */
.action-content,
.action-label,
.action-title,
.action-icon,
.whatsapp-action {
  color: #fff;
}
.complaint-button {
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.complaint-button:hover {
  border-color: rgba(5, 221, 16, 0.25);
}
@media (max-width: 400px) {
  .page {
    padding: 10px 9px 24px;
  }
  .profile-card {
    gap: 10px;
  }
  .topbar {
    padding: 12px;
    border-radius: 20px;
  }
  .logo-wrap {
    width: 56px;
    height: 56px;
    border-radius: 15px;
  }
  .company-copy h1 {
    font-size: 15px;
  }
  .company-copy p {
    display: none;
  }
  .verified-badge {
    padding: 6px 7px;
    font-size: 8px;
  }
  .verified-dot {
    width: 16px;
    height: 16px;
  }
  .driver-image-box {
    height: 270px;
  }
  .driver-info h2 {
    font-size: 23px;
  }
  .vehicle-section {
    padding: 13px;
  }
  .data-card {
    min-height: 88px;
    padding: 11px;
  }
}
@media (max-width: 345px) {
  .verified-badge {
    display: none;
  }
  .data-grid {
    grid-template-columns: 1fr;
  }
  .full-width {
    grid-column: auto;
  }
  .driver-image-box {
    height: 250px;
  }
}
