/* ================================================================
   patricelli.css — extensión sobre sucesiones.css
   Nuevas secciones: equipo, carrusel, explorar, calculadora layout
   Mismos tokens de sucesiones.css (--gold, --bg, --surface, etc.)
   ================================================================ */

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* ── SECCIÓN GENÉRICA ── */
.sec-tag {
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .55rem;
}
.sec-tag::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--gold);
  opacity: .7;
}
.sec-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.01em;
  margin-bottom: .6rem;
}
.sec-sub {
  font-size: .9rem;
  color: var(--text-muted);
  max-width: 52ch;
  line-height: 1.78;
  margin-bottom: 3rem;
}

/* ── HERO EXTENSIONS — nuevos elementos ── */
.hero-proof-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.proof-stat {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}
.proof-num {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
}
.proof-lbl {
  font-size: .63rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.card-lawyers {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.card-lawyer {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .75rem;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color .25s;
}
.card-lawyer:hover { border-color: var(--gold-line); }
.card-lawyer img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid var(--gold-line);
}
.lawyer-avatar-ph {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold);
}
.card-lawyer h3 {
  font-size: .86rem;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 .1rem;
}
.card-lawyer p {
  font-size: .7rem;
  color: var(--text-muted);
  margin: 0;
}

/* ══════════════════════════════════════════
   SECCIÓN EQUIPO — carrusel
══════════════════════════════════════════ */
.team-section {
  padding: 6.5rem 4rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.team-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.team-header {
  margin-bottom: 3.5rem;
}

/* Wrapper con overflow hidden */
.team-carousel-wrap {
  position: relative;
  user-select: none;
}

/* Track — 5 slides */
.team-track {
  display: flex;
  gap: 1.5rem;
  transition: transform .55s var(--ease);
  will-change: transform;
}

/* Cada slide ocupa 1/3 del wrapper con gap */
.team-slide {
  flex: 0 0 calc(33.333% - 1rem);
  min-width: calc(33.333% - 1rem);
}

/* SLIDE — foto */
.team-slide--photo {}
.team-photo-frame {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--surface2);
  border: 1px solid var(--border);
}
.team-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .6s var(--ease);
}
.team-photo-frame:hover img { transform: scale(1.04); }
.team-photo-frame--alt {
  background: linear-gradient(135deg, var(--surface2) 0%, var(--bg) 100%);
}
.team-photo-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-photo-ph span {
  font-family: var(--font-serif);
  font-size: 4rem;
  color: var(--gold);
  opacity: .35;
}
.team-photo-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1.25rem 1.1rem;
  background: linear-gradient(to top, rgba(10,10,11,.92) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.tpl-name {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
}
.tpl-role {
  font-size: .68rem;
  letter-spacing: .08em;
  color: var(--text-muted);
}

/* SLIDE — info bio */
.team-slide--info {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  aspect-ratio: 3 / 4;
  justify-content: center;
  transition: border-color .25s;
}
.team-slide--info:hover { border-color: var(--gold-line); }
.tsi-tag {
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}
.tsi-quote {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-soft);
  border-left: 2px solid var(--gold-line);
  padding-left: 1.1rem;
  margin: 0;
}
.tsi-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin: 0;
  padding: 0;
}
.tsi-list li {
  font-size: .8rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  line-height: 1.5;
}
.tsi-list li::before {
  content: '✓';
  color: var(--gold);
  font-size: .75rem;
  flex-shrink: 0;
  margin-top: .05rem;
}

/* SLIDE — highlight */
.team-slide--highlight {
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg) 100%);
  border: 1px solid var(--gold-line);
  border-radius: 10px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 4;
}
.tsh-inner {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  text-align: center;
  align-items: center;
}
.tsh-icon {
  width: 52px;
  height: 52px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tsh-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
}
.tsh-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text);
}
.tsh-body {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.72;
}
.tsh-cta {
  font-size: .75rem;
  padding: .72rem 1.35rem;
}

/* Controles carrusel */
.team-prev,
.team-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background .2s, border-color .2s, transform .2s var(--ease);
  color: var(--text-muted);
}
.team-prev:hover,
.team-next:hover {
  background: var(--gold-dim);
  border-color: var(--gold-line);
  color: var(--gold);
  transform: translateY(-50%) scale(1.07);
}
.team-prev { left: -22px; }
.team-next { right: -22px; }
.team-prev svg,
.team-next svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}
.team-prev.hidden,
.team-next.hidden { opacity: 0; pointer-events: none; }

/* Dots */
.team-dots {
  display: flex;
  justify-content: center;
  gap: .45rem;
  margin-top: 2rem;
}
.team-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  border: 1px solid var(--text-muted);
  cursor: pointer;
  transition: background .25s, transform .25s var(--ease), width .3s var(--ease);
  flex-shrink: 0;
}
.team-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  width: 20px;
  border-radius: 3px;
}

/* ══════════════════════════════════════════
   CALCULADORA — extensión de layout
══════════════════════════════════════════ */
.calc-section {
  padding: 6.5rem 4rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.calc-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(201,168,76,.045) 0%, transparent 65%);
  pointer-events: none;
}
.calc-section-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.calc-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.calc-trust-pills {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  align-items: flex-end;
  flex-shrink: 0;
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .72rem;
  color: var(--text-muted);
  letter-spacing: .04em;
}
.trust-pill svg {
  width: 14px;
  height: 14px;
  stroke: var(--gold);
  fill: none;
  flex-shrink: 0;
}

.calc-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3.5rem;
  align-items: start;
}

/* Select wrap arrow */
.select-wrap { position: relative; }
.select-wrap::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--text-muted);
  pointer-events: none;
}
.select-wrap select { padding-right: 2.5rem; }

/* Cotización row oculta por defecto */
#cotizacionRow { display: none; }
#cotizacionRow.visible { display: grid; }

/* Divider */
.calc-divider {
  height: 1px;
  background: var(--border);
  margin: 1.4rem 0;
}

/* Calc button */
.calc-btn {
  width: 100%;
  justify-content: center;
  font-size: .8rem;
  padding: .92rem 1.65rem;
  letter-spacing: .1em;
}

/* Resultado honorarios */
#resultadoHonorarios { display: none; margin-top: 1.4rem; }
#resultadoHonorarios.visible { display: block; }

.result-box {
  background: var(--surface2);
  border: 1px solid var(--gold-line);
  border-radius: 8px;
  padding: 1.65rem;
  position: relative;
  overflow: hidden;
  animation: resultIn .4s var(--ease) forwards;
}
.result-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.result-lbl {
  font-size: .63rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .55rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.result-lbl::before { content: ''; display: block; width: 14px; height: 1px; background: var(--gold); opacity: .6; }

.result-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1;
  letter-spacing: -.02em;
  margin-bottom: .25rem;
}
.result-num span { font-size: 1.3rem; color: var(--text-muted); }
.result-sub { font-size: .8rem; color: var(--text-muted); margin-bottom: 1.1rem; }

.result-breakdown {
  display: flex;
  flex-direction: column;
  gap: .38rem;
  padding-top: .9rem;
  border-top: 1px solid var(--border);
}
.result-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
}
.result-line-label { color: var(--text-muted); }
.result-line-val { color: var(--text-soft); font-variant-numeric: tabular-nums; }
.result-line.highlight .result-line-label,
.result-line.highlight .result-line-val { color: var(--gold); }

.result-cuota {
  margin-top: .9rem;
  padding: .7rem .95rem;
  background: rgba(201,168,76,.07);
  border: 1px solid rgba(201,168,76,.15);
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
}
.result-cuota span:first-child { color: var(--text-muted); }
.result-cuota span:last-child { color: var(--gold); font-weight: 500; }

/* WA CTA debajo del resultado */
.wa-cta { display: none; margin-top: .9rem; }
.wa-cta.visible { display: flex; }
.wa-cta a {
  width: 100%;
  justify-content: center;
  background: #1d6b40;
  border: 1px solid rgba(37,211,102,.2);
  color: var(--text);
  font-weight: 400;
  text-transform: none;
  letter-spacing: .03em;
  font-size: .84rem;
  padding: .85rem 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: 3px;
  transition: background .2s, box-shadow .2s, transform .15s;
}
.wa-cta a:hover {
  background: #1e7a49;
  box-shadow: 0 6px 20px rgba(37,211,102,.14);
  transform: translateY(-1px);
}
.wa-cta svg { width: 17px; height: 17px; flex-shrink: 0; }

/* Extras toggle */
.calc-extras-toggle {
  margin-top: 1.1rem;
  width: 100%;
  font-size: .76rem;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .4rem;
  justify-content: center;
  padding: .4rem;
  transition: color .2s;
  letter-spacing: .03em;
  font-family: var(--font-sans);
}
.calc-extras-toggle:hover { color: var(--gold); }
.calc-extras-toggle svg {
  width: 13px;
  height: 13px;
  transition: transform .3s var(--ease);
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
}
.calc-extras-toggle.open svg { transform: rotate(180deg); }

#extrasBox { display: none; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--border); }
#extrasBox.visible { display: block; animation: fadeUp .4s var(--ease) forwards; }
.extras-label {
  font-size: .75rem;
  color: var(--text-muted);
  margin-bottom: .9rem;
  line-height: 1.62;
}
.extras-label strong { color: var(--text-soft); }

#resultadoTasa { margin-top: .9rem; display: none; }
#resultadoTasa.visible { display: block; }
.tasa-box {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.1rem;
  animation: resultIn .35s var(--ease) forwards;
}
.tasa-num {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--text);
  margin: .25rem 0;
}
.tasa-note { font-size: .7rem; color: var(--text-muted); line-height: 1.55; }
.otros-gastos {
  margin-top: .85rem;
  font-size: .74rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: .45rem;
}
.otros-gastos::before { content: 'ℹ'; font-size: .78rem; color: var(--gold); opacity: .7; }

/* Info panel derecho */
.calc-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.calc-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.35rem;
  transition: border-color .25s;
}
.calc-info-card:hover { border-color: var(--gold-line); }
.info-card-icon {
  width: 36px;
  height: 36px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-line);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .85rem;
}
.info-card-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--gold);
}
.info-card-title {
  font-size: .87rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: .38rem;
}
.info-card-body {
  font-size: .79rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.info-card-body strong { color: var(--text-soft); }
.calc-disclaimer {
  font-size: .71rem;
  color: var(--text-muted);
  line-height: 1.65;
  padding-top: .85rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: .45rem;
}
.calc-disclaimer::before { content: '*'; color: var(--gold); flex-shrink: 0; }

/* ══════════════════════════════════════════
   SECCIÓN EXPLORAR — links a páginas
══════════════════════════════════════════ */
.explore-section {
  padding: 5.5rem 4rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.explore-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.explore-label {
  font-size: .63rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}
.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.explore-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.1rem;
  padding: 1.4rem 1.35rem;
  background: var(--bg);
  color: var(--text);
  transition: background .2s, color .2s;
  position: relative;
}
.explore-card:hover { background: var(--surface2); }
.explore-card--cta {
  background: var(--gold-dim);
}
.explore-card--cta:hover { background: rgba(201,168,76,.18); }
.ec-icon {
  width: 36px;
  height: 36px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-line);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s;
}
.ec-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
}
.ec-icon--gold { background: var(--gold); }
.ec-icon--gold svg { stroke: #0c0d0d; fill: #0c0d0d; }

.ec-content { min-width: 0; }
.ec-tag {
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .18rem;
}
.ec-title {
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: .2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ec-body {
  font-size: .75rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.ec-arrow {
  font-size: .85rem;
  color: var(--gold);
  opacity: .5;
  flex-shrink: 0;
  transition: opacity .2s, transform .2s var(--ease);
}
.explore-card:hover .ec-arrow { opacity: 1; transform: translateX(3px); }

/* ══════════════════════════════════════════
   FAQ — section wrapper
══════════════════════════════════════════ */
.faq-section {
  padding: 6.5rem 4rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.faq-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.faq-header {
  margin-bottom: 3rem;
}


/* ══════════════════════════════════════════
   FOTO DUO
══════════════════════════════════════════ */
.team-proof {
  max-width: 1100px;
  margin: 0 auto;
}

/* ── ANIMACIONES ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes resultIn {
  from { opacity: 0; transform: translateY(8px) scale(.99); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ══════════════════════════════════════════
   WHATSAPP FLOAT — nuevo estilo
══════════════════════════════════════════ */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 500;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: #1d6b40;
  border: 1px solid rgba(37,211,102,.2);
  color: var(--text);
  padding: .7rem 1.25rem;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: .78rem;
  box-shadow: 0 8px 28px rgba(0,0,0,.4);
  transition: all .2s var(--ease);
  text-decoration: none;
}
.whatsapp-float:hover {
  background: #1e7a49;
  box-shadow: 0 12px 32px rgba(37,211,102,.18);
  transform: translateY(-2px);
}
.whatsapp-float svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .team-section { padding: 5rem 2rem; }
  .team-slide {
    flex: 0 0 calc(50% - .75rem);
    min-width: calc(50% - .75rem);
  }
  .calc-section { padding: 5rem 2rem; }
  .calc-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .calc-info-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .explore-section { padding: 4.5rem 2rem; }
  .explore-grid { grid-template-columns: 1fr 1fr; }
  .faq-section { padding: 5rem 2rem; }
  .calc-section-header { flex-direction: column; align-items: flex-start; }
  .calc-trust-pills { align-items: flex-start; }
}
@media (max-width: 768px) {
  .team-section { padding: 4rem 1.25rem; }
  .team-slide {
    flex: 0 0 calc(100% - 0px);
    min-width: calc(100%);
  }
  .team-prev { left: 0; }
  .team-next { right: 0; }
  .explore-grid { grid-template-columns: 1fr; }
  .explore-card { padding: 1.1rem; }
  .faq-section { padding: 4rem 1.25rem; }
  .calc-info-panel { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .calc-section { padding: 4rem 1.25rem; }
  .explore-section { padding: 3.5rem 1.25rem; }
  .hero-proof-row { gap: 1rem; }
  .whatsapp-float span { display: none; }
  .whatsapp-float { padding: .75rem; border-radius: 50%; }
}