@font-face {
  font-family: 'Cinzel Local';
  src: url('fonts/Cinzel-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   styles.css · Cristina Ceccarelli – Abogada · abogadacristinac.com
   Los colores y fuentes se editan en el bloque :root (sección 2).
   ============================================================ */

/* ==========================================================
   1. TIPOGRAFÍA DE FIRMA
   Si el archivo .ttf no existe, el navegador usa 'Great Vibes'.
   ========================================================== */
@font-face {
  font-family: 'Higuen Serif';
  src: url('fonts/Higuen Serif.otf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================
   2. VARIABLES DE DISEÑO (edita colores y fuentes aquí)
   ========================================================== */
:root {
  --bg: #fdfaf5;
  --bg-alt: #fdfaf5;
  --card: #F0EBE2;
  --text: #000000;
  --text-soft: rgba(15, 9, 9, 0.72);
  --gold: #ae9467;
  --gold-light: #E6CA65;
  --gold-dark: #997A15;
  --gold-gradient: linear-gradient(135deg, #E6CA65 0%, #D4AF37 50%, #997A15 100%);

  --font-signature: 'Brittany Signature', 'Great Vibes', 'Alex Brush', cursive;
  --font-title: 'Cinzel', 'Times New Roman', serif;
  --font-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --header-h: 76px;
  --max-w: 1120px;
}

/* ==========================================================
   3. BASE
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.container { width: min(100% - 2.5rem, var(--max-w)); margin-inline: auto; }
section { padding: 6.5rem 0; scroll-margin-top: var(--header-h); }
section:nth-of-type(even) { background: var(--bg-alt); }

.section-title {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  letter-spacing: .06em;
  text-align: center;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-title::after {
  content: "";
  display: block;
  width: 64px; height: 1px;
  margin: 1.1rem auto 3.5rem;
  background: var(--gold-gradient);
}

/* ==========================================================
   4. HEADER / NAVEGACIÓN
   ========================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  background: #fdfaf5;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 175, 55, .22);
}
.header-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .85rem; }
.brand-logo { height: 90px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: 'Higuen Serif';
  font-size: 1.7rem;
  line-height: 1.25;
  color: var(--text);              /* nombre en negro */
  padding: .25em .3em .2em .3em;
  margin-left: -.3em;
}
.brand-role {
  font-family: 'Cinzel Local', 'Cinzel', serif;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .5em;
  color: var(--gold);              /* ABOGADA en dorado */
  margin-top: 0;
}

.nav-list { display: flex; gap: 2.4rem; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  position: relative;
  font-size: .85rem; font-weight: 400; letter-spacing: .08em;
  padding: .5rem 0;
  color: var(--text);
  transition: color .3s;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease;
}
.nav-list a:hover, .nav-list a.active { color: var(--gold-light); }
.nav-list a:hover::after, .nav-list a.active::after { transform: scaleX(1); }

/* Botón hamburguesa (solo móvil) */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 1px solid rgba(212, 175, 55, .4);
  border-radius: 4px; cursor: pointer; padding: 0;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 1.5px;
  background: var(--gold);
  transition: transform .3s, opacity .3s, top .3s;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ==========================================================
   5. QUIÉN SOY
   ========================================================== */
#quien-soy { padding-top: calc(var(--header-h) + 5rem); }
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.about-text .signature-title {
  font-family: 'Higuen Serif';
  src: url('fonts/Higuen Serif.otf') format('truetype');
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.25;
  color: var(--text);              /* nombre en negro */
  padding: .25em .3em .2em .3em;
  margin-left: -.3em;
  margin-bottom: .2rem;
}
.about-text .lead {
  font-family: 'Cinzel Local', 'Cinzel', serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--gold);              /* ABOGADA · SEVILLA en dorado */
  margin-bottom: 2rem;
}
.about-text p { color: var(--text-soft); max-width: 62ch; }
.about-text p + p { margin-top: 1.1rem; }

.about-photo { position: relative; justify-self: center; width: min(100%, 400px); }
.photo-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--gold);
  padding: 10px;
  background: var(--bg);
  transition: transform .5s ease, box-shadow .5s ease;
}
/* Marco desplazado: efecto sutil de profundidad */
.about-photo::before {
  content: "";
  position: absolute; inset: 18px -18px -18px 18px;
  border: 1px solid rgba(212, 175, 55, .35);
  z-index: 0;
  transition: inset .5s ease;
}
.photo-frame { z-index: 1; }
.photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(.15) contrast(1.03);
  background: var(--card);
}
.about-photo:hover .photo-frame { box-shadow: 0 18px 50px rgba(212, 175, 55, .16); }
.about-photo:hover::before { inset: 12px -12px -12px 12px; }

/* ==========================================================
   6. ESPECIALIDADES (tarjetas que voltean)
   ========================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.flip-card {
  perspective: 1200px;
  transition: transform 1s ease-in-out;
  height: 440px;
  cursor: pointer;
  background: none; border: 0; padding: 0;
  font: inherit; color: inherit; text-align: center;
}
.flip-inner {
  display: block;
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .8s cubic-bezier(.4, .2, .2, 1);
}
.flip-face {
  border-radius: 14px;               /* esquinas redondeadas (pon 0 para volver a esquinas rectas) */
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2rem 1.75rem;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, .07);
  transition: border-color .4s, box-shadow .4s;
}
.flip-front .icon { width: 54px; height: 54px; color: var(--gold); margin-bottom: 1.5rem; }
.flip-front h3 {
  font-family: var(--font-title);
  font-weight: 500; font-size: 1.6rem; letter-spacing: .1em;
}
.flip-front .hint {
  margin-top: 1.25rem;
  font-size: .75rem; letter-spacing: .12em;
  color: var(--text-soft);
}
.flip-back {
  transform: rotateY(180deg);
  background:
    radial-gradient(circle at 50% 0%, rgba(230, 202, 101, .16), transparent 65%),
    var(--card);
  border-color: var(--gold);
  box-shadow: 0 0 34px rgba(212, 175, 55, .22), inset 0 0 0 1px rgba(230, 202, 101, .25);
}
.flip-back h3 {
  font-family: var(--font-title);
  font-weight: 500; font-size: 1.15rem; letter-spacing: .1em;
  background: var(--gold-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 1rem;
}
.flip-back p { font-size: .88rem; line-height: 1.65; color: var(--text-soft); }
.flip-back ul {
  list-style: none; margin: 1rem 0 0; padding: 0;
  text-align: left; width: 100%;
  font-size: .83rem; line-height: 1.5; color: var(--text);
}
.flip-back li { position: relative; padding-left: 1.1rem; margin-bottom: .45rem; }
.flip-back li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg);
}

.flip-card:hover .flip-face:not(.flip-back),
.flip-card:focus-visible .flip-face:not(.flip-back) { border-color: rgba(212, 175, 55, .6); }

/* Ratón: voltea al pasar. Táctil: voltea al tocar (clase .is-flipped por JS) */
@media (hover: hover) {
  .flip-card:hover .flip-inner { transform: rotateY(180deg); }
}
.flip-card.is-flipped .flip-inner { transform: rotateY(180deg); }

/* ==========================================================
   6b. EFECTO ABANICO (solo ordenadores, ≥ 1100px)
   Las tarjetas se solapan. Al pasar el ratón (o pulsar en pantallas táctiles):
   · la tarjeta sube 16px y se voltea para mostrar su información
   · las tarjetas de su derecha se desplazan para dejarle sitio (selector ~)
   · en navegadores modernos (:has) las de su izquierda se apartan la mitad,
     así el conjunto sigue centrado y no se sale de la pantalla.
   En pantallas menores de 1100px se mantiene la cuadrícula de siempre.
   ========================================================== */
@media (min-width: 1100px) {
  #especialidades { overflow-x: clip; }

  .cards-grid {
    --area: min(100vw - 2.5rem, 1120px);          /* ancho útil, igual que .container */
    --card-w: min(280px, calc(var(--area) / 3.9)); /* ancho de cada tarjeta */
    --card-h: 580px;                               /* alto de cada tarjeta */
    --overlap: calc(var(--card-w) * .4);           /* parte tapada por la tarjeta siguiente */
    --lift: -16px;                                 /* elevación al pasar el ratón */
    --shift: calc(var(--overlap) / 2);

    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    padding-top: 24px;                             /* sitio para que la tarjeta suba sin cortarse */
  }

  .flip-card {
    position: relative;
    flex: 0 0 var(--card-w);
    width: var(--card-w);
    height: var(--card-h);
    margin-left: calc(var(--overlap) * -1);
    transition: transform 1s ease-in-out;
  }
  .flip-card:first-child { margin-left: 0; }

  /* Zona invisible bajo la tarjeta: evita el parpadeo cuando sube y el cursor queda en el borde */
  .flip-card::after {
    content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 24px;
  }

  /* --- Elevación + desplazamiento de las hermanas de la derecha --- */
  .flip-card.is-flipped { transform: translateY(var(--lift)); }
  .flip-card.is-flipped ~ .flip-card { transform: translateX(var(--overlap)); }
  @media (hover: hover) {
    .flip-card:hover { transform: translateY(var(--lift)); }
    .flip-card:hover ~ .flip-card { transform: translateX(var(--overlap)); }
  }

  /* --- Versión centrada (navegadores con :has) --- */
  @supports selector(:has(*)) {
    .flip-card.is-flipped { transform: translate(calc(var(--shift) * -1), var(--lift)); }
    .flip-card.is-flipped ~ .flip-card { transform: translateX(var(--shift)); }
    .flip-card:has(~ .flip-card.is-flipped) { transform: translateX(calc(var(--shift) * -1)); }
    @media (hover: hover) {
      .flip-card:hover { transform: translate(calc(var(--shift) * -1), var(--lift)); }
      .flip-card:hover ~ .flip-card { transform: translateX(var(--shift)); }
      .flip-card:has(~ .flip-card:hover) { transform: translateX(calc(var(--shift) * -1)); }
    }

    /* La última tarjeta no tiene hermanas a su derecha: solo sube, y el resto no se mueve */
    .flip-card:last-child.is-flipped { transform: translateY(var(--lift)); }
    .flip-card:has(~ .flip-card:last-child.is-flipped) { transform: none; }
    @media (hover: hover) {
      .flip-card:last-child:hover { transform: translateY(var(--lift)); }
      .flip-card:has(~ .flip-card:last-child:hover) { transform: none; }
    }
  }

  /* --- Aspecto de las tarjetas solapadas --- */
  .flip-face { border-color: rgba(212, 175, 55, .38); }
  .flip-front {
    /* El contenido se centra en la franja visible (la parte no tapada) */
    padding: 2rem calc(var(--overlap) + .3rem) 2rem .5rem;
    box-shadow: -12px 0 24px -12px rgba(0, 0, 0, .25);
  }
  .flip-card:last-child .flip-front { padding-right: .5rem; }   /* la última no está tapada */
  .flip-front .icon { margin-bottom: 1.25rem; }
  .flip-front h3 {
    font-size: 1rem; letter-spacing: .05em; line-height: 1.35;
    hyphens: manual; overflow-wrap: normal;
  }
  .flip-front .hint { display: none; }

  .flip-back { padding: 1.5rem 1.3rem; justify-content: safe center; }
  .flip-back h3 { font-size: 1.02rem; margin-bottom: .75rem; }
  .flip-back p { font-size: .8rem; line-height: 1.55; }
  .flip-back ul { margin-top: .8rem; font-size: .78rem; line-height: 1.45; }
  .flip-back li { margin-bottom: .35rem; }
}

/* ==========================================================
   7. CONTACTO
   ========================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));   /* las tres tarjetas en la misma línea */
  gap: 1.5rem;
}
.contact-card {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center;
  padding: 2.5rem 1.25rem;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, .07);
  transition: border-color .4s, transform .4s, box-shadow .4s;
}
.contact-card:hover, .contact-card:focus-visible {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(212, 175, 55, .14);
}
.contact-card .icon { width: 42px; height: 42px; color: var(--gold); margin-bottom: 1.25rem; }
.contact-card h3 {
  font-family: var(--font-title); font-weight: 500;
  font-size: 1.1rem; letter-spacing: .12em; margin-bottom: .6rem;
}
.contact-card .value {
  font-size: 1.05rem; font-weight: 400; color: var(--gold-light);
  overflow-wrap: anywhere;
}
.contact-card .note { margin-top: .5rem; font-size: .8rem; color: var(--text-soft); }

/* ---------- Tarjeta de redes sociales ---------- */
.social-list { list-style: none; margin: .25rem 0 0; padding: 0; width: 100%; display: grid; gap: .6rem; text-align: left; }
.social-link {
  display: flex; align-items: center; gap: .85rem;
  padding: .65rem .85rem;
  border: 1px solid rgba(212, 175, 55, .35); border-radius: 10px;
  transition: border-color .3s, background .3s, transform .3s;
}
.social-link:hover, .social-link:focus-visible {
  border-color: var(--gold);
  background: rgba(212, 175, 55, .1);
  transform: translateX(4px);
}
.social-link svg { width: 26px; height: 26px; flex: none; color: var(--gold); }
.social-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.social-name { font-size: .7rem; letter-spacing: .12em; color: var(--text-soft); }
.social-handle { font-size: .9rem; font-weight: 400; color: var(--text); overflow-wrap: anywhere; }

/* Pantallas medianas y pequeñas: las tarjetas pasan a una columna */
@media (max-width: 960px) {
  .contact-grid { grid-template-columns: minmax(0, 440px); justify-content: center; }
}

/* ==========================================================
   8. DÓNDE ENCONTRARME
   ========================================================== */
.location-info { text-align: center; margin: -1.5rem auto 2.5rem; max-width: 56ch; color: var(--text-soft); }
.location-info strong { color: var(--gold-light); font-weight: 500; }
.map-frame {
  position: relative;
  border: 1px solid rgba(212, 175, 55, .45);
  padding: 8px;
  background: var(--bg);
}
.map-frame iframe {
  display: block; width: 100%; height: 420px; border: 0;
  /* Convierte el mapa claro de Google en un mapa oscuro integrado con la web */
  filter: invert(92%) hue-rotate(180deg) grayscale(.55) contrast(.92) brightness(.9);
}

/* ==========================================================
   9. FOOTER
   ========================================================== */
.site-footer {
  background: var(--bg);
  border-top: 1px solid rgba(212, 175, 55, .22);
  padding: 2.5rem 0;
  font-size: .82rem;
  color: var(--text-soft);
}
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.footer-links a, .link-btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: var(--text-soft);
  transition: color .3s;
}
.footer-links a:hover, .link-btn:hover { color: var(--gold-light); }

/* Aviso legal (ventana emergente nativa) */
dialog {
  max-width: min(92vw, 620px);
  background: var(--card); color: var(--text);
  border: 1px solid var(--gold);
  padding: 2rem;
}
dialog::backdrop { background: rgba(0, 0, 0, .75); }
dialog h2 { font-family: var(--font-title); font-weight: 500; color: var(--gold-light); margin-bottom: 1rem; font-size: 1.3rem; }
dialog p { color: var(--text-soft); font-size: .92rem; margin-bottom: .9rem; }
dialog button {
  margin-top: .5rem; padding: .65rem 1.6rem;
  background: transparent; color: var(--gold-light);
  border: 1px solid var(--gold); cursor: pointer;
  font: inherit; font-size: .85rem; letter-spacing: .08em;
  transition: background .3s, color .3s;
}
dialog button:hover { background: var(--gold); color: #0D0D0D; }

/* ==========================================================
   10. RESPONSIVE
   ========================================================== */
@media (max-width: 960px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .flip-card:last-child { grid-column: 1 / -1; max-width: 50%; justify-self: center; width: 100%; }
}

@media (max-width: 820px) {
  section { padding: 4.5rem 0; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: #fdfaf5;
    border-bottom: 1px solid rgba(212, 175, 55, .3);
    max-height: 0; overflow: hidden;
    transition: max-height .4s ease;
  }
  .main-nav.open { max-height: 320px; }
  .nav-list { flex-direction: column; gap: 0; padding: .75rem 1.25rem 1.25rem; }
  .nav-list a { display: block; padding: 1rem 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { width: min(78%, 340px); margin-top: 1rem; }
}

@media (max-width: 640px) {
  .cards-grid { grid-template-columns: 1fr; }
  .flip-card:last-child { max-width: none; }
  .flip-card { height: 470px; }
  .flip-face { padding: 1.5rem 1.35rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .map-frame iframe { height: 340px; }
  .brand-logo { height: 38px; }
  .brand-name { font-size: 1.35rem; }
  .brand-role { letter-spacing: .4em; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
/* ==========================================================
   6c. TARJETAS EN PILA VERTICAL (tablet y móvil, menos de 1100px)
   Versión vertical del efecto abanico del ordenador:
   · Las tarjetas se apilan solapadas; cerradas solo muestran su franja
     (icono + título + flecha).
   · Al tocar una, crece, se voltea y muestra su información; las de
     debajo bajan solas para dejarle sitio.
   · Solo hay una abierta a la vez (lo controla script.js).

   ⚠️ PEGAR AL FINAL DEL ARCHIVO styles.css (después de la sección 10),
      para que gane a las reglas responsive anteriores.
   ========================================================== */
@media (max-width: 1099px) {

  .cards-grid {
    --strip: 92px;        /* alto visible de cada tarjeta cerrada */
    --card-h: 440px;      /* alto de cada tarjeta abierta */

    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 560px;     /* en tablet no se estiran demasiado */
    margin-inline: auto;
  }

  .cards-grid .flip-card,
  .cards-grid .flip-card:last-child {
    flex: none;
    width: 100%;
    max-width: none;
    grid-column: auto;
    justify-self: auto;
    height: var(--strip);             /* cerrada: solo la franja */
    margin-top: -16px;                /* se solapa con la anterior (efecto pila) */
    transition: height .7s ease-in-out, margin-top .7s ease-in-out;
  }
  .cards-grid .flip-card:first-child { margin-top: 0; }

  /* Abierta: crece hasta mostrar toda la información; la siguiente baja sola */
  .cards-grid .flip-card.is-flipped { height: var(--card-h); }
  .cards-grid .flip-card.is-flipped + .flip-card { margin-top: 12px; }

  /* Aquí no se abre con el ratón (haría saltar la pila): solo al tocar o con teclado */
  .cards-grid .flip-card:hover .flip-inner { transform: none; }
  .cards-grid .flip-card.is-flipped .flip-inner,
  .cards-grid .flip-card.is-flipped:hover .flip-inner { transform: rotateY(180deg); }

  /* ---------- Aspecto ---------- */
  .flip-face { border-radius: 14px; border-color: rgba(212, 175, 55, .38); overflow: hidden; }

  /* Frente: icono a la izquierda, título a su lado, flecha a la derecha */
  .flip-front {
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-template-rows: calc(var(--strip) - 16px);   /* centra el contenido en la parte que queda visible */
    align-content: start;
    align-items: center;
    justify-content: stretch;
    column-gap: 1rem;
    padding: 0 3rem 0 1.4rem;
    text-align: left;
    box-shadow: 0 -10px 22px -12px rgba(0, 0, 0, .25);   /* sombra sobre la tarjeta anterior */
  }
  .flip-front .icon { width: 36px; height: 36px; margin: 0; justify-self: center; }
  .flip-front h3 { font-size: 1.05rem; letter-spacing: .06em; line-height: 1.3; }
  .flip-front .hint { display: none; }
  .flip-front::after {                                     /* flecha: indica que se puede abrir */
    content: "";
    position: absolute;
    right: 1.5rem;
    top: calc((var(--strip) - 16px) / 2 - 6px);
    width: 9px; height: 9px;
    border-right: 1.5px solid var(--gold);
    border-bottom: 1.5px solid var(--gold);
    transform: rotate(45deg);
  }

  /* Reverso: la información ocupa toda la tarjeta */
  .flip-back { padding: 1.5rem 1.35rem; justify-content: safe center; }
  .flip-back h3 { font-size: 1.05rem; margin-bottom: .75rem; }
}

/* Móviles muy estrechos (320-360px): la información necesita algo más de alto */
@media (max-width: 360px) {
  .cards-grid { --card-h: 500px; }
}
.about-subtitle {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 20px;
}

.titulo-abogada {
    font-family: 'Cinzel', serif;
    font-weight: 400;
    font-size: 36px;
    letter-spacing: 12px;
    color: #ad9261;
}
