/* ==========================================================================
   Gescloud · Estilos corporativos
   Paleta pastel · Bootstrap 5 · Mobile-first
   ========================================================================== */

:root {
  --pastel-blue:   #A7C7E7;
  --pastel-green:  #BEE3DB;
  --pastel-pink:   #F7DDE2;
  --pastel-purple: #D7C9F2;
  --pastel-gray:   #F2F2F2;

  --ink:        #33415C;
  --ink-soft:   #5C6B8A;
  --white:      #FFFFFF;
  --accent:     #6B9BD2;

  --font-heading: "Poppins", "Inter", sans-serif;
  --font-body:    "Inter", "Roboto", sans-serif;

  --shadow-soft: 0 10px 30px rgba(51, 65, 92, 0.10);
  --shadow-card: 0 6px 20px rgba(51, 65, 92, 0.08);
  --radius: 1.25rem;
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--ink);
  font-weight: 600;
}

p { color: var(--ink-soft); }

a { text-decoration: none; }

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  max-width: 640px;
  margin: 0 auto 3rem;
}

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

/* ---------- Botones ---------- */
.btn-pill {
  border-radius: 50rem;
  padding: 0.7rem 1.6rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

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

.btn-pastel {
  background: linear-gradient(135deg, var(--pastel-blue), var(--accent));
  color: var(--white);
  border: none;
  box-shadow: 0 8px 20px rgba(107, 155, 210, 0.35);
}

.btn-pastel:hover {
  color: var(--white);
  box-shadow: 0 10px 26px rgba(107, 155, 210, 0.45);
}

.btn-outline-pastel {
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn-outline-pastel:hover {
  background: var(--accent);
  color: var(--white);
}

/* ---------- Navbar ---------- */
.navbar-gescloud {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(167, 199, 231, 0.35);
  padding: 0.8rem 0;
}

.navbar-gescloud .navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-gescloud .navbar-brand .brand-dot {
  color: var(--accent);
}

.navbar-gescloud .nav-link {
  color: var(--ink-soft);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 50rem;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.navbar-gescloud .nav-link:hover,
.navbar-gescloud .nav-link.active {
  color: var(--accent);
  background: rgba(167, 199, 231, 0.25);
}

/* ---------- Hero a pantalla completa ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url("../img/hero-home.png");
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(242,242,242,0.35) 55%, rgba(255,255,255,0.9) 100%);
}

.hero .container { position: relative; z-index: 1; }

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 700;
  line-height: 1.15;
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 620px;
  color: var(--ink-soft);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(167, 199, 231, 0.6);
  color: var(--accent);
  font-weight: 600;
  border-radius: 50rem;
  padding: 0.4rem 1.1rem;
  margin-bottom: 1.25rem;
}

/* Indicador de scroll */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 2px solid var(--ink-soft);
  border-radius: 50rem;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-indicator::after {
  content: "";
  width: 4px;
  height: 8px;
  border-radius: 50rem;
  background: var(--accent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Hero interno (páginas de app) ---------- */
.page-hero {
  min-height: 58vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 8rem 0 4rem;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.9));
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero .hero-title { font-size: clamp(2.2rem, 5vw, 3.5rem); }

/* ---------- Bloques de presentación (layout alternado) ---------- */
.section-block { padding: 5.5rem 0; }

.section-block:nth-of-type(even) { background: var(--pastel-gray); }

.section-block.alt .row { flex-direction: row; }

.block-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.block-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 50rem;
  padding: 0.3rem 0.9rem;
  margin-bottom: 0.75rem;
}

.tag-blue   { background: rgba(167,199,231,0.35); color: #4A7FB5; }
.tag-green  { background: rgba(190,227,219,0.55); color: #3E8F7E; }
.tag-pink   { background: rgba(247,221,226,0.65); color: #C06A7D; }
.tag-purple { background: rgba(215,201,242,0.55); color: #7A63B3; }

/* ---------- Cards de iconos / características ---------- */
.icon-card {
  background: var(--white);
  border: 1px solid rgba(167, 199, 231, 0.35);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.icon-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.icon-card .icon {
  width: 58px;
  height: 58px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  font-size: 1.5rem;
}

.icon-blue   { background: rgba(167,199,231,0.35); color: #4A7FB5; }
.icon-green  { background: rgba(190,227,219,0.55); color: #3E8F7E; }
.icon-pink   { background: rgba(247,221,226,0.65); color: #C06A7D; }
.icon-purple { background: rgba(215,201,242,0.55); color: #7A63B3; }

.icon-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.icon-card p  { font-size: 0.95rem; margin-bottom: 0; }

/* ---------- Tarjetas de módulos ---------- */
.module-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(167, 199, 231, 0.35);
  padding: 1.75rem 1.5rem;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.module-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}

.module-card .module-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: rgba(167,199,231,0.25);
  border-radius: 50rem;
  padding: 0.2rem 0.7rem;
  margin-bottom: 0.9rem;
}

.module-card h3 { font-size: 1.1rem; }
.module-card p  { font-size: 0.95rem; margin-bottom: 0; }

/* ---------- Pasos (cómo funciona) ---------- */
.step {
  text-align: center;
  padding: 2rem 1.25rem;
  position: relative;
  height: 100%;
}

.step-num {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--white);
}

.step-blue   { background: linear-gradient(135deg, var(--pastel-blue), #6B9BD2); }
.step-green  { background: linear-gradient(135deg, var(--pastel-green), #63AFA0); }
.step-purple { background: linear-gradient(135deg, var(--pastel-purple), #9A82CE); }
.step-pink   { background: linear-gradient(135deg, var(--pastel-pink), #D990A2); }

/* ---------- Bandas destacadas ---------- */
.cta-band {
  background: linear-gradient(135deg, #E9F1FA 0%, var(--pastel-purple) 100%);
  border-radius: var(--radius);
  padding: 3.5rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.45rem 0;
  color: var(--ink-soft);
}

.check-list li::before {
  content: "✓";
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(190, 227, 219, 0.8);
  color: #2E7D6B;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Formulario ---------- */
.contact-form {
  background: var(--white);
  border: 1px solid rgba(167, 199, 231, 0.4);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
}

.contact-form .form-control,
.contact-form .form-select {
  border-radius: 0.8rem;
  border: 1px solid rgba(167, 199, 231, 0.6);
  padding: 0.7rem 1rem;
  background: var(--pastel-gray);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(107, 155, 210, 0.2);
  background: var(--white);
}

.contact-form label { font-weight: 600; font-size: 0.9rem; }

/* ---------- Footer ---------- */
.footer-gescloud {
  background: var(--ink);
  color: #C6CFE0;
  padding: 3.5rem 0 0;
}

.footer-gescloud .footer-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--white);
}

.footer-gescloud h6 {
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.footer-gescloud a {
  color: #C6CFE0;
  transition: color 0.2s ease;
}

.footer-gescloud a:hover { color: var(--pastel-blue); }

.footer-gescloud .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2.5rem;
  padding: 1.25rem 0;
  font-size: 0.85rem;
  color: #93A0BA;
}

/* ---------- Animaciones de entrada ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.8s ease both; }
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

/* Aparición al hacer scroll (mejora progresiva, navegadores modernos) */
@supports (animation-timeline: view()) {
  .reveal {
    animation: fadeUp linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .section-block { padding: 4rem 0; }
  .block-img { min-height: 220px; margin-bottom: 2rem; }
}

@media (max-width: 575.98px) {
  .contact-form { padding: 1.75rem 1.25rem; }
  .cta-band { padding: 2.5rem 1.5rem; }
}
