/* =====================================================
   00 — VARIABLES Y BASE
   ===================================================== */

:root {
  --navy: #0b2c5c;
  --navy-dark: #071e40;
  --blue: #2563b8;
  --blue-light: #eaf1fb;
  --white: #ffffff;
  --gray-light: #f4f6f9;
  --gray: #6b7684;
  --gray-border: #e2e6ec;
  --ink: #14213b;
  --green-whatsapp: #25d366;
  --green-cta: #2fa84f;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-card: 0 4px 20px rgba(11, 44, 92, 0.08);
  --shadow-card-hover: 0 10px 30px rgba(11, 44, 92, 0.14);

  --container: 1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);

  --header-h: 128px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Bloquea el scroll del body cuando el menú móvil está abierto */
body.nav-open {
  overflow: hidden;
}

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

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

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

.section {
  padding: 88px 0;
}

.section-heading {
  max-width: 640px;
  margin-bottom: 44px;
}
.section-heading h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--navy);
  margin-bottom: 14px;
}
.section-heading p {
  color: var(--gray);
  font-size: 1.05rem;
}
.section-heading--center {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 10px;
}

.glass-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(6px);
  margin-bottom: 16px;
}
.glass-badge--light {
  background: rgba(37, 99, 184, 0.08);
  border-color: rgba(37, 99, 184, 0.18);
  color: var(--blue);
}
.glass-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* =====================================================
   01 — BOTONES
   ===================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
  white-space: nowrap;
}
.btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--navy);
  box-shadow: var(--shadow-card-hover);
}

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

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--gray-border);
}
.btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn-cta {
  background: var(--green-cta);
  color: var(--white);
}
.btn-cta:hover {
  background: #268a41;
  box-shadow: var(--shadow-card-hover);
}

.btn-header {
  padding: 11px 22px;
  border-radius: var(--radius-sm);
}

/* Botón "Agendar Cita" duplicado dentro del menú móvil: oculto en escritorio */
.btn-header--mobile {
  display: none;
}

.btn-more-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}
.btn-secondary.is-expanded .btn-more-icon {
  transform: rotate(180deg);
}

/* =====================================================
   02 — HEADER
   ===================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  max-width: 200px;
  overflow: hidden;
}

.logo img,
.logo svg {
  height: 150px;
  width: auto;
  max-width: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.logo span {
  font-size: 1.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.logo-text {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}

.main-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

.main-nav a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.main-nav a:hover {
  color: var(--blue);
}

/* ---------- Botón hamburguesa ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
  z-index: 320;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* Animación a "X" cuando el menú está abierto */
.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Fondo oscuro detrás del panel móvil */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 30, 64, 0.45);
  z-index: 290;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.nav-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}

/* =====================================================
   03 — HERO
   ===================================================== */

.hero {
  position: relative;
  color: var(--white);
  min-height: 620px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(7, 30, 64, 0.5) 0%,
    rgba(11, 44, 92, 0.4) 38%,
    rgba(11, 44, 92, 0.3) 72%,
    rgba(11, 44, 92, 0.25) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 110px 24px 70px;
  max-width: 720px;
  margin-right: auto;
  margin-left: 0;
  text-align: left;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.12;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.hero-cta .btn-primary {
  background: var(--white);
  color: var(--navy);
}
.hero-cta .btn-primary:hover {
  background: var(--gray-light);
  color: var(--navy);
  box-shadow: none;
}

.hero-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-bottom: 0;
  transform: translateY(50%);
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.stat-icon {
  width: 32px;
  height: 32px;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.stat-icon--filled {
  width: 34px;
  height: 34px;
  background: var(--blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  padding: 6px;
}
.stat-icon--filled img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
}
.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gray);
}

/* espacio tras el hero para las stat cards sobrepuestas */
.specialties {
  padding-top: calc(88px + 60px);
}

@media (max-width: 980px) {
  .hero {
    min-height: 540px;
  }
  .hero-inner {
    padding: 70px 24px 60px;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: 480px;
  }
  .stat-card {
    padding: 16px 10px;
  }
}

@media (max-width: 420px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* =====================================================
   05 — POR QUÉ ELEGIRNOS
   ===================================================== */

.why-us {
  background: var(--gray-light);
}

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

.why-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  text-align: left;
}
.why-icon {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.why-icon img {
  width: 74px;
  height: 74px;
  object-fit: contain;
}
.why-card h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 10px;
}
.why-card p {
  color: var(--gray);
  font-size: 0.96rem;
}

/* =====================================================
   07 — NOSOTROS
   ===================================================== */

.about .eyebrow--center {
  display: block;
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--navy);
  margin-bottom: 40px;
}

.about-intro {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 60px;
}
.about-intro-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  color: var(--navy);
  margin: 0 0 16px;
}
.about-intro-text p {
  color: var(--gray);
  font-size: 1.05rem;
}
.about-facade {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  object-fit: cover;
  margin: 0;
  box-shadow: var(--shadow-card-hover);
}

.about-history {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  margin-bottom: 56px;
  align-items: stretch;
}
.about-history-text {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow-card);
}
.about-history-text h3 {
  color: var(--navy);
  font-size: 1.25rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.about-history-text h3 svg {
  color: var(--blue);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.about-history-text p {
  color: var(--gray);
  margin-bottom: 16px;
  font-size: 0.96rem;
  line-height: 1.6;
}
.about-history-text p:last-child {
  margin-bottom: 0;
}

.about-history-highlight {
  background: linear-gradient(160deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 22px;
}
.about-history-icon {
  width: 186px;
  height: 186px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.about-history-icon svg {
  width: 126px;
  height: 126px;
  color: var(--white);
}
.about-history-highlight p {
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 56px;
}
.about-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 30px;
  box-shadow: var(--shadow-card);
}

.about-card-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.about-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.about-card-icon svg {
  width: 20px;
  height: 20px;
}
.about-card h3 {
  color: var(--navy);
  font-size: 1.15rem;
  margin-bottom: 12px;
}
.about-card p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.55;
}

.values-list {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  gap: 12px;
}
.values-list li {
  color: var(--gray);
  font-size: 0.94rem;
  font-weight: 600;
  padding: 5px 0;
  break-inside: avoid;
}

.about-quote {
  margin: 0;
  background: var(--blue-light);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: bold;
}
.quote-mark {
  font-size: 3.5rem;
  color: var(--blue);
  font-family: Georgia, serif;
  line-height: 0.5;
  display: block;
  margin-bottom: 12px;
}
.about-quote p {
  font-size: 1.2rem;
  color: var(--navy);
  font-style: italic;
  max-width: 760px;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .about-intro {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .about-facade {
    order: -1;
    aspect-ratio: 16/9;
  }
}

@media (max-width: 600px) {
  .about .eyebrow--center {
    font-size: 1.5rem;
  }
  .about-history-text {
    padding: 26px 24px;
  }
  .about-history-highlight {
    padding: 32px 24px;
  }
  .about-card {
    padding: 26px 24px;
  }
  .about-quote {
    padding: 32px 24px;
  }
}

/* =====================================================
   08 — CTA BANNER + TESTIMONIOS
   ===================================================== */

.cta-banner {
  padding: 56px 0;
}

.cta-banner-box {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 340px;
  display: flex;
  align-items: center;
}

.cta-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cta-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(7, 30, 64, 0.96) 0%,
    rgba(11, 44, 92, 0.9) 38%,
    rgba(11, 44, 92, 0.5) 72%,
    rgba(11, 44, 92, 0.15) 100%
  );
}

.cta-banner-content {
  position: relative;
  z-index: 1;
  padding: 48px 56px;
  max-width: 520px;
  color: var(--white);
}
.cta-banner-content h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  margin-bottom: 12px;
  line-height: 1.25;
}
.cta-banner-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.98rem;
  line-height: 1.55;
}

.cta-banner-btn {
  position: relative;
  z-index: 1;
  margin: 0 48px 0 auto;
  padding: 16px 30px;
  border-radius: 999px;
  font-size: 1rem;
  flex-shrink: 0;
}
.cta-banner-btn svg,
.cta-banner-btn i {
  width: 18px;
  height: 18px;
}

@media (max-width: 900px) {
  .cta-banner-box {
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
  }
  .cta-banner-overlay {
    background: linear-gradient(
      180deg,
      rgba(7, 30, 64, 0.85) 0%,
      rgba(11, 44, 92, 0.75) 55%,
      rgba(11, 44, 92, 0.55) 100%
    );
  }
  .cta-banner-content {
    padding: 40px 32px 20px;
    max-width: 100%;
  }
  .cta-banner-btn {
    margin: 0 0 32px 32px;
  }
}

@media (max-width: 600px) {
  .cta-banner {
    padding: 40px 0;
  }
  .cta-banner-content {
    padding: 32px 24px 16px;
  }
  .cta-banner-content h2 {
    font-size: 1.4rem;
  }
  .cta-banner-btn {
    margin: 0 0 28px 24px;
    padding: 14px 24px;
    font-size: 0.92rem;
  }
}

/* ---------- Testimonios ---------- */
.testimonials-title {
  text-align: center;
  color: var(--navy);
  font-size: clamp(1.6rem, 2.8vw, 2rem);
  margin-bottom: 44px;
}

.testimonial-slider {
  overflow: hidden;
  border-radius: var(--radius-md);
}

.testimonial-track {
  display: flex;
  transition: transform 0.4s ease;
}

.testimonial-card {
  flex: 0 0 calc(50% - 12px);
  margin-right: 24px;
  background: var(--gray-light);
  border-radius: var(--radius-md);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
}
.testimonial-card:last-child {
  margin-right: 0;
}

.testimonial-stars {
  color: #f2a93b;
  letter-spacing: 3px;
  margin-bottom: 16px;
  font-size: 1rem;
}
.testimonial-card p {
  color: var(--ink);
  font-size: 1.02rem;
  margin-bottom: 24px;
  line-height: 1.6;
  flex: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.testimonial-name {
  display: block;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}
.testimonial-tag {
  display: block;
  font-size: 0.82rem;
  color: var(--gray);
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}

.testimonial-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--gray-border);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.testimonial-arrow svg {
  width: 18px;
  height: 18px;
}
.testimonial-arrow:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}
.testimonial-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}
.testimonial-arrow:disabled:hover {
  background: var(--white);
  border-color: var(--gray-border);
  color: var(--navy);
}

.testimonial-dots {
  display: flex;
  gap: 8px;
}
.testimonial-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gray-border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.testimonial-dot.is-active {
  background: var(--blue);
  transform: scale(1.15);
}

@media (max-width: 760px) {
  .testimonial-card {
    flex: 0 0 100%;
    margin-right: 0;
  }
}

/* =====================================================
   09 — FOOTER + WHATSAPP FLOTANTE
   ===================================================== */

.site-footer {
  background:#1a3a6d;
  color: rgba(255, 255, 255, 0.85);
  padding: 64px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr 0.9fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  align-items: start;
}

.footer-brand p {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  margin: 0;
}

.footer-brand-logo {
  display: flex;
  justify-content: flex-end;
}
.footer-brand-logo img {
  width: 230px;
  height: 230px;
  object-fit: contain;
}

.footer-col h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 18px;
}
.footer-col a,
.footer-col span {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
  transition: color 0.2s ease;
}
.footer-col a:hover {
  color: var(--white);
}
.footer-col [data-lucide],
.footer-col i {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

/* ---------- Íconos sociales: grandes, con sombra, hover azul sólido ---------- */
.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.social-icon i {
  color: var(--navy-dark);
  font-size: 18px;
  width: auto;
  height: auto;
  margin-top: 25%;
  transition: color 0.2s ease;
}

.social-icon:hover {
  transform: translateY(-3px);
  background: var(--blue);
  box-shadow: 0 8px 20px rgba(37, 99, 184, 0.4);
}

.social-icon:hover i {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-legal {
  display: flex;
  gap: 18px;
}
.footer-legal a:hover {
  color: var(--white);
}

/* ---------- WhatsApp flotante ---------- */
.whatsapp-float {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green-whatsapp);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  z-index: 200;
  transition: transform 0.2s ease;
}
.whatsapp-float svg {
  width: 34px;
  height: 34px;
}
.whatsapp-float:hover {
  transform: scale(1.08);
}

@media (max-width: 980px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand-logo {
    justify-content: flex-start;
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-brand-logo {
    grid-column: auto;
    justify-content: flex-start;
  }
  .whatsapp-float {
    width: 56px;
    height: 56px;
    right: 18px;
    bottom: 18px;
  }
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

/* =====================================================
   10 — RESPONSIVE GENERAL + MENÚ MÓVIL
   ===================================================== */

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }

  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    background: var(--white);
    padding: 18px 24px 28px;
    border-bottom: 1px solid var(--gray-border);
    gap: 4px;
    z-index: 295;
    box-shadow: 0 16px 32px rgba(11, 44, 92, 0.18);
  }
  .main-nav.is-open a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--gray-border);
    font-size: 1.02rem;
  }
  .main-nav.is-open a:last-of-type {
    border-bottom: none;
  }

  .btn-header {
    display: none;
  }
  .main-nav.is-open .btn-header--mobile {
    display: inline-flex;
    margin-top: 14px;
    justify-content: center;
    border-bottom: none;
  }

  .logo img,
  .logo svg {
    height: 64px;
  }

  .hero {
    min-height: 560px;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    transform: translateY(40%);
  }
  .specialties {
    padding-top: calc(88px + 90px);
  }

  .specialties-intro {
    grid-template-columns: 1fr;
  }
  .specialties-intro-media {
    order: -1;
  }

  .specialty-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .specialty-card--featured {
    grid-column: span 2;
    grid-row: span 1;
  }

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

  .infra-grid {
    grid-template-columns: 1fr;
  }
  .infra-media {
    min-height: 320px;
  }
  .infra-card {
    padding: 32px 28px 8px;
  }

  .about-history {
    grid-template-columns: 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  :root {
    --header-h: 96px;
  }
  .section {
    padding: 64px 0;
  }
  .hero-inner {
    padding: 90px 20px 60px;
  }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .specialty-grid {
    grid-template-columns: 1fr;
  }
  .specialty-card--featured {
    grid-column: span 1;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .about-quote {
    padding: 32px 24px;
  }
  .infra-card {
    padding: 26px 22px 6px;
  }
  .logo img,
  .logo svg {
    height: 52px;
  }
  .header-inner {
    gap: 12px;
  }
}

@media (max-width: 420px) {
  .container {
    padding: 0 16px;
  }
  .hero h1 {
    font-size: 1.9rem;
  }
  .hero-sub {
    font-size: 1rem;
  }
  .stat-value {
    font-size: 1.2rem;
  }
  .stat-label {
    font-size: 0.65rem;
  }
  .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  .cta-banner-content h2 {
    font-size: 1.25rem;
  }
  .footer-brand p {
    font-size: 1.1rem;
  }
}