/* ==================================================
   macabogados.cl — styles.css
   Mobile-first. Paleta borgoña extraída del sitio original.
   ================================================== */

:root {
  --bordeaux: #7d343f;
  --bordeaux-dark: #4f2027;
  --bordeaux-light: #a04656;
  --aliceblue: #f0f8ff;
  --cream: #f7f1e8;
  --gold: #b8935a;
  --gray-text: #4c4c4c;
  --gray-muted: #767676;
  --white: #ffffff;
  --off-white: #f4f4f4;
  --border: #cecece;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --max-w: 1200px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-head: 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mark: 'Cinzel', serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; -webkit-user-drag: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--bordeaux);
  margin: 0 0 0.6em;
  line-height: 1.25;
  font-weight: 700;
}
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; margin: 0; }

/* ---------- Layout helpers ---------- */
.section {
  padding: 64px 20px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.section__title {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin-bottom: 1.5em;
  position: relative;
}
.section__title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--bordeaux);
  margin: 16px auto 0;
  border-radius: 2px;
}
.section__title--left { text-align: left; }
.section__title--left::after { margin-left: 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  border: 2px solid transparent;
}
.btn--primary {
  background: var(--bordeaux);
  color: var(--white);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--bordeaux-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn--lg { padding: 16px 40px; font-size: 1rem; }

/* ============================================
   NAV
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav__brand { display: flex; align-items: center; }
.nav__logo { height: 44px; width: auto; }
.nav__menu {
  display: none;
  gap: 8px;
}
.nav__link {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--gray-text);
  padding: 8px 16px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.nav__link:hover,
.nav__link:focus-visible {
  background: var(--aliceblue);
  color: var(--bordeaux);
}

.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--bordeaux);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav.is-open .nav__menu {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  background: var(--white);
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
}
.nav.is-open .nav__link {
  width: 100%;
  text-align: center;
  padding: 12px;
}

@media (min-width: 768px) {
  .nav__toggle { display: none; }
  .nav__menu { display: flex; }
}

/* ============================================
   HERO — Editorial jurídico
   Paleta: borgoña tinta + crema papel + dorado sutil
   Tipografía display: Cormorant Garamond (serif)
   ============================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--bordeaux-dark);
  background: var(--cream);
  padding: 100px 24px 80px;
  overflow: hidden;
  isolation: isolate;
}

/* Fondo con imagen oscurecida + tinte crema */
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(247, 241, 232, 0.92) 0%, rgba(247, 241, 232, 0.78) 50%, rgba(247, 241, 232, 0.94) 100%),
    url('imagenes/balanza.webp') center/cover no-repeat;
  z-index: -2;
  opacity: 0.9;
}

/* Grano de papel (SVG inline via data-uri) */
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.4;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.4 0 0 0 0 0.3 0 0 0 0.18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

/* Sello notarial giratorio */
.hero__seal {
  position: absolute;
  top: 32px;
  right: 32px;
  width: 110px;
  height: 110px;
  color: var(--bordeaux);
  opacity: 0;
  animation: seal-in 1.6s 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) forwards,
             seal-rotate 60s 3s linear infinite;
  z-index: 2;
}
.hero__seal-svg { width: 100%; height: 100%; }
.hero__seal-text {
  font-family: 'Cinzel', serif;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.25em;
  fill: currentColor;
}
.hero__seal-icon { color: currentColor; }

@keyframes seal-in {
  from { opacity: 0; transform: scale(0.7) rotate(-30deg); }
  to   { opacity: 0.7; transform: scale(1) rotate(0); }
}
@keyframes seal-rotate {
  to { transform: rotate(360deg); }
}

/* Líneas decorativas tipo documento legal */
.hero__rule {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bordeaux) 20%, var(--gold) 50%, var(--bordeaux) 80%, transparent);
  width: 0;
  z-index: 1;
}
.hero__rule--top { top: 96px; animation: rule-grow 1.4s 0.4s ease-out forwards; }
.hero__rule--bottom { bottom: 110px; animation: rule-grow 1.4s 0.4s ease-out forwards; }
@keyframes rule-grow {
  to { width: min(640px, 80vw); }
}

/* Contenido */
.hero__content {
  position: relative;
  z-index: 3;
  max-width: 880px;
  width: 100%;
}

.hero__eyebrow {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--bordeaux);
  margin: 0 0 28px;
  opacity: 0;
  transform: translateY(12px);
}

.hero__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: clamp(3rem, 11vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--bordeaux-dark);
}

.hero__line {
  display: block;
  overflow: hidden;
  padding: 0.05em 0;
}
.hero__line-inner {
  display: inline-block;
  transform: translateY(110%);
  animation: line-up 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero__line:nth-child(1) .hero__line-inner { animation-delay: 0.5s; }
.hero__line:nth-child(2) .hero__line-inner { animation-delay: 0.85s; }

@keyframes line-up {
  to { transform: translateY(0); }
}

.hero__sub {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--gray-text);
  margin: 0 0 40px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(12px);
}
.hero__sub em {
  font-style: normal;
  color: var(--bordeaux);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
}

/* Reveal genérico para eyebrow, sub, cta */
.hero__eyebrow.is-revealed,
.hero__sub.is-revealed,
.hero__cta.is-revealed {
  animation: fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero__eyebrow.is-revealed { animation-delay: 0.2s; }
.hero__sub.is-revealed     { animation-delay: 1.3s; }
.hero__cta.is-revealed     { animation-delay: 1.55s; }

@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}

/* Botón fantasma (ghost) */
.btn--ghost {
  background: transparent;
  color: var(--bordeaux);
  border: 1.5px solid var(--bordeaux);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--bordeaux);
  color: var(--cream);
}

/* Metadata inferior */
.hero__meta {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--bordeaux);
  opacity: 0;
  animation: fade-up 1s 1.9s ease-out forwards;
  z-index: 2;
}
.hero__meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

/* Accesibilidad: respeto a reduce-motion */
@media (prefers-reduced-motion: reduce) {
  .hero__line-inner { animation: none; transform: translateY(0); }
  .hero__seal { animation: none; opacity: 0.7; }
  .hero__rule { animation: none; width: min(640px, 80vw); }
  .hero__eyebrow,
  .hero__sub,
  .hero__cta,
  .hero__meta { animation: none; opacity: 1; transform: none; }
}

@media (max-width: 600px) {
  .hero { min-height: 84vh; padding-top: 80px; padding-bottom: 100px; }
  .hero__seal { width: 80px; height: 80px; top: 20px; right: 20px; }
  .hero__seal-text { font-size: 7.5px; letter-spacing: 0.2em; }
  .hero__rule--bottom { bottom: 130px; }
  .hero__meta {
    bottom: 20px;
    font-size: 0.62rem;
    letter-spacing: 0.24em;
    gap: 10px;
  }
  .hero__cta .btn { flex: 1; min-width: 0; }
}

/* Hero variante subpágina (más corto, sin sello, sin líneas decorativas) */
.hero--subpage {
  min-height: 0;
  padding: 120px 24px 80px;
  background: var(--cream);
}
.hero--subpage .hero__bg {
  background:
    linear-gradient(180deg, rgba(247, 241, 232, 1) 0%, rgba(247, 241, 232, 0.95) 100%);
  opacity: 1;
}
.hero--subpage .hero__title {
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  margin-bottom: 24px;
  color: var(--bordeaux-dark);
}
.hero--subpage .hero__line--accent .hero__line-inner {
  color: var(--bordeaux);
  font-style: italic;
}
.hero--subpage .hero__sub {
  opacity: 1;
  transform: none;
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  color: var(--gray-text);
  max-width: 640px;
  margin-bottom: 0;
}

.hero__image {
  margin-top: 48px;
  width: 100%;
  max-width: 720px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* ============================================
   AVISO / DISCLAIMER
   ============================================ */
.notice {
  background: var(--off-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.notice__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--gray-text);
  line-height: 1.6;
}
.notice .material-symbols-outlined {
  color: var(--bordeaux);
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 1px;
}
.notice p { margin: 0; }

/* ============================================
   CASOS (CAE) — secciones de contenido largo
   ============================================ */
.section--case {
  background: var(--white);
}
.section--case-alt {
  background: var(--cream);
}
.case__tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gold);
}
.case__lead {
  max-width: 760px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--gray-text);
  margin: 0 0 40px;
}
.case__lead--small { font-size: 0.95rem; margin-bottom: 24px; }

.case-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  margin-bottom: 28px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.section--case-alt .case-block {
  background: var(--white);
}
.case-block__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.case-block__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--aliceblue);
  border-radius: 50%;
  flex-shrink: 0;
  color: var(--bordeaux);
}
.case-block__icon .material-symbols-outlined { font-size: 24px; }
.case-block h3 {
  font-size: 1.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  color: var(--bordeaux-dark);
  letter-spacing: -0.01em;
}
.case-block p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-text);
  margin: 0 0 16px;
}

.case-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}
.case-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 14px;
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--gray-text);
}
.case-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 1px;
  background: var(--bordeaux);
}

.qa {
  margin-top: 8px;
}

@media (max-width: 600px) {
  .case-block { padding: 24px 20px; }
  .case-block h3 { font-size: 1.2rem; }
}

/* ============================================
   ÁREAS DE PRÁCTICA
   ============================================ */
.section--areas {
  background: var(--aliceblue);
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.section--areas > .section__title,
.section--areas .areas__grid { padding-left: 20px; padding-right: 20px; }
.areas__grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.card--area {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  border-top: 4px solid var(--bordeaux);
}
.card--area:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--aliceblue);
  border-radius: 50%;
  margin-bottom: 16px;
  color: var(--bordeaux);
}
.card__icon .material-symbols-outlined { font-size: 32px; }
.card__title {
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.card__text {
  font-size: 0.95rem;
  line-height: 1.65;
}

@media (min-width: 640px)  { .areas__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .areas__grid { grid-template-columns: repeat(4, 1fr); } }

/* ============================================
   SOBRE NOSOTRAS
   ============================================ */
.section--about { background: var(--white); }
.about__lead {
  max-width: 880px;
  margin: 0 auto 40px;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--gray-text);
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 720px;
  margin: 0 auto;
}
.about__card {
  margin: 0;
  background: var(--aliceblue);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.about__photo {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.about__caption {
  padding: 24px 20px;
}
.about__caption h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}
.about__caption p {
  font-size: 0.9rem;
  color: var(--bordeaux);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}
@media (min-width: 640px) {
  .about__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   FAQ
   ============================================ */
.section--faq { background: var(--off-white); max-width: none; padding-left: 0; padding-right: 0; }
.section--faq > .section__title,
.section--faq > .faq__categories,
.section--faq > .faq__panels { padding-left: 20px; padding-right: 20px; }
.faq__categories {
  max-width: var(--max-w);
  margin: 0 auto 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.faq__cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--gray-text);
  transition: all 0.2s;
}
.faq__cat .material-symbols-outlined { font-size: 20px; }
.faq__cat:hover { border-color: var(--bordeaux-light); color: var(--bordeaux); }
.faq__cat.is-active {
  background: var(--bordeaux);
  border-color: var(--bordeaux);
  color: var(--white);
}
.faq__panel { display: none; max-width: var(--max-w); margin: 0 auto; }
.faq__panel.is-active { display: block; }

.accordion {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.accordion summary {
  padding: 18px 22px;
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--gray-text);
  cursor: pointer;
  position: relative;
  padding-right: 56px;
  list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--bordeaux);
  transition: transform 0.2s;
}
.accordion[open] summary::after { content: "−"; }
.accordion summary:hover { color: var(--bordeaux); }
.accordion p {
  margin: 0;
  padding: 0 22px 22px;
  line-height: 1.7;
  color: var(--gray-text);
}

/* ============================================
   TESTIMONIOS / CAROUSEL
   ============================================ */
.section--testimonials { background: var(--aliceblue); max-width: none; padding-left: 0; padding-right: 0; }
.section--testimonials > .section__title { padding-left: 20px; padding-right: 20px; }
.carousel {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 56px;
}
.carousel__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 16px 4px 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.testimonial {
  flex: 0 0 calc(100% - 20px);
  scroll-snap-align: start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.testimonial__name {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--bordeaux-dark);
}
.testimonial__quote {
  font-size: 0.95rem;
  line-height: 1.65;
  font-style: italic;
  color: var(--gray-text);
  margin: 0;
}
.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: var(--bordeaux);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 2;
  transition: background 0.2s, transform 0.2s;
}
.carousel__btn:hover { background: var(--bordeaux-dark); transform: translateY(-50%) scale(1.05); }
.carousel__btn--prev { left: 8px; }
.carousel__btn--next { right: 8px; }
.carousel__btn .material-symbols-outlined { font-size: 24px; }

@media (min-width: 640px)  { .testimonial { flex: 0 0 calc(50% - 10px); } }
@media (min-width: 1024px) { .testimonial { flex: 0 0 calc(33.333% - 14px); } }

/* ============================================
   CONTACTO
   ============================================ */
.section--contact { background: var(--white); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--gray-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.field__input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: var(--off-white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field__input:focus {
  outline: none;
  border-color: var(--bordeaux);
  box-shadow: 0 0 0 3px rgba(125, 52, 63, 0.15);
  background: var(--white);
}
.field__input--textarea { resize: vertical; min-height: 120px; }
.contact__form .btn { align-self: flex-start; }

.contact__info { padding-top: 8px; }
.contact__heading {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--bordeaux-dark);
}
.contact__address {
  font-size: 1rem;
  margin-bottom: 24px;
  line-height: 1.6;
}
.contact__list { display: flex; flex-direction: column; gap: 12px; }
.contact__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: var(--gray-text);
  transition: color 0.2s;
}
.contact__link:hover { color: var(--bordeaux); }
.contact__link .material-symbols-outlined { font-size: 22px; color: var(--bordeaux); }

.contact__feedback {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.contact__feedback--ok {
  background: #e8f5e9;
  color: #2e7d32;
  border-left: 4px solid #2e7d32;
}
.contact__feedback--err {
  background: #fdecea;
  color: #c62828;
  border-left: 4px solid #c62828;
}

@media (min-width: 768px) {
  .contact__grid { grid-template-columns: 1.2fr 1fr; gap: 60px; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bordeaux-dark);
  color: var(--aliceblue);
  padding: 40px 20px 24px;
}
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}
.footer__heading {
  font-size: 1.05rem;
  margin-bottom: 12px;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer__list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: center;
  margin-bottom: 24px;
}
.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--aliceblue);
  transition: color 0.2s;
}
.footer__link:hover { color: var(--white); }
.footer__link .material-symbols-outlined { font-size: 20px; }
.footer__copy {
  font-size: 0.85rem;
  opacity: 0.7;
  margin: 0;
}

/* ============================================
   ACCESIBILIDAD
   ============================================ */
:focus-visible {
  outline: 2px solid var(--bordeaux);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   WHATSAPP FLOTANTE
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #49a078;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(73, 160, 120, 0.35);
  transition: transform 0.25s ease, background 0.25s ease;
}
.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: scale(1.1);
  background: #216869;
}
@media (max-width: 600px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 18px;
    right: 18px;
  }
  .whatsapp-float svg { width: 26px; height: 26px; }
}