/* =========================================================
   Vive Activo · Pausas Activas para Empresas
   Hoja de estilos principal
   ========================================================= */

/* ---------- Reset básico ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---------- Tokens de diseño ---------- */
:root {
  /* Paleta (extraída del mockup) */
  --color-orange: #f0653c;
  --color-orange-dark: #de5227;
  --color-yellow: #f7b733;
  --color-yellow-dark: #f6a623;
  --color-yellow-darker: #e0951b;
  --color-green: #7cb342;
  --color-green-dark: #6a9c37;
  --color-dark: #3a3a3a;
  --color-dark-2: #2c2c2c;
  --color-navy: #22243a;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f4f4;
  --color-text: #22243a;
  --color-text-light: #6b6b6b;
  --color-highlight: #fef07a;
  --color-gray-icon: #c9c9c9;
  --color-star: #ffb400;
  --color-star-empty: #e0dfdc;

  /* Tipografía */
  --font-heading: "Raleway", "Raleway-fallback", "Segoe UI", sans-serif;
  --font-body: "Raleway", "Raleway-fallback", "Segoe UI", sans-serif;

  --container-width: 1200px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 60px;

  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.1);
}
/* Fuente de respaldo ajustada para que ocupe el mismo espacio que Raleway y evitar CLS */
@font-face {
  font-family: "Raleway-fallback";
  size-adjust: 104.09%;
  src: local("Arial");
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
}

p {
  color: var(--color-text);
}

mark {
  background-color: var(--color-highlight);
  color: inherit;
  padding: 0 2px;
}

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

section {
  padding: 48px 0;
}

@media (min-width: 768px) {
  section {
    padding: 64px 0;
  }
}

@media (min-width: 1024px) {
  section {
    padding: 90px 0;
  }
}

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

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h3 {
  color: var(--color-navy);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.section-header h3 strong {
  color: var(--color-navy);
}

.underline {
  display: block;
  width: 50px;
  height: 4px;
  background-color: var(--color-yellow);
  margin: 16px auto 0;
  border-radius: 4px;
}

.gallery-label {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-navy);
  letter-spacing: 0.02em;
}

.lead-paragraph {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.05rem;
  font-weight: normal;
  line-height: 1.6;
  color: var(--color-text);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-orange);
  color: var(--color-bg);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--color-orange-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* =========================================================
   Olas / bordes ondulados entre bloques
   ========================================================= */
.wave-cap {
  display: block;
  width: 100%;
  height: 34px;
  line-height: 0;
}

.wave-cap svg {
  display: block;
  width: 100%;
  height: 100%;
}

.wave-cap.wave-flip svg {
  transform: scaleY(-1);
}

@media (min-width: 768px) {
  .wave-cap {
    height: 50px;
	background-color: #f4f4f4;
  }
}

@media (min-width: 1024px) {
  .wave-cap {
    height: 70px;
	background-color: #f4f4f4;
  }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  background-color: var(--color-bg-alt);
  padding-top: 40px;
  padding-bottom: 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

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

.hero-content h1 {
  margin-bottom: 18px;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 2.8rem;
}

.text-accent {
  color: var(--color-yellow-dark);
}

.hero-content h2 {
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 2rem;
  margin: 0 auto 26px;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  justify-content: center;
}

.hero-media img {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1100 / 961;
  margin: 0 auto;
  border-radius: 50%;
  cursor: zoom-in;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
  }
  .hero-content {
    text-align: left;
  }
  .hero-content h2 {
    margin-left: 0;
  }
  .hero-media img {
    max-width: 100%;
  }
}

/* =========================================================
   Formulario de cotización (Pipedrive)
   ========================================================= */
.quote-form {
  background-color: var(--color-bg-alt);
  padding-top: 0;
  padding-bottom: 0;
}

.quote-form-card {
  max-width: 640px;
  margin: 0 auto;
  background-color: var(--color-bg-alt);
}

.quote-form-card h2:not(.form-disclaimer) {
  color: var(--color-navy);
  font-size: 1.55rem;
  margin-bottom: 24px;
  text-align: center;
}

.quote-form-title {
  font-family: var(--font-heading);
  color: var(--color-text);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  line-height: 1.2;
  margin-bottom: 24px;
  max-width: 100%;
}

.form-disclaimer {
  font-size: 0.85rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.25;
  color: var(--color-text-light);
  text-align: center;
  margin-top: 20px;
}

/*
  Contenedor donde se incrustará el shortcode del formulario de Pipedrive.
  No eliminar el id "pipedrive-form": ahí se debe pegar el shortcode/embed
  que entrega Pipedrive (Leadbooster / Web Forms).
*/
#pipedrive-form {
  width: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--color-bg);
  border: 2px dashed #d8d8d8;
  border-radius: var(--radius-sm);
  padding: 24px;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* =========================================================
   Beneficios
   ========================================================= */
.benefits {
  background-color: var(--color-bg);
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px 20px;
  margin-bottom: 48px;
}

.benefit-item {
  text-align: center;
}

.benefit-item img {
  width: 84px;
  height: 84px;
  margin: 0 auto 16px;
  object-fit: contain;
}

.benefit-item p {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-navy);
  line-height: 1.5;
}

@media (min-width: 640px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

/* ---------- Banner SENCE ---------- */
.sence-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--color-yellow-dark), var(--color-yellow));
  border-radius: var(--radius-md);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  margin-bottom: 48px;
}

/* Forma decorativa amarilla más oscura, da movimiento al fondo */
.sence-banner::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  background-color: var(--color-yellow-darker);
  opacity: 0.35;
  border-radius: 58% 42% 65% 35% / 45% 55% 45% 55%;
  top: -90px;
  right: -70px;
  z-index: 0;
}

.sence-banner::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  background-color: var(--color-yellow-darker);
  opacity: 0.25;
  border-radius: 45% 55% 40% 60% / 55% 45% 55% 45%;
  bottom: -60px;
  left: -50px;
  z-index: 0;
}

.sence-banner-img {
  position: relative;
  z-index: 1;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--color-bg);
  flex-shrink: 0;
  cursor: zoom-in;
}

.sence-banner-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.sence-banner-text p {
  color: var(--color-bg);
  font-weight: 700;
  font-size: 1.1rem;
}

@media (min-width: 768px) {
  .sence-banner {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: left;
    padding: 30px 56px;
    gap: 40px;
  }
  .sence-banner-img {
    width: 190px;
    height: 190px;
  }
  .sence-banner-text {
    align-items: flex-start;
  }
  .sence-banner-text p {
    font-size: 1.3rem;
    max-width: 460px;
  }
}

@media (min-width: 1024px) {
  .sence-banner {
    max-width: 60%;
    margin-left: auto;
    margin-right: auto;
  }
}

/* =========================================================
   Galería de sesiones
   ========================================================= */
.gallery {
  background-color: var(--color-bg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.gallery-grid img {
  width: 100%;
  border-radius: var(--radius-sm);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* =========================================================
   Implementación premium
   ========================================================= */
.premium {
  background-color: var(--color-bg);
}

.premium-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px 20px;
  margin-top: 48px;
}

.premium-item {
  text-align: center;
}

.premium-item img {
  width: 84px;
  height: 84px;
  margin: 0 auto 16px;
  object-fit: contain;
}

.premium-item p {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-navy);
  line-height: 1.5;
}

@media (min-width: 640px) {
  .premium-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .premium-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

/* =========================================================
   Banner de evaluación técnica
   ========================================================= */
.evaluation {
  background-color: var(--color-bg-alt);
  padding-top: 0;
  padding-bottom: 0;
}

.evaluation-card {
  background: linear-gradient(120deg, var(--color-yellow-dark), var(--color-yellow));
  border-radius: var(--radius-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}

.evaluation-text {
  padding: 40px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.evaluation-text p {
  color: var(--color-bg);
  font-size: 1.04rem;
  margin-bottom: 24px;
}

.evaluation-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  cursor: zoom-in;
}

@media (min-width: 768px) {
  .evaluation-card {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
  .evaluation-text {
    padding: 48px;
    justify-content: center;
  }
  .evaluation-media img {
    height: 100%;
    aspect-ratio: auto;
  }
}

@media (min-width: 1024px) {
  .evaluation-card {
    max-width: 70%;
    margin-left: auto;
    margin-right: auto;
  }
}

/* =========================================================
   Cierre / CTA final
   ========================================================= */
.closing {
  background-color: var(--color-bg);
}

.closing .lead-paragraph {
  margin-bottom: 32px;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background-color: var(--color-dark-2);
  padding: 40px 0;
  text-align: center;
}

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

.footer-tagline {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  margin-top: 14px;
}

/* =========================================================
   Chat widget (Pipedrive) — placeholder fijo
   ========================================================= */
/*
  Contenedor donde se incrustará el widget/chat de Pipedrive
  (LeadBooster Chat). No eliminar el id "pipedrive-chat-widget":
  el script de Pipedrive se encarga de renderizar la burbuja aquí.
*/
#pipedrive-chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}

/* =========================================================
   Lightbox — visor de imágenes a tamaño real
   ========================================================= */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: rgba(20, 20, 20, 0.9);
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--color-bg);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
}

.lightbox-close:hover {
  background-color: rgba(255, 255, 255, 0.24);
}

/* =========================================================
   Página de agradecimiento (post-envío del formulario)
   ========================================================= */
.thankyou-page {
  min-height: 100vh;
  background-color: #828282;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.thankyou-card {
  position: relative;
  width: 90%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.thankyou-wave {
  display: block;
  width: 100%;
  height: 26px;
  line-height: 0;
}

.thankyou-wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

.thankyou-wave-bottom svg {
  transform: scaleY(-1);
}

@media (min-width: 640px) {
  .thankyou-wave {
    height: 36px;
  }
}

.thankyou-body {
  padding: 8px 32px 40px;
  text-align: center;
}

.thankyou-title {
  text-transform: uppercase;
  font-weight: 900;
  font-size: 1.9rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

@media (min-width: 640px) {
  .thankyou-title {
    font-size: 2.2rem;
  }
}

.thankyou-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--color-green);
  color: var(--color-green);
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.thankyou-text {
  color: var(--color-navy);
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

.thankyou-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--color-green);
  background-color: var(--color-bg-alt);
  color: var(--color-green);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, transform 0.15s ease;
  z-index: 2;
}

.thankyou-close:hover {
  background-color: var(--color-green);
  color: var(--color-bg);
  transform: scale(1.05);
}

.btn-success {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  background-color: var(--color-green);
  color: var(--color-bg);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-top: 8px;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn-success:hover {
  background-color: var(--color-green-dark);
  transform: translateY(-2px);
}

/* =========================================================
   Testimonios — carrusel de clientes
   ========================================================= */
.testimonials {
  background-color: var(--color-bg);
}

.testimonials .section-header h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.testimonials-subtitle {
  margin-top: 10px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text-light);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.testimonials-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimonials-viewport {
  /* overflow-y explícito en "hidden" (no "visible") a propósito: si se
     mezcla hidden en un eje con visible en el otro, la especificación CSS
     convierte ese "visible" en "auto", que igual recorta la sombra. Por
     eso se deja hidden en los dos ejes y se le da espacio vertical extra
     con padding + margen negativo (solo arriba/abajo, nunca a los lados,
     para no volver a generar el desborde horizontal). */
  overflow: hidden;
  width: 100%;
  min-width: 0;
  padding-top: 10px;
  padding-bottom: 30px;
  margin-top: -10px;
  margin-bottom: -30px;
}

.testimonials-track {
  display: flex;
  align-items: stretch;
  list-style: none;
  gap: 20px;
  will-change: transform;
  transition: transform 0.4s ease;
  touch-action: pan-y;
  cursor: grab;
}

.testimonials-track:active {
  cursor: grabbing;
}

.testimonial-card {
  flex: 0 0 100%;
  max-width: 100%;
}

/* Envoltorio interno: recorta el degradé gris/blanco a las esquinas
   redondeadas SIN recortar la sombra de .testimonial-card */
.testimonial-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.testimonial-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  background-color: var(--color-bg-alt);
  padding: 32px 26px 22px;
}

.testimonial-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  text-align: center;
  background-color: var(--color-bg);
  padding: 22px 26px 30px;
}

.testimonial-quote-mark {
  align-self: flex-start;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 0.7;
  color: var(--color-green);
  margin-bottom: 10px;
}

.testimonial-text {
  font-size: 0.82rem;
  color: var(--color-text);
  line-height: 1.6;
  text-align: center;
}

.testimonial-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 14px;
}

.testimonial-stars {
  color: var(--color-star);
  font-size: 1rem;
  letter-spacing: 3px;
  margin-bottom: 14px;
}

.testimonial-stars .star-empty {
  color: var(--color-star-empty);
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-navy);
  margin-bottom: 2px;
}

.testimonial-role {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--color-text-light);
  line-height: 1.4;
  max-width: 240px;
}

@media (min-width: 640px) {
  .testimonial-card {
    flex-basis: calc((100% - 20px) / 2);
  }
}

@media (min-width: 1024px) {
  .testimonial-card {
    flex-basis: calc((100% - 40px) / 3);
  }
}

/* ---------- Flechas del carrusel ---------- */
.carousel-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  background: none;
  border: none;
  box-shadow: none;
  color: var(--color-navy);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  z-index: 2;
  transition: color 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}

.carousel-arrow:hover {
  color: var(--color-orange);
  transform: scale(1.12);
}

.carousel-arrow[disabled] {
  opacity: 0.25;
  pointer-events: none;
  cursor: default;
}

@media (min-width: 768px) {
  .carousel-arrow {
    width: 44px;
    font-size: 3.2rem;
  }
}

