/* ==========================================================
   Melendres Auditores · Landing
   Paleta de marca: rojo Melendres, azul marino y neutros cálidos
   ========================================================== */
:root {
  --navy: #0A1B33;
  --navy-2: #203653;
  --brand: #CC141C;
  --brand-dark: #9E0F15;
  --brand-light: #E65A61;
  --brand-soft: #FFF5F5;
  --coral: #E65A61;
  --wa: #25D366;
  --wa-dark: #1DA851;
  --ink: #0F172A;
  --muted: #62666F;
  --bg: #FFFFFF;
  --bg-alt: #FAF7F7;
  --line: #EAE1E2;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(10, 27, 51, .08);
  --shadow-lg: 0 24px 60px rgba(10, 27, 51, .16);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { letter-spacing: -.02em; font-weight: 800; }
a { text-decoration: none; }

/* ---------- Botones ---------- */
.btn { font-weight: 600; border-radius: 999px; padding: .65rem 1.4rem; transition: transform .2s, box-shadow .2s, background .2s; }
.btn-lg { padding: .9rem 1.8rem; font-size: 1.02rem; }
.btn:hover { transform: translateY(-2px); }
.btn-wa { background: var(--wa); color: #fff; border: 0; box-shadow: 0 8px 20px rgba(37, 211, 102, .35); }
.btn-wa:hover { background: var(--wa-dark); color: #fff; }
.btn-brand { background: var(--brand); color: #fff; border: 0; box-shadow: 0 8px 20px rgba(204, 20, 28, .3); }
.btn-brand:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .35); background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ---------- Navbar ---------- */
#mainNav { padding: .8rem 0; background: var(--brand); border-bottom: 1px solid rgba(255, 255, 255, .2); transition: background .3s, padding .3s, box-shadow .3s; }
#mainNav.scrolled { background: rgba(204, 20, 28, .97); backdrop-filter: blur(12px); padding: .55rem 0; box-shadow: 0 6px 24px rgba(80, 0, 0, .18); }
.navbar-brand { color: #fff; font-weight: 800; }
.navbar-brand:hover { color: #fff; }
.brand-mark { width: 44px; height: 44px; display: block; object-fit: cover; padding: 0; border: 0px solid rgba(255, 255, 255, .8); border-radius: 50%; background: transparent; }
.brand-mark-sm { width: 28px; height: 28px; border-radius: 9px; font-size: .85rem; }
.brand-text {
  display: grid;
  gap: .2rem;
  font-family: 'Orbitron', sans-serif;
  line-height: 1;
  text-transform: uppercase;
}

.brand-text strong {
  font-size: .9rem;
  font-weight: 800;
}

.brand-text small {
  font-size: .52rem;
  font-weight: 600;
  letter-spacing: .28em;
  opacity: .9;
}
.brand-text { line-height: 1.1; }
/*.brand-text small { display: block; font-weight: 500; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }*/

.navbar .nav-link { color: rgba(255, 255, 255, .82); font-weight: 500; padding: .5rem 1rem; }
.navbar .nav-link:hover { color: #fff; }
.nav-social { display: flex; align-items: center; gap: .3rem; margin-right: .6rem; }
.nav-social a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: rgba(255, 255, 255, .9); transition: background .2s, color .2s; }
.nav-social a:hover { color: #fff; background: rgba(255, 255, 255, .16); }
.navbar-toggler { color: #fff; font-size: 1.8rem; border: 0; padding: 0; }
.navbar-toggler:focus { box-shadow: none; }
@media (max-width: 991.98px) {
  #navMenu { background: var(--brand-dark); border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; margin-top: .8rem; padding: 1rem; }
  .nav-social { margin: .25rem 0 1rem; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar .nav-link { padding-right: .6rem; padding-left: .6rem; }
  .nav-social { gap: .1rem; margin-right: .35rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 9.5rem 0 6rem; color: var(--ink);
  background: linear-gradient(135deg, #FFFFFF 0%, var(--brand-soft) 100%); }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(100px); opacity: .1; pointer-events: none; }
.hero-glow-1 { width: 420px; height: 420px; background: var(--brand); top: -120px; right: -80px; }
.hero-glow-2 { width: 340px; height: 340px; background: var(--brand-light); bottom: -140px; left: -80px; opacity: .1; }
.pill { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 600;
  color: var(--brand-dark); background: rgba(204, 20, 28, .06); border: 1px solid rgba(204, 20, 28, .15); }
.pill i { color: var(--brand); }
.pill-action { display: inline-flex; align-items: center; gap: .1rem; font-weight: 700; white-space: nowrap; }
.pill:hover { color: var(--brand-dark); background: rgba(204, 20, 28, .1); border-color: rgba(204, 20, 28, .3); }
.pill:focus-visible { outline: 3px solid rgba(204, 20, 28, .25); outline-offset: 3px; }
.hero-title { font-size: clamp(2.2rem, 5vw, 3.7rem); line-height: 1.08; margin: 1.3rem 0 1rem; }
.text-gradient { background: linear-gradient(90deg, var(--brand-light), var(--brand) 60%, var(--brand-dark)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .text-gradient { background: none; color: var(--brand); -webkit-text-fill-color: var(--brand); }
.hero-lead { font-size: 1.15rem; max-width: 560px; color: var(--muted); }
.hero-points { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; font-size: .92rem; color: var(--muted); }
.hero-points i { color: var(--wa); margin-right: .35rem; }
.hero-status { color: var(--muted); }
.hero .btn-outline-light { color: var(--brand-dark); border-color: var(--brand-dark); }
.hero .btn-outline-light:hover { color: #fff; background: var(--brand-dark); border-color: var(--brand-dark); }

.hero-visual { position: relative; padding: .5rem 0; }
.hero .contact-form { padding: 1.4rem; border-radius: 18px; }
.hero .form-title { font-size: 1.2rem; }
.hero .form-sub { font-size: .9rem; margin-bottom: .8rem; }
.hero .form-control, .hero .form-select { padding: .55rem .8rem; }
.hero .form-check-label { font-size: .78rem; }
.glass-card { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(16px);
  border-radius: 24px; padding: 1.6rem; box-shadow: var(--shadow-lg); }
.badge-ok { font-size: .78rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; background: rgba(37, 211, 102, .2); color: #7DF0A8; }
.status-row { display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; margin-bottom: .6rem; border-radius: 14px;
  background: rgba(255, 255, 255, .08); font-size: .93rem; }
.status-row > i:first-child { color: var(--brand); font-size: 1.15rem; }
.status-row span { flex: 1; }
.status-row .ok { color: #7DF0A8; font-weight: 800; }
.progress-wrap { margin-top: 1.1rem; }
.progress-bar-bg { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .15); margin-top: .4rem; overflow: hidden; }
.progress-bar-fill { height: 100%; width: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), #7DF0A8); animation: fill 1.6s ease-out both; }
@keyframes fill { from { width: 0; } }
.float-card { position: absolute; display: flex; align-items: center; gap: .8rem; padding: .85rem 1.1rem; border-radius: 16px;
  background: #fff; color: var(--ink); box-shadow: var(--shadow-lg); animation: floaty 5s ease-in-out infinite; }
.float-card i { font-size: 1.6rem; color: var(--wa); }
.float-card strong { display: block; font-size: .9rem; }
.float-card small { color: var(--muted); }
.float-card-a { left: 1.2rem; bottom: .6rem; }
@keyframes floaty { 50% { transform: translateY(-10px); } }

/* ---------- Secciones ---------- */
.section { padding: 6rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin: 0 auto 3.2rem; text-align: center; }
.section-head h2, .section h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.eyebrow { display: inline-block; margin-bottom: .8rem; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-dark); }
.lead-muted { color: var(--muted); font-size: 1.08rem; }

/* ---------- Servicios ---------- */
.service-card { height: 100%; padding: 2rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s, border-color .25s; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px; font-size: 1.5rem; color: #fff; margin-bottom: 1.2rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }
.service-card h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.service-card p { color: var(--muted); margin-bottom: 1.1rem; }
.service-link { font-weight: 700; color: var(--brand-dark); }
.service-link i { transition: transform .2s; display: inline-block; }
.service-link:hover i { transform: translateX(4px); }
.service-card-cta { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); border: 0; }
.service-card-cta h3 { color: #fff; }
.service-card-cta p { color: rgba(255, 255, 255, .75); }
.service-card-cta .service-icon { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .24); }
.service-card-cta .service-link { color: #fff; }

/* ---------- Nosotros ---------- */
.about-visual { position: relative; min-height: 380px; border-radius: 28px; padding: 2rem;
  background: radial-gradient(circle at 20% 20%, rgba(204, 20, 28, .25), transparent 55%), linear-gradient(135deg, var(--navy), var(--navy-2)); box-shadow: var(--shadow-lg); }
.about-card { position: absolute; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); }
.about-card-main { inset: 18% 12% auto 12%; padding: 2rem; display: flex; flex-direction: column; gap: .4rem; }
.about-card-main i { font-size: 2.2rem; color: var(--brand); }
.about-card-main span { color: var(--muted); font-size: .92rem; }
.about-card-small { padding: .8rem 1.1rem; font-weight: 600; font-size: .9rem; display: flex; align-items: center; gap: .6rem; left: 6%; bottom: 10%; }
.about-card-small i { color: var(--brand); font-size: 1.2rem; }
.about-card-b { left: auto; right: 6%; bottom: 20%; }
.check-list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1rem; }
.check-list li { display: flex; gap: .9rem; color: var(--muted); }
.check-list li i { font-size: 1.4rem; color: var(--brand); flex-shrink: 0; }
.check-list strong { color: var(--ink); }

/* ---------- Proceso ---------- */
.step { height: 100%; padding: 1.8rem; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--line); }
.step-num { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; font-weight: 800; color: #fff; margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); margin: 0; }

/* ---------- FAQ ---------- */
.accordion-item { border: 1px solid var(--line); border-radius: 16px !important; margin-bottom: .8rem; overflow: hidden; }
.accordion-button { font-weight: 700; padding: 1.2rem 1.4rem; background: #fff; }
.accordion-button:not(.collapsed) { color: var(--brand-dark); background: #fff; box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(204, 20, 28, .2); }
.accordion-body { color: var(--muted); padding-top: 0; }

/* ---------- CTA ---------- */
.cta-band { padding: 5rem 0; color: #fff; text-align: center;
  background: radial-gradient(circle at 80% 0%, rgba(204, 20, 28, .35), transparent 50%), linear-gradient(135deg, var(--navy), var(--navy-2)); }
.cta-band h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.cta-band p { color: rgba(255, 255, 255, .8); margin-bottom: 1.6rem; }

/* ---------- Contacto ---------- */
.contact-form { padding: 2rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-label { font-weight: 600; font-size: .9rem; }
.form-label .opt { font-weight: 400; color: var(--muted); }
.form-control, .form-select { border-radius: 12px; padding: .75rem 1rem; border-color: var(--line); }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(204, 20, 28, .18); }
.info-card { padding: 1.6rem; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--line); display: grid; gap: 1.2rem; }
.info-item { display: flex; gap: 1rem; color: var(--muted); font-size: .95rem; }
.info-item > i { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; background: #fff; color: var(--brand); font-size: 1.2rem; box-shadow: var(--shadow); }
.info-item strong { display: block; color: var(--ink); }
.info-item a { color: var(--muted); white-space: nowrap; }
.info-item a:hover { color: var(--brand-dark); }
.location-section { background: var(--brand-soft); }
.location-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.location-heading h2 { margin-bottom: .8rem; font-size: 2rem; }
.location-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1.5rem; }
.location-meta p { display: flex; align-items: flex-start; gap: .55rem; min-width: 0; margin: 0; color: var(--muted); }
.location-meta i { flex: 0 0 auto; margin-top: .2rem; color: var(--brand); }
.location-meta a { color: var(--brand-dark); font-weight: 600; white-space: nowrap; }
.location-meta a:hover { color: var(--brand); text-decoration: underline; }
.location-meta .location-email a { white-space: normal; overflow-wrap: anywhere; }
.location-heading > .btn { flex: 0 0 auto; }
.map-wrap { margin-top: 1.5rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 420px; }
.location-map { height: 420px; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 767.98px) {
  .location-heading { align-items: flex-start; flex-direction: column; gap: 1.2rem; }
  .location-heading h2 { font-size: 1.75rem; }
  .location-map { height: 340px; }
}
@media (max-width: 575.98px) {
  .location-meta { grid-template-columns: minmax(0, 1fr); }
  .location-map { height: 280px; }
}

/* ---------- Footer ---------- */
.footer { padding: 1.5rem 0; background: var(--brand-dark); color: rgba(255, 255, 255, .9); font-size: .9rem; }
.footer-brand { min-width: 0; }
.footer-brand img { width: auto; height: 60px; flex: 0 0 auto; }
.footer-legal { display: grid; gap: .2rem; min-width: 0; }
.footer-legal strong { color: #fff; font-size: .78rem; overflow-wrap: anywhere; }
.footer-ruc { font-weight: 600; }
.footer-legal small { color: rgba(255, 255, 255, .78); font-size: .78rem; }
.social { display: flex; gap: .6rem; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .1); transition: background .2s, transform .2s; }
.footer .social a:hover { background: #fff; color: var(--brand-dark); transform: translateY(-3px); }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 1040; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%;
  font-size: 1.9rem; color: #fff; background: var(--wa); box-shadow: 0 10px 26px rgba(37, 211, 102, .5); animation: pulse 2.4s infinite; }
.wa-float:hover { color: #fff; background: var(--wa-dark); transform: scale(1.06); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); } 70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 575.98px) {
  .hero { padding-top: 8rem; }
  .section { padding: 4.5rem 0; }
  .float-card-a { left: .4rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}


/* ==========================================================
   Iteración 2 · WhatsApp primero + formulario hacia API
   ========================================================== */

/* Estado de atención (lo rellena main.js según el horario de Lima) */
[data-status]::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: .5rem; border-radius: 50%; background: #9AA7B8; vertical-align: 0; }
[data-status].is-open::before { background: #25D366; box-shadow: 0 0 0 4px rgba(37, 211, 102, .25); }
[data-status].is-closed::before { background: #F5A623; box-shadow: 0 0 0 4px rgba(245, 166, 35, .25); }
.hero-status { margin: 1.1rem 0 0; font-size: .92rem; color: var(--muted); }

/* Hero: conversación de WhatsApp */
.chat-card { border-radius: 24px; overflow: hidden; background: #ECE5DD; box-shadow: var(--shadow-lg); max-width: 400px; margin-left: auto; }
.chat-head { display: flex; align-items: center; gap: .8rem; padding: .9rem 1.1rem; background: #075E54; color: #fff; }
.chat-head > i { margin-left: auto; font-size: 1.4rem; color: #25D366; }
.chat-avatar { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; font-weight: 800; background: var(--brand); color: #fff; }
.chat-title { line-height: 1.2; }
.chat-title strong { display: block; font-size: .95rem; }
.chat-title small { font-size: .78rem; opacity: .9; }
.chat-body { padding: 1.2rem 1rem; display: grid; gap: .6rem; min-height: 230px; }
.bubble { max-width: 82%; padding: .6rem .85rem; border-radius: 14px; font-size: .92rem; line-height: 1.35; box-shadow: 0 1px 1px rgba(0, 0, 0, .12); animation: pop .5s both; }
.bubble.in { background: #fff; color: #1f2937; border-top-left-radius: 4px; justify-self: start; }
.bubble.out { background: #D9FDD3; color: #1f2937; border-top-right-radius: 4px; justify-self: end; }
.bubble:nth-child(2) { animation-delay: .5s; } .bubble:nth-child(3) { animation-delay: 1s; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.96); } }
.chat-input { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 .8rem .9rem; padding: .7rem 1rem; border-radius: 999px; background: #fff; color: #6b7280; font-size: .92rem; }
.chat-input i { color: #fff; background: #25D366; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; }
.chat-input:hover { color: #374151; box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }

/* Misión / visión / valores */
.mv-card { height: 100%; padding: 2rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--brand); }
.mv-card i { font-size: 1.8rem; color: var(--brand); }
.mv-card h3 { font-size: 1.2rem; margin: .6rem 0 .4rem; }
.mv-card p { margin: 0; color: var(--muted); }
.value-card { height: 100%; padding: 1.3rem 1.4rem; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.value-card strong { color: var(--brand-dark); }
.value-card p { margin: .35rem 0 0; font-size: .92rem; color: var(--muted); }

/* Contacto: panel principal de WhatsApp */
.wa-panel { padding: 2.2rem; border-radius: 28px; color: #fff; box-shadow: var(--shadow-lg);
  background: radial-gradient(circle at 90% 0%, rgba(255, 255, 255, .18), transparent 45%), linear-gradient(135deg, #0B6B4A, #1DA851); }
.wa-panel h3 { font-size: 1.7rem; margin: .8rem 0 .4rem; }
.wa-panel-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; font-size: 1.9rem; background: rgba(255, 255, 255, .2); }
.wa-status { margin: 0 0 1.3rem; font-size: .95rem; opacity: .95; }
.wa-panel-btn { color: #0B6B4A; font-weight: 700; }
.wa-panel-btn:hover { color: #0B6B4A; background: #fff; }
.wa-chips-title { font-weight: 700; margin-bottom: .8rem; }
.wa-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.05rem; border-radius: 999px; font-weight: 600; font-size: .93rem;
  color: #0F172A; background: #fff; transition: transform .2s, box-shadow .2s; }
.chip i { color: #1DA851; }
.chip:hover { color: #0F172A; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, .18); }

/* Formulario */
.form-title { font-size: 1.3rem; margin: 0 0 .2rem; }
.form-sub { color: var(--muted); margin-bottom: 1.2rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(204, 20, 28, .18); border-color: var(--brand); }
#leadResult .alert { margin: 0; border-radius: 14px; font-size: .93rem; }
#leadResult .alert a { font-weight: 700; }

/* Botón flotante con etiqueta */
.wa-float-wrap { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 1040; display: flex; flex-direction: row-reverse; align-items: center; gap: .8rem; }
.wa-float-wrap .wa-float { position: static; }
.wa-float-label { position: relative; max-width: 230px; padding: .8rem 2rem .8rem 1rem; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: var(--shadow-lg); font-size: .85rem; line-height: 1.3; animation: pop .5s both; }
.wa-float-label[hidden] { display: none; }
.wa-float-label strong { display: block; }
.wa-float-label span { color: var(--muted); }
.wa-label-close { position: absolute; top: 2px; right: 6px; border: 0; background: none; font-size: 1.3rem; line-height: 1; color: #9AA7B8; padding: .2rem; }
@media (max-width: 575.98px) { .wa-float-label { max-width: 180px; } }

.pill a, a.pill {
  color: inherit;
  text-decoration: none;
}
/* Equipo profesional: carrusel adaptable */
.about-intro { max-width: 900px; margin: 0 auto 3rem; text-align: center; }
.about-intro h2 { max-width: 760px; margin: 0 auto 1rem; }
.about-intro .lead-muted { margin: 0 auto .8rem; }
.about-description { max-width: 820px; margin: 0 auto; color: var(--muted); font-size: 1.02rem; line-height: 1.8; }
.team-section { margin-top: 3.5rem; }
.team-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.25rem; }
.team-heading .eyebrow { margin-bottom: .4rem; }
.team-heading h3 { margin: 0 0 .35rem; font-size: 1.55rem; }
.team-heading p { margin: 0; color: var(--muted); }
.team-controls { display: flex; gap: .55rem; flex: 0 0 auto; }
.team-arrow { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(204,20,28,.2); border-radius: 50%; color: var(--brand-dark); background: #fff; transition: color .2s, background .2s, transform .2s; }
.team-arrow:hover:not(:disabled) { color: #fff; background: var(--brand); transform: translateY(-2px); }
.team-arrow:disabled { opacity: .4; cursor: default; }
.team-track { display: flex; gap: 1rem; overflow-x: auto; padding: .15rem .1rem .7rem; scroll-snap-type: x mandatory; scrollbar-width: none; }
.team-track::-webkit-scrollbar { display: none; }
.team-card { flex: 0 0 calc((100% - 2rem) / 3); min-width: 0; min-height: 245px; padding: 1.35rem; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 10px 28px rgba(10,27,51,.06); scroll-snap-align: start; transition: transform .2s, box-shadow .2s, border-color .2s; }
.team-card:hover { transform: translateY(-4px); border-color: rgba(204,20,28,.28); box-shadow: var(--shadow); }
.team-card-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 1rem; border-radius: 15px; color: #fff; font-size: 1.25rem; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }
.team-card-label { display: block; margin-bottom: .25rem; color: var(--brand-dark); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.team-card h4 { margin: 0 0 .45rem; font-size: 1.12rem; font-weight: 800; }
.team-card p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.team-progress { height: 3px; margin-top: .55rem; overflow: hidden; border-radius: 999px; background: rgba(204,20,28,.12); }
.team-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--brand); transition: width .2s; }
@media (max-width: 991.98px) { .team-card { flex-basis: calc((100% - 1rem) / 2); } }
@media (max-width: 575.98px) { .about-intro { margin-bottom: 2.5rem; text-align: left; } .team-heading { align-items: center; } .team-heading h3 { font-size: 1.3rem; } .team-heading p { max-width: 230px; font-size: .9rem; } .team-card { flex-basis: 84%; min-height: 225px; } .team-arrow { width: 40px; height: 40px; } }
/* Plantilla de perfil profesional */
.team-profile { padding: 1rem; }
.team-photo { width: 88px; height: 88px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; margin-bottom: .85rem; overflow: hidden; border: 1px dashed rgba(204,20,28,.4); border-radius: 14px; color: var(--brand-dark); background: linear-gradient(145deg, #fff, var(--brand-soft)); text-align: center; }
.team-photo i { font-size: 1.35rem; }
.team-photo span { max-width: 74px; font-size: .58rem; line-height: 1.15; }
.team-profile-info .team-card-label { margin-bottom: .2rem; }
.team-profile-info h4 { margin-bottom: .2rem; font-size: 1rem; }
.team-profile-info p { margin: 0 0 .45rem; font-size: .78rem; line-height: 1.45; }
.team-profile-info p strong { color: var(--ink); font-weight: 700; }
.team-profile-info .team-role { color: var(--brand-dark); font-weight: 700; }
.team-profile-info p span { color: var(--muted); }
@media (max-width: 575.98px) { .team-profile { padding: 1rem; } .team-photo { width: 82px; height: 82px; } }
/* Perfil en dos columnas: fotografía a la izquierda y datos a la derecha */
.team-profile { display: flex; align-items: flex-start; gap: .9rem; }
.team-photo { flex: 0 0 88px; width: 88px; height: 104px; margin: 0; }
.team-profile-info { min-width: 0; flex: 1 1 auto; }
.team-profile-info h4 { overflow-wrap: anywhere; }
@media (max-width: 575.98px) { .team-photo { flex-basis: 78px; width: 78px; height: 96px; } .team-profile { gap: .75rem; } }
/* Foto lista para completar únicamente la URI de src */
.team-photo { position: relative; flex: 0 0 88px; }
.team-photo-image { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.team-photo-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; padding: .25rem; text-align: center; }
.team-photo:has(.team-photo-image[src]:not([src=""])) .team-photo-image { display: block; }
.team-photo:has(.team-photo-image[src]:not([src=""])) .team-photo-placeholder { display: none; }
@media (max-width: 575.98px) { .team-photo { flex-basis: 78px; } }
/* Compactar la tarjeta de perfil al contenido */
.team-card.team-profile { min-height: 0; padding: .85rem; }
.team-card.team-profile .team-photo { height: 104px; }
@media (max-width: 575.98px) { .team-card.team-profile { min-height: 0; } .team-card.team-profile .team-photo { height: 96px; } }
/* FAQ en dos columnas con espacio reservado para imagen */
.faq-layout { display: grid; grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr); align-items: start; gap: clamp(2rem, 5vw, 5rem); }
.faq-visual { position: sticky; top: 100px; min-height: 590px; overflow: hidden; border-radius: 28px; color: #fff; background: radial-gradient(circle at 85% 12%, rgba(255,255,255,.16), transparent 32%), linear-gradient(145deg, var(--brand-dark), var(--brand), var(--brand-light)); box-shadow: var(--shadow-lg); }
.faq-visual-image { display: none; position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.faq-visual-placeholder { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: clamp(1.5rem, 3vw, 2.5rem); }
.faq-visual-icon { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: auto; border: 1px solid rgba(255,255,255,.4); border-radius: 18px; background: rgba(255,255,255,.12); font-size: 1.7rem; }
.faq-visual-kicker { margin: 0 0 .7rem; color: rgba(255,255,255,.76); font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.faq-visual h3 { max-width: 340px; margin: 0 0 .75rem; font-size: clamp(1.7rem, 2.5vw, 2.35rem); line-height: 1.12; }
.faq-visual p { max-width: 340px; margin: 0; color: rgba(255,255,255,.86); line-height: 1.65; }
.faq-visual-note { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.8rem; padding: .65rem .85rem; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: rgba(255,255,255,.1); font-size: .82rem; font-weight: 700; }
.faq-visual:has(.faq-visual-image[src]:not([src=""])) .faq-visual-image { display: block; }
.faq-visual:has(.faq-visual-image[src]:not([src=""])) .faq-visual-placeholder { text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.faq-visual:has(.faq-visual-image[src]:not([src=""])) .faq-visual-shade { position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(10,27,51,.08) 10%, rgba(10,27,51,.82) 100%); }
.faq-content .section-head { max-width: none; margin: 0 0 1.5rem; text-align: left; }
.faq-content .section-head h2 { margin-bottom: .65rem; }
.faq-content .section-head p { max-width: 560px; margin: 0; }
.faq-content #faqAcc { counter-reset: faq; }
.faq-content #faqAcc .accordion-item { counter-increment: faq; margin: 0; overflow: visible; border: 0; border-bottom: 1px solid var(--line); border-radius: 0 !important; background: transparent; }
.faq-content #faqAcc .accordion-header { margin: 0; }
.faq-content #faqAcc .accordion-button { display: flex; align-items: flex-start; gap: .85rem; padding: 1rem 0; color: var(--ink); background: transparent; box-shadow: none; font-size: .96rem; font-weight: 700; line-height: 1.45; }
.faq-content #faqAcc .accordion-button::before { content: counter(faq, decimal-leading-zero); flex: 0 0 2rem; padding-top: .08rem; color: var(--brand); font-size: .74rem; font-weight: 800; letter-spacing: .04em; }
.faq-content #faqAcc .accordion-button::after { width: 1.5rem; height: 1.5rem; flex: 0 0 1.5rem; margin-left: auto; background: none; content: "+"; color: var(--brand); font-size: 1.35rem; font-weight: 500; line-height: 1.35rem; text-align: center; transform: none; }
.faq-content #faqAcc .accordion-button:not(.collapsed) { color: var(--brand-dark); }
.faq-content #faqAcc .accordion-button:not(.collapsed)::after { content: "−"; }
.faq-content #faqAcc .accordion-button:focus { box-shadow: none; }
.faq-content #faqAcc .accordion-body { padding: 0 2.4rem 1.1rem; color: var(--muted); font-size: .92rem; line-height: 1.7; }
@media (max-width: 991.98px) { .faq-layout { grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr); gap: 2rem; } .faq-visual { min-height: 520px; } }
@media (max-width: 767.98px) { .faq-layout { grid-template-columns: 1fr; gap: 2.5rem; } .faq-visual { position: relative; top: auto; min-height: 300px; } .faq-visual-placeholder { min-height: 300px; } }
/* Marca Melendres como marca de agua discreta */
.faq-visual { isolation: isolate; }
.faq-visual::after { content: ""; position: absolute; z-index: 2; left: 50%; top: 50%; width: 150px; height: 154px; background-color: #fff; -webkit-mask: url('../assets/img/logo.svg') center / contain no-repeat; mask: url('../assets/img/logo.svg') center / contain no-repeat; opacity: .12; pointer-events: none; transform: translate(-50%, -50%); }
.faq-visual-placeholder { z-index: 3; }
.faq-visual-shade { z-index: 1 !important; }
.mv-card, .team-card.team-profile { position: relative; isolation: isolate; overflow: hidden; }
.mv-card > *, .team-card.team-profile > * { position: relative; z-index: 1; }
.mv-card::after, .team-card.team-profile::after { content: ""; position: absolute; z-index: 0; right: 12px; bottom: 10px; width: 42px; height: 44px; background: var(--brand); -webkit-mask: url('../assets/img/logo.svg') center / contain no-repeat; mask: url('../assets/img/logo.svg') center / contain no-repeat; opacity: .055; pointer-events: none; }

/* Marca de agua en la cabecera */
.hero::before { content: ""; position: absolute; z-index: 0; top: -42px; right: 5%; width: clamp(210px, 25vw, 360px); aspect-ratio: 1; background-color: var(--brand); -webkit-mask: url('../assets/img/logo.svg') center / contain no-repeat; mask: url('../assets/img/logo.svg') center / contain no-repeat; opacity: .035; pointer-events: none; }
.hero > .container { z-index: 1; }
@media (max-width: 575.98px) { .hero::before { top: 5px; right: -34px; width: 190px; opacity: .025; } }

/* Marca de agua central compartida por toda la página */
.hero::before, .faq-visual::after, .mv-card::after, .team-card.team-profile::after { display: none; }
body::after { content: ""; position: fixed; z-index: 1000; top: 50%; left: 50%; width: min(42vw, 440px); aspect-ratio: 1; background: var(--brand); -webkit-mask: url('../assets/img/logo.svg') center / contain no-repeat; mask: url('../assets/img/logo.svg') center / contain no-repeat; opacity: .025; transform: translate(-50%, -50%); pointer-events: none; }
@media (max-width: 575.98px) { body::after { width: 70vw; opacity: .02; } }
/* Logotipo encima del mensaje del panel FAQ */
.faq-visual-logo { display: block; width: 88px; height: 88px; margin: 0 0 1rem; object-fit: contain; object-position: left center; }
.seo-services-copy { max-width: 780px; margin: .8rem auto 0; font-size: .96rem !important; line-height: 1.7; }
