/* ════════════════════════════════════════════════
   DEM Remodeling Group — Main Stylesheet
   Design System: Trust & Authority
   Colors: Navy #0F172A + Blue #0369A1 + Gold #D4A853
   Fonts: Lexend (headings) + Source Sans 3 (body)
════════════════════════════════════════════════ */

/* ── RESET & BASE ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:        #0F172A;
  --navy-mid:    #1E293B;
  --slate:       #334155;
  --blue:        #0369A1;
  --blue-hover:  #0284C7;
  --gold:        #D4A853;
  --cream:       #F8FAFC;
  --white:       #FFFFFF;
  --text:        #020617;
  --muted:       #475569;
  --soft:        #94A3B8;
  --border:      #E2E8F0;
  --border-dark: rgba(255,255,255,.1);
  --fd: 'Lexend', 'Segoe UI', sans-serif;
  --fb: 'Source Sans 3', 'Segoe UI', sans-serif;
  --nav-h: 72px;
  --radius: 4px;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.14);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--fb);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ── SKIP NAV (accessibility) ── */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--blue);
  color: var(--white);
  padding: .5rem 1rem;
  border-radius: var(--radius);
  font-size: .85rem;
  font-weight: 600;
  z-index: 9999;
  transition: top .2s;
}
.skip-nav:focus { top: 1rem; }

/* ── EYEBROW ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--fd);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .85rem;
}
.eyebrow::before {
  content: '';
  width: 1.5rem;
  height: 2px;
  background: var(--blue);
  display: inline-block;
  flex-shrink: 0;
}
.eyebrow-light { color: rgba(255,255,255,.5); }
.eyebrow-light::before { background: rgba(255,255,255,.3); }

/* ── SECTION TITLES ── */
.section-title {
  font-family: var(--fd);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--navy);
}
.section-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--blue);
}
.section-title-white { color: var(--white); }
.section-title-white em { color: var(--gold); }

.section-desc {
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted);
  max-width: 560px;
  margin-top: .85rem;
  line-height: 1.85;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header .section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--blue);
  color: var(--white);
  padding: .875rem 1.875rem;
  font-family: var(--fd);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background .2s, transform .15s, box-shadow .2s;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(3,105,161,.35);
}
.btn-primary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--navy);
  font-family: var(--fd);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .06em;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.btn-ghost:hover { color: var(--blue); border-color: var(--blue); }

/* ── NAVBAR ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
#navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5%;
  height: var(--nav-h);
  gap: 1.5rem;
}

.nav-logo img {
  height: 100px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-family: var(--fd);
  font-size: .78rem;
  font-weight: 400;
  color: var(--slate);
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .2s;
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--blue); border-bottom-color: var(--blue); }
.nav-links a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

.nav-cta {
  background: var(--navy) !important;
  color: var(--white) !important;
  padding: .5rem 1.25rem !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
  border-bottom: none !important;
  transition: background .2s, opacity .2s !important;
}
.nav-cta:hover { background: var(--blue) !important; border-bottom: none !important; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* ── LANGUAGE SWITCHER ── */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lang-sep {
  color: var(--border);
  font-size: .8rem;
}
.lang-btn {
  font-family: var(--fd);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--soft);
  padding: .3rem .55rem;
  border-radius: 3px;
  border: 1px solid transparent;
  transition: all .2s;
  cursor: pointer;
}
.lang-btn:hover { color: var(--navy); border-color: var(--border); }
.lang-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.lang-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ── MOBILE TOGGLE ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--navy);
  transition: transform .3s, opacity .3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: var(--nav-h);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 5% 6rem 8%;
}

.hero-title {
  font-family: var(--fd);
  font-size: clamp(2.4rem, 4.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--navy);
  margin-bottom: 1.5rem;
}
.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--blue);
}

.hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--muted);
  max-width: 440px;
  margin-bottom: 2.5rem;
  line-height: 1.85;
}

.hero-btns {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  margin-top: .5rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .03em;
}
.trust-item svg { color: var(--blue); flex-shrink: 0; }

.hero-img {
  position: relative;
  overflow: hidden;
}
.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-badge {
  position: absolute;
  bottom: 2.5rem;
  left: -1rem;
  background: var(--blue);
  color: var(--white);
  padding: 1.25rem 1.5rem;
  text-align: center;
  min-width: 90px;
  box-shadow: var(--shadow);
}
.badge-n {
  font-family: var(--fd);
  font-size: 2rem;
  font-weight: 700;
  display: block;
  line-height: 1;
}
.badge-l {
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .85;
  display: block;
  margin-top: .3rem;
}

/* ── STATS BAR ── */
.stats-bar {
  background: var(--navy);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 2.25rem 1.5rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.07);
}
.stat:last-child { border-right: none; }
.stat-n {
  font-family: var(--fd);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  line-height: 1;
}
.stat-l {
  font-size: .72rem;
  color: rgba(255,255,255,.5);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: .4rem;
  display: block;
}

/* ── TRUST BADGES ── */
.trust-bar {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 3rem 8%;
}
.trust-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow .2s, transform .2s;
  cursor: default;
}
.trust-badge:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.trust-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  background: var(--navy);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.trust-badge-title {
  font-family: var(--fd);
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}
.trust-badge-sub {
  font-size: .75rem;
  color: var(--soft);
  margin-top: .15rem;
}

/* ── SERVICES ── */
#servicios {
  padding: 7rem 8%;
  background: var(--white);
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.srv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.srv-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow .3s, transform .3s;
  cursor: pointer;
}
.srv-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.srv-img {
  position: relative;
  overflow: hidden;
}
.srv-img img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.25,.46,.45,.94);
}
.srv-card:hover .srv-img img { transform: scale(1.04); }

.srv-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s;
}
.srv-card:hover .srv-overlay { opacity: 1; }
.srv-cta {
  background: var(--white);
  color: var(--navy);
  padding: .65rem 1.35rem;
  border-radius: var(--radius);
  font-family: var(--fd);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background .2s, color .2s;
}
.srv-cta:hover { background: var(--blue); color: var(--white); }

.srv-body {
  padding: 1.5rem;
}
.srv-tag {
  font-size: .7rem;
  font-weight: 500;
  color: var(--blue);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .4rem;
}
.srv-name {
  font-family: var(--fd);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: .6rem;
}
.srv-desc-text {
  font-size: .9rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
}

/* ── ABOUT ── */
#nosotros {
  background: var(--cream);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  padding: 7rem 8%;
  max-width: 100%;
}

.about-img-wrap {
  position: relative;
}
.about-img-wrap > img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius);
  position: relative;
  z-index: 1;
}
.about-accent {
  position: absolute;
  bottom: -1.25rem;
  right: -1.25rem;
  width: 40%;
  height: 55%;
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  z-index: 0;
  pointer-events: none;
}
.about-badge-box {
  position: absolute;
  top: 2rem;
  left: -1.5rem;
  z-index: 2;
  background: var(--navy);
  color: var(--white);
  padding: 1.25rem 1rem;
  text-align: center;
  min-width: 88px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.abb-n {
  font-family: var(--fd);
  font-size: 1.75rem;
  font-weight: 700;
  display: block;
  line-height: 1;
  color: var(--gold);
}
.abb-l {
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .7;
  display: block;
  margin-top: .25rem;
}

.about-list {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.about-list li {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .95rem;
  font-weight: 400;
  color: var(--muted);
}
.about-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

/* ── PROCESS ── */
#proceso {
  background: var(--navy);
  padding: 7rem 8%;
}
#proceso .section-header .eyebrow { color: rgba(255,255,255,.5); }
#proceso .section-header .eyebrow::before { background: rgba(255,255,255,.3); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}
.process-grid::before {
  content: '';
  position: absolute;
  top: 2.5rem;
  left: calc(12.5% + 1.5rem);
  right: calc(12.5% + 1.5rem);
  height: 1px;
  background: rgba(255,255,255,.1);
  pointer-events: none;
}

.process-step {
  text-align: center;
  padding: 2rem 1.25rem;
  position: relative;
}
.step-num {
  font-family: var(--fd);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .15em;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}
.step-icon {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--gold);
  transition: background .2s, transform .2s;
}
.process-step:hover .step-icon {
  background: var(--blue);
  transform: scale(1.08);
  border-color: var(--blue);
}
.process-step h3 {
  font-family: var(--fd);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: .6rem;
  line-height: 1.3;
}
.process-step p {
  font-size: .88rem;
  font-weight: 300;
  color: rgba(255,255,255,.55);
  line-height: 1.75;
}

/* ── TESTIMONIALS ── */
#testimonios {
  background: var(--navy-mid);
  padding: 7rem 8%;
}
#testimonios .section-header .eyebrow { color: rgba(255,255,255,.45); }
#testimonios .section-header .eyebrow::before { background: rgba(255,255,255,.25); }

.test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}
.test-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius);
  padding: 2rem;
  transition: background .2s, border-color .2s, transform .2s;
}
.test-card:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.15);
  transform: translateY(-3px);
}
.test-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 1rem;
  color: var(--gold);
}
.test-text {
  font-size: .93rem;
  font-weight: 300;
  color: rgba(255,255,255,.75);
  line-height: 1.85;
  font-style: italic;
}
.test-author {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.test-av {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 700;
  color: rgba(255,255,255,.75);
  font-family: var(--fd);
}
.test-name {
  font-family: var(--fd);
  font-size: .88rem;
  font-weight: 600;
  color: var(--white);
}
.test-loc {
  font-size: .75rem;
  color: rgba(255,255,255,.35);
  margin-top: .1rem;
}

/* ── FAQ ── */
#faq {
  background: var(--white);
  padding: 7rem 8%;
}
#faq .section-header { margin-bottom: 3rem; }

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow .2s;
}
.faq-item:has(.faq-btn[aria-expanded="true"]) {
  box-shadow: var(--shadow);
  border-color: var(--blue);
}

.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  text-align: left;
  background: var(--white);
  cursor: pointer;
  transition: background .2s;
  min-height: 44px;
}
.faq-btn:hover { background: var(--cream); }
.faq-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
  border-radius: var(--radius);
}
.faq-btn span {
  font-family: var(--fd);
  font-size: .95rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.4;
}
.faq-icon {
  color: var(--blue);
  flex-shrink: 0;
  transition: transform .3s;
}
.faq-btn[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}
.faq-btn[aria-expanded="true"] { background: rgba(3,105,161,.04); }

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  border-top: 1px solid var(--border);
}
.faq-answer[hidden] { display: none; }
.faq-answer p {
  font-size: .93rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.85;
  padding-top: 1rem;
}

/* ── CONTACT ── */
#contacto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 700px;
}
.contact-info {
  background: var(--cream);
  padding: 7rem 6% 7rem 8%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--border);
}
.contact-form-wrap {
  background: var(--white);
  padding: 7rem 8% 7rem 6%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cinfo-list {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.cinfo-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.cinfo-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--navy);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.cinfo-label {
  font-family: var(--fd);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: .2rem;
}
.cinfo-value {
  font-size: .95rem;
  font-weight: 400;
  color: var(--navy);
  transition: color .2s;
}
a.cinfo-value:hover { color: var(--blue); }

/* ── FORM ── */
.form-heading {
  font-family: var(--fd);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1.75rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1rem;
}
.form-group:last-of-type { margin-bottom: 0; }

.form-group label {
  font-family: var(--fd);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-group input,
.form-group textarea {
  padding: .78rem .95rem;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-family: var(--fb);
  font-size: .93rem;
  color: var(--text);
  border-radius: var(--radius);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
  line-height: 1.5;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(3,105,161,.1);
}
.form-group input.error,
.form-group textarea.error {
  border-color: #DC2626;
}
.field-error {
  font-size: .75rem;
  color: #DC2626;
  min-height: 1em;
  margin-top: -.2rem;
}
.form-group textarea {
  resize: vertical;
  min-height: 110px;
}
.select-wrap {
  position: relative;
}
.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding: .78rem 2.5rem .78rem .95rem;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-family: var(--fb);
  font-size: .93rem;
  color: var(--text);
  border-radius: var(--radius);
  outline: none;
  width: 100%;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.select-wrap select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(3,105,161,.1);
}
.select-arrow {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--soft);
}

.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  padding: .95rem;
  background: var(--blue);
  color: var(--white);
  border: none;
  font-family: var(--fd);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background .2s, transform .15s, box-shadow .2s;
  margin-top: 1.25rem;
  min-height: 52px;
}
.btn-submit:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(3,105,161,.35);
}
.btn-submit:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.btn-submit:disabled { opacity: .65; cursor: not-allowed; transform: none; box-shadow: none; }

@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin .8s linear infinite; }

.btn-loading {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.form-success {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: #F0FDF4;
  border: 1px solid #86EFAC;
  color: #166534;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  font-size: .93rem;
  font-weight: 500;
}
.form-success[hidden] { display: none; }
.form-success svg { flex-shrink: 0; color: #16A34A; }

/* ── FOOTER ── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.6);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding: 4rem 8%;
  max-width: 1280px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-logo {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .8;
  margin-bottom: 1rem;
}
.footer-tagline {
  font-size: .85rem;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255,255,255,.45);
}
.footer-nav-title {
  font-family: var(--fd);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 1rem;
}
.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.footer-nav a {
  font-size: .88rem;
  font-weight: 300;
  color: rgba(255,255,255,.55);
  transition: color .2s;
}
.footer-nav a:hover { color: var(--white); }
.footer-nav a:focus-visible { outline: 1px solid var(--white); border-radius: 2px; }

.footer-contact-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .88rem;
  font-weight: 300;
  color: rgba(255,255,255,.55);
  margin-bottom: .65rem;
  transition: color .2s;
}
.footer-contact-link:hover { color: var(--white); }
.footer-social {
  display: flex;
  gap: .75rem;
  margin-top: 1.25rem;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.5);
  transition: all .2s;
}
.footer-social a:hover {
  border-color: rgba(255,255,255,.5);
  color: var(--white);
  background: rgba(255,255,255,.07);
}

.footer-bottom {
  padding: 1.5rem 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  max-width: 1280px;
  margin: 0 auto;
}
.footer-copy {
  font-size: .78rem;
  color: rgba(255,255,255,.25);
}
.footer-lic {
  font-size: .75rem;
  color: rgba(255,255,255,.2);
  letter-spacing: .04em;
}

/* ── WHATSAPP FLOAT ── */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  z-index: 90;
  transition: transform .2s, box-shadow .2s;
}
.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37,211,102,.55);
}
.wa-float:focus-visible {
  outline: 2px solid #25D366;
  outline-offset: 4px;
}

/* ── ANIMATIONS ── */
.anim {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.anim.visible {
  opacity: 1;
  transform: translateY(0);
}
.anim-d1.visible { transition-delay: .1s; }
.anim-d2.visible { transition-delay: .2s; }
.anim-d3.visible { transition-delay: .3s; }
.anim-d4.visible { transition-delay: .4s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { opacity: 0; animation: fadeUp .75s ease forwards; }
.d1 { animation-delay: .1s; }
.d2 { animation-delay: .25s; }
.d3 { animation-delay: .4s; }
.d4 { animation-delay: .55s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 1200px) {
  .trust-bar-inner { grid-template-columns: repeat(3, 1fr); }
  .trust-badge:nth-child(4),
  .trust-badge:nth-child(5) { grid-column: span 1; }
}

@media (max-width: 1024px) {
  #hero { grid-template-columns: 1fr; min-height: auto; padding-top: var(--nav-h); }
  .hero-content { padding: 4rem 6%; order: 2; }
  .hero-img { height: 55vw; min-height: 300px; order: 1; }
  .hero-badge { display: none; }

  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }

  .trust-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .trust-badge:nth-child(5) { grid-column: span 2; justify-content: center; }

  #nosotros { grid-template-columns: 1fr; gap: 3rem; padding: 5rem 6%; }
  .about-badge-box { left: -.5rem; }

  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .process-grid::before { display: none; }

  .test-grid { grid-template-columns: 1fr; max-width: 540px; }

  #contacto { grid-template-columns: 1fr; }
  .contact-info,
  .contact-form-wrap { padding: 4rem 6%; border-right: none; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-brand { grid-column: span 2; }

  /* Mobile nav */
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: .5rem 5%;
    z-index: 99;
    box-shadow: 0 8px 24px rgba(0,0,0,.07);
  }
  .nav-links.open { display: flex; }
  .nav-links li a {
    display: block;
    padding: .9rem 0;
    border-bottom: 1px solid var(--border);
    font-size: .9rem;
    border-bottom-width: 1px;
  }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-cta {
    display: inline-block !important;
    margin-top: .5rem;
    text-align: center;
  }
  .nav-toggle { display: flex; }

  .srv-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --nav-h: 64px; }

  .hero-title { font-size: clamp(2rem, 8vw, 2.8rem); }
  .hero-btns { flex-direction: column; align-items: flex-start; }
  .hero-trust { flex-direction: column; gap: .5rem; }

  .stats-bar { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-right: 1px solid rgba(255,255,255,.07); }
  .stat:nth-child(4) { border-right: none; }

  .trust-bar { padding: 2rem 5%; }
  .trust-bar-inner { grid-template-columns: 1fr; }
  .trust-badge:nth-child(5) { grid-column: span 1; }

  #servicios { padding: 5rem 5%; }
  .srv-grid { grid-template-columns: 1fr; }

  #nosotros { padding: 4rem 5%; }
  .about-badge-box { left: .5rem; top: 1rem; }

  #proceso { padding: 5rem 5%; }
  .process-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .process-step { padding: 1.25rem .75rem; }

  #testimonios { padding: 5rem 5%; }
  .test-grid { max-width: 100%; }

  #faq { padding: 5rem 5%; }
  .faq-btn { padding: 1rem; }
  .faq-answer { padding: 0 1rem 1rem; }

  #contacto .contact-info,
  #contacto .contact-form-wrap { padding: 3rem 5%; }
  .form-row { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom { flex-direction: column; text-align: center; gap: .35rem; }

  .wa-float { bottom: 1.25rem; right: 1.25rem; width: 50px; height: 50px; }

  #faq .section-header,
  #testimonios .section-header { text-align: left; }
  .test-grid { max-width: 100%; }
}
