/* --------------------
   GENERALES
-------------------- */

/* Que todos los elementos cuenten padding y borde dentro del ancho */
*, *::before, *::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
  background-color: #ffffff;
}

body {
  overflow-x: hidden;
}

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

/* Tipografías */
.p1 {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.35;
  color: #000000;
  margin: 0;
}

.p2 {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.35;
  color: #000000;
  margin: 0;
}

/* Botón CTA (Hero y donde se use) */
.hero-cta {
  display: inline-block;
  font-family: "omnes", sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  color: #000000;
  background-color: #ffd743;
  padding: 14px 56px;
  border-radius: 75px;
  border: none;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.hero-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  background-color: #ffcf26;
}

/* --------------------
   HEADER FIJO
-------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  padding: 20px 40px;
  z-index: 9999;
  border-bottom: 1px solid #eee;
  box-sizing: border-box;

  /* Animación de entrada suave (la dejamos) */
  transform: translateY(-16px);
  opacity: 0;
  animation: headerFadeDown 0.6s ease forwards 0.1s;
}

/* Contenedor centrado para logo + botón */
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.logo img {
  height: 26px;
  width: auto;
  display: block;
}

/* BOTÓN CONTACTO (Desktop) */
.btn-contact {
  font-family: "omnes", sans-serif;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  color: #000;

  padding: 10px 24px;
  border: 1px solid #000;
  border-radius: 7.5px;

  transition: background-color 0.18s ease, color 0.18s ease,
    transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-contact:hover {
  background: #000;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

/* Animación de entrada del header */
@keyframes headerFadeDown {
  from {
    transform: translateY(-16px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* --------------------
   RESPONSIVO
-------------------- */

/* FIX HEADER EN MOBILE */
@media (max-width: 768px) {
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;

    /* forzamos que sea visible y sin animación rara */
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    background: #ffffff;
    z-index: 9999;
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .logo img {
    height: 28px;
    display: block;
  }

  .btn-contact {
    display: none !important; /* solo logo centrado en mobile */
  }
}

/* --------------------
   HERO
-------------------- */

.hero {
  position: relative;
  text-align: center;
  padding: 160px 40px 320px;
  overflow: hidden;
  background-color: #ffffff;

  /* Desktop: imagen de fondo “clásica” */
  background-image: url("img/cloud_background_v2.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
}

/* Contenedor del contenido */
.hero-inner {
  max-width: 880px;
  margin: 0 auto;

  /* Fade del contenido (texto + botón) */
  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeUp 0.7s ease forwards 0.3s;
}

.hero-title {
  font-family: "Times New Roman", Times, serif;
  font-weight: 400;
  font-size: 60px;
  line-height: 0.9;
  letter-spacing: 0.01em;
  color: #000000;
  margin: 0 auto 28px;
}

.hero-title-italic {
  font-style: italic;
}

.hero-text {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.25;
  color: #000000;
  max-width: 640px;
  margin: 0 auto 40px;
}

/* Animación del contenido */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animación del fondo (para mobile) */
@keyframes heroBgFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------
   HERO MOBILE
-------------------- */

@media (max-width: 768px) {

  .hero {
    position: relative;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    overflow: hidden;

    padding: 0;

    /* Apagamos el fondo base del desktop */
    background-image: none;
    background-color: #ffffff;
  }

  /* Fondo animado como pseudo-elemento */
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image: url("img/cloud_background_v2.png");
    background-repeat: no-repeat;

    /* ✅ “Cover” tipo CTA: llena el bloque aunque recorte */
    background-size: cover;

    /* punto de partida */
    background-position: 50% 40%;

    opacity: 0;

    /* Fade-in + drift lateral suave */
    animation:
      heroBgFadeIn 1.4s ease forwards 0.6s,
      heroCloudDrift 18s ease-in-out infinite 2.0s;

    z-index: 0;
  }

  .hero-inner {
    position: relative;
    z-index: 2;
    padding: 120px 24px 40px;
    box-sizing: border-box;
    max-width: 100%;
  }

  .hero-title {
    font-size: 32px;
    line-height: 1.08;
    margin-bottom: 18px;
  }

  .hero-text {
    font-size: 16px;
    line-height: 1.38;
    margin-bottom: 28px;
    max-width: 92%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    font-size: 15px;
    padding: 12px 32px;
  }
}

@keyframes heroCloudDrift {
  0%   { background-position: 46% 40%; }
  50%  { background-position: 54% 40%; }
  100% { background-position: 46% 40%; }
}

/* --------------------
   SECCIÓN EL PROBLEMA
-------------------- */

.problem {
  margin-top: -40px;
}

/* Personaje sentado sobre el bloque azul */
.problem-character {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin-bottom: -40px; /* hace que la nube se meta dentro del bloque azul */
}

.problem-character img {
  max-width: 220px;  /* ajusta según tu imagen */
  height: auto;
}

/* Bloque azul */
.problem-block {
  width: 100%;
  background-color: #357ee7;
  border-radius: 35px 35px 0 0;
  padding: 80px 40px 100px;
  color: #ffffff;
  position: relative;
  z-index: 1;

  margin: 0;            /* <-- evita espacios laterales */
  box-sizing: border-box; /* <-- evita que padding cree overflow */
}

/* Interior: dos columnas */
.problem-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  column-gap: 80px;
  align-items: center;
}

/* Columna izquierda: textos */
.problem-content {
  max-width: 520px;
}

/* Tag / píldora */
.problem-tag {
  display: inline-block;
  font-family: "omnes", sans-serif;
  font-weight: 600;          /* Semibold */
  font-size: 16px;
  color: #000000;
  background-color: #ffd743;
  padding: 8px 24px;
  border-radius: 75px;
  margin-bottom: 32px;
}

/* H2 */
.problem-title {
  font-family: "Times New Roman", Times, serif;
  font-weight: 400;
  font-size: 45px;
  line-height: 1.1;  /* 110% */
  color: #ffffff;
  margin: 0 0 24px;
}

.problem-title-italic {
  font-style: italic;
}

/* Párrafo */
.problem-text {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.25; /* 125% */
  color: #ffffff;
  margin: 0;
}

/* Columna derecha: ilustración */
.problem-illustration {
  display: flex;
  justify-content: center;
}

.problem-illustration img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .problem-block {
    padding: 60px 24px 70px;
    border-radius: 24px 24px 0 0;
  }

.problem-tag {
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
  }

  .problem-inner {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }

  .problem-content {
    text-align: center;
    max-width: 100%;
  }

  .problem-title {
    font-size: 30px;
  }

  .problem-text {
    font-size: 16px;
  }

  .problem-character img {
    max-width: 150px;
  }
}

.problem-illustration img {
  max-width: 200px;
  height: auto;
}

/* --------------------
   SECCIÓN LA SOLUCIÓN
-------------------- */

.solution {
  background-color: #ffffff;
}

/* Bloque blanco con esquinas superiores redondeadas */
.solution-block {
  width: 100%;
  background-color: #ffffff;
  border-radius: 35px 35px 0 0;  /* igual que el bloque azul */
  padding: 80px 40px 100px;
  box-sizing: border-box;
}

.solution-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

/* Píldora */
.solution-tag {
  display: inline-block;
  font-family: "omnes", sans-serif;
  font-weight: 600;      /* Semibold */
  font-size: 16px;
  color: #000000;
  background-color: #ffd743;
  padding: 8px 24px;
  border-radius: 75px;
  margin-bottom: 32px;
}

/* Título */
.solution-title {
  font-family: "Times New Roman", Times, serif;
  font-weight: 400;
  font-size: 45px;
  line-height: 1.1;      /* 110% */
  color: #000000;
  margin: 0 0 24px;
}

.solution-title-italic {
  font-style: italic;
}

/* Párrafo */
.solution-text {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.25;     /* 125% */
  color: #000000;
  max-width: 540px;
  margin: 0 auto 48px;
}

/* Imagen */
.solution-image img {
  max-width: 100%;
  height: auto;
}

/* --- SOLUCIÓN MOBILE --- */
@media (max-width: 768px) {

  .solution-block {
    padding: 60px 24px 70px;
    border-radius: 24px 24px 0 0;
  }

  .solution-inner {
    max-width: 100%;
  }

  .solution-tag {
    font-size: 14px;
    padding: 6px 20px;
    margin-bottom: 24px;
  }

  .solution-title {
    font-size: 30px;
    line-height: 1.15;
    margin-bottom: 20px;
  }

  .solution-text {
    font-size: 16px;
    line-height: 1.4;
    max-width: 100%;
    margin-bottom: 32px;
  }

  .solution-image img {
    max-width: 320px;
    width: 100%;
    margin: 0 auto;
    display: block;
  }
}

/* --------------------
   SECCIÓN NUESTRA PROMESA
-------------------- */

.promise {
  width: 100%;
  margin-top: -40px; /* se une visualmente con el bloque anterior */
}

.promise-block {
  width: 100%;
  background-color: #00aef0;
  color: #ffffff;
  padding: 80px 40px 150px;  /* antes 160px → ahora 180px */
  border-radius: 35px 35px 0 0;
  box-sizing: border-box;
}

.promise-inner {
  max-width: 1200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr 1.3fr 0.8fr;
  column-gap: 40px;
  align-items: center;
}

/* Columna 1: título */
.promise-title {
  font-family: "Times New Roman", Times, serif;
  font-weight: 400;
  font-size: 45px;
  color: #ffffff;
  margin: 0;
}

.promise-title-italic {
  font-style: italic;
}

/* Columna 2: texto */
.promise-text {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  line-height: 1.25;
  color: #ffffff;
  margin: 0;
  max-width: 480px;
}

/* Columna 3: botón */
.promise-btn {
  display: inline-block;
  font-family: "omnes", sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  color: #000000;

  background-color: #ffffff;
  padding: 12px 32px;
  border-radius: 75px;
  border: none;

  transition: 0.2s ease;
}

.promise-btn:hover {
  background-color: #f2f2f2;
}

/* --- PROMESA MOBILE --- */
@media (max-width: 768px) {

  .promise-block {
  width: 100%;
  background-color: #00aef0;
  color: #ffffff;
  padding: 80px 40px 160px; /* ⬅️ aumenta el espacio abajo */
  border-radius: 35px 35px 0 0;
  box-sizing: border-box;
}

  .promise-inner {
    grid-template-columns: 1fr;
    row-gap: 32px;
    text-align: center;
  }

  .promise-title {
    font-size: 32px;
  }

  .promise-text {
    font-size: 16px;
    line-height: 1.4;
    max-width: 100%;
    margin: 0 auto;
  }

  .promise-btn {
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    padding: 14px 0;
  }
}

/* --------------------
   TEXTO BASE p1
-------------------- */

.p1 {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.35;
  color: #000000;
  margin: 0;
}

/* --------------------
   TEXTO SECUNDARIO p2
-------------------- */

.p2 {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.35;
  color: #000000;
  margin: 0;
}

/* ===============================
    MOBILE – PROMESA
================================ */
@media (max-width: 768px) {

  .promise {
    position: relative;
    z-index: 1;
    margin-top: 40px; /* empuja hacia abajo */
  }

  .promise-block{
    width: 100%;
    background-color: #00aef0;
    color: #ffffff;
    padding: 34px 50px 100px;
    border-radius: 24px 24px 0 0;
    box-sizing: border-box;
  }

  .promise-inner{
    max-width: 360px;           /* ✅ “ligeramente más chico” */
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 18px;
    text-align: center;
  }

  .promise-title{
    font-size: 32px;
    margin: 0 0 24px;
    text-align: center;
  }

  .promise-text{
    font-size: 15px;
    line-height: 1.45;
    max-width: 100%;
    margin: 0 auto;
  }

  .promise-btn{
    display: inline-block;
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
    padding: 12px 0;
  }
}



/* --------------------
   SECCIÓN BENEFICIOS
-------------------- */

.benefits {
  width: 100%;
  position: relative;
  margin-top: -40px;
}

/* Personaje sentado en el borde azul (solo desktop por defecto) */
.benefits-character {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  /* lo colocamos justo sobre el borde superior del bloque azul */
  bottom: calc(100% - 40px); /* ajusta 40px si quieres más arriba/abajo */
  width: 220px;
  max-width: 40vw;
  z-index: 3;
  pointer-events: none;
}

.benefits-block {
  width: 100%;
  background-color: #357ee7;
  border-radius: 35px 35px 0 0;
  padding: 100px 40px 100px; /* más padding arriba para que haya espacio entre el título y el borde */
  color: #ffffff;
  box-sizing: border-box;
}

.benefits-inner {
  max-width: 1300px;
  margin: 0 auto;
  text-align: center;
}

.benefits-title {
  font-family: "Times New Roman", Times, serif;
  font-weight: 400;
  font-size: 45px;
  color: #ffffff;
  margin: 0 0 40px;
}

.benefits-title-italic {
  font-style: italic;
}

.benefits-grid {
  display: grid;
  gap: 10px;
}

.benefits-grid--top {
  grid-template-columns: repeat(4, 1fr);
}

.benefits-grid--bottom {
  grid-template-columns: repeat(3, 1fr);
  max-width: 900px;
  margin: 40px auto 0;
}

.benefit-card {
  background-color: #ffffff;
  color: #000000;
  border-radius: 12px;
  height: 220px;
  padding: 25px;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  opacity: 1;
  transform: translateY(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.benefit-card-title {
  font-family: "Times New Roman", Times, serif;
  font-weight: 400;
  font-size: 25px;
  margin: 0 0 22px; /* más aire en desktop */
}

.benefit-card .p2 {
  font-size: 15px;
  line-height: 1.35;
}

/* Hover premium desktop */
@media (min-width: 769px) {
  .benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    background-color: #fafafa;
  }
}

/* --------------------
   RESPONSIVO BENEFICIOS
-------------------- */

@media (max-width: 768px) {
  .benefits {
    position: relative;
    z-index: 3;
    margin-top: -32px; /* clave: tapa las esquinas */
  }

  /* ocultamos el personaje en mobile */
  .benefits-character {
    display: none;
  }

  .benefits-block {
    padding: 32px 18px 48px;
    border-radius: 24px 24px 0 0;
  }

  .benefits-inner {
    text-align: left;
  }

  .benefits-title {
    font-size: 32px;
    margin: 0 0 24px;
    text-align: center;
  }

  .benefits-grid--top,
  .benefits-grid--bottom {
    grid-template-columns: 1fr;
    max-width: 100%;
    margin: 0;
    gap: 12px;
  }

  .benefits-grid--bottom {
    margin-top: 20px;
  }

  .benefit-card {
    width: 100%;
    height: auto;
    padding: 20px 16px 16px;

    /* estado inicial para la animación con scroll */
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }

  .benefit-card.is-visible {
    animation: benefitBounceIn 0.75s cubic-bezier(0.25, 1.4, 0.5, 1) forwards;
  }

  .benefit-card-title {
    font-size: 21px;
    margin-bottom: 8px;
  }

  .benefit-card .p2 {
    font-size: 14px;
    line-height: 1.45;
  }
}

/* Bounce suave mobile */
@keyframes benefitBounceIn {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  50% {
    opacity: 1;
    transform: translateY(-6px) scale(1.02);
  }
  80% {
    transform: translateY(3px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* --------------------
   SECCIÓN NUESTROS SERVICIOS
-------------------- */

.services {
  width: 100%;
  position: relative;
  margin-top: -40px;
  background-color: #ffffff;
  border-radius: 35px 35px 0 0;
  padding: 100px 40px;
  box-sizing: border-box;
}

.services-inner {
  max-width: 1200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr 1.1fr;
  column-gap: 60px;
  align-items: flex-start;
}

/* Columna izquierda: título + ilustración */
.services-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  /* baja un poco el bloque para alinear el h2 con "Migración Cloud" */
  padding-top: 40px; /* ajusta 30–50px según lo veas en tu monitor */
}

.services-title {
  font-family: "Times New Roman", Times, serif;
  font-weight: 400;
  font-size: 45px;
  line-height: 1;
  margin: 0 0 32px;
  color: #000;
}

.services-title-italic {
  font-style: italic;
}

/* Ilustración (20% más pequeña aprox.) */
.services-illustration {
  max-width: 80%;   /* antes ocupaba casi todo; ahora ~20% menor */
  height: auto;
  margin-top: 16px;
}

/* Columna derecha: lista de servicios */
.services-right {
  /* nada especial aquí por ahora */
}

/* Item de servicio */
.services-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;

  /* base para animación + hover */
  opacity: 0;
  transform: translateY(16px);
  animation: servicesFadeUp 0.6s ease forwards;
}

.services-item-icon {
  width: 22px;
  margin-right: 16px;
}

.services-item-body {
  max-width: 420px;
}

.services-item-title {
  font-family: "Times New Roman", Times, serif;
  font-weight: 400;
  font-size: 25px;
  margin: 0 0 8px;
  color: #000;
}

/* stagger suave en desktop y mobile */
.services-right .services-item:nth-child(1) { animation-delay: 0.15s; }
.services-right .services-item:nth-child(2) { animation-delay: 0.22s; }
.services-right .services-item:nth-child(3) { animation-delay: 0.29s; }
.services-right .services-item:nth-child(4) { animation-delay: 0.36s; }

/* Animación base fade-up */
@keyframes servicesFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* HOVER ELEGANTE SOLO DESKTOP */
@media (min-width: 769px) {
  .services-item {
    padding: 8px 10px;
    border-radius: 10px;
    transition: transform 0.22s ease,
                box-shadow 0.22s ease,
                background-color 0.22s ease;
  }

  .services-item:hover {
    transform: translateX(6px);
    background-color: #fafafa;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  }
}

/* --------------------
   SERVICIOS MOBILE
-------------------- */

@media (max-width: 768px) {
  .services {
    margin-top: 0;
    border-radius: 24px 24px 0 0;
    padding: 48px 20px 56px;
  }

  .services-inner {
    max-width: 100%;
    display: block; /* columnas apiladas */
  }

  .services-left {
    padding-top: 0;
    margin-bottom: 28px;
  }

  .services-title {
    font-size: 32px;
    margin-bottom: 18px;
    text-align: left;
  }

  .services-illustration {
    max-width: 70%;
    margin: 16px auto 0; /* centrada bajo el título */
  }

  .services-right {
    /* texto alineado a la izquierda */
  }

  .services-item {
    margin-bottom: 22px;
    opacity: 0;
    transform: translateY(18px);
    animation: servicesFadeUp 0.7s ease forwards;
  }

  .services-item-icon {
    width: 20px;
    margin-right: 12px;
    margin-top: 2px;
  }

  .services-item-title {
    font-size: 20px;
    margin-bottom: 6px;
  }

  .services-item .p1 {
    font-size: 14px;
    line-height: 1.45;
  }
}

/* --------------------
   CTA BANNER
-------------------- */

.cta-banner {
  position: relative;
  text-align: center;
  padding: 140px 40px 50px;
  overflow: hidden;

  background-image: url("img/cloud_cta_banner_back.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
}

.cta-banner-title {
  font-family: "Times New Roman", Times, serif;
  font-weight: 400;
  font-size: 60px;
  line-height: 0.9;
  color: #000000;
  margin: 0 0 28px;
}

.italic {
  font-style: italic;
}

.cta-banner-text {
  max-width: 640px;
  margin: 0 auto 40px;
}

.cta-banner-inner {
  opacity: 0;
  transform: translateY(14px);
  animation: ctaFadeUp 0.8s ease forwards 0.2s;
}

@keyframes ctaFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------
   CTA BANNER – MOBILE
-------------------- */

@media (max-width: 768px) {

  .cta-banner {
    position: relative;
    padding: 120px 24px 56px;
    text-align: center;

    /* CLAVE:
       la nube ahora cubre todo el bloque */
    background-size: cover;
    background-position: center center;
  }

  .cta-banner-inner {
    position: relative;
    z-index: 2; /* texto siempre encima */
  }

  .cta-banner-title {
    font-size: 32px;
    line-height: 1.1;
    margin-bottom: 18px;
  }

  .cta-banner-text {
    max-width: 90%;
    font-size: 16px;
    line-height: 1.4;
    margin: 0 auto 28px;
  }

  .cta-banner .hero-cta {
    font-size: 15px;
    padding: 13px 32px;
  }
}

/* --------------------
   FOOTER – AJUSTES DESKTOP
-------------------- */

@media (min-width: 769px) {

  /* Ambas columnas como columnas flex */
  .footer-left,
  .footer-right {
    display: flex;
    flex-direction: column;
  }

  /* ---- COLUMNA IZQUIERDA ---- */

  .footer-logo {
    margin-bottom: 48px; /* espacio fuerte entre logo y textos */
  }

  .footer-email {
    margin-bottom: 12px;
  }

  /* ---- COLUMNA DERECHA ---- */

  .footer-title {
    margin-bottom: 40px; /* aire entre título y botón */
  }

  .footer-cta {
    margin-bottom: 48px; /* espacio fuerte entre botón y links */
    align-self: flex-start; /* mantiene el botón alineado al texto */
  }

  .footer-links {
    margin-top: 0;
  }

  /* ---- ALINEACIÓN ENTRE COLUMNAS ---- */

  .footer-left {
    padding-top: 6px;
  }

  .footer-right {
    padding-top: 0;
  }
}

/* --------------------
   FOOTER
-------------------- */

.footer {
  width: 100%;
  background-color: #000000;
  color: #ffffff;
  padding: 100px 40px;
  margin-top: -40px;
  border-radius: 35px 35px 0 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 80px;
}

.footer-logo {
  width: 180px;
  margin-bottom: 20px;
}

.footer-email {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: #ffffff;
  text-decoration: none;
  margin-bottom: 6px;
  display: block;
}

.footer-location {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: #ffffff;
}

.footer-title {
  font-family: "Times New Roman", Times, serif;
  font-weight: 400;
  font-size: 45px;
  margin: 0 0 22px;
  color: #ffffff;
}

.footer-links a {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  color: #ffffff;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}

/* --------------------
   FOOTER - MOBILE
-------------------- */

@media (max-width: 768px) {
  .footer {
    padding: 56px 24px;
    margin-top: 0;
    border-radius: 24px 24px 0 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 36px;
    text-align: center;
  }

  .footer-logo {
    width: 160px;
    margin: 0 auto 18px;
  }

  .footer-email {
    font-size: 15px;
    margin-bottom: 8px;
  }

  .footer-location {
    font-size: 15px;
  }

  .footer-title {
    font-size: 32px;
    line-height: 1.05;
    margin: 0 0 18px;
  }

  /* CTA del footer: un poco más compacto en mobile */
  .footer-cta.hero-cta {
    font-size: 15px;
    padding: 12px 28px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  }

  .footer-links {
    margin-top: 18px;
  }

  .footer-links a {
    font-size: 14px;
    margin-bottom: 10px;
  }
}

/* --------------------
   FOOTER - MOBILE
-------------------- */
@media (max-width: 768px) {

  /* Encimar el footer sobre el CTA anterior */
  .footer {
    margin-top: -28px;   /* ajusta: -20 a -40 según lo que necesites */
    padding: 64px 24px;  /* más compacto en mobile */
    border-radius: 28px 28px 0 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    row-gap: 28px;
    text-align: center;
  }

  /* Ocultar datos en mobile */
  .footer-email,
  .footer-location {
    display: none !important;
  }

  .footer-logo {
    margin: 0 auto 14px;
    width: 170px;
  }

  .footer-title {
    font-size: 34px;
    margin-bottom: 18px;
  }

  .footer-cta {
    display: inline-block;
    margin-bottom: 22px; /* espacio antes de términos */
  }

  .footer-links a {
    font-size: 15px;
    margin-bottom: 10px;
  }
}