@charset "UTF-8";
:root {
  --navy-950: #0b1220;
  --navy-900: #101a30;
  --navy-800: #17233d;
  --navy-700: #1f2f4f;
  --navy-600: #2c4368;
  --gold-400: #d4af6a;
  --gold-300: #e2c48a;
  --gold-100: #f4e6c8;
  --ink: #1c2333;
  --gray-600: #5b6270;
  --gray-100: #f6f5f2;
  --white: #ffffff;
  --shadow-lg: 0 20px 50px -20px rgba(11, 18, 32, 0.35);
  --radius-lg: 24px;
  --radius-md: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}
h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, serif;
  margin: 0;
  color: var(--navy-900);
}
p { margin: 0; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  cursor: pointer;
  border: none;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-400));
  color: var(--navy-950);
  box-shadow: 0 10px 30px -10px rgba(212, 175, 106, 0.6);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(212, 175, 106, 0.75); }
.btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.header.scrolled {
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px -12px rgba(0,0,0,0.4);
  padding: 12px 0;
}
.header .container { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.brand-mark {
  width: 46px; height: 46px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-text { line-height: 1.1; }
.brand-text strong { display: block; font-family: "Playfair Display", serif; font-size: 1.05rem; letter-spacing: 0.02em; }
.brand-text span { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-300); }

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--gold-300);
  transition: width 0.25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.nav-cta {
  display: none;
  padding: 12px 28px;
  margin-left: 8px;
  color: var(--navy-950);
  white-space: nowrap;
}
.nav-links a.nav-cta::after { content: none; }
@media (min-width: 900px) { .nav-links a.nav-cta { display: inline-flex; } }

.nav-toggle {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; }
@media (min-width: 900px) { .nav-toggle { display: none; } }
@media (max-width: 899px) {
  .nav-links { position: fixed; top: 0; right: -100%; height: 100vh; width: min(320px, 80vw);
    background: var(--navy-950); flex-direction: column; justify-content: center; align-items: flex-start;
    padding: 40px; gap: 28px; transition: right 0.35s ease; }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.1rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background: var(--navy-950);
}
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-video video {
  position: absolute;
  top: 50%; left: 50%;
  width: 100%;
  height: 100%;
  min-height: 100%;
  min-width: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 15% 20%, rgba(212,175,106,0.16), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(44,67,104,0.5), transparent 55%),
    linear-gradient(160deg, rgba(11,18,32,0.92) 0%, rgba(16,26,48,0.88) 45%, rgba(23,35,61,0.88) 100%);
}
.hero .container { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 80px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-300); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--gold-300); }
.hero h1 { color: var(--white); font-size: clamp(2.2rem, 4.2vw, 3.4rem); font-weight: 600; line-height: 1.15; margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--gold-300); }
.hero p.lead { color: rgba(255,255,255,0.78); font-size: 1.08rem; max-width: 540px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 56px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, auto); gap: 32px; }
.hero-stats div strong { display: block; font-family: "Playfair Display", serif; font-size: 1.8rem; color: var(--gold-300); }
.hero-stats div span { font-size: 0.78rem; color: rgba(255,255,255,0.65); letter-spacing: 0.03em; }

.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 36px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
}
.hero-card .seal-logo {
  width: 76px; height: auto;
  margin-bottom: 20px;
}
.hero-card h3 { color: var(--white); font-size: 1.4rem; margin-bottom: 12px; }
.hero-card p { color: rgba(255,255,255,0.75); font-size: 0.95rem; margin-bottom: 20px; }
.hero-card ul { display: flex; flex-direction: column; gap: 12px; }
.hero-card li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255,255,255,0.85); font-size: 0.92rem; }
.hero-card li .dot { color: var(--gold-300); margin-top: 2px; }

/* ---------- Section shared ---------- */
section { position: relative; }
.section-pad { padding: 100px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-top: 6px; }
.section-head p { color: var(--gray-600); margin-top: 16px; font-size: 1.02rem; }
.eyebrow.dark { color: var(--navy-700); }
.eyebrow.dark::before { background: var(--navy-700); }

.bg-soft { background: var(--gray-100); }
.bg-navy { background: linear-gradient(160deg, var(--navy-950), var(--navy-800)); color: var(--white); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }

/* ---------- Quienes somos ---------- */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 0.9fr 1.1fr; } }
.about-media { position: relative; }
.about-media .frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-950));
  display: flex; align-items: center; justify-content: center;
}
.about-media .frame .frame-logo { width: 55%; height: auto; }
.about-media .badge {
  position: absolute; bottom: -24px; left: -24px;
  background: var(--white); border-radius: var(--radius-md);
  padding: 20px 24px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 14px;
}
.about-media .badge strong { display: block; font-family: "Playfair Display", serif; font-size: 1.6rem; color: var(--navy-900); }
.about-media .badge span { font-size: 0.78rem; color: var(--gray-600); }
.about-copy h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 18px; }
.about-copy p { color: var(--gray-600); margin-bottom: 16px; }
.about-values { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 28px; }
.about-values .value { padding: 18px; border-radius: var(--radius-md); background: var(--gray-100); border: 1px solid #eceae4; }
.about-values .value strong { display: block; color: var(--navy-900); margin-bottom: 6px; }
.about-values .value span { font-size: 0.88rem; color: var(--gray-600); }

/* ---------- Stats banner ---------- */
.stats-band { padding: 56px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stats-grid strong { display: block; font-family: "Playfair Display", serif; font-size: clamp(1.9rem, 3vw, 2.6rem); color: var(--gold-300); }
.stats-grid span { font-size: 0.85rem; letter-spacing: 0.04em; color: rgba(255,255,255,0.75); }

/* ---------- Áreas de práctica: tabs dinámicos ---------- */
.practice-tabs { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 992px) { .practice-tabs { grid-template-columns: 320px 1fr; gap: 32px; align-items: start; } }

.practice-nav {
  display: flex; gap: 12px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding: 4px 4px 10px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.practice-nav::-webkit-scrollbar { display: none; }
.practice-nav.fade-end { -webkit-mask-image: linear-gradient(to right, #000 85%, transparent 100%); mask-image: linear-gradient(to right, #000 85%, transparent 100%); }
.practice-nav.fade-start { -webkit-mask-image: linear-gradient(to left, #000 85%, transparent 100%); mask-image: linear-gradient(to left, #000 85%, transparent 100%); }
.practice-nav.fade-start.fade-end { -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%); mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%); }
.practice-nav.hint-swipe { animation: navHint 1.6s ease 2; }
@media (min-width: 992px) {
  .practice-nav { flex-direction: column; overflow: visible; padding: 0; }
  .practice-nav.fade-start, .practice-nav.fade-end { -webkit-mask-image: none; mask-image: none; }
  .practice-nav.hint-swipe { animation: none; }
}

/* Indicador de progreso del carrusel (solo movil) */
.practice-progress { display: flex; gap: 6px; justify-content: center; margin-top: -8px; }
@media (min-width: 992px) { .practice-progress { display: none; } }
.practice-progress span {
  width: 20px; height: 3px; border-radius: 999px;
  background: rgba(28, 35, 51, 0.16);
  transition: background .3s ease, width .3s ease;
}
.practice-progress span.is-active { width: 34px; background: var(--gold-400); }

@keyframes navHint {
  0%, 100% { transform: translateX(0); }
  35% { transform: translateX(-18px); }
  70% { transform: translateX(0); }
}

.practice-tab {
  flex: 0 0 auto; display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: var(--radius-md);
  border: 1px solid rgba(28, 35, 51, 0.1);
  background: var(--white); color: var(--ink);
  font-family: inherit; text-align: left; cursor: pointer;
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
@media (min-width: 992px) { .practice-tab { width: 100%; } }
.practice-tab { scroll-snap-align: center; }
.practice-tab .tab-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px;
  background: var(--gray-100); color: var(--gold-400);
  transition: background .3s ease, color .3s ease;
}
.practice-tab .tab-text { display: flex; flex-direction: column; line-height: 1.3; }
.practice-tab .tab-text strong { font-size: 0.98rem; font-weight: 600; white-space: nowrap; }
.practice-tab .tab-text small { font-size: 0.78rem; color: var(--gray-600); transition: color .3s ease; }
.practice-tab:hover { border-color: var(--gold-300); transform: translateY(-2px); }
.practice-tab.is-active {
  background: var(--navy-900); border-color: var(--navy-900); color: var(--white);
  box-shadow: var(--shadow-lg);
}
.practice-tab.is-active .tab-icon { background: rgba(212, 175, 106, 0.18); color: var(--gold-300); }
.practice-tab.is-active .tab-text small { color: rgba(255, 255, 255, 0.65); }
.practice-tab:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 3px; }

.practice-panels { position: relative; }
.practice-panel {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  min-height: 460px; display: flex; align-items: flex-end;
  color: var(--white);
}
.practice-panel[hidden] { display: none; }
.practice-panel.is-active { animation: panelIn .5s ease both; }
.panel-media {
  position: absolute; inset: 0;
  background-image: linear-gradient(to top, rgba(11, 18, 32, 0.94) 0%, rgba(11, 18, 32, 0.78) 45%, rgba(11, 18, 32, 0.35) 100%);
  background-size: cover; background-position: center;
  transform: scale(1.04); transition: transform 1.2s ease;
}
#panel-laboral .panel-media { background-image: linear-gradient(to top, rgba(11, 18, 32, 0.94) 0%, rgba(11, 18, 32, 0.78) 45%, rgba(11, 18, 32, 0.35) 100%), url("../img/practica/laboral.jpg"); }
#panel-civil .panel-media   { background-image: linear-gradient(to top, rgba(11, 18, 32, 0.94) 0%, rgba(11, 18, 32, 0.78) 45%, rgba(11, 18, 32, 0.35) 100%), url("../img/practica/civil.jpg"); }
#panel-familia .panel-media { background-image: linear-gradient(to top, rgba(11, 18, 32, 0.94) 0%, rgba(11, 18, 32, 0.78) 45%, rgba(11, 18, 32, 0.35) 100%), url("../img/practica/familia.jpg"); }
#panel-medico .panel-media  { background-image: linear-gradient(to top, rgba(11, 18, 32, 0.94) 0%, rgba(11, 18, 32, 0.78) 45%, rgba(11, 18, 32, 0.35) 100%), url("../img/practica/medico.jpg"); }
.practice-panel:hover .panel-media { transform: scale(1.1); }
.panel-body { position: relative; padding: 38px 30px; width: 100%; }
@media (min-width: 768px) { .panel-body { padding: 48px 46px; max-width: 640px; } }
.panel-eyebrow {
  display: inline-block; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-300); margin-bottom: 12px;
}
.panel-body h3 { font-size: 1.6rem; color: var(--white); margin-bottom: 12px; }
@media (min-width: 768px) { .panel-body h3 { font-size: 2rem; } }
.panel-body > p { font-size: 0.95rem; color: rgba(255, 255, 255, 0.78); margin-bottom: 22px; }
.panel-list { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 28px; }
@media (min-width: 600px) { .panel-list { grid-template-columns: 1fr 1fr; } }
.panel-list li { display: flex; gap: 10px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.85); }
.panel-list li::before { content: "—"; color: var(--gold-400); flex-shrink: 0; }
.panel-cta { align-self: flex-start; }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .practice-panel.is-active { animation: none; }
  .panel-media, .practice-tab { transition: none; }
  .practice-nav.hint-swipe { animation: none; }
}

/* ---------- Approach / objetivo ---------- */
.approach-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 900px) { .approach-grid { grid-template-columns: repeat(3, 1fr); } }
.approach-step {
  padding: 30px 26px; border-radius: var(--radius-md);
  background: var(--white); border: 1px solid #ece8df;
  position: relative;
}
.approach-step .num {
  font-family: "Playfair Display", serif; font-size: 1rem;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid var(--gold-400); color: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.approach-step p { color: var(--gray-600); font-size: 0.95rem; }

/* ---------- CTA / Contact ---------- */
.contact-wrap {
  display: grid; grid-template-columns: 1fr; gap: 40px;
}
@media (min-width: 960px) { .contact-wrap { grid-template-columns: 1fr 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .ico {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: rgba(212,175,106,0.14); color: var(--gold-300);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.contact-item strong { display: block; color: var(--white); margin-bottom: 4px; }
.contact-item span, .contact-item a { color: rgba(255,255,255,0.75); font-size: 0.95rem; }
.social-row { display: flex; gap: 12px; margin-top: 8px; }
.social-row a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); transition: background 0.25s ease, border-color 0.25s ease;
}
.social-row a:hover { background: rgba(212,175,106,0.2); border-color: var(--gold-300); }

.contact-form {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(16px);
}
.form-row { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; }
@media (min-width: 560px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.form-row label { display: block; font-size: 0.82rem; color: rgba(255,255,255,0.7); margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.05);
  color: var(--white); font-family: inherit; font-size: 0.92rem;
}
.form-row input::placeholder, .form-row textarea::placeholder { color: rgba(255,255,255,0.4); }
.form-row textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.78rem; color: rgba(255,255,255,0.55); margin-top: 14px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: rgba(255,255,255,0.7); padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-bottom: 40px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 18px; font-family: "Poppins", sans-serif; font-weight: 600; letter-spacing: 0.03em; }
.footer p { font-size: 0.9rem; }
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer ul a, .footer ul span { font-size: 0.9rem; color: rgba(255,255,255,0.68); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 0.8rem; color: rgba(255,255,255,0.5); }

/* ---------- Utilities ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,0.4);
  font-size: 1.6rem;
  transition: transform 0.25s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* Redes sociales del footer */
.footer-social { flex-direction: row; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.78);
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.footer-social a span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.footer-social a:hover, .footer-social a:focus-visible {
  background: var(--gold-400); border-color: var(--gold-400);
  color: var(--navy-950); transform: translateY(-2px);
}
