/* Corporativo Martínez — estilos del sitio (una página)
   Paleta aprobada: marfil #FCFAF6, tinta/vino oscuro #2A1017, vino de marca #5B2333,
   dorado oscuro #A67C2E, dorado claro #E8C87A, chocolate #3E2A20, fondo suave #F7F1EA. */

:root {
  --ivory: #FCFAF6;
  --ink: #2A1017;
  --burgundy: #5B2333;
  --gold: #A67C2E;
  --gold-light: #E8C87A;
  --chocolate: #3E2A20;
  --soft: #F7F1EA;
  --gray: #5C4A4F;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: var(--burgundy); }

/* ---------- Encabezado fijo ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--ivory);
  border-bottom: 1px solid var(--gold);
  height: var(--header-h);
}
.header-inner {
  max-width: 1180px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; gap: 24px; padding: 0 24px;
}
.brand img { height: 48px; width: auto; }
.main-nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
.main-nav a {
  color: var(--gray); text-decoration: none; font-size: 13.5px; white-space: nowrap;
}
.main-nav a:hover, .main-nav a:focus { color: var(--ink); text-decoration: underline; }
.btn-whatsapp-header {
  background: var(--ink); color: #fff; text-decoration: none;
  font-weight: bold; font-size: 13.5px; white-space: nowrap;
  padding: 9px 16px; border-radius: 999px;
}
.btn-whatsapp-header:hover, .btn-whatsapp-header:focus { background: var(--burgundy); }

main { padding-top: var(--header-h); }

/* ---------- Secciones ---------- */
.section { padding: 72px 24px; scroll-margin-top: var(--header-h); }
.section-alt { background: var(--soft); }
.section-inner { max-width: 1080px; margin: 0 auto; }
.eyebrow {
  color: var(--gold); font-weight: bold; font-size: 13px;
  letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 6px;
}
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px; font-weight: bold; margin-bottom: 28px;
}
h3 { font-size: 19px; }
.section-lead { max-width: 820px; margin-bottom: 28px; }

.two-col { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.col-text p { margin-bottom: 14px; }

.photo-frame {
  position: relative; padding: 6px; background: var(--ivory);
  border: 1.5px solid var(--gold); border-radius: 10px;
}
.photo-frame img { border-radius: 6px; width: 100%; height: auto; }
.photo-portrait { max-width: 280px; justify-self: end; }

/* ---------- Portada ---------- */
.hero {
  position: relative; text-align: center;
  padding: 84px 24px 64px; overflow: hidden; scroll-margin-top: var(--header-h);
}
.hero-motif {
  position: absolute; left: 50%; top: 118px; transform: translate(-50%, -50%);
  width: 340px; height: 340px; border-radius: 50%;
  background: var(--burgundy); opacity: 0.10; pointer-events: none;
}
.hero-logo { height: 118px; width: auto; margin: 0 auto 14px; position: relative; }
.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px; letter-spacing: 1px; position: relative;
}
.hero-denomination { color: var(--gold); font-size: 19px; margin: 8px 0 22px; position: relative; }
.hero-text { max-width: 640px; margin: 0 auto 10px; font-size: 16.5px; position: relative; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin: 26px 0 18px; position: relative; }
.hero-note { color: var(--gray); font-size: 14px; position: relative; }

.btn {
  display: inline-block; text-decoration: none; font-weight: bold; font-size: 15px;
  padding: 13px 26px; border-radius: 999px; border: 1.5px solid var(--ink); cursor: pointer;
}
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover, .btn-solid:focus { background: var(--burgundy); border-color: var(--burgundy); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover, .btn-outline:focus { background: var(--soft); }

/* ---------- Principios ---------- */
.principles-title { margin: 40px 0 18px; font-size: 20px; }
.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.principle-card { background: var(--soft); border-radius: 8px; padding: 16px 18px; }
.section-alt .principle-card { background: var(--ivory); }
.principle-card h4 { font-size: 16px; margin-bottom: 5px; }
.principle-card p { color: var(--gray); font-size: 14px; }

/* ---------- Titular ---------- */
.titular-name { font-size: 22px; font-weight: bold; }
.titular-role { color: var(--gold); margin-bottom: 16px !important; }

/* ---------- Áreas de práctica ---------- */
.areas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.area-head {
  background: var(--ink); color: #fff; border-radius: 7px;
  padding: 10px 16px; font-size: 18px; margin-bottom: 18px;
}
.area-list { list-style: none; }
.area-list li { margin-bottom: 14px; padding-left: 6px; }
.area-list strong { display: block; font-size: 15.5px; }
.area-list strong::before { content: "— "; color: var(--gold); }
.area-list span { color: var(--gray); font-size: 14.5px; padding-left: 18px; display: block; }
.areas-note { text-align: center; font-style: italic; color: var(--gray); margin-top: 28px; }

/* ---------- Cómo trabajamos ---------- */
.steps { list-style: none; max-width: 860px; }
.steps li { display: flex; gap: 20px; margin-bottom: 26px; align-items: flex-start; }
.step-num {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold); color: #fff; font-weight: bold; font-size: 19px;
  display: flex; align-items: center; justify-content: center;
}
.steps h3 { margin-bottom: 3px; }
.steps p { color: var(--gray); }

.team-block { margin-top: 44px; }
.team-block h3 { margin-bottom: 16px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.team-card { background: var(--ivory); border: 1px solid var(--gold); border-radius: 8px; padding: 16px 18px; }
.team-name { font-weight: bold; font-size: 16px; margin-bottom: 4px; }
.team-role { color: var(--gray); font-size: 14px; }

/* ---------- Honorarios ---------- */
.fees-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.fee-card { background: var(--soft); border-radius: 9px; padding: 22px; }
.fee-card h3 { margin-bottom: 8px; }
.fee-card p { color: var(--chocolate); font-size: 15px; }
.interview-band { background: var(--ink); border-radius: 9px; padding: 20px 24px; color: #fff; }
.interview-title { color: var(--gold-light); font-weight: bold; margin-bottom: 6px; }
.fees-note { text-align: center; font-style: italic; color: var(--gray); margin-top: 20px; }

/* ---------- Experiencia ---------- */
.exp-lead { font-weight: bold; font-size: 18px; }

/* ---------- Preguntas frecuentes ---------- */
.faq-list { max-width: 860px; }
.faq-item { border-bottom: 1px solid #E3D8CE; padding: 6px 0; }
.faq-item summary {
  cursor: pointer; font-weight: bold; font-size: 16.5px; padding: 12px 4px; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--gold); font-size: 20px; line-height: 1; }
.faq-item[open ] summary::after { content: "–"; }
.faq-item p { padding: 0 4px 16px; color: var(--chocolate); max-width: 780px; }

/* ---------- Trivia ---------- */
.trivia-card {
  max-width: 640px; margin: 0 auto; text-align: center;
  background: var(--ivory); border: 1.5px solid var(--gold); border-radius: 12px;
  padding: 34px 30px;
}
.trivia-tag { color: var(--gold); font-weight: bold; letter-spacing: 1.2px; text-transform: uppercase; font-size: 13.5px; margin-bottom: 12px; }
.trivia-question { font-size: 20px; font-weight: bold; margin-bottom: 22px; }
.trivia-answer { margin-top: 22px; border-top: 1px solid #E3D8CE; padding-top: 18px; text-align: left; }
.trivia-verdict { color: var(--burgundy); font-weight: bold; font-size: 19px; margin-bottom: 8px; text-align: center; }

/* ---------- Contacto ---------- */
.contact-label { color: var(--gold); font-weight: bold; text-transform: uppercase; font-size: 13.5px; letter-spacing: 0.8px; margin: 18px 0 3px !important; }
.contact-label:first-child { margin-top: 0 !important; }
.contact-data p { font-size: 16.5px; }

/* ---------- Pie ---------- */
.site-footer { background: var(--ink); color: #fff; padding: 42px 24px; text-align: center; }
.footer-inner { max-width: 900px; margin: 0 auto; }
.footer-denomination { font-weight: bold; font-size: 16px; margin-bottom: 10px; }
.footer-address { color: #CBB9BC; font-size: 14px; margin-bottom: 16px; }
.footer-social { display: flex; gap: 22px; justify-content: center; margin-bottom: 16px; }
.footer-social a { color: var(--gold-light); text-decoration: none; font-size: 14.5px; }
.footer-social a:hover, .footer-social a:focus { text-decoration: underline; }
.footer-legal { color: #CBB9BC; font-size: 13.5px; }
.footer-legal a { color: #CBB9BC; }

/* ---------- Aviso de privacidad ---------- */
.legal-page { max-width: 820px; margin: 0 auto; padding: 120px 24px 72px; }
.legal-page h1 { font-family: Georgia, "Times New Roman", serif; font-size: 30px; margin-bottom: 22px; }
.legal-page p { margin-bottom: 14px; }
.back-link { display: inline-block; margin-top: 18px; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  :root { --header-h: 112px; }
  .header-inner { flex-wrap: wrap; row-gap: 0; align-content: center; padding: 6px 16px; }
  .brand img { height: 40px; }
  .main-nav {
    display: flex; flex-basis: 100%; order: 3; margin-left: 0;
    flex-wrap: nowrap; overflow-x: auto; gap: 16px; padding: 4px 0 6px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { font-size: 13px; }
  .two-col { grid-template-columns: 1fr; }
  .photo-portrait { justify-self: start; }
  .principles-grid, .team-grid { grid-template-columns: 1fr; }
  .areas-grid, .fees-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 31px; }
  h2 { font-size: 27px; }
  .section { padding: 52px 18px; }
}
