/* =====================================================
   MULKINADER & ASOCIADOS — Estilo corporativo clásico
   Paleta: azul marino #0B2545 · dorado #B08D57 · crema
   ===================================================== */

:root {
  --navy: #0B2545;
  --navy-dark: #061732;
  --navy-light: #1B3A66;
  --gold: #B08D57;
  --gold-light: #D4B27C;
  --cream: #F7F4EE;
  --grey-50: #FAFAF7;
  --grey-100: #EFEDE8;
  --grey-300: #C9C5BD;
  --grey-600: #6E6A62;
  --text: #1A1A1A;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(11, 37, 69, 0.08);
  --shadow-md: 0 8px 24px rgba(11, 37, 69, 0.12);
  --shadow-lg: 0 16px 48px rgba(11, 37, 69, 0.18);
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -0.01em; }
h3 { font-size: 1.4rem; }
p  { margin-bottom: 1rem; color: #2a2a2a; }
a  { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 1.5rem; }

/* ====================== HEADER ====================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--grey-100);
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1rem; padding-bottom: 1rem;
}
.brand {
  display: flex; align-items: center; gap: .8rem;
  text-decoration: none;
}
.brand-mark {
  width: 48px; height: 48px; flex: 0 0 48px;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--gold);
  overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-text { font-family: var(--serif); font-size: 1.25rem; color: var(--navy); font-weight: 600; letter-spacing: .04em; }
.brand-sub { font-size: .72rem; color: var(--grey-600); letter-spacing: .18em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  color: var(--navy); font-weight: 500; font-size: .95rem;
  position: relative; padding: .25rem 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .25s;
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--gold); }

.btn-portal,
.nav a.btn-portal {
  background: var(--navy);
  color: var(--white) !important;
  padding: .7rem 1.3rem;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .04em;
  border: 1.5px solid var(--navy);
  transition: all .25s;
}
.btn-portal:hover,
.nav a.btn-portal:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white) !important;
}
/* Estado activo: cuando estás en la página del portal, el botón se destaca en dorado con letra blanca */
.nav a.btn-portal.active {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.nav a.btn-portal.active::after { display: none; }

/* =====================================================
   BOTÓN FLOTANTE DE WHATSAPP
   ===================================================== */
.wa-float {
  position: fixed;
  bottom: 1.6rem;
  right: 1.6rem;
  z-index: 90;
  background: #25D366;
  color: var(--white);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  transition: transform .25s, box-shadow .25s;
  text-decoration: none;
  animation: wa-pulse 2.4s ease-in-out infinite;
}
.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.6);
  color: var(--white);
}
.wa-float svg { width: 32px; height: 32px; fill: var(--white); }
.wa-float::before {
  content: "Escribinos por WhatsApp";
  position: absolute;
  right: 78px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--navy);
  color: var(--white);
  padding: .55rem 1rem;
  font-size: .85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all .25s;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: .02em;
  border-left: 2px solid var(--gold);
}
.wa-float:hover::before { opacity: 1; transform: translateY(-50%) translateX(0); }

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  50%      { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45), 0 0 0 14px rgba(37, 211, 102, 0); }
}

@media (max-width: 600px) {
  .wa-float { bottom: 1rem; right: 1rem; width: 54px; height: 54px; }
  .wa-float svg { width: 28px; height: 28px; }
  .wa-float::before { display: none; }
}

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.nav-toggle span {
  display: block; width: 26px; height: 2px; background: var(--navy); margin: 5px 0;
  transition: all .3s;
}

/* ====================== HERO ====================== */
.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(11,37,69,.92) 0%, rgba(6,23,50,.96) 100%),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="d" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23B08D57" opacity=".15"/></pattern></defs><rect width="1200" height="600" fill="url(%23d)"/></svg>');
  color: var(--white);
  padding: 6rem 0 5rem;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
}
.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero h1 em { color: var(--gold-light); font-style: italic; font-weight: 500; }
.hero .lead { font-size: 1.2rem; max-width: 720px; margin: 0 auto 2rem; opacity: .92; color: #E8E4DC; }
.hero-divider {
  width: 80px; height: 2px; background: var(--gold);
  margin: 0 auto 1.5rem;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

.btn {
  display: inline-block; padding: .95rem 2rem;
  font-size: .95rem; font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; cursor: pointer;
  border: 1.5px solid; transition: all .25s;
  font-family: var(--sans);
}
.btn-primary { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* ====================== SECTIONS ====================== */
.section { padding: 5rem 0; }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }

.section-title { text-align: center; margin-bottom: 3rem; }
.section-eyebrow {
  display: inline-block; font-size: .8rem; letter-spacing: .25em;
  color: var(--gold); text-transform: uppercase; font-weight: 500; margin-bottom: .8rem;
}
.section-divider { width: 60px; height: 2px; background: var(--gold); margin: 1rem auto 0; }

/* ===== Pillars / Services grid ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }

.card {
  background: var(--white); padding: 2.2rem 1.8rem;
  border: 1px solid var(--grey-100);
  transition: all .3s;
  position: relative;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .3s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 56px; height: 56px;
  background: var(--cream); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem; font-size: 1.6rem;
}
.card h3 { margin-bottom: .8rem; }
.card p { color: var(--grey-600); font-size: .95rem; }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-dark); color: #B8B5AC;
  padding: 4rem 0 1.5rem; font-size: .92rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.site-footer h4 {
  color: var(--gold); font-family: var(--sans); font-size: .82rem;
  letter-spacing: .2em; text-transform: uppercase; margin-bottom: 1rem; font-weight: 600;
}
.site-footer a { color: #B8B5AC; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: .5rem; }
.footer-brand .brand-text { color: var(--white); }
.footer-brand p { color: #8C8A82; margin-top: 1rem; font-size: .88rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: .82rem; color: #7A786F;
}

/* ===== Page header (banner para subpáginas) ===== */
.page-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white); padding: 4rem 0 3.5rem; text-align: center;
  position: relative;
}
.page-banner::after {
  content: ""; display: block; width: 60px; height: 2px;
  background: var(--gold); margin: 1rem auto 0;
}
.page-banner h1 { color: var(--white); }
.page-banner .crumbs { font-size: .85rem; color: var(--gold-light); letter-spacing: .1em; text-transform: uppercase; margin-bottom: .5rem; }

/* ===== Stats ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stat-num { font-family: var(--serif); font-size: 2.8rem; color: var(--gold); font-weight: 600; }
.stat-label { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); }

/* ===== About bio ===== */
.bio-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; align-items: start; }
.bio-photo-frame {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--navy);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--gold);
}
.bio-photo-frame::before {
  /* Fondo de biblioteca jurídica con leve animación de zoom */
  content: "";
  position: absolute; inset: -10px;
  background-image: url('https://images.unsplash.com/photo-1481627834876-b7833e8f5570?auto=format&fit=crop&w=900&q=80');
  background-size: cover; background-position: center;
  opacity: 0.45;
  filter: brightness(0.55) saturate(0.85);
  animation: bio-pan 28s ease-in-out infinite;
}
.bio-photo-frame::after {
  /* Sombra elegante en la base de la foto */
  content: ""; position: absolute; bottom: -16px; right: -16px;
  width: 100%; height: 100%;
  border: 2px solid var(--gold); z-index: -1;
}
.bio-photo {
  position: relative; z-index: 2;
  width: 50%;
  aspect-ratio: 4 / 5;
  margin-bottom: 1.5rem;
  border: 3px solid var(--white);
  outline: 2px solid var(--gold);
  outline-offset: -6px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,0.55);
  background: linear-gradient(135deg, var(--cream), var(--grey-100));
  display: flex; align-items: center; justify-content: center;
}
.bio-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; display: block; }
.bio-photo-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 3.5rem; color: var(--gold); font-weight: 600;
}
.bio-photo img + .bio-photo-placeholder { display: none; }
.bio-photo-caption {
  position: absolute; bottom: 1rem; left: 1rem; right: 1rem; z-index: 3;
  color: var(--white); font-size: .78rem; letter-spacing: .15em; text-transform: uppercase;
  text-align: center; text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
@keyframes bio-pan {
  0%, 100% { transform: scale(1.0) translate(0, 0); }
  50%      { transform: scale(1.08) translate(-1%, 1%); }
}
.bio h3 { color: var(--gold); font-family: var(--sans); font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: .6rem; font-weight: 500; }
.bio h2 { margin-bottom: 1rem; }
.bio-meta { color: var(--grey-600); margin-bottom: 1.5rem; font-style: italic; }

/* Bloque de credenciales académicas */
.bio-creds {
  background: var(--cream);
  border-left: 3px solid var(--gold);
  padding: 1rem 1.4rem;
  margin: 0 0 1.8rem;
}
.bio-creds-label {
  display: block;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: .5rem;
}
.bio-creds ul { list-style: none; margin: 0; padding: 0; }
.bio-creds li {
  font-size: .95rem;
  color: var(--navy);
  padding: .25rem 0;
  position: relative;
  padding-left: 1.1rem;
}
.bio-creds li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: .65rem;
  top: .55rem;
}

/* ===== Servicios detallados ===== */
.service-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.service-item {
  display: flex; gap: 1.2rem; padding: 1.5rem;
  border-left: 3px solid var(--gold);
  background: var(--cream);
  transition: background .25s;
}
.service-item:hover { background: var(--white); box-shadow: var(--shadow-sm); }
.service-item .num {
  font-family: var(--serif); font-size: 2rem; color: var(--gold);
  line-height: 1; min-width: 50px;
}
.service-item h4 { color: var(--navy); margin-bottom: .4rem; font-size: 1.1rem; }
.service-item p { font-size: .9rem; color: var(--grey-600); margin: 0; }

/* ===== Noticias ===== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.news-card {
  background: var(--white); border: 1px solid var(--grey-100);
  overflow: hidden; transition: all .3s;
  display: flex; flex-direction: column;
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.news-thumb {
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-family: var(--serif); font-size: 3rem;
  position: relative;
}
.news-thumb.nt1 { background: linear-gradient(135deg, #0B2545, #1B3A66); }
.news-thumb.nt2 { background: linear-gradient(135deg, #1B3A66, #2C5491); }
.news-thumb.nt3 { background: linear-gradient(135deg, #061732, #0B2545); }
.news-thumb.nt4 { background: linear-gradient(135deg, #B08D57, #8a6d3f); }
.news-thumb.nt5 { background: linear-gradient(135deg, #0B2545, #B08D57); }
.news-thumb.nt6 { background: linear-gradient(135deg, #1B3A66, #B08D57); }
.news-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.news-tag { font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); margin-bottom: .5rem; }
.news-body h3 { font-size: 1.2rem; margin-bottom: .6rem; line-height: 1.3; }
.news-body p { font-size: .9rem; color: var(--grey-600); flex: 1; }
.news-date { font-size: .8rem; color: var(--grey-600); margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--grey-100); }

/* ===== Portal / login ===== */
.portal-wrap {
  min-height: calc(100vh - 80px);
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--cream);
}
.portal-side {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white); padding: 4rem 3rem;
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
}
.portal-side::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold);
}
.portal-side h2 { color: var(--white); margin-bottom: 1rem; }
.portal-side .lead { color: rgba(255,255,255,.85); margin-bottom: 2.5rem; font-size: 1.05rem; }
.portal-side ul { list-style: none; }
.portal-side li {
  padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.9); display: flex; align-items: center; gap: .8rem;
}
.portal-side li::before { content: "◆"; color: var(--gold); font-size: .7rem; }

.portal-form-wrap {
  display: flex; align-items: center; justify-content: center; padding: 3rem 2rem;
}
.portal-form {
  width: 100%; max-width: 420px;
  background: var(--white); padding: 3rem 2.5rem;
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow-md);
}
.portal-form h2 { color: var(--navy); margin-bottom: .4rem; font-size: 1.8rem; }
.portal-form .sub { color: var(--grey-600); margin-bottom: 2rem; font-size: .95rem; }
.field { margin-bottom: 1.3rem; }
.field label {
  display: block; font-size: .82rem; letter-spacing: .08em;
  color: var(--navy); margin-bottom: .4rem; font-weight: 500;
  text-transform: uppercase;
}
.field input {
  width: 100%; padding: .85rem 1rem;
  border: 1px solid var(--grey-300); background: var(--white);
  font-family: var(--sans); font-size: 1rem; color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(176,141,87,.15);
}
.field-row { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; }
.field-row label { display: flex; align-items: center; gap: .4rem; color: var(--grey-600); text-transform: none; letter-spacing: 0; font-weight: 400; }
.btn-block { width: 100%; margin-top: .5rem; }

.portal-form .note {
  font-size: .82rem; color: var(--grey-600);
  text-align: center; margin-top: 1.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--grey-100);
}

/* ===== Dashboard (post-login) ===== */
.dash-header {
  background: var(--navy); color: var(--white);
  padding: 1.2rem 0;
}
.dash-header .container { display: flex; justify-content: space-between; align-items: center; }
.dash-user { display: flex; align-items: center; gap: 1rem; }
.dash-avatar {
  width: 40px; height: 40px; background: var(--gold); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 600; font-size: 1rem;
}
.dash-user-info { line-height: 1.3; }
.dash-user-info strong { color: var(--white); display: block; font-size: .95rem; }
.dash-user-info span { color: rgba(255,255,255,.7); font-size: .78rem; }
.dash-logout {
  color: rgba(255,255,255,.85); font-size: .85rem; padding: .4rem .9rem;
  border: 1px solid rgba(255,255,255,.3);
}
.dash-logout:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }

.dash-welcome {
  background: var(--cream); padding: 2.5rem 0;
  border-bottom: 1px solid var(--grey-100);
}
.dash-welcome h1 { font-size: 2rem; }
.dash-welcome p { color: var(--grey-600); margin: 0; }

.dash-body { padding: 3rem 0; background: var(--grey-50); min-height: 50vh; }
.dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }

.panel {
  background: var(--white); padding: 1.8rem;
  border: 1px solid var(--grey-100); margin-bottom: 1.5rem;
}
.panel h3 {
  font-family: var(--sans); font-size: .82rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem;
  font-weight: 600;
}

.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tool {
  display: block; padding: 1.4rem 1rem;
  border: 1px solid var(--grey-100); background: var(--white);
  text-align: center; transition: all .25s;
  color: var(--navy); text-decoration: none;
}
.tool:hover {
  border-color: var(--gold); transform: translateY(-3px);
  box-shadow: var(--shadow-sm); color: var(--navy);
}
.tool-logo {
  width: 48px; height: 48px; margin: 0 auto .8rem;
  background: var(--cream); display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 700; color: var(--gold); font-size: 1.1rem;
  border: 1px solid var(--gold);
}
.tool-name { font-weight: 600; font-size: .95rem; margin-bottom: .25rem; color: var(--navy); }
.tool-desc { font-size: .78rem; color: var(--grey-600); }

/* Drop zone */
.dropzone {
  border: 2px dashed var(--grey-300); padding: 2.5rem 1.5rem;
  text-align: center; background: var(--grey-50);
  transition: all .2s; cursor: pointer;
}
.dropzone.hover, .dropzone:hover { border-color: var(--gold); background: var(--cream); }
.dropzone-icon { font-size: 2.5rem; color: var(--gold); margin-bottom: .5rem; }
.dropzone p { color: var(--grey-600); margin: 0; font-size: .92rem; }
.dropzone small { display: block; margin-top: .3rem; color: var(--grey-600); font-size: .8rem; }
.file-list { margin-top: 1rem; }
.file-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem 1rem; background: var(--cream); margin-top: .5rem;
  font-size: .9rem; border-left: 3px solid var(--gold);
}
.file-item .file-meta { color: var(--grey-600); font-size: .8rem; }
.file-item button {
  background: none; border: none; color: var(--grey-600); cursor: pointer; font-size: 1.1rem;
}

/* Pay box */
.pay-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white); padding: 1.8rem;
  position: relative; overflow: hidden;
}
.pay-card::before {
  content: ""; position: absolute; top: -30px; right: -30px;
  width: 120px; height: 120px; background: var(--gold); opacity: .1;
  border-radius: 50%;
}
.pay-card h3 { color: var(--white); }
.pay-card p { color: rgba(255,255,255,.85); margin-bottom: 1.2rem; }
.pay-options { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.2rem; }
.pay-option {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  padding: .8rem 1rem; cursor: pointer; transition: all .2s;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .92rem;
}
.pay-option:hover, .pay-option.selected {
  background: rgba(176,141,87,.2); border-color: var(--gold);
}
.pay-option .price { font-family: var(--serif); font-size: 1.2rem; color: var(--gold); }
.btn-mp {
  width: 100%; padding: .85rem; background: var(--gold); color: var(--white);
  border: none; font-family: var(--sans); font-weight: 600; cursor: pointer;
  letter-spacing: .04em; text-transform: uppercase; font-size: .85rem;
  transition: background .2s;
}
.btn-mp:hover { background: var(--gold-light); color: var(--navy); }
.mp-logo {
  display: inline-block; background: var(--white); color: #00b1ea;
  padding: .15rem .5rem; font-size: .75rem; font-weight: 700; margin-left: .3rem;
  vertical-align: middle;
}

/* Messages */
.msg-thread { max-height: 360px; overflow-y: auto; padding-right: .5rem; }
.msg {
  padding: .8rem 1rem; margin-bottom: .8rem; font-size: .9rem;
  border-radius: 4px; max-width: 85%;
}
.msg.from-firm { background: var(--cream); border-left: 3px solid var(--navy); }
.msg.from-me { background: rgba(176,141,87,.1); border-left: 3px solid var(--gold); margin-left: auto; }
.msg .who { font-weight: 600; color: var(--navy); font-size: .8rem; margin-bottom: .25rem; display: block; }
.msg .when { font-size: .72rem; color: var(--grey-600); margin-top: .3rem; display: block; }

/* Toast */
.toast {
  position: fixed; bottom: 2rem; right: 2rem;
  background: var(--navy); color: var(--white);
  padding: 1rem 1.5rem; box-shadow: var(--shadow-lg);
  border-left: 3px solid var(--gold);
  opacity: 0; transform: translateY(20px); transition: all .3s;
  z-index: 1000; max-width: 360px; font-size: .92rem;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(11,37,69,.7); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  z-index: 200; padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white); max-width: 500px; width: 100%;
  padding: 2.5rem; box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--gold);
}
.modal h2 { margin-bottom: .5rem; }
.modal .sub { color: var(--grey-600); margin-bottom: 1.5rem; }
.modal-close {
  position: absolute; top: 1rem; right: 1.5rem;
  background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--grey-600);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
         flex-direction: column; background: var(--white); padding: 1rem 1.5rem;
         box-shadow: var(--shadow-md); gap: 0; align-items: stretch; }
  .nav.open { display: flex; }
  .nav a { padding: .9rem 0; border-bottom: 1px solid var(--grey-100); }
  .nav a::after { display: none; }
  .nav-toggle { display: block; }
  .grid-3, .grid-2, .news-grid, .service-list, .tools-grid { grid-template-columns: 1fr; }
  .bio-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .portal-wrap { grid-template-columns: 1fr; }
  .portal-side { padding: 3rem 2rem; }
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .hero { padding: 4rem 0 3.5rem; }
  .tools-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   GATING / ACCESO RESTRINGIDO
   ===================================================== */
.access-gate {
  background: linear-gradient(135deg, var(--cream) 0%, #EFEAE0 100%);
  border-left: 4px solid var(--gold);
  padding: 1.8rem 2rem;
  margin: 0 0 3rem;
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.access-gate-icon {
  width: 52px; height: 52px; flex: 0 0 52px;
  background: var(--navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-family: var(--serif);
}
.access-gate-body { flex: 1; min-width: 220px; }
.access-gate-body h4 {
  color: var(--navy); font-family: var(--serif); font-size: 1.3rem; margin-bottom: .3rem;
}
.access-gate-body p { margin: 0; color: var(--grey-600); font-size: .92rem; }
.access-gate-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
@media (max-width: 600px) {
  .access-gate { padding: 1.4rem; flex-direction: column; align-items: flex-start; }
}

/* =====================================================
   FORMULARIO DE SOLICITUD DE COTIZACIÓN / ALTA
   ===================================================== */
.form-section {
  background: var(--white); padding: 2.5rem; max-width: 720px;
  margin: 0 auto; border-top: 3px solid var(--gold); box-shadow: var(--shadow-sm);
}
.form-section h2 { color: var(--navy); margin-bottom: .4rem; font-size: 1.7rem; }
.form-section .sub { color: var(--grey-600); margin-bottom: 1.8rem; font-size: .95rem; }

.field textarea, .field select {
  width: 100%; padding: .85rem 1rem;
  border: 1px solid var(--grey-300); background: var(--white);
  font-family: var(--sans); font-size: 1rem; color: var(--text);
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
.field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(176,141,87,.15);
}
.field textarea { min-height: 130px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .field-grid { grid-template-columns: 1fr; } }

/* =====================================================
   PANEL DE COTIZACIÓN DENTRO DEL DASHBOARD
   ===================================================== */
.quote-panel { background: var(--white); padding: 1.8rem; border: 1px solid var(--grey-100); margin-bottom: 1.5rem; }
.quote-panel h3 {
  font-family: var(--sans); font-size: .82rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1rem;
  font-weight: 600;
}
.quote-panel-intro {
  background: var(--cream); padding: 1rem 1.2rem; border-left: 3px solid var(--navy);
  font-size: .9rem; color: var(--navy); margin-bottom: 1.5rem;
}

/* Lista de solicitudes */
.req-list { display: flex; flex-direction: column; gap: .8rem; }
.req-item {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem 1.2rem; background: var(--cream); border-left: 3px solid var(--gold);
}
.req-item-body { flex: 1; }
.req-item-body strong { color: var(--navy); display: block; margin-bottom: .2rem; font-size: .95rem; }
.req-item-body span { font-size: .82rem; color: var(--grey-600); }
.status {
  display: inline-block; padding: .25rem .7rem; font-size: .72rem;
  letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
  white-space: nowrap;
}
.status-pending { background: #FEF3E3; color: #8a6d1f; border: 1px solid #E8C77A; }
.status-quoted  { background: #E6F0FA; color: #1B3A66; border: 1px solid #8DB6D9; }
.status-paid    { background: #E8F4EB; color: #2D6A3F; border: 1px solid #8FCBA0; }
.status-progress{ background: var(--cream); color: var(--gold); border: 1px solid var(--gold); }
.status-done    { background: var(--navy); color: var(--white); border: 1px solid var(--navy); }

/* Pay-option en panel claro (Precio estándar dentro del dashboard) */
.pay-option.std { transition: all .2s; }
.pay-option.std:hover { background: var(--white) !important; border-color: var(--gold) !important; }
.pay-option.std.selected { background: var(--white) !important; border-color: var(--gold) !important; box-shadow: 0 0 0 2px rgba(176,141,87,.2); }
.pay-option.std .price { font-family: var(--serif); font-size: 1.2rem; }

