/* ============================================================
   RANK & RENT TEMPLATE — styles.css
   Colores y tipografía controlados desde config.json via JS
   ============================================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- CSS VARIABLES (sobreescritas por JS desde config.json) ---------- */
/* Valores por defecto = mismos que config.json (evita flash rojo antes de cargar JS) */
:root {
  --primary:       #1f4e79;
  --primary-dark:  #163a5c;
  --primary-light: #2e6fa3;
  --accent:        #f39c12;
  --dark:          #1a1a1a;
  --dark-mid:      #2d2d2d;
  --light:         #f8f8f6;
  --text:          #2c2c2c;
  --text-light:    #6b6b6b;
  --white:         #ffffff;

  --radius:        8px;
  --radius-lg:     16px;
  --shadow:        0 4px 24px rgba(0,0,0,.10);
  --shadow-lg:     0 12px 48px rgba(0,0,0,.18);
  --transition:    .25s cubic-bezier(.4,0,.2,1);
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 { line-height: 1.1; font-weight: 700; }

.display-font { font-family: 'Bebas Neue', sans-serif; letter-spacing: .02em; }

/* ---------- CONTAINERS ---------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.75rem;
  font-size: .95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
  letter-spacing: .03em;
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn--primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(31, 78, 121, 0.38);
}

.btn--white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}
.btn--white:hover {
  background: var(--light);
  transform: translateY(-2px);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.7);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
}

.btn--full { width: 100%; }

/* ---------- SECTIONS ---------- */
.section { padding: 5rem 0; }
.section--dark { background: var(--dark); }
.section--light { background: var(--light); }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(31, 78, 121, 0.1);
  padding: .25rem .85rem;
  border-radius: 99px;
  margin-bottom: .75rem;
}
.section-label--light { color: var(--accent); background: rgba(243,156,18,.15); }

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--dark);
  margin-bottom: .75rem;
}
.section-title--light { color: var(--white); }

.section-desc { color: var(--text-light); max-width: 600px; margin: 0 auto; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(26,26,26,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: box-shadow var(--transition);
}
.header.scrolled {
  box-shadow: 0 4px 32px rgba(0,0,0,.35);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 72px;
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon { font-size: 1.5rem; }
.logo-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.45rem;
  letter-spacing: .06em;
  color: var(--white);
  line-height: 1;
}
.logo-name--light { color: var(--white); }

/* Nav */
.header__nav { margin-left: auto; }

.nav-list {
  display: flex;
  gap: .25rem;
  list-style: none;
}

.nav-list a {
  display: block;
  padding: .5rem .9rem;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.nav-list a:hover,
.nav-list a.active {
  color: var(--white);
  background: rgba(255,255,255,.08);
}

/* CTA header */
.header__cta { font-size: .85rem; flex-shrink: 0; padding: .6rem 1.25rem; }
.header-cta__icon {
  width: 16px;
  height: 16px;
  display: block;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 5px;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1600&q=80');
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.hero__bg.loaded { transform: scale(1); }

.hero__overlay {
  position: absolute;
  inset: 0;
  /* Mismo tono que config heroOverlayColor hasta que JS lo aplique */
  background: rgba(20, 60, 120, 0.75);
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* Hero text */
.hero__content { color: var(--white); }

.hero__badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: var(--white);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 99px;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(6px);
}

.hero__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: .95;
  letter-spacing: .01em;
  color: var(--white);
  text-shadow: 0 4px 24px rgba(0,0,0,.4);
  margin-bottom: 1.25rem;
}

.hero__subtitle {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.88);
  margin-bottom: 2rem;
  max-width: 500px;
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 2rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .82rem;
  color: rgba(255,255,255,.8);
}
.hero__trust span {
  display: flex;
  align-items: center;
  gap: .3rem;
}

/* Hero form */
.hero__form-wrap {
  position: relative;
}

.hero__form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.15);
}

.form-card__title {
  font-size: 1.25rem;
  color: var(--dark);
  margin-bottom: .25rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.form-card__subtitle {
  font-size: .82rem;
  color: var(--text-light);
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

/* ============================================================
   FORMS (shared)
   ============================================================ */
.contact-form { display: flex; flex-direction: column; gap: .85rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
}

.form-group { display: flex; flex-direction: column; gap: .3rem; }

.form-group label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .03em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  padding: .7rem .9rem;
  border: 1.5px solid #e0e0e0;
  border-radius: var(--radius);
  font-size: .9rem;
  font-family: inherit;
  color: var(--text);
  background: #fafafa;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(31, 78, 121, 0.14);
}
.form-group input.error,
.form-group textarea.error {
  border-color: #c62828;
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.12);
}

.form-error {
  font-size: .75rem;
  color: #c62828;
  min-height: 1rem;
  font-weight: 500;
}

.form-success {
  padding: .9rem;
  border-radius: var(--radius);
  background: #d4edda;
  color: #155724;
  font-size: .9rem;
  font-weight: 500;
  text-align: center;
}

.form-legal {
  font-size: .73rem;
  color: var(--text-light);
  text-align: center;
}
.form-legal a { color: var(--primary); }

/* Contact form alternate (dark section) */
.contact-form--alt .form-group label { color: rgba(255,255,255,.8); }
.contact-form--alt .form-group input,
.contact-form--alt .form-group textarea {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.15);
  color: var(--white);
}
.contact-form--alt .form-group input::placeholder,
.contact-form--alt .form-group textarea::placeholder { color: rgba(255,255,255,.4); }
.contact-form--alt .form-group input:focus,
.contact-form--alt .form-group textarea:focus {
  border-color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.11);
  box-shadow: 0 0 0 3px rgba(255,255,255,.08);
  color: var(--white);
}

/* ============================================================
   SERVICES
   ============================================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

/* Si hay 6 servicios: 4 arriba + 2 abajo centrados */
.services__grid > .service-card:nth-child(5):nth-last-child(2) {
  grid-column: 2;
}

.services__grid > .service-card:nth-child(6):last-child {
  grid-column: 3;
}

.service-card {
  background: var(--white);
  border: 1.5px solid rgba(0,0,0,.07);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: default;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.service-card__icon {
  font-size: 2.2rem;
  margin-bottom: .75rem;
  display: block;
}

.service-card__title {
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: .5rem;
}

.service-card__desc {
  font-size: .875rem;
  color: var(--text-light);
  line-height: 1.55;
}

/* ============================================================
   WHY US
   ============================================================ */
.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.why-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: background var(--transition);
}
.why-card:hover { background: rgba(255,255,255,.09); }

.why-card__icon {
  font-size: 2rem;
  margin-bottom: .75rem;
  display: block;
}

.why-card__title {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: .4rem;
}

.why-card__desc {
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  line-height: 1.5;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--white);
  border: 1.5px solid rgba(0,0,0,.07);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  font-family: 'Bebas Neue', sans-serif;
  font-size: 6rem;
  color: var(--primary-light);
  opacity: .12;
  position: absolute;
  top: -.5rem;
  left: 1rem;
  line-height: 1;
  pointer-events: none;
}

.testimonial__stars {
  color: #f39c12;
  font-size: 1rem;
  margin-bottom: .75rem;
  letter-spacing: 2px;
}

.testimonial__text {
  font-size: .9rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 1rem;
  font-style: italic;
}

.testimonial__author {
  display: flex;
  flex-direction: column;
}
.testimonial__name { font-weight: 700; font-size: .88rem; color: var(--dark); }
.testimonial__location { font-size: .78rem; color: var(--text-light); }

/* ============================================================
   LOCAL SEO
   ============================================================ */
.local-seo__inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: start;
}

.local-seo__paragraphs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.local-seo__paragraphs p {
  color: var(--text);
  line-height: 1.75;
  font-size: .95rem;
}

.local-seo__paragraphs strong { color: var(--primary-dark); }

.local-seo__zones h3 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--primary);
}

.zones-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.zones-list li {
  padding: .55rem .75rem;
  background: var(--white);
  border-radius: var(--radius);
  font-size: .88rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid rgba(0,0,0,.06);
  transition: all var(--transition);
}
.zones-list li:hover {
  border-color: var(--primary-light);
  background: rgba(31, 78, 121, 0.06);
}
.zones-list li::before { content: '📍'; font-size: .75rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--dark-mid); }

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: center;
}

.contact__desc {
  color: rgba(255,255,255,.65);
  margin: 1rem 0 2rem;
  font-size: .95rem;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  text-decoration: none;
  transition: color var(--transition);
}
.contact-item:hover { color: var(--white); }

.contact-item__icon {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.07);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding-top: 4rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.footer__brand .logo-name { font-size: 1.3rem; }

.footer__tagline {
  font-size: .82rem;
  color: rgba(255,255,255,.4);
  margin-top: .5rem;
  line-height: 1.5;
}

.footer__links h4,
.footer__contact h4 {
  color: var(--white);
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer__links ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }

.footer__links a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  font-size: .85rem;
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--primary-light); }

.footer__contact { display: flex; flex-direction: column; gap: .6rem; }

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.55);
  font-size: .85rem;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-contact-item:hover { color: var(--primary-light); }

.footer__bottom {
  padding: 1.25rem 0;
  background: rgba(0,0,0,.25);
}
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .78rem;
}

.footer__legal-links {
  list-style: none;
  display: flex;
  gap: 1.25rem;
}
.footer__legal-links a {
  color: rgba(255,255,255,.4);
  text-decoration: none;
  transition: color var(--transition);
}
.footer__legal-links a:hover { color: var(--white); }

/* ============================================================
   FLOAT CTA
   ============================================================ */
.float-cta {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  align-items: flex-end;
}

.float-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
  transition: all var(--transition);
}

.float-btn svg {
  width: 22px;
  height: 22px;
  display: block;
}
.float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
}

.float-btn--phone {
  background: var(--primary);
  color: var(--white);
}

.float-btn--wa {
  background: #25d366;
  color: var(--white);
}

/* ============================================================
  FORM NOTICES (toast)
   ============================================================ */
.form-notice-root {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  width: min(420px, calc(100vw - 2rem));
}

.form-notice {
  background: rgba(26,26,26,.95);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.14);
  border-left: 4px solid var(--primary-light);
  border-radius: var(--radius);
  box-shadow: 0 12px 36px rgba(0,0,0,.36);
  padding: .8rem .95rem;
  font-size: .88rem;
  line-height: 1.45;
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
}

.form-notice.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.form-notice--success {
  border-left-color: #2eaf5d;
}

.form-notice--error {
  border-left-color: #d64545;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-up {
  animation: fadeUp .6s ease both;
}

.hero__badge   { animation: fadeUp .5s .1s ease both; }
.hero__title   { animation: fadeUp .6s .2s ease both; }
.hero__subtitle{ animation: fadeUp .6s .35s ease both; }
.hero__actions { animation: fadeUp .6s .5s ease both; }
.hero__trust   { animation: fadeUp .6s .65s ease both; }
.hero__form-wrap { animation: fadeUp .7s .4s ease both; }

/* Intersection observer classes */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* El centrado 4+2 solo aplica en desktop de 4 columnas */
  .services__grid > .service-card:nth-child(5):nth-last-child(2),
  .services__grid > .service-card:nth-child(6):last-child {
    grid-column: auto;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero { min-height: auto; padding: calc(72px + 2.5rem) 0 3rem; }

  .hero__title { font-size: clamp(2.4rem, 8vw, 4rem); }

  .hero__form-wrap { max-width: 480px; }

  .local-seo__inner { grid-template-columns: 1fr; gap: 2rem; }

  .contact__inner { grid-template-columns: 1fr; gap: 2.5rem; }

  .footer__inner { grid-template-columns: 1fr 1fr; }
}

/* Mobile */
@media (max-width: 768px) {
  .header__nav { display: none; }

  .header__nav.open {
    display: block;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--dark);
    border-top: 1px solid rgba(255,255,255,.07);
    padding: 1rem;
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
    z-index: 999;
  }

  .header__nav.open .nav-list {
    flex-direction: column;
    gap: .25rem;
  }

  .header__nav.open .nav-list a {
    padding: .75rem 1rem;
    font-size: 1rem;
  }

  .hamburger { display: flex; }
  .header__cta { display: none; }

  .hero__form-wrap { max-width: 100%; }

  .form-row { grid-template-columns: 1fr; }

  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; text-align: center; }

  .section { padding: 3.5rem 0; }

  .footer__inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
  .footer__legal-links { flex-wrap: wrap; justify-content: center; }

  .float-cta { bottom: 1rem; right: 1rem; }

  .form-notice-root {
    right: .75rem;
    left: .75rem;
    width: auto;
    bottom: .85rem;
  }

  /* Servicios en móvil: 2 columnas (evita la torre infinita de 6 tarjetas) */
  .services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1rem;
  }

  .service-card {
    padding: 1.25rem 1rem;
    border-radius: var(--radius);
  }

  .service-card:hover {
    transform: none;
    box-shadow: var(--shadow);
  }

  .service-card__icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
  }

  .service-card__title {
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
    line-height: 1.25;
  }

  .service-card__desc {
    font-size: 0.8rem;
    line-height: 1.45;
  }
}

@media (max-width: 480px) {
  .why__grid,
  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  /* Mantener 2 columnas en servicios (antes aquí pasaba a 1fr y se veía fatal) */
  .services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 0.65rem;
  }

  .service-card {
    padding: 1rem 0.75rem;
  }

  .service-card__desc {
    font-size: 0.78rem;
  }
}

/* Pantallas muy estrechas: una columna pero tarjeta en fila (icono + texto) */
@media (max-width: 360px) {
  .services__grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .service-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 0.85rem;
    row-gap: 0.25rem;
    padding: 1rem 0.9rem;
    align-items: start;
  }

  .service-card__icon {
    grid-row: 1 / -1;
    margin-bottom: 0;
    font-size: 1.6rem;
    line-height: 1;
  }

  .service-card__title {
    grid-column: 2;
    margin-bottom: 0.2rem;
  }

  .service-card__desc {
    grid-column: 2;
  }
}