

:root {
  --primary: #7a4aa1;
  --primary-dark: #5e347f;
  --primary-soft: #f1e6f8;
  --primary-soft-2: #faf5fd;
  --text: #1f2337;
  --muted: #6f7487;
  --line: #e6ddeb;
  --white: #ffffff;
  --bg: #fcf9fe;
  --green: #20b86c;
  --green-dark: #149557;
  --shadow-soft: 0 14px 36px rgba(92, 55, 124, 0.10);
  --shadow-strong: 0 16px 34px rgba(122, 74, 161, 0.24);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fff 0%, #faf7fd 100%);
  line-height: 1.65;
}

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

a {
  text-decoration: none;
}

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

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(122, 74, 161, 0.08);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

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

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(122, 74, 161, 0.22);
  white-space: nowrap;
}

/* HERO */

.hero {
  padding: 32px 0 30px;
}

.hero-box {
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 22px;
}

.hero h1 {
  margin: 0 auto 16px;
  max-width: 920px;
  font-size: clamp(2.2rem, 5.7vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: #191d31;
  text-wrap: balance;
}

.hero-text {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  line-height: 1.75;
  color: var(--muted);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 800;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  min-width: 300px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: var(--white);
  box-shadow: 0 16px 34px rgba(32, 184, 108, 0.24);
}

.btn-secondary {
  min-width: 240px;
  background: var(--white);
  color: var(--primary-dark);
  border: 2px solid #d9c8e7;
  box-shadow: 0 10px 22px rgba(122, 74, 161, 0.08);
}

.hero-points {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-points span {
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--primary-dark);
  font-size: 0.92rem;
  font-weight: 600;
}

/* TRUST */

.quick-trust {
  padding: 8px 0 20px;
}

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

.trust-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.trust-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.05rem;
  color: #1f2337;
}

.trust-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* SECCIONES */

.section-block {
  padding: 34px 0;
}

.section-head {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 26px;
}

.section-head-left {
  text-align: left;
  max-width: 100%;
  margin: 0 0 24px;
}

.section-kicker {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.98rem;
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4.5vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #191d31;
  text-wrap: balance;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.8;
}

/* CARDS TRATAMIENTOS */

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

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
  text-align: left;
}

.service-icon {
  width: 70px;
  height: 70px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  font-size: 1.9rem;
  margin-bottom: 18px;
}

.service-card h3 {
  margin: 0 0 12px;
  font-size: 1.55rem;
  line-height: 1.15;
  color: #1c2136;
}

.service-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.service-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
}

/* DESTACADO */

.highlight-box {
  background: linear-gradient(180deg, #ffffff 0%, #faf5fd 100%);
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 30px;
  box-shadow: var(--shadow-soft);
}

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

.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 26px 22px;
}

.feature-number {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 2.7rem;
  line-height: 1;
  font-weight: 800;
  color: #a365d2;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  color: #1f2438;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

/* UBICACIÓN */

.location-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.location-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.map-wrap iframe {
  width: 100%;
  min-height: 420px;
  border: 0;
  border-radius: 26px;
}

/* FOOTER */

.site-footer {
  padding: 36px 0 40px;
  text-align: center;
}

.site-footer p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.footer-soft {
  opacity: 0.8;
}

/* BARRA MÓVIL */

.mobile-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1200;
  display: none;
  gap: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(122, 74, 161, 0.10);
  border-radius: 22px;
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 34px rgba(26, 31, 54, 0.14);
}

.mobile-bar a {
  flex: 1;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-weight: 800;
  font-size: 1rem;
  color: var(--white);
}

.mobile-call {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.mobile-wa {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
}

/* RESPONSIVE */

@media (max-width: 980px) {
  .trust-grid,
  .cards-grid,
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {

  .hero-photo {
    min-height: 75vh;              /* más compacto */
    padding: 60px 16px 20px;       /* reduce hueco arriba y abajo */
    background-position: center top;
  }

  .hero-photo::before {
    background: rgba(20, 22, 36, 0.35);
    backdrop-filter: blur(1px);
  }

  .hero-content {
    text-align: center;
    margin: 0 auto;
  }

  /* 🔥 REDUCIMOS ESPACIOS INTERNOS */
  .hero-tag {
    margin-bottom: 10px;
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .hero h1 {
    font-size: 1.9rem;
    line-height: 1.2;
    margin-bottom: 10px;
  }

  .hero-text {
    font-size: 0.95rem;
    margin-bottom: 16px;
  }

  /* 🔥 BOTONES MÁS PEGADOS */
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .hero-buttons a {
    padding: 14px;
    font-size: 1rem;
  }

}

  .btn-primary,
  .btn-secondary {
    width: 100%;
    min-width: 0;
    min-height: 60px;
    padding: 16px 18px;
    font-size: 1rem;
  }

  .hero-points {
    gap: 8px;
  }

  .hero-points span {
    font-size: 0.83rem;
    padding: 9px 12px;
  }

  .section-block {
    padding: 28px 0;
  }

  .section-head {
    margin-bottom: 20px;
  }

  .section-head h2 {
    font-size: clamp(1.9rem, 8vw, 3rem);
    line-height: 1.04;
  }

  .section-head p {
    font-size: 1rem;
    line-height: 1.75;
  }

  .trust-grid,
  .cards-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .trust-card,
  .service-card,
  .feature-card,
  .location-box {
    border-radius: 24px;
  }

  .service-card {
    padding: 24px 20px;
  }

  .service-card h3 {
    font-size: 1.35rem;
  }

  .feature-card h3 {
    font-size: 1.28rem;
  }

  .location-buttons {
    flex-direction: column;
  }

  .map-wrap iframe {
    min-height: 320px;
  }

  .mobile-bar {
    display: flex;
  }

  .site-footer {
    padding-bottom: 100px;
  }
}
/* IMÁGENES EN TARJETAS DE SERVICIOS */

.service-img {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 22px;
}

.service-img img {
  width: 100%;
  display: block;
  border-radius: 18px;
  transition: transform 0.3s ease;
}

/* SOLO PC */
@media (min-width: 769px) {
  .service-card {
    text-align: center;
    overflow: hidden;
  }

  .service-img {
    height: auto;
    margin-bottom: 28px;
  }

  .service-img img {
    height: auto;
    object-fit: contain;
    transform: none;
  }

  .service-card:hover .service-img img {
    transform: none;
  }

  .service-card h3 {
    margin-top: 0;
    margin-bottom: 14px;
  }

  .service-card p {
    margin-bottom: 22px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .service-card a {
    margin: 0 auto;
  }
}

/* MÓVIL: se mantiene compacto */
@media (max-width: 768px) {
  .service-img {
    height: 160px;
    margin-bottom: 16px;
  }

  .service-img img {
    height: 100%;
    object-fit: cover;
  }
}

/* BOTÓN SUBIR */
.back-top {
  position: fixed !important;
  right: 18px !important;
  bottom: 18px !important;
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  min-height: 52px !important;
  max-width: 52px !important;
  max-height: 52px !important;
  border-radius: 50% !important;
  background: #744c95 !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(116, 76, 149, 0.28) !important;
  z-index: 99999 !important;
}

.back-top:hover {
  background: #d62828 !important;
  transform: translateY(-3px);
}

/* REDES FOOTER */
.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-social img {
  width: 34px;
  height: 34px;
  display: block;
  transition: 0.25s ease;
}

.footer-social img:hover {
  transform: scale(1.12);
}

/* QUITAR BARRA INFERIOR */
.mobile-bar {
  display: none !important;
}
/* HERO CON FOTO - PC Y MÓVIL */

.hero-photo {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  background-image: url("./img/clinica-portada.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 22, 36, 0.45) 0%,
    rgba(20, 22, 36, 0.50) 45%,
    rgba(20, 22, 36, 0.55) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 80px 0;
  color: #fff;
}

.hero-content .hero-badge {
  background: rgba(116, 76, 149, 0.9);
  color: #fff;
}

.hero-content h1 {
  color: #fff;
  text-align: left;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.9);
  text-align: left;
}

.hero-content .hero-buttons {
  justify-content: flex-start;
}

.hero-content .btn-secondary {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.75);
}

/* SOLO MÓVIL: FOTO DIFERENTE */
@media (max-width: 768px) {
  .hero-photo {
    min-height: 75vh;
    padding: 70px 20px 30px;
    background-image: url("./img/clinica-portada-movil.jpg") !important;
    background-position: center top;
    background-size: cover;
  }

  .hero-photo::before {
    background: rgba(20, 22, 36, 0.35);
    backdrop-filter: blur(1px);
  }

  .hero-content {
    padding: 58px 0;
    text-align: center;
    margin: 0 auto;
  }

  .hero-content h1,
  .hero-content p {
    text-align: center;
  }

  .hero-content .hero-buttons {
    justify-content: center;
  }
}
/* AJUSTE HERO SOLO EN PC (MISMO ESTILO QUE TARJETAS) */

@media (min-width: 769px) {

  .hero-photo {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;

    min-height: 320px;   /* 🔥 aquí está la clave */
    max-height: 380px;   /* evita que crezca demasiado */

    background-size: cover;
    background-position: center;
  }

  .hero-content {
    padding: 40px 20px; /* menos altura interna */
    text-align: center;
    margin: 0 auto;
  }

  .hero-content h1,
  .hero-content p {
    text-align: center;
  }

  .hero-content .hero-buttons {
    justify-content: center;
  }

}
/* HERO PREMIUM SOLO EN PC */

@media (min-width: 769px) {

  .hero {
    padding: 40px 20px;
  }

  .hero-photo {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 28px;
    overflow: hidden;

   min-height: 600px;
   max-height: none;

    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
  }

  .hero-photo::before {
    background: linear-gradient(
      180deg,
      rgba(20, 22, 36, 0.35) 0%,
      rgba(20, 22, 36, 0.45) 100%
    );
  }

  .hero-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2.6rem;
    line-height: 1.1;
  }

  .hero-content p {
    font-size: 1.05rem;
  }

  .hero-content .hero-buttons {
    justify-content: center;
  }

}
/* MEJORA PORTADA: TEXTO Y BOTONES MÁS VISIBLES */

.hero-content h1 {
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.hero-content p,
.hero-text {
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.45);
}

/* Botón principal WhatsApp más potente */
.hero-content .btn-primary {
  background: linear-gradient(135deg, #20c773, #0f9f59);
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(32, 184, 108, 0.35);
}

/* Botón llamar más visible */
.hero-content .btn-secondary {
  background: rgba(255, 255, 255, 0.92);
  color: #5e347f;
  border: 2px solid #ffffff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
  font-weight: 800;
}

.hero-content .btn-secondary:hover {
  background: #ffffff;
  color: #5e347f;
}
/* BLOQUE DESTACADO SOBRE LA CLÍNICA */

.about-highlight {
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 40px 30px;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f2fb 100%);
  border: 1px solid rgba(122, 74, 161, 0.12);
  box-shadow: 0 18px 40px rgba(122, 74, 161, 0.12);
  text-align: center;
}

.about-tag {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(122, 74, 161, 0.12);
  color: #5e347f;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.about-highlight h2 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.1;
  color: #1c2136;
}

.about-highlight p {
  margin: 0 auto;
  max-width: 680px;
  color: #6f7487;
  font-size: 1.05rem;
  line-height: 1.75;
}

/* MÓVIL */
@media (max-width: 768px) {
  .about-highlight {
    padding: 28px 20px;
    margin-bottom: 28px;
  }

  .about-highlight h2 {
    font-size: 1.6rem;
  }

  .about-highlight p {
    font-size: 0.95rem;
  }
}
/* BLOQUE SOBRE LA CLÍNICA - DESTACADO CON DEGRADADO SUAVE */

.about-highlight {
  width: min(var(--container), calc(100% - 28px));
  max-width: var(--container);
  margin: 0 auto 44px;
  padding: 48px 36px;
  border-radius: 32px;
  background: linear-gradient(180deg, #ffffff 0%, #f4ecfb 100%);
  border: 1px solid rgba(122, 74, 161, 0.16);
  box-shadow: 0 20px 44px rgba(122, 74, 161, 0.14);
  text-align: center;
}

.about-highlight h2 {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.about-highlight p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
/* AJUSTE FINAL FOOTER SIN ESPACIO EXTRA */

.site-footer {
  padding-bottom: 30px !important;
}
.footer-legal {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #777;
}

.footer-legal a {
  color: #777;
  text-decoration: none;
  transition: 0.3s;
}

.footer-legal a:hover {
  color: var(--primary);
}
/* MENÚ HEADER */

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

.main-nav a {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: 0.3s;
}

.main-nav a:hover {
  color: var(--primary);
}

/* OCULTAR MENÚ EN MÓVIL */
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
}
/* MENÚ COMO BOTONES */

.main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(122, 74, 161, 0.08);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: 0.3s;
}

.main-nav a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
/* BLOQUE RESEÑAS */

.reviews-block {
  margin-top: 34px;
}

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

.review-card {
  background: #fff;
  border-radius: 20px;
  padding: 18px 16px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.06);
  text-align: left;
}

.stars {
  color: #f5b301;
  font-size: 1rem;
  margin-bottom: 8px;
}

.review-card p {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 10px;
}

.review-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: #222;
}

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

.btn-review {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: 0.3s;
}

.btn-review:hover {
  transform: translateY(-2px);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}
/* MEJORA RESEÑAS - SOLO VISUAL */

.reviews-block {
  margin-top: 34px;
}

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

.review-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 18px 16px;
  border: 1px solid rgba(122, 74, 161, 0.12);
  box-shadow: 0 14px 28px rgba(122, 74, 161, 0.10);
  text-align: left;
}

.stars {
  color: #f5b301;
  font-size: 1rem;
  margin-bottom: 8px;
}

.review-card p {
  font-size: 0.92rem;
  color: #3f4252;
  line-height: 1.5;
  margin-bottom: 10px;
}

.review-author {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1f2337;
}

.reviews-cta {
  text-align: center;
  margin-top: 10px;
}

.btn-review {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: 0.3s;
}

.btn-review:hover {
  transform: translateY(-2px);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}
.footer-legal {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-legal a {
  font-size: 0.9rem;
  color: #666;
  text-decoration: none;
  transition: 0.3s;
}

.footer-legal a:hover {
  color: #744c95;
}
.footer-legal {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-legal a {
  font-size: 0.9rem;
  color: #6f7487;
  text-decoration: none;
  transition: 0.3s;
}

.footer-legal a:hover {
  color: #744c95;
}

.footer-social img {
  width: 34px;
  height: 34px;
}
/* SECCIÓN SEO / CONSEJOS */

.blog-seo {
  padding-top: 36px;
}

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

.blog-card {
  background: #ffffff;
  border: 1px solid rgba(122, 74, 161, 0.14);
  border-radius: 26px;
  padding: 26px 22px;
  box-shadow: 0 14px 32px rgba(122, 74, 161, 0.10);
  text-align: center;
}

.blog-card h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  line-height: 1.25;
  color: #1f2337;
}

.blog-card p {
  margin: 0 0 18px;
  color: #6f7487;
  line-height: 1.7;
}

.blog-card a {
  display: inline-flex;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 700;
}

/* FOOTER EN CAJA PREMIUM */

.site-footer {
  width: min(var(--container), calc(100% - 28px));
  margin: 34px auto 34px;
  padding: 34px 24px !important;
  border-radius: 30px;
  background: linear-gradient(180deg, #ffffff 0%, #f4ecfb 100%);
  border: 1px solid rgba(122, 74, 161, 0.16);
  box-shadow: 0 18px 42px rgba(122, 74, 161, 0.12);
  text-align: center;
}

.footer-design a,
.footer-link {
  color: #744c95;
  font-weight: 800;
}

.footer-legal {
  margin-top: 14px;
}

/* MÓVIL */

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

  .blog-card {
    padding: 24px 20px;
  }

  .site-footer {
    margin: 26px auto 24px;
    padding: 28px 18px !important;
  }
}
/* CORRECCIÓN MÓVIL: CENTRAR TARJETAS Y FOOTER */

@media (max-width: 768px) {

  .service-card {
    text-align: center !important;
  }

  .service-card h3,
  .service-card p {
    text-align: center !important;
  }

  .service-card a {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .footer-design {
    text-align: center;
    line-height: 1.55;
  }

  .footer-link {
    display: inline-block;
    margin-top: 6px;
    white-space: normal;
    line-height: 1.25;
  }

  .footer-legal {
    gap: 10px 18px;
    line-height: 1.5;
  }
}
