/* ===========================================================
   Altora Abogados — Hoja de estilos
   Paleta beige clara · estética profesional y sobria
   =========================================================== */

:root {
  --beige-100: #faf6ee;
  --beige-200: #f5efe2;
  --beige-300: #ece3d2;
  --beige-400: #ddd0b8;
  --ink:       #22303f;
  --ink-soft:  #54606e;
  --gold:      #b08d4c;
  --gold-dark: #927133;
  --navy:      #1e3a5f;
  --navy-dark: #16293f;
  --line:      #e2d8c6;
  --white:     #fffdf9;
  --shadow:    0 10px 30px rgba(60, 48, 30, 0.08);
  --radius:    4px;
  --maxw:      1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--beige-200);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: 0.2px;
}

a { color: var(--gold-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header / Navegación ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 54px; width: auto; display: block; }
.footer-logo { height: 70px; width: auto; display: block; margin-bottom: 6px; }
.nav-links { display: flex; gap: 30px; list-style: none; align-items: center; }
.nav-links a {
  color: var(--ink-soft); font-size: 14px; letter-spacing: .5px;
  text-transform: uppercase; font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-dark); }
.nav-cta {
  border: 1px solid var(--gold); color: var(--gold-dark);
  padding: 9px 18px; border-radius: var(--radius);
  font-size: 13px !important; letter-spacing: 1px;
}
.nav-cta:hover { background: var(--gold); color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; font-size: 26px; color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(rgba(244, 238, 226, 0.86), rgba(236, 227, 210, 0.92)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 59h60M0 0h60' stroke='%23d8cdb6' stroke-width='0.5'/%3E%3C/svg%3E");
  padding: 110px 0 100px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.hero .eyebrow {
  display: inline-block; letter-spacing: 4px; text-transform: uppercase;
  font-size: 12px; color: var(--gold-dark); margin-bottom: 22px;
}
.hero h1 { font-size: clamp(40px, 6vw, 68px); margin-bottom: 22px; }
.hero p { max-width: 640px; margin: 0 auto 34px; color: var(--ink-soft); font-size: 19px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block; padding: 13px 30px; border-radius: var(--radius);
  font-size: 14px; letter-spacing: 1px; text-transform: uppercase; font-weight: 600;
  transition: all .2s ease; cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--gold); color: var(--white); }
.btn-primary:hover { background: var(--gold-dark); color: var(--white); }
.btn-ghost { border-color: var(--ink); color: var(--ink); margin-left: 12px; }
.btn-ghost:hover { background: var(--ink); color: var(--beige-100); }

/* ---------- Secciones ---------- */
section { padding: 84px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head .eyebrow {
  letter-spacing: 4px; text-transform: uppercase; font-size: 12px;
  color: var(--gold-dark); display: block; margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 16px; }
.section-head p { color: var(--ink-soft); }

.bg-light { background: var(--beige-100); }
.bg-white { background: var(--white); }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(60,48,30,.12); }
.card .icon {
  width: 46px; height: 46px; margin-bottom: 18px;
  color: var(--gold-dark);
}
.card h3 { font-size: 25px; margin-bottom: 12px; }
.card p { color: var(--ink-soft); font-size: 16px; }

/* ---------- Equipo ---------- */
.team-card { text-align: center; }
.avatar {
  width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 22px;
  background: linear-gradient(135deg, var(--beige-300), var(--beige-400));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif; font-size: 42px; color: var(--gold-dark);
  border: 2px solid var(--gold);
}
.team-card .role { color: var(--gold-dark); letter-spacing: 2px; text-transform: uppercase; font-size: 12px; margin: 4px 0 16px; }
.team-card ul { list-style: none; text-align: left; margin-top: 18px; }
.team-card ul li { padding: 7px 0 7px 26px; position: relative; color: var(--ink-soft); font-size: 15px; border-top: 1px solid var(--line); }
.team-card ul li:before { content: "§"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* Equipo: tarjetas anchas, SIEMPRE las tres en fila en escritorio */
.equipo-section .container { max-width: 1280px; }
.equipo-grid { grid-template-columns: repeat(3, 1fr); gap: 26px; }
.equipo-grid .team-card { padding: 38px 30px; }
.equipo-grid .team-card ul li { font-size: 14.5px; }
/* Solo se apilan en móvil */
@media (max-width: 720px) {
  .equipo-grid { grid-template-columns: 1fr; }
  .equipo-grid .team-card { padding: 32px 26px; }
}

/* ---------- Lista de valores / texto ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose p { margin-bottom: 20px; color: var(--ink-soft); }
.lead { font-size: 20px; color: var(--ink); }

.value-list { list-style: none; display: grid; gap: 18px; margin-top: 30px; }
.value-list li { padding-left: 34px; position: relative; color: var(--ink-soft); }
.value-list li:before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 14px; height: 14px; border: 2px solid var(--gold); transform: rotate(45deg);
}
.value-list strong { color: var(--ink); }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-info dl { margin-top: 10px; }
.contact-info dt { letter-spacing: 2px; text-transform: uppercase; font-size: 12px; color: var(--gold-dark); margin-top: 24px; }
.contact-info dd { font-size: 18px; margin-top: 4px; }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 13px; letter-spacing: .5px; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 7px; }
.form-field input, .form-field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--white); font-family: inherit; font-size: 16px; color: var(--ink);
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--gold); }
.map-embed { margin-top: 50px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- CTA banda ---------- */
.cta-band { background: var(--navy); color: var(--beige-100); text-align: center; }
.cta-band h2 { color: var(--beige-100); }
.cta-band p { color: var(--beige-300); }

/* ---------- Footer ---------- */
.site-footer { background: var(--beige-300); border-top: 1px solid var(--line); padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font-size: 16px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; font-family: 'Inter', sans-serif; font-weight: 600; }
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 9px; }
.footer-grid a { color: var(--ink-soft); font-size: 15px; }
.footer-bottom { margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--line); text-align: center; font-size: 13px; color: var(--ink-soft); }
.footer-bottom .disclaimer { max-width: 720px; margin: 0 auto 12px; font-size: 12.5px; }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: var(--beige-300); border-bottom: 1px solid var(--line); padding: 70px 0; text-align: center; }
.page-hero .eyebrow { letter-spacing: 4px; text-transform: uppercase; font-size: 12px; color: var(--gold-dark); display:block; margin-bottom: 12px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 54px); }
.page-hero p { color: var(--ink-soft); max-width: 600px; margin: 14px auto 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--beige-100); flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--line); display: none; padding: 10px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 14px 0; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .btn-ghost { margin-left: 0; margin-top: 12px; }
}

/* ---------- WhatsApp botón flotante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.22);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float:hover { transform: scale(1.07); color: #fff; box-shadow: 0 10px 26px rgba(0,0,0,.28); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* ---------- Avisos del formulario ---------- */
.form-alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 22px; font-size: 15px; }
.form-alert.ok { background: #e7f6ec; border: 1px solid #b6e2c4; color: #1d6b3a; }
.form-alert.error { background: #fbeaea; border: 1px solid #f0c2c2; color: #9b2c2c; }

/* ---------- Redes sociales en el pie ---------- */
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--beige-200); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); transition: all .2s ease;
}
.footer-social a:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.footer-social svg { width: 19px; height: 19px; fill: currentColor; }

/* ---------- Enlaces legales en el pie ---------- */
.legal-links { margin-top: 12px; font-size: 13px; }
.legal-links a { color: var(--ink-soft); }
.legal-links a:hover { color: var(--gold-dark); }
.legal-links span { color: var(--line); margin: 0 6px; }

/* ---------- Páginas legales ---------- */
.legal-content { max-width: 820px; margin: 0 auto; }
.legal-content h2 { font-size: 26px; margin: 34px 0 12px; }
.legal-content h3 { font-size: 20px; margin: 24px 0 8px; }
.legal-content p, .legal-content li { color: var(--ink-soft); }
.legal-content ul { margin: 0 0 18px 22px; }
.legal-content li { margin-bottom: 8px; }
.legal-content .placeholder { background: #fbf3df; border-bottom: 1px dashed var(--gold); padding: 0 3px; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 14px 0 24px; font-size: 15px; }
.legal-content th, .legal-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.legal-content th { background: var(--beige-200); }

/* ---------- Mapa con consentimiento ---------- */
.map-consent {
  background: var(--beige-200); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 24px; text-align: center; color: var(--ink-soft);
}
.map-consent p { margin-bottom: 16px; }

/* ---------- Checkbox de privacidad en formulario ---------- */
.form-check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; font-size: 14px; color: var(--ink-soft); }
.form-check input { margin-top: 4px; }

/* ---------- Banner de cookies ---------- */
#cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
  background: var(--ink); color: var(--beige-100);
  padding: 20px 24px; box-shadow: 0 -6px 24px rgba(0,0,0,.18);
}
#cookie-banner .cookie-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: space-between;
}
#cookie-banner p { font-size: 14.5px; color: var(--beige-200); margin: 0; flex: 1 1 460px; line-height: 1.55; }
#cookie-banner a { color: var(--beige-100); text-decoration: underline; }
#cookie-banner .cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-btn {
  padding: 10px 20px; border-radius: var(--radius); font-size: 13px; letter-spacing: .5px;
  text-transform: uppercase; font-weight: 600; cursor: pointer; border: 1px solid transparent; transition: all .2s ease;
}
.cookie-btn.accept { background: var(--gold); color: #fff; }
.cookie-btn.accept:hover { background: var(--gold-dark); }
.cookie-btn.reject { background: transparent; color: var(--beige-100); border-color: var(--beige-300); }
.cookie-btn.reject:hover { background: rgba(255,255,255,.1); }
.cookie-btn.config { background: transparent; color: var(--beige-200); border-color: transparent; text-decoration: underline; }
@media (max-width: 860px) {
  #cookie-banner .cookie-actions { width: 100%; }
  .cookie-btn { flex: 1; text-align: center; }
}

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; }
.post-thumb { display: block; margin: -34px -30px 18px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.post-thumb img { width: 100%; height: 200px; object-fit: cover; display: block; }
.post-meta { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 6px; }
.post-card h3 { font-size: 24px; margin-bottom: 10px; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--gold-dark); }
.post-readmore { margin-top: 14px; font-weight: 600; font-size: 14px; letter-spacing: .5px; text-transform: uppercase; }
.post-article .post-hero-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); margin-bottom: 28px; border: 1px solid var(--line); }
.post-article p { font-size: 17px; }
