/* =============================================
   ANDES CONSTRUCCIÓN — Design System
   ============================================= */

:root {
  --navy:       #1A2B4A;
  --navy-dark:  #0F1B30;
  --navy-light: #243459;
  --corp-blue:  #164D7F;
  --orange:     #E8821A;
  --orange-dark:#C96E0F;
  --white:      #FFFFFF;
  --gray-100:   #E8E6E6;
  --gray-200:   #E8E8E8;
  --gray-500:   #888888;
  --gray-700:   #444444;
  --text:       #1A1A1A;

  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Open Sans', sans-serif;

  --radius:    8px;
  --radius-lg: 16px;
  --shadow:    0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.14);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* SECTION */
.section { padding: 96px 0; }

/* SECTION HEADER */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--navy);
  margin: 12px 0 16px;
  line-height: 1.15;
}
.section-header p {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 520px;
  margin: 0 auto;
}
.section-header.light h2 { color: var(--white); }
.section-header.light p  { color: rgba(255,255,255,0.65); }
.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,130,26,0.4);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}
.btn-cta {
  background: var(--orange);
  color: var(--white);
  font-size: 0.82rem;
  padding: 11px 22px;
}
.btn-cta:hover { background: var(--orange-dark); }
.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  margin-top: 32px;
}
.btn-whatsapp:hover { background: #1ebe58; }
.btn-full { width: 100%; justify-content: center; font-size: 1rem; padding: 16px; }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: var(--navy);
  padding: 14px 0;
  box-shadow: 0 4px 32px rgba(0,0,0,0.25);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  flex-shrink: 0;
}
.logo-andes {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
  letter-spacing: 0.08em;
}
.logo-construccion {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.65rem;
  color: var(--orange);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.nav-links a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
  letter-spacing: 0.02em;
}
.nav-links a:hover { color: var(--white); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(10,18,33,0.96) 0%,
    rgba(15,27,48,0.85) 50%,
    rgba(26,43,74,0.75) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}
.hero-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
  padding: 6px 14px;
  border: 1px solid rgba(232,130,26,0.4);
  border-radius: 100px;
}
.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 24px;
}
.hero-content h1 em {
  font-style: normal;
  color: var(--orange);
}
.hero-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-heading);
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.6); }
}

/* =============================================
   STATS
   ============================================= */
.stats {
  background: var(--navy);
  border-top: 0px solid var(--orange);
  padding: 64px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 32px 24px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  display: inline;
}
.stat-suffix {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--orange);
}
.stat-item p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin-top: 8px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-family: var(--font-heading);
  font-weight: 600;
}

/* =============================================
   SERVICIOS
   ============================================= */
.servicios { background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  padding: 40px 36px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}
.service-card:hover::after { transform: scaleX(1); }
.service-card.featured {
  background: var(--navy);
  border-color: var(--navy);
}
.service-card.featured h3,
.service-card.featured p { color: var(--white); }
.service-card.featured .service-icon { color: var(--orange); }
.service-card.featured .service-link { color: var(--orange); }
.service-card.featured::after { background: var(--orange); }
.service-icon {
  width: 52px;
  height: 52px;
  color: var(--navy);
  margin-bottom: 24px;
}
.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--navy);
}
.service-card p {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 24px;
}
.service-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--orange);
  letter-spacing: 0.02em;
  transition: gap var(--transition);
}
.service-link:hover { gap: 8px; }
.featured-label {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}

/* =============================================
   POR QUÉ ELEGIRNOS
   ============================================= */
.por-que {
  background: var(--navy);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.why-item {
  padding: 40px 36px;
  background: var(--navy);
  transition: background var(--transition);
}
.why-item:hover { background: var(--navy-light); }
.why-icon {
  width: 52px;
  height: 52px;
  color: var(--orange);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 130, 26, 0.12);
  border-radius: var(--radius);
  flex-shrink: 0;
}
.why-item h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.why-item p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}

/* =============================================
   PROYECTOS — cards con foto + datos reales
   ============================================= */
.proyectos { background: var(--gray-100); }
.filters {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.filter-btn {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding: 9px 20px;
  border-radius: 100px;
  border: 2px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700);
  transition: var(--transition);
  cursor: pointer;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.proyectos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.proyecto-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.proyecto-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.proyecto-img {
  position: relative;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}
.proyecto-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.4,0,0.2,1);
}
.proyecto-card:hover .proyecto-img img { transform: scale(1.06); }
.proyecto-cat-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
}
.proyecto-body {
  padding: 24px 28px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.proyecto-metric {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 2px;
}
.proyecto-body > h3 {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.proyecto-body > p {
  font-size: 0.88rem;
  color: var(--gray-700);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
}
.proyecto-cliente {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
  margin-bottom: 16px;
}
.proyecto-cliente strong {
  display: block;
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 600;
}
.proyecto-cliente span {
  font-size: 0.78rem;
  color: var(--gray-500);
}
.proyecto-cta {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.02em;
  transition: color var(--transition);
}
.proyecto-cta:hover { color: var(--orange-dark); }
.proyecto-card.hidden { display: none; }

/* =============================================
   TESTIMONIOS
   ============================================= */
.testimonios { background: var(--white); }
.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonio-card {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  position: relative;
  transition: var(--transition);
}
.testimonio-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.quote-mark {
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--orange);
  margin-bottom: 16px;
  display: block;
}
.testimonio-card p {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.75;
  margin-bottom: 28px;
  font-style: italic;
}
.testimonio-autor {
  display: flex;
  align-items: center;
  gap: 14px;
}
.autor-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testimonio-autor strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
}
.testimonio-autor span {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* =============================================
   CONTACTO
   ============================================= */
.contacto { background: var(--navy-dark); }
.contacto-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.contacto-info .section-tag { display: block; margin-bottom: 16px; }
.contacto-info h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}
.contacto-info > p {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  line-height: 1.7;
}
.contact-list {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
}
.contact-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(255,255,255,0.7);
}

/* FORM */
.contacto-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
}
.form-group {
  margin-bottom: 24px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 0;
}
.form-row .form-group { margin-bottom: 24px; }
label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
input, select, textarea {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
input::placeholder, textarea::placeholder { color: #bbb; }
input:focus, select:focus, textarea:focus {
  border-color: var(--navy);
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23888' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
textarea { resize: vertical; min-height: 120px; }

/* =============================================
   FOOTER
   ============================================= */
.footer { background: var(--navy-dark); border-top: 1px solid rgba(255,255,255,0.07); }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding: 64px 24px 48px;
}
.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
  margin-top: 16px;
  line-height: 1.6;
  max-width: 280px;
}
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.social-links a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.social-links a:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.footer-nav h5, .footer-contact h5 {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 20px;
}
.footer-nav ul { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--white); }
.footer-contact p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 8px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px 24px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* =============================================
   WHATSAPP FAB
   ============================================= */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: var(--transition);
}
.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.7);
}

/* =============================================
   AOS — Scroll Animations
   ============================================= */
[data-aos] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-aos].aos-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   TRUST BAR — carrusel infinito
   ============================================= */
.trust-bar {
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 80px 0;
  overflow: hidden;
}
.trust-intro {
  text-align: center;
  margin-bottom: 60px;
}
.trust-intro .section-tag { margin-bottom: 10px; display: inline-block; }
.trust-intro h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}
.trust-intro p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.70);
  max-width: 480px;
  margin: 0 auto;
}
@keyframes trustScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.trust-carousel {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.trust-track {
  display: flex;
  align-items: center;
  gap: 80px;
  width: max-content;
  animation: trustScroll 40s linear infinite;
}
.trust-track:hover {
  animation-play-state: paused;
}
.trust-track img {
  display: block;
  width: auto;
  height: 120px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  opacity: 0.55;
  transition: opacity 0.3s ease;
}
.trust-track img:hover {
  opacity: 1;
}
@media (max-width: 768px) {
  .trust-track img { height: 80px; }
  .trust-track { gap: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .trust-track { animation: none; }
}

/* =============================================
   CASOS DE ÉXITO B2B (reusa .testimonios-grid / .testimonio-card)
   ============================================= */
.casos-exitos {
  background: var(--gray-100);
}
#casos .testimonios-grid {
  grid-template-columns: repeat(2, 1fr);
}
#casos .testimonio-card {
  background: var(--white);
  border: 1px solid rgba(26, 43, 74, 0.08);
  box-shadow: var(--shadow);
}
#casos .testimonio-card:hover {
  box-shadow: 0 20px 48px rgba(26, 43, 74, 0.12);
  transform: translateY(-6px);
}
#casos .caso-meta {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--corp-blue);
  margin-bottom: 10px;
}
#casos .caso-metric {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.2;
}
#casos .testimonio-card p {
  font-style: normal;
  margin-bottom: 20px;
}
#casos .caso-cta {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--orange);
  letter-spacing: 0.02em;
}
#casos .caso-cta:hover {
  color: var(--orange-dark);
}

/* =============================================
   PÁGINAS DE SERVICIO (plantilla multi-página)
   ============================================= */
.servicio-intro {
  padding: 128px 0 56px;
  background: linear-gradient(
    165deg,
    var(--navy-dark) 0%,
    var(--navy) 50%,
    var(--corp-blue) 100%
  );
}
.servicio-intro .section-header {
  text-align: left;
  margin-bottom: 28px;
  max-width: 720px;
}
.servicio-intro .hero-actions {
  margin-top: 8px;
}
.servicio-body h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.15;
}
.servicio-body h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin: 28px 0 12px;
}
.servicio-body p,
.servicio-body li {
  font-size: 0.98rem;
  color: var(--gray-700);
  line-height: 1.75;
}
.servicio-body ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 12px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.servicio-cta {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.servicio-cta .btn-ghost {
  border-color: rgba(26, 43, 74, 0.35);
  color: var(--navy);
}
.servicio-cta .btn-ghost:hover {
  background: rgba(26, 43, 74, 0.06);
  border-color: var(--navy);
}
.servicio-related {
  background: var(--gray-100);
}
.servicio-related .services-grid {
  margin-top: 8px;
  grid-template-columns: repeat(2, 1fr);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .servicio-related .services-grid {
    grid-template-columns: 1fr;
  }
  .section { padding: 72px 0; }
  .nav-links, .btn-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--navy-dark);
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 999;
  }
  .nav-links.open a { font-size: 1.3rem; }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; }
  .services-grid { grid-template-columns: 1fr; }
  .proyectos-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonios-grid { grid-template-columns: 1fr; }
  #casos .testimonios-grid { grid-template-columns: 1fr; }
  .contacto-inner { grid-template-columns: 1fr; gap: 48px; }
  .contacto-form { padding: 32px 28px; }
  .form-row { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .proyectos-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* SCROLL MARGIN — compensa navbar fijo en anchor links */
section[id] { scroll-margin-top: 80px; }

/* SERVICE CARD — cursor pointer en hover */
.service-card { cursor: pointer; }

/* HAMBURGER → X animation */
.nav-toggle span { transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* COOKIE BANNER */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--navy-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 24px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  margin: 0;
  flex: 1;
  min-width: 240px;
}
.cookie-banner a { color: rgba(255,255,255,0.9); text-decoration: underline; }
.cookie-accept {
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 10px 24px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition);
}
.cookie-accept:hover { background: var(--orange-dark); }
