/* =========================================================
   Calderón-Padilla | Abogados
   Tarjeta digital de presentación — Roberto Calderón Padilla

   Hoja aparte y no styles.css: la tarjeta no comparte cabecera, rejilla ni
   secciones con la landing, así que reutilizar aquel archivo traería ~37 KB
   de reglas que no se usan. Lo que sí se comparte son los tokens de marca,
   copiados abajo para que la tarjeta se sostenga sola.
   ========================================================= */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy: #263860;
  --navy-soft: #486284;
  --navy-deep: #000C27;
  --white: #fff;
  --tinta: #1B2238;
  --tinta-suave: #5A6378;
  --linea: #E4E7EE;
  --fondo-suave: #F6F7F9;
  --verde-wa: #25D366;

  --font-display: Georgia, 'Times New Roman', 'Liberation Serif', serif;
  --font-text: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --ancho-tarjeta: 420px;
  --radio: 26px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

body {
  margin: 0;
  background: var(--navy-deep);
  /* El degradado se fija al viewport: al bajar en el móvil el fondo no se
     arrastra ni deja una banda clara al final de la página. */
  background-image: radial-gradient(120% 80% at 50% 0%, #2E426E 0%, #0B1735 55%, #050E22 100%);
  background-attachment: fixed;
  color: var(--tinta);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

:where(a, button):focus-visible {
  outline: 3px solid #8FB0FF;
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Armazón ---------- */
.envoltorio {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* En móvil la tarjeta va a sangre; el aire solo aparece cuando hay sitio. */
  padding: 0;
}

.tarjeta {
  width: 100%;
  max-width: var(--ancho-tarjeta);
  background: var(--white);
  overflow: hidden;
  position: relative;
}

@media (min-width: 480px) {
  .envoltorio { padding: 32px 16px 40px; }
  .tarjeta {
    border-radius: var(--radio);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
  }
}

/* ---------- Encabezado de marca ---------- */
.marca {
  background: var(--navy);
  padding: 18px 24px 16px;
  display: flex;
  justify-content: center;
}
.marca img { width: 186px; height: auto; }

/* ---------- Retrato ---------- */
.retrato {
  position: relative;
  background: var(--navy);
}
.retrato img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
/* La foto se funde con el bloque azul en vez de cortarse en seco: así el
   nombre se apoya sobre la fotografía sin necesitar una caja encima. */
.retrato::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 58%;
  background: linear-gradient(180deg,
    rgba(38, 56, 96, 0) 0%,
    rgba(38, 56, 96, .55) 45%,
    rgba(38, 56, 96, .94) 78%,
    var(--navy) 100%);
  pointer-events: none;
}

/* ---------- Identidad ---------- */
.identidad {
  position: relative;
  margin-top: -84px;
  padding: 0 24px 22px;
  text-align: center;
  color: var(--white);
  background: linear-gradient(180deg, rgba(38, 56, 96, 0) 0%, var(--navy) 62%);
}
.identidad__nombre {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 7.6vw, 2.125rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: .005em;
}
.identidad__cargo {
  margin: 10px 0 0;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #C9D4E8;
}
.identidad__firma {
  margin: 6px 0 0;
  font-size: .9375rem;
  color: #AEBDD6;
}

/* ---------- Acciones rápidas ---------- */
.acciones {
  background: var(--navy);
  padding: 4px 16px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.accion {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 10px 2px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--white);
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.accion:hover { background: rgba(255, 255, 255, .1); transform: translateY(-2px); }
.accion:active { transform: translateY(0); }
.accion__icono {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .28);
}
.accion__icono svg { width: 21px; height: 21px; }
.accion--wa .accion__icono { background: var(--verde-wa); color: #fff; }
.accion__texto {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .02em;
}

/* ---------- Cuerpo blanco ---------- */
.cuerpo { padding: 26px 24px 8px; }

.bloque + .bloque { margin-top: 26px; }

.bloque__titulo {
  margin: 0 0 12px;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--navy-soft);
}

.semblanza {
  margin: 0;
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--tinta);
}
.semblanza + .semblanza { margin-top: 10px; }
.semblanza strong { font-weight: 600; color: var(--navy); }

/* ---------- Áreas ---------- */
.areas {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.areas li {
  padding: 7px 14px;
  border: 1px solid var(--linea);
  border-radius: 999px;
  background: var(--fondo-suave);
  font-size: .8125rem;
  font-weight: 500;
  color: var(--navy);
}

/* ---------- Datos de contacto ---------- */
.datos { list-style: none; margin: 0; padding: 0; }
.datos li + li { border-top: 1px solid var(--linea); }

.dato {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 2px;
  text-decoration: none;
  color: var(--tinta);
  transition: color .2s var(--ease);
}
.dato:hover { color: var(--navy); }
.dato:hover .dato__valor { text-decoration: underline; text-underline-offset: 3px; }

.dato__icono {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--fondo-suave);
  color: var(--navy);
}
.dato__icono svg { width: 18px; height: 18px; }
.dato__cuerpo { min-width: 0; }
.dato__etiqueta {
  display: block;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tinta-suave);
}
.dato__valor {
  display: block;
  margin-top: 2px;
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

/* ---------- Botones ---------- */
.botones {
  padding: 24px 24px 4px;
  display: grid;
  gap: 10px;
}

.boton {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease),
              box-shadow .2s var(--ease), transform .2s var(--ease);
}
.boton svg { width: 19px; height: 19px; flex: none; }
.boton:hover { transform: translateY(-2px); }
.boton:active { transform: translateY(0); }

.boton--navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.boton--navy:hover {
  background: #1B2A4C;
  border-color: #1B2A4C;
  box-shadow: 0 10px 24px rgba(38, 56, 96, .34);
}
.boton--contorno {
  background: var(--white);
  color: var(--navy);
  border-color: #C8D0E0;
}
.boton--contorno:hover { background: var(--fondo-suave); border-color: var(--navy-soft); }

/* ---------- Pie ---------- */
.pie {
  margin-top: 22px;
  padding: 18px 24px 22px;
  border-top: 1px solid var(--linea);
  text-align: center;
  font-size: .75rem;
  line-height: 1.6;
  color: var(--tinta-suave);
}
.pie a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.pie__horario { margin: 0 0 6px; font-weight: 500; color: var(--tinta); }
.pie__legal { margin: 0; }

/* ---------- Aviso de «enlace copiado» ---------- */
.aviso {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 16px);
  z-index: 50;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--navy-deep);
  color: var(--white);
  font-size: .875rem;
  font-weight: 500;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.aviso[data-visible] { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .boton:hover, .accion:hover { transform: none; }
}
