/* =========================================
   VARIABLES Y BASE
   ========================================= */

:root {
  --bg-body: #fdf5ff;                /* crema muy suave */
  --bg-card: #ffffff;
  --bg-soft: #f6efff;
  --accent: #0b63b5;                 /* azul del hero */
  --accent-strong: #1da4ff;
  --accent-soft: rgba(11, 99, 181, 0.12);
  --text-main: #111827;
  --text-muted: #6b7280;
  --border-subtle: rgba(148, 163, 184, 0.35);
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --container-width: 1120px;
}

/* RESET BÁSICO */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #ffffff;
  color: var(--text-main);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* HELPERS GENERALES */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  padding: 5rem 0;
}

.section-header {
  max-width: 720px;
  margin: 0 auto 3rem auto;
  text-align: center;
}

.section-header h2 {
  font-size: 2rem;
  letter-spacing: 0.02em;
  margin: 0 0 0.5rem;
}

.section-header p {
  color: var(--text-muted);
  margin: 0;
}

/* Títulos grandes reutilizables */
.section-title {
  font-size: 1.8rem;
  text-align: center;
  margin: 0;
}

/* =========================================
   HEADER
   ========================================= */

.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header .logo-img {
  height: 80px;
  width: auto;
  display: block;
  opacity: 0;
  transform: translateY(-60px);
  animation: logoSlideDownSlow 1.6s ease-out forwards;
}

@keyframes logoSlideDownSlow {
  from {
    opacity: 0;
    transform: translateY(-60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   HERO
   ========================================= */

.hero {
  position: relative;
  padding: 33rem 0 3rem;
  min-height: 420px;
  z-index: 0;
}

.hero-bg-video {
  position: absolute;
  inset: 0;                   /* top:0; right:0; bottom:0; left:0; */
  width: 100%;
  height: 100%;
  object-fit: cover;          /* rellena sin deformar */
  z-index: -1;                /* queda detrás del contenido del hero */
}

/* Por defecto: solo se ve el video de desktop */
.hero-bg-desktop {
  display: block;
}

.hero-bg-mobile {
  display: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: flex-end;
}

.titulo-hero {
  text-align: left;
  font-size: clamp(3rem);
  line-height: 1.05;
  margin: 0 0 1.1rem 0;
  color: #020617;
  opacity: 0;
  transform: translateY(80px);
  animation: heroTitleUp 2s ease-out forwards;
  animation-delay: 0.2s;
}

.hero-text .accent {
  background: linear-gradient(120deg, #0b63b5, #1da4ff, #7fd3ff);
  -webkit-background-clip: text;
  color: transparent;
}

@keyframes heroTitleUp {
  from {
    opacity: 0;
    transform: translateY(80px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-side {
  align-self: flex-end;
  max-width: 360px;
  justify-self: start;
  opacity: 0;
  transform: translateY(80px);
  animation: heroTitleUp 2s ease-out forwards;
  animation-delay: 0.2s;
}

.hero-side-text {
  text-align: left;
  color: #020617;
  font-size: 0.98rem;
  line-height: 1.7;
  margin: 0 0 1rem 0;
  font-weight: 500;
}

.hero-side-btn {
  align-self: flex-start;
  background: linear-gradient(120deg, #7fd3ff, #1da4ff, #0b63b5) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 14px 30px rgba(11, 99, 181, 0.35);
}

.hero-side-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 45px rgba(11, 99, 181, 0.45);
}

/* =========================================
   BOTONES
   ========================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.08s ease-out, box-shadow 0.08s ease-out,
    background 0.15s ease-out, border-color 0.15s ease-out;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #0b63b5, #1da4ff);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(11, 99, 181, 0.30);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(11, 99, 181, 0.45);
}

/* =========================================
   GALERÍA / SLIDER
   ========================================= */

.gallery-section {
  padding: 4rem 1.5rem 5rem;
}

.gallery-container {
  max-width: 960px;
  margin: 0 auto;
}

.slider {
  position: relative;
  margin-top: 2rem;
  z-index: 5;
}

.slider-viewport {
  overflow: hidden;
  border-radius: 1.4rem;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
  position: relative;
}

.slider-track {
  display: flex;
  width: 100%;
  transition: transform 0.4s ease;
  touch-action: pan-y;
}

.slider-slide {
  min-width: 100%;
  flex: 0 0 100%;
  display: block;
}

.slider-slide img {
  display: block;
  width: 100%;
  height: auto;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(15, 23, 42, 0.7);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #e5e7eb;
  font-size: 1.2rem;
  z-index: 10;
  pointer-events: auto;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.slider-arrow--prev {
  left: 0.75rem;
}

.slider-arrow--next {
  right: 0.75rem;
}

.slider-arrow:hover {
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.8);
}

/* =========================================
   CHIPS
   ========================================= */

.chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}

.chip {
  font-size: 0.9rem;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: #3b0764;
}

/* animación de chips escalonada */
.chips-grid .chip {
  opacity: 0;
  transform: translateX(40px);
}

.section-alt.reveal-on-scroll.is-visible .chips-grid .chip {
  animation: chipSlideInRight 0.45s ease-out forwards;
}

.section-alt.reveal-on-scroll.is-visible .chips-grid .chip:nth-child(1) { animation-delay: 0.00s; }
.section-alt.reveal-on-scroll.is-visible .chips-grid .chip:nth-child(2) { animation-delay: 0.15s; }
.section-alt.reveal-on-scroll.is-visible .chips-grid .chip:nth-child(3) { animation-delay: 0.30s; }
.section-alt.reveal-on-scroll.is-visible .chips-grid .chip:nth-child(4) { animation-delay: 0.45s; }
.section-alt.reveal-on-scroll.is-visible .chips-grid .chip:nth-child(5) { animation-delay: 0.60s; }
.section-alt.reveal-on-scroll.is-visible .chips-grid .chip:nth-child(6) { animation-delay: 0.75s; }
.section-alt.reveal-on-scroll.is-visible .chips-grid .chip:nth-child(7) { animation-delay: 0.90s; }
.section-alt.reveal-on-scroll.is-visible .chips-grid .chip:nth-child(8) { animation-delay: 1.05s; }
.section-alt.reveal-on-scroll.is-visible .chips-grid .chip:nth-child(9) { animation-delay: 1.20s; }
.section-alt.reveal-on-scroll.is-visible .chips-grid .chip:nth-child(10) { animation-delay: 1.35s; }
.section-alt.reveal-on-scroll.is-visible .chips-grid .chip:nth-child(11) { animation-delay: 1.50s; }

.section-alt.reveal-on-scroll:not(.is-visible) .chips-grid .chip {
  animation: none;
}

@keyframes chipSlideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* =========================================
   SERVICIOS / CARDS
   ========================================= */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.pricing-card {
  position: relative;
  background: var(--bg-card);
  border-radius: 1.4rem;
  border: 1px solid var(--border-subtle);
  padding: 1.8rem 1.6rem 1.6rem;
  box-shadow: var(--shadow-soft);
}

.pricing-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.pricing-tag {
  font-size: 0.9rem;
  color: #000000;
  margin: 0 0 1rem;
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.pricing-list li {
  margin-bottom: 0.45rem;
}

.pricing-card-featured {
  background: radial-gradient(circle at top, rgba(11, 99, 181, 0.15), #ffffff);
  border-color: rgba(11, 99, 181, 0.6);
  transform: translateY(-4px);
}

.badge {
  position: absolute;
  top: 1rem;
  right: 1.3rem;
  font-size: 0.7rem;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(11, 99, 181, 0.5);
  background: rgba(11, 99, 181, 0.08);
  color: #0b63b5;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* =========================================
   CTA FINAL
   ========================================= */

.section-cta {
  text-align: left;
  background: radial-gradient(circle at top, rgba(11, 99, 181, 0.12), #fdf5ff);
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-copy h2 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
}

.cta-copy p {
  margin: 0;
  color: var(--text-muted);
}

.btn-cta-final {
  display: inline-block;
  margin-left: auto;
  min-width: 230px;
}

/* =========================================
   WHATSAPP FLOTANTE
   ========================================= */

.whatsapp-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: #25d366;              /* verde WhatsApp */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;                    /* el SVG usa currentColor */
  text-decoration: none;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
  z-index: 30;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.whatsapp-icon {
  width: 28px;
  height: 28px;
}

/* =========================================
   FOOTER
   ========================================= */

.footer {
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  padding: 1.2rem 0 1.4rem;
  background: #ffffff;              /* negro/azul muy oscuro */
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: #276e8a;
}

.footer-left p {
  margin: 0;
}

.footer-small {
  opacity: 0.8;
}

/* contenedor de iconos */
.footer-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* cada iconito redondo */
.footer-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #276e8a;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    transform 0.15s ease;
}

.footer-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* hover suave tipo agencia */
.footer-icon:hover {
  background: rgba(148, 163, 184, 0.18);
  border-color: rgba(148, 163, 184, 0.8);
  transform: translateY(-1px);
}

/* footer responsive: todo centrado en mobile */
@media (max-width: 640px) {

  /* invertimos: ocultamos desktop y mostramos mobile */
  .hero-bg-desktop {
    display: none;
  }

  .hero-bg-mobile {
    display: block;
    object-position: center top; /* recorte más lindo en vertical */
  }

  /* Puedes ajustar el padding del hero en mobile si hace falta */
  .hero {
    padding: 20rem 0 3rem;
    min-height: 380px;
  }     
    
  .footer-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}

.hero-shell {
    min-height: 100vh;
  }

  .hero {
    padding: 33rem 1.5rem 2.5rem;
    min-height: auto;
  }

  /* Cambiar video: ocultamos desktop y mostramos mobile */
  .hero-bg-video-desktop {
    display: none;
  }

  .hero-bg-video-mobile {
    display: block;
    object-position: center top;  /* recorte más lindo en vertical */
  }
/* =========================================
   REVEAL AL HACER SCROLL
   ========================================= */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   MEDIA QUERIES
   ========================================= */

@media (max-width: 900px) {
  .hero {
    padding-top: 14rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-side {
    max-width: none;
  }

  .pricing-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-cta-final {
    margin-left: 0;
  }

  .footer-inner {
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
   .hero {
    padding: 20rem 0 3rem;   /* top | laterales | bottom SOLO en mobile */
    min-height: 380px;       /* opcional, podés bajarlo si querés */
  } 
    
    
  .gallery-section {
    padding-inline: 1.25rem;
  }

    /* título principal del hero */
  .titulo-hero {
    font-size: 1.6rem;      /* probá 1.6 / 1.8 hasta que te guste */
    line-height: 1.2;
  }

  /* texto lateral del hero */
  .hero-side-text {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  .section-title {
    font-size: 1.2rem;   /* probá 1.5 / 1.7 según cómo lo veas */
    line-height: 1.2;
  }
  
  .cta-copy h2 {
    font-size: 1.3rem;
    line-height: 1.25;
  }
  
  .cta-copy p {
    font-size: 0.85rem;
    line-height: 1.25;
  }
  

  /* textos generales de secciones */
  body {
    font-size: 0.95rem;
  }

  .section-header h2 {
    font-size: 1.4rem;
  }
  
  .section-header p {
    font-size: 0.85rem;
  }
}

@media (min-width: 768px) {
  .gallery-section {
    padding: 4rem 2rem 5rem;
  }

  .slider-arrow {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
  }
}

@media (min-width: 1024px) {
  .gallery-container {
    max-width: 1120px;
  }
}
