/*
Theme Name:   PERITIAM
Version:      3.0.0
Description:  Tema PERITIAM — Valoración pericial inmobiliaria
Author:       PERITIAM
Author URI:   https://peritiam.es
Theme URI:    https://peritiam.es
*/

/* ── VARIABLES PERITIAM ─────────────────────────────── */
:root {
  --navy:          #002147;
  --navy-dark:     #001830;
  --navy-deep:     #00102a;
  --white:         #E0E0E0;
  --white-sub:     #D4D4D4;
  --platinum:      #A0A09E;
  --platinum-sub:  #9A9A9A;
  --black:         #111111;
  --text-body:     #D4D4D4;
  --text-muted:    rgba(212,212,212,0.55);
  --nav-border:    rgba(224,224,224,0.10);

  --font-body:     'Outfit', system-ui, sans-serif;
  --font-display:  'League Spartan', system-ui, sans-serif;
  --radius:        6px;
  --radius-lg:     10px;
}

/* ── BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background:  var(--navy);
  color:       var(--text-body);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--white);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── NAVBAR ─────────────────────────────────────────── */
#navbar {
  position:   fixed;
  top: 0; left: 0; right: 0;
  z-index:    1000;
  background: transparent;
  transition: background 0.3s ease, border-bottom 0.3s ease;
}
#navbar.scrolled {
  background:    rgba(0,33,71,0.96);
  border-bottom: 0.5px solid var(--nav-border);
  backdrop-filter: blur(8px);
}
.nav-inner {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  max-width:       1200px;
  margin:          0 auto;
  padding:         0 32px;
  height:          100px;
}
.brand { display: flex; align-items: center; }
.nav-logo { height: 72px; width: auto; }

.nav-links {
  display:     flex;
  align-items: center;
  gap:         4px;
}
.nav-item { position: relative; }
.nav-link {
  background:    none;
  border:        none;
  cursor:        pointer;
  font-family:   var(--font-body);
  font-size:     13px;
  font-weight:   400;
  letter-spacing: 0.04em;
  color:         var(--white-sub);
  padding:       8px 14px;
  border-radius: var(--radius);
  transition:    color 0.2s, background 0.2s;
  display:       flex;
  align-items:   center;
  gap:           5px;
  white-space:   nowrap;
  text-decoration: none;
}
.nav-link:hover {
  color:      var(--white);
  background: rgba(224,224,224,0.06);
  border-bottom: 1px solid var(--platinum);
  border-radius: 0;
}

/* Chevron dropdown */
.chevron { display: flex; align-items: center; }
.chevron svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform 0.2s; }
.has-sub[aria-expanded="true"] .chevron svg { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  display:       none;
  position:      absolute;
  top:           calc(100% + 8px);
  left:          50%;
  transform:     translateX(-50%);
  background:    var(--navy-dark);
  border:        0.5px solid var(--nav-border);
  border-radius: var(--radius-lg);
  padding:       8px;
  min-width:     280px;
  box-shadow:    0 16px 40px rgba(0,0,0,0.4);
}
.dropdown.open { display: block; }
.drop-item {
  display:       flex;
  align-items:   flex-start;
  gap:           12px;
  padding:       10px 12px;
  border-radius: var(--radius);
  transition:    background 0.15s;
}
.drop-item:hover { background: rgba(224,224,224,0.05); }
.drop-num {
  font-family:   var(--font-display);
  font-size:     11px;
  font-weight:   600;
  color:         var(--platinum);
  min-width:     20px;
  padding-top:   2px;
}
.drop-title { font-size: 13px; font-weight: 500; color: var(--white); }
.drop-sub   { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.drop-divider { border: none; border-top: 0.5px solid var(--nav-border); margin: 6px 0; }
.drop-footer {
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  padding:         8px 12px;
  border-radius:   var(--radius);
  transition:      background 0.15s;
}
.drop-footer:hover { background: rgba(224,224,224,0.05); }
.drop-footer-text { font-size: 12px; color: var(--platinum); }
.drop-footer-arrow { color: var(--platinum); font-size: 14px; }

/* Nav right */
.nav-right { display: flex; align-items: center; gap: 16px; }
.lang-toggle { display: flex; align-items: center; gap: 6px; }
.lang-btn {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 12px; font-weight: 400;
  letter-spacing: 0.08em; color: var(--text-muted);
  padding: 4px 2px; transition: color 0.2s;
}
.lang-btn.active { color: var(--white); font-weight: 500; }
.lang-sep { width: 1px; height: 12px; background: var(--nav-border); }

.cta-btn {
  background:    transparent;
  border:        0.5px solid rgba(224,224,224,0.3);
  border-radius: var(--radius);
  color:         var(--white);
  font-family:   var(--font-body);
  font-size:     13px;
  font-weight:   500;
  letter-spacing: 0.04em;
  padding:       8px 18px;
  transition:    background 0.2s, border-color 0.2s;
  white-space:   nowrap;
}
.cta-btn:hover {
  background:    rgba(224,224,224,0.08);
  border-color:  rgba(224,224,224,0.5);
}

/* Hamburger */
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--white); transition: all 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: var(--navy-dark);
  flex-direction: column;
  padding: 88px 32px 40px;
  overflow-y: auto;
}
.mobile-drawer.open { display: flex; }
.mobile-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.mobile-link {
  display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; cursor: pointer; width: 100%;
  font-family: var(--font-body); font-size: 18px; font-weight: 400;
  color: var(--white-sub); padding: 14px 0;
  border-bottom: 0.5px solid var(--nav-border);
  text-decoration: none; transition: color 0.2s;
}
.mobile-link:hover { color: var(--white); }
.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--platinum); }
.mob-chevron { font-size: 14px; color: var(--platinum); }
.mobile-submenu { display: none; padding: 8px 0 4px 16px; }
.mobile-submenu.open { display: block; }
.mob-sub-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0; text-decoration: none;
  border-bottom: 0.5px solid rgba(224,224,224,0.05);
}
.mob-sub-num { font-family: var(--font-display); font-size: 11px; color: var(--platinum); padding-top: 2px; min-width: 18px; }
.mob-sub-title { font-size: 14px; color: var(--white); }
.mob-sub-desc  { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.mob-divider { border: none; border-top: 0.5px solid var(--nav-border); margin: 20px 0; }
.mob-bottom { display: flex; align-items: center; justify-content: space-between; }
.mob-lang { display: flex; align-items: center; gap: 8px; }
.mob-cta {
  background: transparent; border: 0.5px solid rgba(224,224,224,0.3);
  border-radius: var(--radius); color: var(--white);
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  padding: 10px 24px; text-decoration: none;
}

/* ── HERO ────────────────────────────────────────────── */
#hero {
  position:   relative;
  min-height: 100vh;
  display:    flex;
  align-items: center;
  overflow:   hidden;
  padding:    0 32px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(0,50,100,0.5) 0%, transparent 70%),
              linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy) 100%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(224,224,224,0.02) 80px),
              repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(224,224,224,0.02) 80px);
}
.hero-content {
  position:   relative; z-index: 1;
  max-width:  760px;
  margin:     0 auto;
  padding:    120px 0 80px;
  text-align: center;
}
.hero-label {
  display:        block;
  font-family:    var(--font-body);
  font-size:      11px;
  font-weight:    400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color:          var(--platinum);
  margin-bottom:  28px;
}
.hero-title {
  font-family:    var(--font-display);
  font-size:      clamp(38px, 6vw, 72px);
  font-weight:    700;
  letter-spacing: -0.02em;
  line-height:    1.05;
  color:          var(--white);
  margin-bottom:  28px;
}
.hero-axiom {
  font-size:   clamp(15px, 2vw, 18px);
  font-weight: 300;
  color:       var(--text-muted);
  line-height: 1.6;
  max-width:   540px;
  margin:      0 auto 48px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; justify-content: center; }
.hero-btn-primary {
  display:       inline-flex; align-items: center; gap: 8px;
  background:    var(--white); color: var(--navy);
  font-family:   var(--font-body); font-size: 14px; font-weight: 600;
  letter-spacing: 0.02em;
  padding:       13px 28px; border-radius: var(--radius);
  transition:    opacity 0.2s; text-decoration: none;
}
.hero-btn-primary:hover { opacity: 0.9; }
.hero-btn-secondary {
  display:       inline-flex; align-items: center;
  border:        0.5px solid rgba(224,224,224,0.25);
  color:         var(--white-sub);
  font-family:   var(--font-body); font-size: 14px; font-weight: 400;
  padding:       13px 28px; border-radius: var(--radius);
  transition:    border-color 0.2s, color 0.2s; text-decoration: none;
}
.hero-btn-secondary:hover { border-color: rgba(224,224,224,0.5); color: var(--white); }
.hero-brand { margin-top: 8px; }
.hero-logo  { height: 44px; width: auto; opacity: 0.9; }

/* hero-scroll: ver bloque de estilos consolidados más abajo */

/* ── SECTIONS ────────────────────────────────────────── */
.section { padding: 100px 32px; }
.section--dark  { background: var(--navy-dark); }
.section--deep  { background: var(--navy-deep); }
.section--center { text-align: center; }

.section-inner {
  max-width: 1100px;
  margin:    0 auto;
}
.section-inner--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.section-inner--reverse { direction: rtl; }
.section-inner--reverse > * { direction: ltr; }

.section-tag {
  display:        flex;
  align-items:    center;
  gap:            10px;
  font-size:      10px;
  font-weight:    500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color:          var(--platinum);
  margin-bottom:  20px;
}
.section-tag::after {
  content: ''; flex: 1; height: 0.5px;
  background: rgba(160,160,158,0.25); max-width: 60px;
}
.section-title {
  font-family:    var(--font-display);
  font-size:      clamp(26px, 3.5vw, 42px);
  font-weight:    600;
  letter-spacing: -0.02em;
  line-height:    1.1;
  color:          var(--white);
  margin-bottom:  24px;
}
.section-body {
  font-size:   15px;
  font-weight: 300;
  color:       var(--text-body);
  line-height: 1.75;
  margin-bottom: 20px;
}
.axiom-block {
  border-left:  2px solid var(--platinum);
  padding-left: 18px;
  margin-top:   28px;
}
.axiom-block p {
  font-size:   14px;
  font-style:  italic;
  font-weight: 300;
  color:       var(--platinum);
  line-height: 1.6;
}
.axiom-block--left { border-left: 2px solid var(--platinum); }

/* ── PROBLEMA ────────────────────────────────────────── */
.problema-item {
  padding:       18px 0;
  border-bottom: 0.5px solid var(--nav-border);
}
.problema-item:first-child { border-top: 0.5px solid var(--nav-border); }
.problema-item p { font-size: 14px; color: var(--text-body); line-height: 1.65; }
.problema-item strong { color: var(--white); font-weight: 500; }

/* ── SOLUCIÓN ────────────────────────────────────────── */
.solucion-items { display: flex; flex-direction: column; gap: 28px; }
.solucion-item {
  display:       flex;
  align-items:   flex-start;
  gap:           20px;
}
.solucion-num {
  font-family:    var(--font-display);
  font-size:      11px;
  font-weight:    600;
  color:          var(--platinum);
  min-width:      24px;
  padding-top:    3px;
}
.solucion-item strong { font-size: 14px; font-weight: 600; color: var(--white); display: block; margin-bottom: 4px; }
.solucion-item p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ── MÉTODO ──────────────────────────────────────────── */
.metodo-header { max-width: 640px; margin-bottom: 56px; }
.metodo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--nav-border);
  border: 0.5px solid var(--nav-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.metodo-card {
  background: var(--navy);
  padding:    40px 28px;
  transition: background 0.2s;
}
.metodo-card:hover { background: var(--navy-dark); }
.metodo-num {
  font-family:    var(--font-display);
  font-size:      12px;
  font-weight:    700;
  color:          var(--platinum);
  letter-spacing: 0.1em;
  margin-bottom:  16px;
  display:        block;
}
.metodo-line {
  width:        24px;
  height:       1px;
  background:   var(--platinum);
  margin-bottom: 20px;
  opacity:      0.4;
}
.metodo-card-title {
  font-family:   var(--font-display);
  font-size:     16px;
  font-weight:   600;
  color:         var(--white);
  margin-bottom: 12px;
}
.metodo-card-body {
  font-size:   13px;
  font-weight: 300;
  color:       var(--text-muted);
  line-height: 1.7;
}
.metodo-card-body strong { color: var(--white-sub); font-weight: 500; }
.metodo-axiom {
  margin-top:    48px;
  padding:       24px 28px;
  border:        0.5px solid var(--nav-border);
  border-radius: var(--radius);
  text-align:    center;
}
.metodo-axiom p { font-size: 14px; font-style: italic; color: var(--platinum); }

/* ── PROFESIONALES ───────────────────────────────────── */
.prof-list { display: flex; flex-direction: column; gap: 0; }
.prof-item {
  display:       flex;
  align-items:   flex-start;
  gap:           16px;
  padding:       20px 0;
  border-bottom: 0.5px solid var(--nav-border);
}
.prof-item:first-child { border-top: 0.5px solid var(--nav-border); }
.prof-dot {
  width:        6px; height: 6px; border-radius: 50%;
  background:   var(--platinum); margin-top: 7px; flex-shrink: 0;
}
.prof-title { font-size: 14px; font-weight: 500; color: var(--white); margin-bottom: 4px; }
.prof-desc  { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.profesionales-statement {
  font-size:   16px;
  font-weight: 400;
  color:       var(--platinum);
  margin-top:  12px;
  font-style:  italic;
}

/* ── SELLO ───────────────────────────────────────────── */
.sello-inner { max-width: 680px; margin: 0 auto; }
.sello-emblem { display: flex; justify-content: center; margin-bottom: 32px; }
.sello-img { height: 200px; width: auto; opacity: 0.7; }
.sello-list {
  list-style:    none;
  text-align:    left;
  margin:        28px auto;
  max-width:     520px;
  display:       flex;
  flex-direction: column;
  gap:           12px;
}
.sello-list li {
  font-size:   14px;
  font-weight: 300;
  color:       var(--text-body);
  padding-left: 18px;
  position:    relative;
  line-height: 1.6;
}
.sello-list li::before {
  content:  '—';
  position: absolute;
  left:     0;
  color:    var(--platinum);
  font-size: 12px;
}

/* ── SOBRE NOSOTROS ──────────────────────────────────── */

/* ── CONTACTO ────────────────────────────────────────── */
.contacto-inner { max-width: 680px; margin: 0 auto; }
.contacto-sub {
  font-size:   14px;
  color:       var(--platinum);
  font-style:  italic;
  margin-top:  -10px;
  margin-bottom: 36px;
}
.contacto-btn {
  display:       inline-flex;
  align-items:   center;
  gap:           8px;
  background:    var(--white);
  color:         var(--navy);
  font-family:   var(--font-body);
  font-size:     15px;
  font-weight:   600;
  padding:       15px 36px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  transition:    opacity 0.2s;
  text-decoration: none;
}
.contacto-btn:hover { opacity: 0.9; }
.contacto-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 48px;
}
.contacto-brand { display: flex; justify-content: center; margin-top: 48px; }
.contacto-logo  { height: 34px; width: auto; opacity: 0.7; }

/* ── FOOTER ──────────────────────────────────────────── */
#site-footer {
  background:    var(--navy-deep);
  border-top:    0.5px solid var(--nav-border);
}
.footer-inner {
  display:         grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap:             48px;
  align-items:     start;
  max-width:       1100px;
  margin:          0 auto;
  padding:         56px 32px 48px;
}
.footer-logo    { height: 56px; width: auto; margin-bottom: 16px; }
.footer-tagline {
  font-size:      10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color:          var(--platinum);
  margin-bottom:  12px;
}
.footer-mission {
  font-size:   12px;
  font-weight: 300;
  color:       var(--text-muted);
  line-height: 1.75;
}
.footer-nav {
  display:        flex;
  flex-direction: column;
  gap:            10px;
  padding-top:    4px;
}
.footer-nav a {
  font-size:   13px;
  color:       var(--text-muted);
  transition:  color 0.2s;
}
.footer-nav a:hover { color: var(--white); }
.footer-contacto { padding-top: 4px; }
.footer-cta-label {
  font-size:      10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color:          var(--platinum);
  margin-bottom:  12px;
}
.footer-cta-btn {
  display:       inline-block;
  border:        0.5px solid rgba(224,224,224,0.25);
  border-radius: var(--radius);
  color:         var(--white);
  font-family:   var(--font-body);
  font-size:     13px;
  font-weight:   500;
  padding:       9px 20px;
  margin-bottom: 14px;
  transition:    border-color 0.2s;
}
.footer-cta-btn:hover { border-color: rgba(224,224,224,0.5); }
.footer-email-wrap { font-size: 12px; color: var(--text-muted); }
.footer-email-protect { color: var(--platinum); cursor: pointer; border-bottom: 0.5px dotted var(--platinum); }
.footer-copy {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  flex-wrap:       wrap;
  gap:             12px;
  max-width:       1100px;
  margin:          0 auto;
  padding:         20px 32px;
  border-top:      0.5px solid var(--nav-border);
}
.footer-copy p { font-size: 11px; color: var(--text-muted); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal-link {
  font-size:  11px;
  color:      var(--text-muted);
  transition: color 0.2s;
  cursor:     pointer;
}
.footer-legal-link:hover { color: var(--white); }

/* ── REVEAL ANIMATIONS ───────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── FORMULARIO /formulario ──────────────────────────── */
.pf {
  background:    rgba(0,24,48,0.6);
  border:        0.5px solid var(--nav-border);
  border-radius: var(--radius-lg);
  padding:       40px;
  max-width:     700px;
  margin:        0 auto 40px;
  text-align:    left;
}
.pf__block { margin-bottom: 32px; }
.pf__block-title {
  font-family:    var(--font-display);
  font-size:      11px;
  font-weight:    600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color:          var(--platinum);
  margin-bottom:  20px;
  padding-bottom: 10px;
  border-bottom:  0.5px solid var(--nav-border);
}
.pf__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 16px; }
.pf__field { display: flex; flex-direction: column; gap: 6px; position: relative; }
.pf__field--full { grid-column: 1/-1; }
.pf__label {
  font-size:   12px;
  font-weight: 400;
  color:       var(--white-sub);
  letter-spacing: 0.02em;
}
.req { color: var(--platinum); }
.pf__input, .pf__select, .pf__textarea {
  background:    rgba(0,33,71,0.6);
  border:        0.5px solid rgba(160,160,158,0.3);
  border-radius: var(--radius);
  color:         var(--white);
  font-family:   var(--font-body);
  font-size:     14px;
  font-weight:   300;
  padding:       11px 14px;
  transition:    border-color 0.2s;
  width:         100%;
}
.pf__input:focus, .pf__select:focus, .pf__textarea:focus {
  outline:      none;
  border-color: var(--platinum);
}
.pf__input::placeholder, .pf__textarea::placeholder { color: var(--text-muted); }
.pf__select { appearance: none; cursor: pointer; }
.pf__select option { background: var(--navy-dark); }
.pf__textarea { resize: vertical; min-height: 120px; }
.pf__field.error .pf__input,
.pf__field.error .pf__select,
.pf__field.error .pf__textarea { border-color: #c0392b; }
.pf__error-msg { font-size: 11px; color: #e74c3c; display: none; }
.pf__field.error .pf__error-msg { display: block; }
.pf__conditional { display: none; }
.pf__conditional.visible { display: block; }

/* Navbar alineado a la derecha */
.nav-links { margin-left: auto; }

/* Logo sobre Descubre en hero-scroll */
.hero-scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 1;
}
.hero-scroll-logomark { margin-bottom: 4px; }
.hero-scroll-logo { height: 32px; width: auto; opacity: 0.55; }
.hero-scroll span { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.hero-scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--platinum), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine { 0%,100%{opacity:0.3;transform:scaleY(1)} 50%{opacity:1;transform:scaleY(1.2)} }

/* Botones Prioridad — texto en azul navy con contraste correcto */
.pf__urg-btn {
  flex: 1; text-align: center; padding: 9px 6px;
  border: 0.5px solid rgba(160,160,158,0.3); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  color: var(--navy); background: var(--white-sub);
  cursor: pointer; transition: all 0.2s;
}
.pf__urg-btn:hover, .pf__urg-btn.active {
  border-color: var(--navy); color: var(--white); background: var(--navy);
}

/* Hint select múltiple */
.pf__hint {
  font-size: 11px; color: var(--text-muted);
  margin-top: 6px; display: block;
}

/* Select múltiple */
.pf__select[multiple] {
  height: auto;
  padding: 4px;
}
.pf__select[multiple] option {
  padding: 8px 10px;
  border-radius: var(--radius);
  margin-bottom: 2px;
}

/* RGPD */
.pf__rgpd { background: rgba(0,16,42,0.5); border-radius: var(--radius); padding: 20px; }
.pf__rgpd-section-title {
  font-size: 11px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--platinum); margin-bottom: 14px;
}
.pf__check-row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0; border-bottom: 0.5px solid var(--nav-border);
}
.pf__check-row input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; accent-color: var(--platinum); }
.pf__check-label { font-size: 12px; color: var(--text-body); line-height: 1.65; }
.pf__check-label strong { color: var(--white); font-weight: 500; }
.pf__check-label em { display: block; font-size: 11px; color: var(--text-muted); font-style: normal; margin-top: 3px; }
.optional { font-size: 10px; font-weight: 400; color: var(--text-muted); }
.pf__check-error { font-size: 11px; color: #e74c3c; display: none; padding: 4px 0 0 28px; }
.pf__check-error.visible { display: block; }
.pf__rgpd-info {
  font-size: 11px; color: var(--text-muted); line-height: 1.7;
  margin-top: 14px;
}
.pf__rgpd-info strong { color: var(--white-sub); }
.pf__rgpd-info a { color: var(--platinum); text-decoration: underline; }

/* Submit */
.pf__submit { text-align: center; margin-top: 32px; }
.pf__btn {
  background:    var(--white);
  border:        none;
  border-radius: var(--radius);
  color:         var(--navy);
  cursor:        pointer;
  font-family:   var(--font-body);
  font-size:     15px;
  font-weight:   600;
  padding:       14px 40px;
  transition:    opacity 0.2s;
}
.pf__btn:hover { opacity: 0.9; }
.pf__btn:disabled { opacity: 0.5; cursor: not-allowed; }
.pf__submit-note { font-size: 12px; color: var(--text-muted); margin-top: 12px; }

/* Éxito */
.pf__success { display: none; text-align: center; padding: 60px 20px; }
.pf__success.visible { display: block; }
.pf__success-title {
  font-family: var(--font-display); font-size: 28px; font-weight: 600;
  color: var(--white); margin-bottom: 16px;
}
.pf__success-body { font-size: 15px; color: var(--text-muted); line-height: 1.7; }

/* ── PÁGINA /gracias ─────────────────────────────────── */
.gracias-wrap {
  min-height:      100vh;
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  justify-content: center;
  padding:         80px 32px;
  text-align:      center;
  background:      var(--navy);
}
.gracias-sello { margin-bottom: 36px; }
.gracias-sello img { height: 100px; width: auto; margin: 0 auto; }
.gracias-title {
  font-family: var(--font-display); font-size: clamp(28px,4vw,44px);
  font-weight: 600; color: var(--white); margin-bottom: 20px;
}
.gracias-body {
  font-size: 16px; color: var(--text-muted); max-width: 480px;
  line-height: 1.75; margin-bottom: 16px;
}
.gracias-axiom { font-size: 13px; font-style: italic; color: var(--platinum); margin-bottom: 40px; }
.gracias-btn {
  display:       inline-flex; align-items: center; gap: 8px;
  border:        0.5px solid rgba(224,224,224,0.25);
  border-radius: var(--radius); color: var(--white);
  font-family:   var(--font-body); font-size: 14px; font-weight: 400;
  padding:       12px 28px; transition: border-color 0.2s; text-decoration: none;
}
.gracias-btn:hover { border-color: rgba(224,224,224,0.5); }

/* ── DASHBOARD ───────────────────────────────────────── */
.peritiam-dashboard {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.dash-sidebar {
  background:    var(--navy-dark);
  border-right:  0.5px solid var(--nav-border);
  padding:       40px 24px;
  display:       flex;
  flex-direction: column;
  gap:           40px;
  position:      sticky;
  top:           0;
  height:        100vh;
  overflow-y:    auto;
}
.dash-brand-name {
  display:        block;
  font-family:    var(--font-body);
  font-size:      16px;
  font-weight:    500;
  color:          var(--white);
  letter-spacing: 0.14em;
}
.dash-brand-claim {
  display:        block;
  font-size:      9px;
  font-weight:    300;
  color:          var(--platinum);
  letter-spacing: 0.1em;
  margin-top:     2px;
}
.dash-nav { display: flex; flex-direction: column; gap: 2px; }
.dash-nav-link {
  display:       flex;
  align-items:   center;
  gap:           10px;
  padding:       10px 12px;
  border-radius: var(--radius);
  font-size:     13px;
  font-weight:   400;
  color:         var(--text-muted);
  transition:    background 0.15s, color 0.15s;
  text-decoration: none;
}
.dash-nav-link:hover, .dash-nav-link.active {
  background: rgba(224,224,224,0.06);
  color:      var(--white);
}
.dash-main { padding: 48px; overflow-y: auto; }
.dash-header { margin-bottom: 36px; }
.dash-title {
  font-family:   var(--font-display);
  font-size:     26px;
  font-weight:   600;
  color:         var(--white);
  margin-bottom: 6px;
}
.dash-subtitle { font-size: 13px; color: var(--text-muted); }
.dash-card {
  background:    var(--navy-dark);
  border:        0.5px solid var(--nav-border);
  border-radius: var(--radius-lg);
  padding:       28px;
  margin-bottom: 20px;
}
.dash-card-title {
  font-family:   var(--font-display);
  font-size:     15px;
  font-weight:   600;
  color:         var(--white);
  margin-bottom: 16px;
}
.estado-badge {
  display:       inline-block;
  font-size:     10px;
  font-weight:   500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding:       3px 10px;
  border-radius: 20px;
  background:    rgba(160,160,158,0.15);
  color:         var(--platinum);
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .metodo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links, .nav-right { display: none; }
  .hamburger { display: flex; }
  .section { padding: 72px 20px; }
  .section-inner--2col { grid-template-columns: 1fr; gap: 48px; direction: ltr; }
  .section-inner--reverse { direction: ltr; }

  /* Hero: evitar que hero-scroll tape el label/título en ventanas pequeñas */
  #hero { padding: 0 20px; min-height: 100svh; }
  .hero-content {
    padding: 108px 0 160px;   /* más espacio inferior para hero-scroll */
    max-width: 100%;
  }
  .hero-label { font-size: 9.5px; letter-spacing: 0.13em; margin-bottom: 20px; }
  .hero-title  { font-size: clamp(30px, 8vw, 52px); margin-bottom: 20px; }
  .hero-axiom  { font-size: 14px; margin-bottom: 32px; }
  .hero-scroll { bottom: 28px; }
  /* Ocultar hero-scroll si la ventana es muy baja (landscape móvil) */
  @media (max-height: 520px) {
    .hero-scroll { display: none; }
    .hero-content { padding: 88px 0 40px; }
  }

  .metodo-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-copy { flex-direction: column; align-items: flex-start; }
  .peritiam-dashboard { grid-template-columns: 1fr; }
  .dash-sidebar { position: static; height: auto; }
  .dash-main { padding: 24px 20px; }
  .pf { padding: 24px 20px; }
}

/* Breakpoint intermedio: tablets portrait */
@media (max-width: 600px) {
  .hero-content { padding: 100px 0 148px; }
  .hero-scroll  { bottom: 20px; }
}

/* ══════════════════════════════════════════════════
   PERITIAM v3.1 — Añadidos
   ══════════════════════════════════════════════════ */

/* ── Botón flotante fijo: un agente inmobiliario, un perito judicial ── */
/* Circular PNG blanco, fondo completamente transparente, lado DERECHO */
.agente-flotante {
  position: fixed;
  bottom: 100px;
  right: 20px;
  z-index: 900;
  display: block;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: visible;          /* nunca recorta — el PNG ya es circular */
  text-decoration: none;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.agente-flotante img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  display: block;
  border-radius: 50%;
  transition: transform 0.22s ease;
  /* Sombra suave sólo sobre el círculo, no sobre fondo invisible */
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.28));
}
.agente-flotante.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.agente-flotante:hover img {
  transform: scale(1.07);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.42));
}

/* ── Section subtitle ── */
.section-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 12px;
  margin-bottom: 0;
  line-height: 1.5;
}

/* ── Sección 3: sello inline ── */
.solucion-sello { margin: 28px 0; display:flex; justify-content:center; }
.solucion-sello-img { height: 200px; width: auto; opacity: 0.7; }

/* ── Sección 4: header sello + texto horizontal ── */
.metodo-header-inner {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-top: 16px;
}
.metodo-sello-wrap { flex-shrink: 0; }
.metodo-sello-img  { height: 200px; width: auto; opacity: 0.7; }
.metodo-header-text { flex: 1; }

/* ── Sección 5: título como enlace ── */
.section-title-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(224,224,224,0.3);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.section-title-link:hover { border-color: var(--white); }

/* ── Sección 6: pie de sección ── */
.sello-pie {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 580px;
  margin: 28px auto 0;
  line-height: 1.6;
  text-align: center;
}

/* ── Footer: columna central centrada + columna sello ── */
.footer-nav--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
}
.footer-sello {
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-sello-img { height: 200px; width: auto; opacity: 0.7; }

/* ── Formulario: botones de opción ── */
.pf__btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.pf__opt-btn {
  background: transparent;
  border: 0.5px solid rgba(224,224,224,0.3);
  color: var(--platinum);
  font-size: 13px;
  font-family: inherit;
  padding: 8px 16px;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.pf__opt-btn:hover {
  border-color: rgba(224,224,224,0.6);
  color: var(--white);
}
.pf__opt-btn.active {
  background: rgba(224,224,224,0.12);
  border-color: var(--white-sub);
  color: var(--white);
}

/* ── Cookie banner ── */
#cookie-banner {
  position: fixed;
  bottom: -120px;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  border: 0.5px solid rgba(224,224,224,0.2);
  color: var(--platinum);
  font-size: 13px;
  padding: 16px 24px;
  border-radius: 4px;
  z-index: 9999;
  max-width: 560px;
  width: calc(100% - 32px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: bottom 0.4s ease;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
#cookie-banner.visible { bottom: 20px; }
#cookie-banner p { margin: 0; line-height: 1.5; }
.cookie-btns { display: flex; gap: 10px; }
#cookie-ok {
  background: var(--navy);
  border: 0.5px solid rgba(224,224,224,0.4);
  color: var(--white);
  font-size: 13px;
  font-family: inherit;
  padding: 7px 20px;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s;
}
#cookie-ok:hover { background: rgba(224,224,224,0.1); }
#cookie-info {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

/* ── Responsive ajustes v3.1 ── */
@media (max-width: 640px) {
  .agente-flotante { width: 90px; height: 90px; bottom: 16px; right: 12px; }
  .agente-flotante img { width: 90px; height: 90px; }
  .metodo-header-inner { flex-direction: column; gap: 20px; text-align: center; }
  .solucion-sello-img,
  .metodo-sello-img,
  .sello-img,
  .footer-sello-img { height: 130px; }
    .footer-nav--center { align-items: center; justify-content: center; text-align: center; }
}


/* ══════════════════════════════════════
   PERITIAM v3.2 — CSS adicional
      ══════════════════════════════════════ */
      
      /* Ocultar selector EN en navbar */
      .lang-btn:last-of-type { display: none; }
      .lang-sep { display: none; }
      
      /* Sello-lista sec06: sin guiones, texto centrado */
      .sello-requisitos {
            list-style: none;
              padding: 0;
                margin: 20px auto;
                  max-width: 560px;
                    text-align: center;
      }
      .sello-requisitos li {
            padding: 10px 0;
              font-size: 0.95rem;
                line-height: 1.55;
                  color: var(--white-sub);
      }
      .sello-requisitos li + li {
            border-top: 1px solid rgba(212,212,212,0.12);
      }
      
      /* Botón preguntas pequeno por sección */
      .btn-preguntas--small {
            font-size: 0.78rem;
              padding: 6px 14px;
                opacity: 0.6;
                  letter-spacing: 0.05em;
                            display: block;
		          width: fit-content;
                      margin-top: 20px;
		          margin-left: max(0px, calc((100% - 1100px) / 2));
                        transition: opacity 0.2s;
                          border-radius: var(--radius);
                            border: 1px solid rgba(224,224,224,0.3);
                              color: var(--white);
                                text-decoration: none;
      }
      .btn-preguntas--small:hover { opacity: 1; }
      .section--light .btn-preguntas--small {
            color: var(--navy);
              border-color: rgba(0,33,71,0.3);
}
.section--center > .btn-preguntas--small { margin-left: auto; margin-right: auto; }
/* ── Guarismo 1ª — imagen corporativa escalada al contexto ── */
.ordinal-1a {
    height: 1em;
    width: auto;
    vertical-align: middle;
    position: relative;
    top: -0.05em;
    display: inline-block;
}