  .hero-principal {
  width: 100%;
  height: 100vh; /* Ocupa toda la pantalla */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
}

.overlay-hero {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
}

.contenido-hero {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 2rem;
}
/* HERO PRINCIPAL */
.hero-principal {
  position: relative;
  width: 100%;
  height: 100vh; /* Pantalla completa */
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* efecto parallax */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  border-bottom: 8px solid #0073aa; /* línea inferior moderna */
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

/* Degradado elegante encima de la imagen */
.overlay-hero {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.8) 100%);
  z-index: 1;
}

/* Contenido del hero */
.contenido-hero {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem 3rem;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.1);
  animation: fadeUp 1.2s ease-out;
}

/* Tipografía del hero */
.contenido-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.contenido-hero p {
  font-size: 1.3rem;
  font-weight: 300;
  color: #f0f0f0;
}


/* Animación de entrada */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Efecto sutil de movimiento al hacer scroll */
.hero-principal::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 5px;
  background: linear-gradient(90deg, #00bcd4, #0073aa, #004e89);
  border-radius: 10px;
  z-index: 3;
}

/* === HERO EN FORMATO CARD === */
/* === HERO CON EFECTO DE ENSAMBLAJE === */
.hero-integrado {
  position: relative;
  width: 87%;
  margin: 4rem auto;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
 
  max-width: 1400px;
}

/* Contenedor de la imagen */
.hero-integrado .hero-imagen {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

/* Simulación del efecto tipo "rompecabezas" con fragmentos */
.hero-integrado .hero-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  animation: revealImage 1.2s ease-in-out forwards;
}

/* Efecto tipo “armado” con divisiones */
.hero-integrado .hero-imagen::before,
.hero-integrado .hero-imagen::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 33.3% 33.3%;
  animation: puzzleAssemble 1.4s ease-in-out forwards;
}

@keyframes revealImage {
  0% { opacity: 0; transform: scale(1.08) rotate(1deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes puzzleAssemble {
  0% { opacity: 0; transform: scale(1.2) translateY(20px); }
  50% { opacity: 0.5; }
  100% { opacity: 0; transform: scale(1) translateY(0); }
}

/* === TEXTO SOBRE LA IMAGEN === */
.hero-integrado .hero-texto {
  position: absolute;
  top: 50%;
  right: 6%;
  transform: translateY(-50%);
  text-align: right;
  z-index: 2;
  opacity: 0;
  animation: fadeInText 1.2s ease-out 1s forwards;
}

@keyframes fadeInText {
  from { opacity: 0; transform: translate(50px, -50%); }
  to { opacity: 1; transform: translate(0, -50%); }
}

/* === ESTILO DEL TÍTULO === */
.hero-integrado .hero-texto h1 {
  font-size: clamp(4rem, 7vw, 5.5rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-shadow:
    0 0 25px rgba(128, 0, 255, 0.8),
    0 0 60px rgba(128, 0, 255, 0.6),
    0 0 90px rgba(0, 0, 0, 0.7);
  line-height: 1.1;
  transition: transform 0.5s ease, text-shadow 0.5s ease;
}

.hero-integrado .hero-texto h1:hover {
  transform: scale(1.05);
  text-shadow:
    0 0 35px rgba(173, 51, 255, 0.9),
    0 0 90px rgba(128, 0, 255, 0.6);
}

/* === SUBTÍTULO === */
.hero-integrado .hero-texto p {
  font-size: 1.3rem;
  color: #e6d7ff;
  font-weight: 400;
  text-shadow: 0 0 10px rgba(0,0,0,0.4);
  max-width: 400px;
  margin-left: auto;
}

/* === MÓVIL === */
@media (max-width: 900px) {
  .hero-integrado .hero-imagen {
    height: 380px;
  }

  .hero-integrado .hero-texto {
    top: 10;
    bottom: 10%;
    right: 50%;
    transform: translateX(50%);
    text-align: center;
  }

  .hero-integrado .hero-texto h1 {
    font-size: 2.8rem;
  }

  .hero-integrado .hero-texto p {
    font-size: 1rem;
    max-width: 90%;
    margin: 0 auto;
  }
}


/* === Ajuste de alineación general === */
/* =====================================
   Ajuste: contenedor interior para secciones full-width
   ===================================== */

/* Mantener .contenido-full como sección full-width pero centrar su contenido */
.contenido-full {
  width: 100%;
  box-sizing: border-box;
  padding: 4rem 0; /* separación vertical general */
}

/* Constrain the inner sections so they align with hero / main container */
.contenido-full .beneficios-servicio,
.contenido-full .testimonios-servicio,
.contenido-full .cta-servicio,
.contenido-full .imagen-secundaria {
  width: 87%;
  max-width: 1200px;    /* ajusta a tu valor real si tu .contenedor usa otro max-width */
  margin: 0 auto;       /* centra esas secciones */
  padding: 2rem 1.5rem; /* padding interior */
  box-sizing: border-box;
}

/* Si ya tienes clase .contenedor en tu tema, mejor usarla: */
/* Eliminamos la regla conflictiva y usamos contenedor real */
.beneficios-servicio,
.testimonios-servicio,


.cta-servicio {
  width: 87%;           /* ancho máximo */
  max-width: 1200px;    /* evita desbordes */
  margin: 0 auto;       /* centra la sección */
  padding: 2rem 1.5rem; /* espacio interno */
  box-sizing: border-box;
  
}
.cta-servicio-pro {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--lavanda-claro) 0%, #fdfbff 100%);
}

/* Ajuste del grid de beneficios para que no se salga */
.grid-beneficios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  align-items: start;
}

/* Responsivo: en pantallas pequeñas apilar */
@media (max-width: 900px) {
  .contenido-full .beneficios-servicio,
  .contenido-full .testimonios-servicio,
  .contenido-full .cta-servicio {
    width: 92%;
    padding: 1.2rem;
  }

  .grid-beneficios {
    grid-template-columns: repeat(1, 1fr);
  }

  .hero-integrado .hero-texto {
    right: 50%;
    transform: translateX(50%) translateY(-50%);
  }
}
/* --- Animación suave al aparecer en scroll --- */
.animar-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Cuando se activa */
.animar-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Animación al aparecer desde la derecha (más suave y lenta) --- */
.animar-scroll {
  opacity: 0;
  transform: translateX(80px); /* un poco más lejos para dar efecto */
  transition: opacity 1.4s ease-out, transform 1.4s ease-out; /* más lento */
}

.animar-scroll.visible {
  opacity: 1;
  transform: translateX(0);
}

/* === Contenedor de tarjetas === */
.grid-beneficios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

 /* === CARD CON SOMBRA PROFUNDA Y EFECTO DE BRILLO EN HOVER === */
.beneficio-item {
  position: relative;
  background: var(--dorado) !important;
  border-radius: 18px;
  padding: 2rem;
  border: 2px solid rgba(26, 0, 170, 0.2); /* borde tenue con color principal */
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.25), /* sombra oscura principal */
    0 18px 40px rgba(0, 0, 0, 0.15); /* profundidad extra */
  transform-style: preserve-3d;
  transition: all 0.5s ease;
  z-index: 1;
}

/* --- Efecto de luz y brillo en hover --- */
.beneficio-item:hover {
  transform: translateY(-8px) rotateX(2deg) rotateY(-1deg);
  border-color: rgba(255, 255, 255, 0.5); /* borde más visible */
  box-shadow:
    0 15px 35px rgba(122, 170, 0, 0.25), /* toque de luz púrpura */
    0 25px 55px rgba(0, 0, 0, 0.2),
    inset 0 1px 3px rgba(255, 255, 255, 0.5);
  background: radial-gradient(circle at top left, #ef11fb66, #aba58b00)  !important;;
}

/* === Animación de aparición === */
@keyframes ensamblarPieza {
  0% {
    opacity: 0;
    transform: scale(0.9) translate(var(--x), var(--y)) rotate(var(--r));
    filter: blur(6px);
  }
  70% {
    opacity: 1;
    transform: scale(1.04) translate(0, 0) rotate(0deg);
    filter: blur(1px);
  }
  100% {
    transform: scale(1);
    filter: blur(0);
  }
}

.beneficio-item {
  opacity: 0; /* invisibles por defecto */
  transform: translateY(40px) scale(0.96);
  will-change: transform, opacity;
  visibility: hidden; /* <- evita que se vean antes de animar */
}

.beneficio-item.is-animated {
  visibility: visible; /* se muestra justo al iniciar animación */
  animation: subirSuave 1.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes subirSuave {
  0% {
    opacity: 0.2; /* antes estaba 0.7 — bajamos para que no "parpadee" */
    transform: translateY(40px) scale(0.96);
  }
  60% {
    transform: translateY(-6px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}



/* Dirección diferente para cada card (efecto rompecabezas) */
.beneficio-item:nth-child(1) {
  --x: -80px;
  --y: 40px;
  --r: -4deg;
}
.beneficio-item:nth-child(2) {
  --x: 60px;
  --y: 70px;
  --r: 3deg;
}
.beneficio-item:nth-child(3) {
  --x: -40px;
  --y: 100px;
  --r: -2deg;
}
.beneficio-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, transparent 100%);
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.beneficio-item:hover::before {
  opacity: 1;
}

/* === EFECTO 3D MEJORADO PARA LOS CARDS DE BENEFICIOS === */
.beneficio-item {
  position: relative;
  background: #fff !important;
  border-radius: 18px;
  padding: 2rem;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.15),
    0 15px 35px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
  transform-style: preserve-3d;
  z-index: 1;
}

.beneficio-item:hover {
  transform: translateY(-10px) rotateX(3deg) rotateY(-2deg);
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.25),
    0 25px 45px rgba(0, 0, 0, 0.15);
}

/* Fondo de la sección para resaltar el 3D */
.beneficios-servicio {
  background: linear-gradient(180deg, #f8f8f8 0%, #ececec 100%);
  padding: 4rem 0;
}


 /* === CARD CON SOMBRA PROFUNDA Y EFECTO DE BRILLO EN HOVER === */
.beneficio-item {
  position: relative;
  background: #fff !important;
  border-radius: 18px;
  padding: 2rem;
  border: 2px solid rgba(26, 0, 170, 0.2); /* borde tenue con color principal */
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.25), /* sombra oscura principal */
    0 18px 40px rgba(0, 0, 0, 0.15); /* profundidad extra */
  transform-style: preserve-3d;
  transition: all 0.5s ease;
  z-index: 1;
}

/* --- Efecto de luz y brillo en hover --- */
.beneficio-item:hover {
  transform: translateY(-8px) rotateX(2deg) rotateY(-1deg);
  border-color: rgba(122, 0, 170, 0.5); /* borde más visible */
  box-shadow:
    0 15px 35px rgba(122, 0, 170, 0.25), /* toque de luz púrpura */
    0 25px 55px rgba(0, 0, 0, 0.2),
    inset 0 1px 3px rgba(255, 255, 255, 0.5);
  background: radial-gradient(circle at top left, #ffffff, #faf7fc);
}

/* === CARD PRO PARA CTA CONTACTO=== */
.card-pro {
  background-color: #fff;
  border: 2px solid var(--primario);
  border-radius: 1.5rem;
  box-shadow: 0 6px 20px rgba(122, 0, 170, 0.15);
  text-align: center;
  padding: 3rem 2rem;
  max-width: 600px;
  width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-pro:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(122, 0, 170, 0.25);
}

.card-pro .card-titulo {
  color: var(--primario);
  font-family: var(--fuente-headings);
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.card-pro .card-texto {
  font-size: 1.8rem;
  color: #555;
  margin-bottom: 2rem;
}

/* === BOTÓN CTA CON EFECTO DE ENERGÍA / BRILLO === */
.boton-cta {
  display: inline-block;
  background: linear-gradient(90deg, #7A00AA, #B000E0);
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(122, 0, 170, 0.3);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: pulsoBrillo 2.8s ease-in-out infinite;
}

/* Luz que se mueve por el botón */
.boton-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.7) 50%,
    rgba(255, 255, 255, 0.3) 100%
  );
  transform: skewX(-25deg);
  animation: brilloDeslizante 3.8s linear infinite;
}

/* Hover con elevación */
.boton-cta:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 10px 30px rgba(122, 0, 170, 0.4);
}

/* Animación del brillo */
@keyframes brilloDeslizante {
  0% { left: -80%; }
  100% { left: 140%; }
}

/* Pulso suave del fondo */
@keyframes pulsoBrillo {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.25);
  }
}


/* === ESTRUCTURA PRINCIPAL RESPONSIVA === */
.layout-blog {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .layout-blog {
    grid-template-columns: 2fr 1fr; /* Tablet */
  }
}

@media (max-width: 768px) {
  .layout-blog {
    grid-template-columns: 1fr; /* En móvil, una sola columna */
  }

  /* Sidebar pasa abajo del artículo */
  .layout-blog aside,
  .sidebar-servicios {
    order: 2;
    margin-top: 3rem;
  }

  /* Artículo ocupa todo el ancho */
  .entrada-pro {
    order: 1;
  }
}
@media (max-width: 900px) {
  .hero-integrado .hero-imagen {
    height: 300px;
  }

  .hero-integrado .hero-texto h1 {
    font-size: 2.2rem;
    text-align: center;
  }

  .hero-integrado .hero-texto p {
    font-size: 1rem;
    text-align: center;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .grid-beneficios {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .beneficio-item {
    padding: 1.5rem;
    font-size: 0.95rem;
  }

  .icono-beneficio {
    font-size: 2.4rem;
  }
}
@media (max-width: 600px) {
  h1, h2, h3 {
    text-align: center;
  }

  body {
    font-size: 16px;
    line-height: 1.6;
  }

  .seccion {
    padding: 2rem 1rem;
  }
}

/* ======== AJUSTES RESPONSIVOS HERO + CARDS ======== */

/* --- HERO EN TABLET Y MÓVIL --- */
@media (max-width: 1024px) {
  .hero-integrado .hero-texto {
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    max-width: 90%;
    padding: 0 1rem;
  }

  .hero-integrado .hero-texto h1 {
    font-size: clamp(2rem, 6vw, 3rem);
    line-height: 1.2;
    word-break: break-word;
  }

  .hero-integrado .hero-texto p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    max-width: 90%;
    margin: 0.5rem auto 0 auto;
  }
}

/* --- AJUSTE DE CARDS DE BENEFICIOS EN TABLET --- */
@media (max-width: 1024px) {
  .beneficio-item h3 {
    font-size: 1.3rem;
    line-height: 1.3;
    margin-bottom: 0.8rem;
  }

  .beneficio-item p {
    font-size: 1rem;
    line-height: 1.6;
    padding: 0 0.5rem;
  }
}

/* --- EN MÓVIL PEQUEÑO (EVITA TEXTOS PEQUEÑOS O DESBORDES) --- */
@media (max-width: 600px) {
  .hero-integrado .hero-texto h2 {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }

  .beneficio-item {
    padding: 1.5rem;
  }

  .beneficio-item h3 {
    font-size: 1.2rem;
  }

  .beneficio-item p {
    font-size: 0.95rem;
  }
}
/* === Ajuste para pantallas menores a 1024px (tablets y móviles) === */
@media (max-width: 1024px) {
  .hero-integrado .hero-texto {
    position: absolute;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    text-align: center !important;
    max-width: 90% !important;
    width: 100%;
    padding: 0 1rem;
  }

  .hero-integrado .hero-texto h1 {
    font-size: clamp(1.8rem, 6vw, 2.8rem) !important;
    line-height: 1.2 !important;
    word-wrap: break-word;
  }

  .hero-integrado .hero-texto p {
    font-size: clamp(1rem, 3.8vw, 1.3rem) !important;
    line-height: 1.5;
  }
}


/* === AJUSTE DE TÍTULO Y TEXTOS DE CARDS (solo móviles y tablets, versión ampliada) === */

/* Tablet (hasta 1024px) */
@media (max-width: 1024px) {
  .beneficios-servicio h2 {
    font-size: 2.6rem !important; /* título más grande */
  }

  .beneficio-item h3 {
    font-size: 1.5rem !important; /* subtítulo del card */
  }

  .beneficio-item p {
    font-size: 1.15rem !important; /* texto dentro del card */
    line-height: 1.8;
  }
}

/* Móvil (hasta 768px) */
@media (max-width: 768px) {
  .beneficios-servicio h2 {
    font-size: 2.2rem !important; /* título principal */
  }

  .beneficio-item h3 {
    font-size: 1.4rem !important;
  }

  .beneficio-item p {
    font-size: 1.1rem !important;
    line-height: 1.8;
  }

  /* Mejorar ancho de los cards en móvil */
  .beneficio-item {
    max-width: 95%;
    margin: 0 auto 2rem;
  }
}


/* === AJUSTE SOLO PARA ESCRITORIO: agrandar solo los textos === */
@media (min-width: 1025px) {
  .beneficio-item h3 {
    font-size: 2.8rem; /* antes 1.8rem → más impacto */
    font-weight: 700;
  }

  .beneficio-item p {
    font-size: 1.5rem; /* antes 1.25rem → más legible */
    line-height: 1.9;
  }

  .icono-beneficio {
    font-size: 4.4rem; /* ícono un poco más grande */
  }
}

/* ===== Ajuste solo para móviles muy pequeños ===== */
@media (max-width: 480px) {

  /* Icono de comillas */
  .contenedor-testimoniales .swiper-slide i,
  .contenedor-testimoniales .swiper-slide .icono-testimonial {
    font-size: 1.5rem !important;  /* más pequeño */
    margin-top: 0.5rem;
    margin-bottom: 0.3rem;
  }

  /* Texto de testimonial */
  .contenedor-testimoniales .swiper-slide p,
  .contenedor-testimoniales .swiper-slide .contenido-testimonial {
    font-size: 0.9rem !important;   /* más pequeño */
    line-height: 1.3 !important;
    text-align: center;
    max-width: 95%;
  }

  /* Imagen destacada secundaria */
  .imagen-secundaria img {
    max-width: 100%;
    height: auto;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 768px) {
  .listado-grid {
    margin-top: -30px !important;
  }
}
