/* =========================================================
   FLASH CAR — Traslados Ejecutivos
   Estilo dark / dorado
   ========================================================= */

:root {
  --bg: #050505;
  --bg-soft: #0d0d0d;
  --card: rgba(255, 255, 255, 0.035);
  --card-hover: rgba(200, 165, 106, 0.08);
  --border: rgba(200, 165, 106, 0.22);
  --border-strong: rgba(200, 165, 106, 0.55);

  --gold: #c8a56a;
  --gold-light: #e6c995;
  --gold-dark: #9c7c45;
  --gold-grad: linear-gradient(135deg, #f0d9a8 0%, #c8a56a 45%, #9c7c45 100%);

  --text: #f5f2ec;
  --muted: #a39d92;

  --wa: #25d366;

  --radius: 16px;
  --font-title: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --font-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(200, 165, 106, 0.09), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(200, 165, 106, 0.05), transparent 70%),
    var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ---------- Fondo con líneas doradas ---------- */
.bg-lines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.lines {
  position: absolute;
  width: min(60vw, 520px);
  height: min(45vh, 380px);
  stroke: var(--gold);
  stroke-width: 0.6;
  opacity: 0.35;
}

.lines line {
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: draw 2.4s var(--ease) forwards;
}

.lines line:nth-child(2) { animation-delay: 0.15s; }
.lines line:nth-child(3) { animation-delay: 0.3s; }
.lines line:nth-child(4) { animation-delay: 0.45s; }
.lines line:nth-child(5) { animation-delay: 0.6s; }

.lines--tr {
  top: 0;
  right: 0;
}

.lines--bl {
  bottom: 0;
  left: 0;
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

/* ---------- Layout ---------- */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 48px 20px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* ---------- Perfil ---------- */
.profile {
  text-align: center;
  animation: fadeUp 0.9s var(--ease) both;
}

.logo-wrap {
  width: 128px;
  height: 128px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 40%, #151515, #060606 70%);
  border: 1px solid var(--border);
  box-shadow:
    0 0 0 6px rgba(200, 165, 106, 0.04),
    0 0 40px rgba(200, 165, 106, 0.15),
    inset 0 0 20px rgba(0, 0, 0, 0.8);
  position: relative;
}

.logo-wrap::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: var(--gold);
  border-right-color: rgba(200, 165, 106, 0.3);
  animation: spin 8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.logo {
  width: 78%;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(200, 165, 106, 0.25));
}

.brand {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: clamp(2.2rem, 9vw, 3rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--text);
}

.subtitle {
  margin-top: 10px;
  font-family: var(--font-title);
  font-size: 0.95rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.85;
}

.divider {
  margin: 18px auto 14px;
  width: 180px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  position: relative;
}

.divider span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: translate(-50%, -50%) rotate(45deg);
}

.places {
  font-family: var(--font-title);
  font-size: clamp(0.78rem, 3.4vw, 0.95rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.places i {
  font-style: normal;
  margin: 0 6px;
  opacity: 0.6;
}

/* ---------- Valores ---------- */
.values {
  list-style: none;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  animation: fadeUp 0.9s 0.1s var(--ease) both;
}

.values li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

.values svg {
  color: var(--gold);
  width: 24px;
  height: 24px;
}

/* ---------- Monitoreo ---------- */
.live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(90deg, rgba(200, 165, 106, 0.12), rgba(200, 165, 106, 0.03));
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gold-light);
  animation: fadeUp 0.9s 0.2s var(--ease) both;
}

.live__icon {
  width: 18px;
  height: 18px;
}

.live__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
  70%  { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* ---------- Tarjetas / Links ---------- */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease),
    transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  animation: fadeUp 0.9s var(--ease) both;
}

.card--contact { animation-delay: 0.3s; padding: 18px; }
.card--link    { animation-delay: 0.4s; }

.card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--bg);
  background: var(--gold-grad);
  box-shadow: 0 4px 16px rgba(200, 165, 106, 0.25);
  flex-shrink: 0;
}

.card__title {
  display: block;
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.card__desc {
  display: block;
  margin-top: 3px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Teléfonos */
.phone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 2px;
  border-top: 1px solid rgba(200, 165, 106, 0.12);
}

.phone + .phone {
  margin-top: 12px;
}

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

.phone__label {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.phone__number {
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.phone__actions {
  display: flex;
  gap: 8px;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn--wa {
  color: #fff;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.45);
}

.btn--wa svg {
  fill: var(--wa);
  stroke: none;
}

.btn--wa:hover,
.btn--wa:focus-visible {
  background: var(--wa);
  border-color: var(--wa);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
  transform: translateY(-2px);
}

.btn--wa:hover svg,
.btn--wa:focus-visible svg {
  fill: #fff;
}

.btn--call {
  color: var(--gold-light);
  border: 1px solid var(--border-strong);
  background: rgba(200, 165, 106, 0.06);
}

.btn--call:hover,
.btn--call:focus-visible {
  color: var(--bg);
  background: var(--gold-grad);
  border-color: var(--gold);
  box-shadow: 0 6px 20px rgba(200, 165, 106, 0.3);
  transform: translateY(-2px);
}

.btn--gold {
  color: var(--bg);
  background: var(--gold-grad);
  padding: 13px 22px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 6px 22px rgba(200, 165, 106, 0.25);
}

.btn--gold:hover,
.btn--gold:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(200, 165, 106, 0.4);
}

/* Tarjeta link (Auto) */
.card--link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.card--link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(230, 201, 149, 0.12) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.8s var(--ease);
}

.card--link:hover::before {
  transform: translateX(100%);
}

.card__text {
  flex: 1;
}

.card__arrow {
  color: var(--gold);
  transition: transform 0.3s var(--ease);
}

.card--link:hover,
.card--link:focus-visible {
  border-color: var(--border-strong);
  background: var(--card-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(200, 165, 106, 0.1);
}

.card--link:hover .card__arrow {
  transform: translateX(4px);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.7;
  text-align: center;
}

/* ---------- Modal ---------- */
.modal {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  max-width: 100vw;
  max-height: 100vh;
  width: 100%;
  height: 100%;
  margin: 0;
  display: none;
  place-items: center;
}

.modal[open] {
  display: grid;
  padding: 20px;
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn 0.3s ease both;
}

.modal__box {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  border-radius: 20px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, #121212, #070707);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 60px rgba(200, 165, 106, 0.12);
  animation: popIn 0.4s var(--ease) both;
}

.modal.is-closing .modal__box {
  animation: popOut 0.22s ease forwards;
}

.modal.is-closing::backdrop {
  animation: fadeOut 0.22s ease forwards;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold-light);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border);
  transition: background 0.25s, color 0.25s, transform 0.25s var(--ease);
}

.modal__close:hover {
  background: var(--gold);
  color: var(--bg);
  transform: rotate(90deg);
}

.modal__media {
  position: relative;
  background: radial-gradient(ellipse at center, #2a2a2a 0%, #0c0c0c 75%);
  border-bottom: 1px solid var(--border);
}

.modal__media {
  padding: 28px 24px 20px;
}

.modal__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  border-radius: 12px;
}

.modal__body {
  padding: 22px 24px 26px;
  text-align: center;
}

.modal__kicker {
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}

.modal__title {
  margin: 6px 0 12px;
  font-family: var(--font-title);
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.modal__text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

.modal__more {
  margin: 18px 0 12px;
  font-size: 0.82rem;
  color: var(--text);
}

/* ---------- Animaciones ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }

@keyframes popIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes popOut {
  to { opacity: 0; transform: translateY(12px) scale(0.97); }
}

/* ---------- Responsive ---------- */
@media (max-width: 420px) {
  .container { padding-top: 36px; gap: 24px; }

  .phone {
    flex-direction: column;
    align-items: stretch;
  }

  .phone__actions .btn {
    flex: 1;
  }

  .values li {
    font-size: 0.64rem;
    letter-spacing: 0.1em;
  }

  .live { font-size: 0.74rem; padding: 9px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .lines line { stroke-dashoffset: 0; }
}
