/* ==========================================================================
   ESTUDIO JURÍDICO VALENZUELA & ASOCIADOS - LANDING PAGE
   Estilo: Sobrio, prestigioso, sosegado e institucional.
   Paleta: Azul noche profundo, marfil cálido, carbón y oro bronce antiguo.
   ========================================================================== */

:root {
  /* Paleta Sobria Legal */
  --color-primary-navy: #111c26;     /* Azul noche institucional */
  --color-navy-card: #182533;
  --color-navy-surface: #203142;
  
  --color-gold-antique: #b89358;     /* Oro bronce / dorado antiguo */
  --color-gold-hover: #9c7a42;
  --color-gold-light: #f7f3eb;
  --color-gold-subtle: rgba(184, 147, 88, 0.15);

  --bg-page: #fbfbf9;               /* Marfil aperlado */
  --bg-surface: #ffffff;
  --bg-subtle: #f5f4f0;
  
  --text-main: #181d22;             /* Carbón pizarra */
  --text-muted: #596573;
  --text-light: #85919e;
  --text-white: #ffffff;

  --border-gold: rgba(184, 147, 88, 0.28);
  --border-subtle: #e6e4dc;

  --shadow-sm: 0 2px 8px rgba(17, 28, 38, 0.04);
  --shadow-md: 0 6px 20px rgba(17, 28, 38, 0.07);
  --shadow-lg: 0 16px 36px rgba(17, 28, 38, 0.1);

  /* Tipografías */
  --font-serif: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  --transition: all 0.25s ease;
}

/* Reset y Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   TIPOGRAFÍA SOBRIA
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--color-primary-navy);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-serif);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold-antique);
  margin-bottom: 0.85rem;
}

.section-label::before,
.section-label::after {
  content: '';
  width: 18px;
  height: 1px;
  background-color: var(--color-gold-antique);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-header h2 {
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.82rem 1.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--color-primary-navy);
  color: #ffffff;
  border: 1px solid var(--color-primary-navy);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-navy-surface);
  color: var(--color-gold-antique);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-gold {
  background: var(--color-gold-antique);
  color: #ffffff;
}

.btn-gold:hover {
  background: var(--color-gold-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-gold);
  color: var(--color-primary-navy);
}

.btn-outline:hover {
  background: var(--color-gold-light);
  border-color: var(--color-gold-antique);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background: #20ba59;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

/* ==========================================================================
   NAVBAR INSTITUCIONAL
   ========================================================================== */
.top-notice-bar {
  background: var(--color-primary-navy);
  color: var(--color-gold-light);
  font-size: 0.78rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(184, 147, 88, 0.2);
}

.top-notice-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(251, 251, 249, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.1rem 0;
}

.navbar .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-emblem {
  width: 44px;
  height: 44px;
  background: var(--color-primary-navy);
  border: 1.5px solid var(--color-gold-antique);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold-antique);
  font-size: 1.3rem;
  box-shadow: var(--shadow-sm);
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-primary-navy);
}

.brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold-antique);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.nav-link:hover {
  color: var(--color-primary-navy);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--color-primary-navy);
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding: 4.5rem 0 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.3rem, 3.8vw, 3.3rem);
  color: var(--color-primary-navy);
  margin-bottom: 1.3rem;
  letter-spacing: -0.01em;
}

.hero-content h1 span {
  color: var(--color-gold-antique);
  font-style: italic;
  font-weight: 400;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.3rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.6rem;
}

.hero-trust-bar {
  display: flex;
  gap: 2rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border-subtle);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.trust-icon {
  color: var(--color-gold-antique);
  font-size: 1rem;
}

.hero-media-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-gold);
}

.hero-media-card img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-media-card:hover img {
  transform: scale(1.02);
}

.hero-floating-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(17, 28, 38, 0.92);
  border: 1px solid var(--color-gold-antique);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.4rem;
  backdrop-filter: blur(8px);
  color: #ffffff;
}

.hero-floating-badge h4 {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  color: var(--color-gold-light);
  margin-bottom: 0.15rem;
}

.hero-floating-badge p {
  font-size: 0.75rem;
  color: #c4d1de;
}

/* ==========================================================================
   ÁREAS DE PRÁCTICA (SINTÉTICAS Y SOBRIAS)
   ========================================================================== */
.practices-section {
  padding: 5rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.practices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}

.practice-card {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.2rem 1.8rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.practice-card:hover {
  border-color: var(--color-gold-antique);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  background: #ffffff;
}

.practice-num {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  color: var(--color-gold-antique);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.practice-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary-navy);
}

.practice-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ==========================================================================
   PRINCIPIOS Y RIGOR ÉTICO
   ========================================================================== */
.values-section {
  padding: 5rem 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.value-box {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--color-gold-antique);
  border-radius: var(--radius-sm);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.value-box h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: var(--color-primary-navy);
}

.value-box p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ==========================================================================
   SOLICITUD DE CONSULTA Y WHATSAPP
   ========================================================================== */
.contact-section {
  padding: 5rem 0;
  background: var(--color-primary-navy);
  color: #ffffff;
}

.contact-card {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.contact-card .section-label {
  color: var(--color-gold-light);
}

.contact-card h2 {
  color: #ffffff;
  font-size: 2.3rem;
  margin-bottom: 1rem;
}

.contact-card p {
  color: #bccad6;
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-options {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.contact-options .btn {
  padding: 1rem 2.2rem;
  font-size: 0.96rem;
}

/* ==========================================================================
   FOOTER SOBRIO
   ========================================================================== */
.footer {
  background: #0d161f;
  color: #8c9ba8;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(184, 147, 88, 0.15);
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h4 {
  font-family: var(--font-serif);
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: #798a98;
  line-height: 1.6;
  max-width: 360px;
}

.footer-col h5 {
  color: var(--color-gold-light);
  font-family: var(--font-serif);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.footer-links li {
  margin-bottom: 0.55rem;
}

.footer-links a {
  color: #8c9ba8;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

/* ==========================================================================
   BOTÓN FLOTANTE WHATSAPP DISCRETO
   ========================================================================== */
.floating-whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #25d366;
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
}

.floating-whatsapp svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.floating-whatsapp:hover {
  background: #20ba59;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    gap: 1.2rem;
  }

  .nav-links.open {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .top-notice-bar {
    display: none;
  }

  .floating-whatsapp span {
    display: none;
  }

  .floating-whatsapp {
    padding: 0.85rem;
    border-radius: 50%;
  }
}

/* ==========================================================================
   BANNER DE ADVERTENCIA / SITIO DE MUESTRA (FIJO SIEMPRE VISIBLE)
   ========================================================================== */
:root {
  --demo-banner-h: 34px;
}

@media (max-width: 768px) {
  :root {
    --demo-banner-h: 52px;
  }
}

body {
  padding-top: var(--demo-banner-h);
}

.demo-disclaimer-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #0f172a;
  color: #f1f5f9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.82rem;
  line-height: 1.35;
  padding: 0.45rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 99999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.navbar {
  top: var(--demo-banner-h) !important;
}

.demo-disclaimer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem 0.85rem;
  text-align: center;
}

.demo-disclaimer-banner .demo-tag {
  background: #f59e0b;
  color: #0f172a;
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.demo-disclaimer-banner .demo-text {
  margin: 0;
  color: #e2e8f0;
}

.demo-disclaimer-banner .demo-text strong {
  color: #ffffff;
  font-weight: 700;
}

.demo-disclaimer-banner .demo-back-btn {
  color: #38bdf8;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.demo-disclaimer-banner .demo-back-btn:hover {
  color: #bae6fd;
}

