/* ==========================================================
   Diez DMR Asociados — Estudio Legal
   Paleta: #162B2F (marca), #F3F1ED (crema), #616161 (texto gris)
   ========================================================== */

:root {
  --dark: #162B2F;
  --dark-2: #0f1f22;
  --cream: #F3F1ED;
  --gray: #616161;
  --white: #FFFFFF;
  --gold: #A68F65;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', Arial, sans-serif;

  --container-w: 1180px;
  --radius: 6px;
  --transition: .25s ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--dark);
  margin: 0 0 16px;
  line-height: 1.25;
}

p { margin: 0 0 16px; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

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

ul { margin: 0; padding: 0; list-style: none; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--dark);
  color: var(--white);
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}
.btn-primary:hover { background: var(--dark-2); color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline:hover { background: var(--white); color: var(--dark); }

.btn-white {
  background: var(--white);
  color: var(--dark);
  border-color: var(--white);
}
.btn-white:hover { background: transparent; color: var(--white); }

/* ---------- Section headings ---------- */
.section-title {
  position: relative;
  font-size: clamp(26px, 3vw, 34px);
  padding-bottom: 18px;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 3px;
  width: 60px;
  background: var(--gold);
}
.section-title--left::after { left: 0; }
.section-title--center { text-align: center; }
.section-title--center::after { left: 50%; transform: translateX(-50%); }
.section-title--white { color: var(--white); }

.section-lead {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px;
  font-size: 16px;
}
.section-lead--white { color: rgba(255,255,255,.8); }

/* ---------- Icons (inline SVG via mask, no external deps) ---------- */
.icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  vertical-align: middle;
}
.icon-phone { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.2 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1-9.4 0-17-7.6-17-17 0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.2.2 2.4.6 3.6.1.4 0 .8-.2 1L6.6 10.8z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.2 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1-9.4 0-17-7.6-17-17 0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.2.2 2.4.6 3.6.1.4 0 .8-.2 1L6.6 10.8z'/%3E%3C/svg%3E"); }
.icon-pin { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C7.6 2 4 5.6 4 10c0 6 8 12 8 12s8-6 8-12c0-4.4-3.6-8-8-8zm0 11a3 3 0 110-6 3 3 0 010 6z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C7.6 2 4 5.6 4 10c0 6 8 12 8 12s8-6 8-12c0-4.4-3.6-8-8-8zm0 11a3 3 0 110-6 3 3 0 010 6z'/%3E%3C/svg%3E"); }
.icon-mail { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 5h20v14H2V5zm2 2v.01L12 13l8-5.99V7H4zm0 3.24V17h16v-6.76l-8 6-8-6z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 5h20v14H2V5zm2 2v.01L12 13l8-5.99V7H4zm0 3.24V17h16v-6.76l-8 6-8-6z'/%3E%3C/svg%3E"); }
.icon-whatsapp { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.5 14.4c-.3-.1-1.6-.8-1.9-.9-.3-.1-.4-.1-.6.1-.2.3-.7.9-.8 1-.2.2-.3.2-.5.1-.3-.1-1.2-.4-2.2-1.4-.8-.7-1.4-1.6-1.5-1.9-.2-.3 0-.4.1-.6.1-.1.3-.3.4-.5.1-.1.2-.3.2-.4.1-.2 0-.3 0-.4-.1-.1-.6-1.4-.8-1.9-.2-.5-.4-.4-.6-.4h-.5c-.2 0-.4.1-.6.3-.2.3-.8.8-.8 1.9s.8 2.2.9 2.4c.1.2 1.6 2.4 3.8 3.4.5.2 1 .4 1.3.5.5.2 1 .1 1.4.1.4-.1 1.3-.5 1.5-1 .2-.5.2-.9.1-1-.1-.1-.2-.1-.4-.2zM12 2a10 10 0 00-8.6 15L2 22l5.1-1.3A10 10 0 1012 2zm0 18.2c-1.6 0-3.1-.4-4.4-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1112 20.2z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.5 14.4c-.3-.1-1.6-.8-1.9-.9-.3-.1-.4-.1-.6.1-.2.3-.7.9-.8 1-.2.2-.3.2-.5.1-.3-.1-1.2-.4-2.2-1.4-.8-.7-1.4-1.6-1.5-1.9-.2-.3 0-.4.1-.6.1-.1.3-.3.4-.5.1-.1.2-.3.2-.4.1-.2 0-.3 0-.4-.1-.1-.6-1.4-.8-1.9-.2-.5-.4-.4-.6-.4h-.5c-.2 0-.4.1-.6.3-.2.3-.8.8-.8 1.9s.8 2.2.9 2.4c.1.2 1.6 2.4 3.8 3.4.5.2 1 .4 1.3.5.5.2 1 .1 1.4.1.4-.1 1.3-.5 1.5-1 .2-.5.2-.9.1-1-.1-.1-.2-.1-.4-.2zM12 2a10 10 0 00-8.6 15L2 22l5.1-1.3A10 10 0 1012 2zm0 18.2c-1.6 0-3.1-.4-4.4-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1112 20.2z'/%3E%3C/svg%3E"); }
.icon-handshake { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 11l5-5 4 2 2-2 4 4-1 1-3-2-2 2 5 5-2 2-5-5-2 2-4-4z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 11l5-5 4 2 2-2 4 4-1 1-3-2-2 2 5 5-2 2-5-5-2 2-4-4z'/%3E%3C/svg%3E"); }
.icon-loyalty { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7-4.4-9.5-9C.8 8.6 2 5 5.4 4.2 7.6 3.7 9.8 4.8 12 7c2.2-2.2 4.4-3.3 6.6-2.8C22 5 23.2 8.6 21.5 12 19 16.6 12 21 12 21z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7-4.4-9.5-9C.8 8.6 2 5 5.4 4.2 7.6 3.7 9.8 4.8 12 7c2.2-2.2 4.4-3.3 6.6-2.8C22 5 23.2 8.6 21.5 12 19 16.6 12 21 12 21z'/%3E%3C/svg%3E"); }
.icon-bank { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l10 6H2l10-6zM4 10h2v8H4v-8zm14 0h2v8h-2v-8zm-9 0h2v8H9v-8zm-6 9h18v2H3v-2z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l10 6H2l10-6zM4 10h2v8H4v-8zm14 0h2v8h-2v-8zm-9 0h2v8H9v-8zm-6 9h18v2H3v-2z'/%3E%3C/svg%3E"); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--dark);
  color: rgba(255,255,255,.85);
  font-size: 13px;
}
.topbar__inner {
  display: flex;
  justify-content: flex-end;
  gap: 32px;
  padding: 10px 24px;
  flex-wrap: wrap;
}
.topbar__item { display: flex; align-items: center; gap: 6px; }
.topbar__item a:hover { color: var(--gold); }
.topbar__muted { color: rgba(255,255,255,.55); margin-left: 4px; }
.topbar .icon { color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 24px;
}
.site-header__logo img { height: 54px; width: auto; }

.main-nav ul { display: flex; gap: 34px; }
.main-nav a {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--dark);
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.main-nav a:hover::after { width: 100%; }

.header-cta { margin-left: auto; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 601;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
}
.nav-toggle[aria-expanded="true"] span {
  background: var(--dark);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  z-index: 499;
}
.nav-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(22,43,47,.88) 0%, rgba(22,43,47,.55) 60%, rgba(22,43,47,.35) 100%);
}
.hero__content { position: relative; z-index: 2; max-width: 640px; }
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 18px;
}
.hero__title {
  color: var(--white);
  font-size: clamp(36px, 5.5vw, 62px);
  margin-bottom: 6px;
}
.hero__subtitle {
  font-size: 16px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  margin-bottom: 34px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Intro ---------- */
.intro { padding: 100px 0; background: var(--white); }
.intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}
.intro__text p { font-size: 17px; }

/* Accordion */
.accordion__item {
  border-bottom: 1px solid #e5e2dc;
}
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 19px;
  color: var(--dark);
  cursor: pointer;
}
.accordion__icon {
  width: 22px; height: 22px;
  color: var(--gold);
  flex-shrink: 0;
}
.accordion__caret { margin-left: auto; font-size: 20px; color: var(--gold); transition: transform var(--transition); }
.accordion__item.is-open .accordion__caret { transform: rotate(45deg); }
.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition), padding var(--transition);
}
.accordion__item.is-open .accordion__panel { max-height: 200px; padding-bottom: 20px; }
.accordion__panel p { margin: 0; font-size: 15px; padding-left: 36px; }

/* ---------- Servicios ---------- */
.servicios {
  background: var(--dark);
  padding: 100px 0;
}
.servicios__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.servicio-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 1 / 1;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: transform var(--transition);
}
.servicio-card:hover { transform: translateY(-6px); }
.servicio-card img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Nosotros ---------- */
.nosotros { padding: 100px 0; background: var(--cream); }
.nosotros__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  margin-bottom: 60px;
}
.nosotros__list {
  margin: 0 0 18px;
  padding-left: 4px;
}
.nosotros__list li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 6px;
}
.nosotros__list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
}
.nosotros__phone { font-weight: 600; color: var(--dark); }
.nosotros__phone strong { color: var(--gold); }

.cta-strip {
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.cta-strip__text h3 { color: var(--white); margin-bottom: 4px; font-size: 24px; }
.cta-strip__text p { margin: 0; color: rgba(255,255,255,.75); }

.nosotros__address { text-align: center; max-width: 700px; margin: 0 auto; }
.nosotros__address .section-title--left { display: inline-block; }
.nosotros__address .section-title--left::after { left: 50%; transform: translateX(-50%); }

/* ---------- Testimonios ---------- */
.testimonios { padding: 100px 0; background: var(--white); }
.testimonios__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.testimonio-card {
  margin: 0;
  background: var(--cream);
  padding: 34px 30px;
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
}
.testimonio-card p {
  font-style: italic;
  color: var(--dark);
  font-size: 15.5px;
}
.testimonio-card cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: var(--gold);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ---------- Contacto ---------- */
.contacto {
  background: var(--dark);
  color: rgba(255,255,255,.8);
  padding: 100px 0;
}
.contacto__grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 70px;
}
.contacto__text p { font-size: 16px; }
.contacto__info { margin-top: 30px; }
.contacto__info li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.contacto__info .icon { color: var(--gold); }
.contacto__info a:hover { color: var(--gold); }

.contacto__form-wrap {
  background: var(--white);
  color: var(--gray);
  border-radius: var(--radius);
  padding: 40px;
}
.contacto__form-wrap h3 { margin-bottom: 10px; }
.contacto__form-wrap > p { font-size: 14px; margin-bottom: 24px; }

.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dcdbdb;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--dark);
  background: var(--cream);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}
.form-submit { width: 100%; justify-content: center; border: none; }
.form-submit[disabled] { opacity: .6; cursor: not-allowed; }
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 14px 0 0; font-size: 14px; min-height: 20px; }
.form-status.is-success { color: #2e7d32; }
.form-status.is-error { color: #c62828; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark-2);
  color: rgba(255,255,255,.6);
  padding: 50px 0 30px;
  text-align: center;
}
.site-footer__logo { height: 70px; margin: 0 auto 24px; }
.site-footer__address { max-width: 480px; margin: 0 auto 12px; font-size: 14px; }
.site-footer__contact { margin-bottom: 24px; font-size: 14px; }
.site-footer__contact a:hover { color: var(--gold); }
.site-footer__copy {
  font-size: 12.5px;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  margin: 0;
}

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
  z-index: 400;
  transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float .icon { width: 28px; height: 28px; background-color: var(--white); }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 992px) {
  .intro__grid,
  .nosotros__grid,
  .contacto__grid { grid-template-columns: 1fr; gap: 40px; }
  .servicios__grid { grid-template-columns: repeat(3, 1fr); }
  .testimonios__grid { grid-template-columns: 1fr; }
  .topbar__inner { justify-content: center; text-align: center; }
}

@media (max-width: 782px) {
  .topbar { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 260px;
    background: var(--dark);
    padding: 100px 30px 30px;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 600;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 22px; }
  .main-nav a { color: var(--white); }

  .servicios__grid { grid-template-columns: repeat(2, 1fr); }
  .cta-strip { flex-direction: column; text-align: center; }
  .contacto__form-wrap { padding: 26px; }
  .intro, .servicios, .nosotros, .testimonios, .contacto { padding: 70px 0; }
}

@media (max-width: 480px) {
  .servicios__grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}
