/* ============================================================
   Prime Events — Tarjeta de Presentacion Digital
   Mobile-first. En desktop la tarjeta se mantiene en formato
   movil (max 430px) centrada sobre el fondo de marca.
   Paleta heredada de prime-events-web/css/styles.css
   ============================================================ */

:root {
  /* Marca */
  --grad-start: #2ee1f1;
  --grad-end: #0067c8;
  --btn-grad-start: #00e3ed;
  --btn-grad-end: #008ced;
  --accent: #00aae4;
  --accent-dark: #0067c8;

  /* Superficies */
  --surface: #ffffff;
  --surface-soft: #f7fcfe;
  --input-bg: #f2f8fb;
  --input-border: #e1edf3;
  --divider: #e8f1f6;

  /* Texto */
  --text: #101820;
  --text-muted: #56636b;
  --text-faint: #8a969d;

  /* Estado */
  --danger: #f2555c;
  --success: #1fae66;

  /* Forma */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --shell-width: 430px;
  --pad: 20px;
  --avatar-size: 112px;

  /* Tipografia */
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;

  --shadow-sm: 0 2px 8px rgba(16, 24, 32, 0.06);
  --shadow-md: 0 6px 20px rgba(16, 24, 32, 0.10);
  --shadow-lg: 0 24px 48px -16px rgba(0, 60, 120, 0.28);
}

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

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

html { background: #eef6fa; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

/* Fondo de marca en una capa fija: cubre toda la pagina en cualquier
   largo (background-attachment: fixed falla en iOS y en paginas largas). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #f3f6f9;
  background:
    radial-gradient(120% 60% at 50% -10%, color-mix(in srgb, var(--grad-start) 35%, transparent), transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--grad-end) 14%, #f3f6f9), #f3f6f9 420px);
}

/* height:auto neutraliza el atributo height="..." del HTML, que de lo
   contrario gana sobre aspect-ratio y deforma la imagen. Las reglas de
   clase que fijan una altura (portada, avatar, video) siguen mandando. */
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Contenedor: formato movil incluso en PC ---------- */

.card-shell {
  position: relative;
  width: 100%;
  max-width: var(--shell-width);
  margin-inline: auto;
  min-height: 100dvh;
  background: var(--surface);
  overflow: hidden;
  padding-bottom: 32px;
}

@media (min-width: 480px) {
  .card-shell {
    min-height: auto;
    margin-block: 32px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
  }
}

/* ---------- Toggle de idioma ---------- */

.lang-toggle {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
}

.lang-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  color: var(--text-faint);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.lang-toggle button:hover { background: #fff; }
.lang-toggle [data-lang-opt] { transition: color 0.15s ease; }
html[lang="es"] .lang-toggle [data-lang-opt="es"],
html[lang="en"] .lang-toggle [data-lang-opt="en"] { color: var(--accent-dark); }

/* ---------- Portada + foto de perfil ---------- */

.cover {
  position: relative;
  height: 168px;
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  overflow: hidden;
}

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

/* Degradado al pie para que la foto de perfil siempre tenga contraste */
.cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(16, 24, 32, 0.28), transparent);
  pointer-events: none;
}

.avatar-wrap {
  display: flex;
  justify-content: center;
  /* Mitad de la foto sobre la portada, mitad fuera */
  margin-top: calc(var(--avatar-size) / -2);
  position: relative;
  z-index: 2;
}

.avatar {
  width: var(--avatar-size);
  height: var(--avatar-size);
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--surface);
  background: var(--surface-soft);
  box-shadow: var(--shadow-md);
}

/* ---------- Identidad ---------- */

.identity {
  padding: 14px var(--pad) 0;
  text-align: center;
}

.identity h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 6.5vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.identity .role {
  margin: 6px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}

.identity .company {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Ubicacion bajo el nombre */
.where {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.where svg { width: 15px; height: 15px; flex: none; }

/* Chip de empresa en la tarjeta de un empleado: enlaza a /empresa */
.company-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--input-border);
  border-radius: 999px;
  background: var(--surface-soft);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color 0.12s ease, color 0.12s ease;
}

.company-chip:hover { border-color: var(--accent); color: var(--accent-dark); }

.company-chip img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

/* ---------- Botones de accion ---------- */

.actions {
  display: grid;
  /* minmax(0, …): sin esto un texto largo ensancha la columna y se sale */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 16px var(--pad) 0;
}

.actions .btn { padding-inline: 10px; gap: 6px; min-height: 48px; }

/* "Guardar contacto" ocupa la fila entera: es la accion principal. */
.btn-wide { grid-column: 1 / -1; }

/* ---------- Acciones rapidas (llamar, WhatsApp, correo, web) ---------- */

.quick {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 18px var(--pad) 0;
}

.quick a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 56px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.quick-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--input-bg);
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  color: var(--accent-dark);
  transition: transform 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.quick-icon svg { width: 22px; height: 22px; }
.quick a:hover .quick-icon { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--btn-grad-start), var(--btn-grad-end));
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 140, 237, 0.32);
}

.btn-primary:hover { box-shadow: 0 8px 22px rgba(0, 140, 237, 0.42); }

.btn-secondary {
  background: var(--surface);
  color: var(--accent-dark);
  border: 1.5px solid var(--input-border);
}

.btn-secondary:hover {
  background: var(--input-bg);
  border-color: var(--accent);
}

/* ---------- Bio ---------- */

.bio {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

/* ---------- Secciones ---------- */

.section {
  margin-top: 20px;
  padding: 20px var(--pad) 0;
  border-top: 1px solid var(--divider);
}

/* La primera seccion sigue a los botones: sin linea encima */
.actions + .section { border-top: 0; padding-top: 4px; }

.section-title {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------- Redes sociales: filas de 3 ---------- */

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--input-border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.social:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.social svg {
  width: 20px;
  height: 20px;
  color: var(--accent-dark);
}

.social span {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

/* ---------- Carrusel de imagenes ---------- */

.carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* Sin scroll-behavior aqui a proposito: haria que TODO desplazamiento
     programatico dependiera de que el navegador anime, y cuando no lo
     hace los puntos se quedan muertos. js/carousel.js pide la animacion
     explicitamente y tiene respaldo. */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Sangrado hasta el borde de la tarjeta */
  margin-inline: calc(var(--pad) * -1);
  padding-inline: var(--pad);
  padding-bottom: 4px;
}

.carousel::-webkit-scrollbar { display: none; }

.carousel-item {
  flex: 0 0 82%;
  scroll-snap-align: center;
  border: 0;
  padding: 0;
  margin: 0;
  background: var(--input-bg);
  border-radius: 16px;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
}

.carousel-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 12px;
}

.carousel-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--input-border);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.carousel-dots button[aria-current="true"] {
  width: 20px;
  border-radius: 999px;
  background: var(--accent);
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 14, 20, 0.92);
}

.lightbox.is-open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 86dvh;
  border-radius: var(--radius-md);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Videos ---------- */

.videos {
  display: grid;
  gap: 14px;
}

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 0;
  padding: 0;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #0b1118;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.video img,
.video iframe,
.video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.video .play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 14, 20, 0.25);
  transition: background 0.15s ease;
}

.video:hover .play { background: rgba(8, 14, 20, 0.12); }

.video .play::before {
  content: "";
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--btn-grad-start), var(--btn-grad-end));
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.video .play::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  margin-left: 5px;
  border-left: 17px solid #fff;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}

/* ---------- Contacto directo ---------- */

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li + li { border-top: 1px solid var(--divider); }

.contact-list a,
.contact-list .static {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 0;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-list a:hover { color: var(--accent-dark); }
.contact-list svg {
  width: 38px;
  height: 38px;
  padding: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--input-bg);
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  color: var(--accent-dark);
}

.contact-list .label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-faint);
}

/* ---------- Equipo (directorio de una empresa) ---------- */

.team-filter {
  width: 100%;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-md);
  background: var(--input-bg);
  font-family: var(--font-body);
  font-size: 16px; /* evita el zoom automatico de iOS */
  color: var(--text);
}

.team-filter:focus { outline: none; border-color: var(--accent); background: var(--surface); }

.team {
  list-style: none;
  margin: 0;
  padding: 0;
}

.team-member a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 8px 4px 8px 0;
  text-decoration: none;
}

/* Flecha a la derecha: lleva a su tarjeta */
.team-member a::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-top: 2px solid var(--text-faint);
  border-right: 2px solid var(--text-faint);
  transform: rotate(45deg);
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.team-member a:hover::after { border-color: var(--accent-dark); transform: translateX(3px) rotate(45deg); }

.team-member img,
.team-initial {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  background: var(--input-bg);
}

.team-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-dark);
}

.team-text { display: flex; flex-direction: column; min-width: 0; }
.team-name { font-size: 15px; font-weight: 700; color: var(--text); }
.team-role { font-size: 13px; color: var(--text-muted); }

.team-empty {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--text-faint);
  text-align: center;
}

/* ---------- Footer ---------- */

.card-footer {
  margin-top: 28px;
  padding: 20px var(--pad) 0;
  border-top: 1px solid var(--divider);
  text-align: center;
}

/* Altura fija y ancho automatico: el logo se ve igual sea cual sea su
   proporcion, incluso si es un SVG sin tamano intrinseco. */
.card-footer img { margin: 0 auto 8px; height: 34px; width: auto; }

.card-footer p {
  margin: 0;
  font-size: 12px;
  color: var(--text-faint);
}

/* Firma de la plataforma bajo el logo del inquilino */
.powered-by {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.powered-by img { display: inline-block; height: 16px; width: auto; margin: 0; opacity: 0.8; }
.powered-by strong { color: var(--text-muted); }

/* ---------- Bottom sheet: compartir contacto ---------- */

.sheet {
  width: 100%;
  max-width: var(--shell-width);
  padding: 0;
  border: 0;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  /* Pegado al fondo de la ventana, centrado en desktop */
  position: fixed;
  inset: auto 0 0 0;
  margin: 0 auto;
  max-height: 92dvh;
  overflow-y: auto;
}

.sheet::backdrop { background: rgba(8, 14, 20, 0.55); }

.sheet[open] { animation: sheet-up 0.24s cubic-bezier(0.22, 1, 0.36, 1); }

@keyframes sheet-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.sheet-inner { padding: 8px var(--pad) calc(24px + env(safe-area-inset-bottom)); }

.sheet-grabber {
  width: 42px;
  height: 4px;
  margin: 8px auto 14px;
  border-radius: 999px;
  background: var(--input-border);
}

.sheet h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}

.sheet .sheet-sub {
  margin: 6px 0 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

.sheet-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--input-bg);
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Formulario ---------- */

.field { margin-bottom: 14px; }

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.field .optional {
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-faint);
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-md);
  background: var(--input-bg);
  font-family: var(--font-body);
  /* 16px evita el zoom automatico de iOS al enfocar */
  font-size: 16px;
  color: var(--text);
  transition: border-color 0.12s ease, background 0.12s ease;
}

.field textarea { min-height: 92px; resize: vertical; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--danger); }

.field .error {
  display: none;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--danger);
}

.field .error.is-visible { display: block; }

/* Trampa para bots: fuera de pantalla, no display:none */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 18px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
}

.consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--accent);
}

.form-status {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.form-status.is-visible { display: block; }
.form-status.is-error { background: #fdeced; color: #b5343b; }
.form-status.is-success { background: #e7f8f0; color: #14804a; }

.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-block { width: 100%; }

.recaptcha-note {
  margin: 14px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-faint);
  text-align: center;
}

.recaptcha-note a { color: var(--text-muted); }

/* La insignia flotante de reCAPTCHA estorba sobre el bottom sheet */
.grecaptcha-badge { visibility: hidden; }

/* ---------- Pagina de error ---------- */

.notfound {
  padding: 64px var(--pad);
  text-align: center;
}

.notfound h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 26px;
}

.notfound p { margin: 0 0 22px; color: var(--text-muted); font-size: 15px; line-height: 1.6; }


/* ---------- Enlaces propios: botones de fila completa ---------- */

.links {
  display: grid;
  gap: 8px;
}

.link-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 10px 16px;
  border: 1px solid var(--input-border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.link-btn svg { width: 18px; height: 18px; flex: none; color: var(--text-faint); }
.link-btn:hover svg { color: var(--accent-dark); }
.link-btn:hover { transform: translateY(-1px); border-color: var(--accent); }

/* ---------- Archivos PDF ---------- */

.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.files a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 10px 12px;
  border: 1px solid var(--input-border);
  border-radius: 12px;
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
}

.files a:hover { border-color: var(--accent); }

.file-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fdeced;
  color: #d93a41;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.file-name { flex: 1; min-width: 0; font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.file-open {
  flex: none;
  padding: 7px 14px;
  border: 1.5px solid var(--input-border);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-dark);
}
.files a:hover .file-open { border-color: var(--accent); }

/* ---------- Compartir tarjeta (QR) ---------- */

.share-card { text-align: center; }

.share-qr {
  width: 220px;
  height: 220px;
  margin: 6px auto 16px;
  padding: 10px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-md);
  background: #fff;
}

.share-url { display: flex; gap: 8px; margin-bottom: 12px; }

.share-url input {
  flex: 1;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  background: var(--input-bg);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
}

.share-url .btn { min-height: 46px; }

.share-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.share-actions .btn-primary { grid-column: 1 / -1; }

/* Sin portada del video (p. ej. sin red hacia YouTube): no mostrar el icono roto */
.video img { color: transparent; }

/* ============================================================
   Disenos (card.layout). La estructura HTML es la misma: solo cambia
   la clase del <body>, asi el .vcf y la vista previa no se enteran.
   ============================================================ */

/* ---- Moderna: la portada llena el bloque y el nombre va encima ---- */

.layout-moderna .hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 360px;
  padding: 72px 0 20px;
  isolation: isolate;
}
.layout-moderna .cover { position: absolute; inset: 0; z-index: -1; height: auto; aspect-ratio: auto; }
/* Degradado oscuro abajo: el texto blanco se lee aunque la foto sea clara */
.layout-moderna .cover::after { height: 80%; background: linear-gradient(to top, rgba(8, 12, 18, 0.88), rgba(8, 12, 18, 0.35) 55%, rgba(8, 12, 18, 0)); }
.layout-moderna .avatar-wrap { justify-content: flex-start; margin-top: 0; padding-inline: var(--pad); }
.layout-moderna .avatar { width: 68px; height: 68px; border-width: 3px; font-size: 26px !important; }
.layout-moderna .identity { padding-top: 10px; text-align: left; color: #fff; }
.layout-moderna .identity h1 { font-size: clamp(26px, 7.4vw, 30px); text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3); }
.layout-moderna .identity .role { margin-top: 3px; color: #fff; color: color-mix(in srgb, var(--grad-start) 55%, #fff); }
.layout-moderna .identity .company { color: rgba(255, 255, 255, 0.85); }
.layout-moderna .where { color: rgba(255, 255, 255, 0.85); }
.layout-moderna .company-chip { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.35); color: #fff; }

/* ---- Minimal: sin portada, todo alineado a la izquierda ---- */

.layout-minimal .cover { display: none; }
.layout-minimal .avatar-wrap { justify-content: flex-start; margin-top: 0; padding: 64px var(--pad) 0; }
.layout-minimal .avatar { width: 96px; height: 96px; border: 0; box-shadow: none; border-radius: 24px; }
.layout-minimal .identity { text-align: left; }
.layout-minimal .identity h1 { font-size: 30px; }
.layout-minimal .quick { justify-content: flex-start; }
.layout-minimal .lang-toggle button { background: var(--input-bg); }
.layout-minimal .card-shell { border-top: 6px solid var(--accent-dark); }

/* Telefonos muy angostos (320 px): los botones secundarios uno bajo otro */
@media (max-width: 340px) {
  .actions { grid-template-columns: 1fr; }
  .quick { gap: 10px; }
}
