:root {
  --navy: #102231;
  --navy-2: #07131d;
  --gold: #c2a629;
  --gold-light: #f4dc45;
  --white: #ffffff;
  --soft: #f5f4ef;
  --muted: #65717c;
  --red: #c52525;
  --green: #247347;
  --shadow: 0 24px 70px rgba(5, 16, 25, 0.2);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--soft);
  color: var(--navy);
}

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

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

.top-strip {
  height: 7px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(16, 34, 49, 0.08);
}

.navbar {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  background: var(--white);
  border-radius: 18px;
  padding: 8px 12px;
  box-shadow: 0 12px 32px rgba(16, 34, 49, 0.12);
}

.brand img {
  width: 190px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 700;
  color: var(--navy);
}

.nav-links a {
  position: relative;
}

.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--gold);
  transition: width 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta,
.btn.primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #111;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(194, 166, 41, 0.28);
}

.nav-cta {
  padding: 12px 18px;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  background: var(--navy);
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
  border-radius: 999px;
}

.hero {
  min-height: calc(100vh - 93px);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: center;
  gap: 36px;
  padding: 80px max(24px, calc((100vw - 1120px) / 2)) 90px;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(7, 19, 29, 0.96) 0%, rgba(7, 19, 29, 0.83) 48%, rgba(194, 166, 41, 0.12) 100%),
    url("assets/hero.jpg") center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -12% -22% 38%;
  height: 320px;
  background: var(--gold);
  border-radius: 50% 50% 0 0;
  transform: rotate(-5deg);
  opacity: 0.98;
  z-index: -1;
}

.hero::after {
  content: "";
  position: absolute;
  right: -160px;
  top: 90px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 90px solid rgba(244, 220, 69, 0.14);
  z-index: -1;
}

.hero-content {
  color: var(--white);
  max-width: 720px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--gold-light);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.8rem, 7vw, 6.3rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.hero p {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
}

.btn.secondary {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.hero-card {
  align-self: end;
  margin-bottom: 36px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.card-label {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(194, 166, 41, 0.16);
  color: #76630e;
  font-weight: 900;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.hero-card strong {
  display: block;
  color: var(--red);
  font-size: 1.65rem;
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero-card p {
  color: var(--muted);
  line-height: 1.6;
}

.hero-card a {
  color: var(--green);
  font-weight: 900;
  word-break: break-word;
}

.section {
  padding: 96px 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 42px;
  align-items: center;
}

.section-kicker {
  color: var(--gold);
}

.section-kicker.light {
  color: var(--gold-light);
}

.section-copy h2,
.section-heading h2,
.credit-box h2,
.contact-card h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.055em;
  margin-bottom: 18px;
}

.section-copy p,
.section-heading p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.8;
}

.stats-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--white);
}

.stats-card div {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
}

.stats-card strong {
  font-size: 2.4rem;
  color: var(--gold-light);
}

.stats-card span {
  font-weight: 800;
}

.services {
  background: var(--white);
  border-radius: 56px 56px 0 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  min-height: 260px;
  padding: 28px;
  border-radius: 26px;
  background: #f8f7f1;
  border: 1px solid rgba(16, 34, 49, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 46px rgba(16, 34, 49, 0.11);
  border-color: rgba(194, 166, 41, 0.45);
}

.service-card.featured {
  background: linear-gradient(145deg, var(--navy), var(--navy-2));
  color: var(--white);
}

.icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 18px;
  background: rgba(194, 166, 41, 0.16);
  color: var(--gold);
  font-size: 1.55rem;
}

.icon i {
  display: block;
  line-height: 1;
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.32rem;
}

.service-card p {
  margin-bottom: 0;
  line-height: 1.65;
  color: var(--muted);
}

.service-card.featured p {
  color: rgba(255, 255, 255, 0.78);
}

.credit-section {
  padding: 96px 0;
  background: var(--navy);
  color: var(--white);
}

.credit-box {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: center;
}

.credit-box h2 {
  color: var(--gold-light);
}

.credit-box p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.25rem;
  font-weight: 800;
}

.institution-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.institution-grid span {
  min-height: 82px;
  display: grid;
  place-items: center;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-weight: 1000;
  letter-spacing: -0.025em;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.process-step {
  padding: 30px;
  border-radius: 26px;
  background: var(--white);
  box-shadow: 0 16px 40px rgba(16, 34, 49, 0.07);
}

.process-step span {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--gold);
  font-size: 2rem;
  font-weight: 1000;
}

.process-step h3 {
  font-size: 1.35rem;
}

.process-step p {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.contact {
  padding: 96px 0;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--white);
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: center;
  padding: 46px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-card p {
  color: rgba(255, 255, 255, 0.77);
  line-height: 1.75;
}

.contact-actions {
  display: grid;
  gap: 12px;
}

.contact-actions a {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-weight: 900;
  word-break: break-word;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.25s ease, transform 0.25s ease;
}

.contact-actions a:hover {
  background: rgba(244, 220, 69, 0.2);
  transform: translateX(5px);
}

.footer {
  padding: 26px 0;
  background: #050c12;
  color: rgba(255, 255, 255, 0.74);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--gold-light);
  font-weight: 800;
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  box-shadow: 0 16px 36px rgba(37, 211, 102, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.floating-whatsapp:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 20px 42px rgba(37, 211, 102, 0.45);
}

.whatsapp-icon {
  width: 35px;
  height: 35px;
  display: block;
  fill: currentColor;
  flex: 0 0 auto;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  .navbar {
    height: 76px;
  }

  .brand img {
    width: 160px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    background: var(--white);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-cta {
    text-align: center;
  }

  .hero,
  .split,
  .credit-box,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 72px;
  }

  .hero-card {
    margin-bottom: 0;
  }

  .services-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .institution-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .hero {
    padding: 52px 16px 64px;
  }

  h1 {
    font-size: clamp(2.6rem, 16vw, 4rem);
  }

  .section {
    padding: 72px 0;
  }

  .services {
    border-radius: 34px 34px 0 0;
  }

  .services-grid,
  .process-grid,
  .institution-grid {
    grid-template-columns: 1fr;
  }

  .stats-card div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .contact-card {
    padding: 26px;
  }

  .footer-content {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* =========================================================
   HERO FINAL: CENTRADO, SIN PÁRRAFO Y SIN TARJETA BLANCA
   Pegar al final del CSS para sobrescribir estilos previos.
   ========================================================= */

.hero {
  min-height: calc(100vh - 93px) !important;
  position: relative !important;
  display: flex !important;
  grid-template-columns: 1fr !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  padding: 96px max(24px, calc((100vw - 1120px) / 2)) 108px !important;
  text-align: center !important;
  isolation: isolate;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 42%, rgba(244, 220, 69, 0.12), transparent 38%),
    linear-gradient(90deg, rgba(7, 19, 29, 0.64) 0%, rgba(7, 19, 29, 0.18) 50%, rgba(7, 19, 29, 0.34) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(860px, 100%) !important;
  max-width: 860px !important;
  margin: 0 auto !important;
  color: var(--white);
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.hero-content > p:not(.eyebrow),
.hero-card {
  display: none !important;
}

.eyebrow {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  margin: 0 0 18px !important;
  color: var(--white) !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.12em !important;
  font-size: 0.9rem !important;
  text-align: center !important;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

.hero h1 {
  max-width: 780px !important;
  margin: 0 auto !important;
  font-size: clamp(3.1rem, 7.1vw, 6.4rem) !important;
  line-height: 0.92 !important;
  letter-spacing: -0.07em !important;
  text-align: center !important;
  text-wrap: balance;
  text-shadow: 0 18px 45px rgba(0, 0, 0, 0.38);
}

.hero-actions {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
  margin-top: 34px !important;
}

@media (max-width: 620px) {
  .hero {
    min-height: calc(100vh - 83px) !important;
    padding: 72px 16px 78px !important;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 15vw, 4.15rem) !important;
  }

  .hero-actions {
    width: 100% !important;
  }

  .hero-actions .btn {
    width: min(100%, 240px) !important;
  }
}


/* =========================================================
   ESPECIALIDADES TÉCNICAS: DICTÁMENES Y AVALÚOS
   Sección especial debajo de ¿Quiénes somos?
   ========================================================= */

.technical-highlight {
  position: relative;
  padding: 18px 0 96px;
  background:
    radial-gradient(circle at 8% 18%, rgba(194, 166, 41, 0.12), transparent 28%),
    linear-gradient(180deg, var(--soft) 0%, #ffffff 100%);
  overflow: hidden;
}

.technical-highlight::after {
  content: "";
  position: absolute;
  right: -180px;
  top: 70px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 80px solid rgba(194, 166, 41, 0.09);
  pointer-events: none;
}

.technical-heading {
  position: relative;
  z-index: 1;
  max-width: 850px;
  margin-bottom: 34px;
}

.technical-heading h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4.8vw, 4.45rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.technical-heading p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.8;
}

.technical-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.technical-card {
  position: relative;
  min-height: 330px;
  padding: 34px;
  border-radius: 34px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 88% 20%, rgba(244, 220, 69, 0.18), transparent 32%),
    linear-gradient(145deg, var(--navy), var(--navy-2));
  border: 1px solid rgba(244, 220, 69, 0.22);
  box-shadow: 0 26px 70px rgba(5, 16, 25, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.technical-card:hover {
  transform: translateY(-7px);
  border-color: rgba(244, 220, 69, 0.5);
  box-shadow: 0 32px 80px rgba(5, 16, 25, 0.3);
}

.technical-card::before {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 58px solid rgba(244, 220, 69, 0.1);
}

.technical-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  border-radius: 22px;
  background: rgba(244, 220, 69, 0.13);
  border: 1px solid rgba(244, 220, 69, 0.22);
}

.technical-icon i {
  color: var(--gold-light);
  font-size: 2.25rem;
  line-height: 1;
}

.technical-copy {
  position: relative;
  z-index: 1;
}

.technical-copy span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.technical-copy h3 {
  margin-bottom: 14px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.technical-copy p {
  max-width: 540px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.03rem;
  line-height: 1.75;
}

/* Ajuste: ahora servicios queda como bloque general, sin duplicar dictámenes ni avalúos */
.services-grid {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1020px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 920px) {
  .technical-grid {
    grid-template-columns: 1fr;
  }

  .technical-card {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .technical-highlight {
    padding: 6px 0 72px;
  }

  .technical-card {
    padding: 28px;
    border-radius: 28px;
  }

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

/* ÍCONOS PROFESIONALES FONT AWESOME */
.service-card .icon,
.technical-icon {
  flex-shrink: 0;
}

.service-card .icon i,
.technical-icon i {
  transform: translateZ(0);
}
