/* =========================================================
   Adjar Legal — hoja de estilos
   ========================================================= */

:root {
  --green: #1f3a2d;
  --green-2: #2b4b3b;
  --green-3: #172c22;
  --gold: #b3864a;
  --gold-2: #9c7240;
  --gold-light: #d9b77e;
  --cream: #faf6ef;
  --cream-2: #f3ede2;
  --white: #ffffff;
  --text-dark: #17201b;
  --text-muted: #4e5a54;
  --border: #e3d9c8;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ea952;
  --radius: 4px;
  --shadow: 0 20px 40px -20px rgba(23, 44, 34, 0.3);
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-display: "Marcellus", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--text-dark);
  line-height: 1.12;
  margin: 0 0 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 16px; color: var(--text-muted); }
strong { font-weight: 600; }

a { color: inherit; text-decoration: none; }

.icon { width: 1.1em; height: 1.1em; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--gold);
  color: var(--white);
}
.btn-primary:hover { background: var(--gold-2); box-shadow: var(--shadow); }
.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border-color: var(--text-dark);
}
.btn-outline .icon-wa { width: 1.3em; height: 1.3em; color: var(--whatsapp-dark); }
.btn-outline:hover .icon-wa { color: var(--whatsapp); }
.btn-outline:hover { background: var(--text-dark); color: var(--cream); }
.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 16px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
  color: var(--gold);
}
.logo-mark { width: 38px; height: 32px; flex-shrink: 0; }
.logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.logo-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.logo-tag {
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  padding-left: 0.32em;
  text-transform: uppercase;
}
.main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
.main-nav a {
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--text-dark);
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width 0.2s ease;
}
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 96px;
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 46%;
  background: url("../assets/fachada.webp") center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 35%);
          mask-image: linear-gradient(to right, transparent 0%, #000 35%);
}
.hero-inner { position: relative; }
.hero-text { max-width: 600px; }
.eyebrow, .section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--gold-2);
  margin-bottom: 18px;
  display: block;
}
.hero-sub { font-size: 1.06rem; max-width: 52ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 32px; }
.hero-trust {
  list-style: none;
  padding: 22px 0 0; margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  position: relative;
}
.hero-trust::before,
.section-head::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 44px; height: 2px;
  background: var(--gold);
}
.hero-trust li {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-dark);
}
.hero-trust li + li::before {
  content: "·";
  margin: 0 12px;
  color: var(--gold);
  font-weight: 700;
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--cream-2); }
.section-head { position: relative; padding-top: 22px; max-width: 680px; margin-bottom: 48px; }
.section-sub { font-size: 1.06rem; }

/* ---------- Equipo ---------- */
#equipo .section-head { max-width: 820px; margin-bottom: 24px; }
.about-grid {
  display: grid;
  grid-template-columns: minmax(260px, 400px) 1fr;
  gap: 72px;
  align-items: start;
}
.about-photo { margin: 10px 0 0 10px; }
.about-photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  outline: 1px solid var(--gold);
  outline-offset: 10px;
  box-shadow: var(--shadow);
}

/* ---------- Fotos ---------- */
.photo { margin: 0; }
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
.about-text { max-width: 820px; }
.about-text p { font-size: 1.04rem; }
.about-text .about-highlight {
  margin-top: 24px;
  padding-left: 18px;
  border-left: 2px solid var(--gold);
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--text-dark);
}

/* ---------- Áreas ---------- */
.services-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 56px;
}
.services-intro .section-head { margin-bottom: 0; }
.services-photo { aspect-ratio: 3 / 2; box-shadow: var(--shadow); }

.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}
.area {
  background: var(--cream-2);
  padding: 34px 30px;
}
.area-icon {
  color: var(--gold);
  margin-bottom: 16px;
}
.area-icon svg { width: 46px; height: 46px; }
.area h3 { font-size: 1.3rem; margin-bottom: 10px; }
.area p { font-size: 0.95rem; margin: 0; }
.area-wide {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.area-wide .area-icon { margin-bottom: 0; }
.area-wide p { max-width: 70ch; }

/* ---------- Cómo trabajo ---------- */
.section-dark { background: var(--green); }
.section-dark h2, .section-dark h3 { color: var(--cream); }
.section-dark p { color: rgba(250, 246, 239, 0.78); }
.work-photo {
  aspect-ratio: 21 / 8;
  margin-bottom: 56px;
}
.work-photo img { object-position: center 30%; }

.steps {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.step { padding: 4px 36px; }
.step:first-child { padding-left: 0; }
.step + .step { border-left: 1px solid rgba(217, 183, 126, 0.55); }
.step-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 1;
  color: var(--gold-light);
  margin-bottom: 14px;
}
.step h3 { margin-bottom: 10px; font-size: 1.4rem; }
.step p { font-size: 0.97rem; margin: 0; }

/* ---------- Contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact-cta { margin: 24px 0 8px; }
.contact-list {
  list-style: none;
  padding: 0; margin: 32px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-list li a,
.contact-list li div {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--border);
}
.contact-list .icon {
  width: 22px; height: 22px;
  color: var(--gold);
  flex-shrink: 0;
}
.contact-list strong {
  display: block;
  color: var(--text-dark);
  font-size: 0.85rem;
}
.contact-list span span {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.contact-list li a:hover strong { color: var(--gold-2); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.form-row { margin-bottom: 18px; }
.form-row-half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 6px;
}
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: var(--cream);
  color: var(--text-dark);
  transition: border-color 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
}
textarea { resize: vertical; }
.form-privacy { font-size: 0.78rem; margin-bottom: 18px; }
.form-status { margin: 14px 0 0; font-size: 0.9rem; font-weight: 600; min-height: 1.2em; }
.form-status.success { color: var(--whatsapp-dark); }
.form-status.error { color: #c0392b; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-3);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand p { color: rgba(255,255,255,0.6); margin-top: 16px; max-width: 34ch; }
.logo-footer { color: var(--gold-light); }
.footer-col h5 {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 16px;
}
.footer-col a, .footer-col span {
  display: block;
  color: rgba(255,255,255,0.65);
  padding: 6px 0;
  font-size: 0.92rem;
}
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 22px 24px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom p { color: inherit; margin: 0; }

/* ---------- Mobile floating bar ---------- */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--cream);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 20px rgba(23,44,34,0.12);
  padding: 10px 14px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  gap: 12px;
}
.mobile-bar-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
  background: var(--gold);
  color: var(--white);
}
.mobile-bar-btn-whatsapp { background: var(--whatsapp); }
.icon-wa { width: 1.25em; height: 1.25em; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .hero { padding: 0 0 64px; }
  .hero-photo {
    position: relative;
    width: 100%;
    height: 320px;
    background-position: center 40%;
    -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
  }
  .areas-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-photo { max-width: 320px; }
  .services-intro { grid-template-columns: 1fr; gap: 36px; }
  .work-photo { aspect-ratio: 16 / 9; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .step, .step:first-child { padding: 0 0 0 24px; border-left: 1px solid rgba(217, 183, 126, 0.55); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: 12px 0; }
  .nav-toggle { display: flex; }
  .header-actions .btn-whatsapp.btn-sm { display: none; }
  .logo-name { font-size: 1.35rem; }
  .logo-mark { width: 32px; height: 27px; }
  .area-wide { flex-direction: column; gap: 0; }
  .area-wide .area-icon { margin-bottom: 16px; }
  .hero-photo { height: 240px; }
  .section { padding: 64px 0; }
  .areas-grid { grid-template-columns: 1fr; }
  .area { padding: 28px 4px; }
  .form-row-half { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: left; }
  .footer-bottom { flex-direction: column; text-align: left; }
  .mobile-bar { display: flex; }
  body { padding-bottom: 78px; }
}

@media (max-width: 420px) {
  .container { padding: 0 16px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
}
