/* ==========================================================================
   GD Soluciones — Estilos de marca sobre Bootstrap 5.3
   Mobile first. Paleta y tipografía según Manual ISOLOGO oficial.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tipografía oficial — Manual de Marca, sección 4
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto/roboto-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto/roboto-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto/roboto-black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto/roboto-blackitalic.ttf") format("truetype");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Lora";
  src: url("../fonts/lora/lora-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lora";
  src: url("../fonts/lora/lora-italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Lora";
  src: url("../fonts/lora/lora-bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   Paleta y variables — Manual ISOLOGO GD Soluciones (secciones 3.2, 3.3, 4)
   Azul marino:  confianza y profesionalismo
   Celeste:      modernidad
   Gris claro:   elegancia
   Verde:        color alternativo / detalles
   -------------------------------------------------------------------------- */
:root {
  /* Colores principales */
  --gd-blue-dark: #074065;
  --gd-blue-light: #2d9ed4;
  --gd-gray: #778592;

  /* Colores alternativos */
  --gd-green: #86b72e;
  --gd-white: #ffffff;

  /* Variaciones tonales derivadas (uso en estados hover/focus/fondos) */
  --gd-blue-dark-darker: #052e49;
  --gd-blue-light-darker: #1f7eaa;
  --gd-blue-light-soft: #e8f4fb;
  --gd-gray-soft: #f4f6f7;
  --gd-ink: #0c1c27;
  --gd-whatsapp: #25d366;
  --gd-whatsapp-darker: #1ebe57;

  /* Tipografía */
  --gd-font-display: "Roboto", -apple-system, "Segoe UI", sans-serif;
  --gd-font-body: "Roboto", -apple-system, "Segoe UI", sans-serif;
  --gd-font-accent: "Lora", Georgia, serif;

  /* Bootstrap overrides */
  --bs-primary: var(--gd-blue-dark);
  --bs-secondary: var(--gd-blue-light);
  --bs-body-font-family: var(--gd-font-body);
  --bs-body-color: var(--gd-ink);

  /* Radios y sombras de marca */
  --gd-radius: 0.75rem;
  --gd-shadow-sm: 0 0.25rem 0.75rem rgba(7, 64, 101, 0.08);
  --gd-shadow-md: 0 0.75rem 2rem rgba(7, 64, 101, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--gd-font-body);
  color: var(--gd-ink);
  overflow-x: hidden;
}

h1, h2, h3, h4, .gd-font-display {
  font-family: var(--gd-font-display);
  font-weight: 900;
}

::selection {
  background: var(--gd-blue-light);
  color: var(--gd-white);
}

/* ----- Botones de marca ----- */
.gd-btn-primary {
  background-color: var(--gd-blue-dark);
  border: 2px solid var(--gd-blue-dark);
  color: var(--gd-white);
  font-weight: 700;
  padding: 0.7rem 1.6rem;
  border-radius: var(--gd-radius);
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}
.gd-btn-primary:hover,
.gd-btn-primary:focus {
  background-color: var(--gd-blue-light);
  border-color: var(--gd-blue-light);
  color: var(--gd-white);
  transform: translateY(-2px);
}
.gd-btn-primary:disabled {
  opacity: 0.7;
  transform: none;
  cursor: not-allowed;
}

.gd-btn-outline-light {
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: var(--gd-white);
  font-weight: 700;
  padding: 0.7rem 1.6rem;
  border-radius: var(--gd-radius);
  transition: all 0.25s ease;
}
.gd-btn-outline-light:hover {
  background-color: var(--gd-white);
  border-color: var(--gd-white);
  color: var(--gd-blue-dark);
  transform: translateY(-2px);
}

/* ----- Navbar ----- */
.gd-navbar {
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(7, 64, 101, 0.06);
  transition: box-shadow 0.3s ease, padding 0.3s ease;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}
.gd-navbar.is-scrolled {
  box-shadow: var(--gd-shadow-sm);
}
.gd-navbar .nav-link {
  color: var(--gd-ink);
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  position: relative;
}
.gd-navbar .nav-link:hover {
  color: var(--gd-blue-light);
}
.gd-navbar .navbar-toggler {
  border: none;
  box-shadow: none;
}

/* ----- Eyebrow / labels ----- */
.gd-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gd-blue-light);
  margin-bottom: 0.75rem;
}
.gd-eyebrow--dark {
  color: var(--gd-blue-dark);
}

/* ----- Hero ----- */
.gd-hero {
  position: relative;
  background: linear-gradient(135deg, var(--gd-blue-dark) 0%, var(--gd-blue-dark-darker) 100%);
  color: var(--gd-white);
  overflow: hidden;
  padding-top: 5rem;
}

.gd-hero__orbit {
  position: absolute;
  border: 2px solid rgba(45, 158, 212, 0.35);
  border-radius: 50%;
  pointer-events: none;
}
.gd-hero__orbit--1 {
  width: 38rem;
  height: 38rem;
  top: -14rem;
  right: -12rem;
  border-color: rgba(45, 158, 212, 0.3);
}
.gd-hero__orbit--2 {
  width: 24rem;
  height: 24rem;
  bottom: -10rem;
  right: 4rem;
  border-color: rgba(134, 183, 46, 0.25);
}

.gd-hero__title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.gd-text-accent {
  color: var(--gd-blue-light);
}
.gd-hero__lead {
  font-size: 1.15rem;
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.85);
}

/* ----- Trust bar ----- */
.gd-trustbar {
  background-color: var(--gd-white);
  padding: 3rem 0;
  border-bottom: 1px solid var(--gd-gray-soft);
}
.gd-trust-number {
  font-family: var(--gd-font-display);
  font-weight: 900;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--gd-blue-dark);
}
.gd-trust-label {
  color: var(--gd-gray);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ----- Secciones genéricas ----- */
.gd-section {
  padding: 5.5rem 0;
  position: relative;
}
.gd-section--soft {
  background-color: var(--gd-gray-soft);
}
.gd-section--dark {
  background: linear-gradient(160deg, var(--gd-blue-dark-darker) 0%, var(--gd-blue-dark) 100%);
  color: var(--gd-white);
  overflow: hidden;
}
.gd-section__orbit {
  position: absolute;
  width: 30rem;
  height: 30rem;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  top: 50%;
  left: -10rem;
  transform: translateY(-50%);
  pointer-events: none;
}
.gd-section__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--gd-blue-dark);
  margin-bottom: 1rem;
}
.gd-section__title--light {
  color: var(--gd-white);
}
.gd-section__lead {
  color: var(--gd-gray);
  font-size: 1.05rem;
}
.gd-section__lead--light {
  color: rgba(255, 255, 255, 0.8);
}

/* ----- Separador de categorías de servicios ----- */
.gd-services-kicker {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gd-blue-light);
  border-bottom: 2px solid var(--gd-blue-light-soft);
  padding-bottom: 0.75rem;
  margin-bottom: 0;
}

/* ----- Cards de servicios ----- */
.gd-card {
  background-color: var(--gd-white);
  border-radius: var(--gd-radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--gd-shadow-sm);
  border: 1px solid rgba(7, 64, 101, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gd-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--gd-shadow-md);
}
.gd-card__icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.9rem;
  background-color: var(--gd-blue-light-soft);
  color: var(--gd-blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}
.gd-card__title {
  font-size: 1.15rem;
  color: var(--gd-blue-dark);
  margin-bottom: 0.6rem;
}
.gd-card__text {
  color: var(--gd-gray);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ----- Features (por qué elegirnos) ----- */
.gd-feature__icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background-color: var(--gd-green);
  color: var(--gd-blue-dark-darker);
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  font-size: 1.1rem;
}
.gd-feature__title {
  font-size: 1.05rem;
  color: var(--gd-white);
  margin-bottom: 0.4rem;
}
.gd-feature__text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

/* ----- Proceso ----- */
.gd-step {
  text-align: center;
  padding: 1.5rem 1rem;
}
.gd-step__num {
  display: inline-block;
  font-family: var(--gd-font-display);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--gd-blue-light);
  border: 2px solid var(--gd-blue-light);
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  line-height: 2.8rem;
  margin-bottom: 1rem;
}
.gd-step__title {
  font-size: 1.05rem;
  color: var(--gd-blue-dark);
  margin-bottom: 0.4rem;
}
.gd-step__text {
  color: var(--gd-gray);
  font-size: 0.92rem;
}

/* ----- Testimonios (acento Lora) ----- */
.gd-quote {
  background-color: var(--gd-white);
  border-left: 4px solid var(--gd-blue-light);
  border-radius: var(--gd-radius);
  padding: 2rem;
  height: 100%;
  box-shadow: var(--gd-shadow-sm);
}
.gd-quote__text {
  font-family: var(--gd-font-accent);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gd-ink);
  margin-bottom: 1rem;
}
.gd-quote__author {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gd-blue-dark);
}

/* ----- CTA contacto ----- */
.gd-cta {
  background: linear-gradient(135deg, var(--gd-blue-dark) 0%, var(--gd-blue-dark-darker) 100%);
  color: var(--gd-white);
  padding: 5.5rem 0;
}

.gd-form {
  background-color: var(--gd-white);
  border-radius: var(--gd-radius);
  padding: 2rem;
  box-shadow: var(--gd-shadow-md);
}
.gd-form .form-label {
  color: var(--gd-blue-dark);
  font-weight: 600;
  font-size: 0.9rem;
}
.gd-form .form-control,
.gd-form .form-select {
  border-radius: 0.5rem;
  border-color: rgba(7, 64, 101, 0.15);
  padding: 0.65rem 0.9rem;
}
.gd-form .form-control:focus,
.gd-form .form-select:focus {
  border-color: var(--gd-blue-light);
  box-shadow: 0 0 0 0.2rem rgba(45, 158, 212, 0.2);
}
.gd-form__status {
  font-weight: 600;
  font-size: 0.95rem;
  min-height: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.gd-form__status.is-success {
  color: #4a7a1c;
}
.gd-form__status.is-error {
  color: #b3261e;
}
.gd-form__honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ----- Footer ----- */
.gd-footer {
  background-color: var(--gd-blue-dark-darker);
  color: rgba(255, 255, 255, 0.75);
  padding: 4rem 0 2rem;
}
.gd-footer__logo-chip {
  display: inline-flex;
  background-color: var(--gd-white);
  border-radius: 0.6rem;
  padding: 0.5rem 0.9rem;
}
.gd-footer__tagline {
  font-family: var(--gd-font-accent);
  font-style: italic;
  color: var(--gd-blue-light);
  margin-top: 1rem;
}
.gd-footer__heading {
  color: var(--gd-white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.gd-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.92rem;
}
.gd-footer__list a {
  color: inherit;
  text-decoration: none;
}
.gd-footer__list a:hover {
  color: var(--gd-blue-light);
}
.gd-footer__list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.gd-footer__divider {
  border-color: rgba(255, 255, 255, 0.12);
  margin: 2.5rem 0 1.5rem;
}
.gd-footer__copy {
  font-size: 0.85rem;
}

/* ----- Back to top ----- */
.gd-back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--gd-blue-dark);
  color: var(--gd-white);
  border: none;
  font-size: 1.25rem;
  box-shadow: var(--gd-shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition: all 0.3s ease;
  z-index: 1040;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gd-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.gd-back-to-top:hover {
  background-color: var(--gd-blue-light);
}

/* ----- Botón flotante de WhatsApp ----- */
.gd-whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background-color: var(--gd-whatsapp);
  color: var(--gd-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: var(--gd-shadow-md);
  z-index: 1040;
  transition: transform 0.25s ease, background-color 0.25s ease;
  animation: gd-whatsapp-pulse 2.4s ease-in-out infinite;
}
.gd-whatsapp-float:hover,
.gd-whatsapp-float:focus {
  background-color: var(--gd-whatsapp-darker);
  color: var(--gd-white);
  transform: scale(1.08);
}

@keyframes gd-whatsapp-pulse {
  0%, 100% { box-shadow: var(--gd-shadow-md), 0 0 0 0 rgba(37, 211, 102, 0.4); }
  50% { box-shadow: var(--gd-shadow-md), 0 0 0 0.6rem rgba(37, 211, 102, 0); }
}

/* ----- Animaciones de entrada ----- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
  .gd-whatsapp-float {
    animation: none;
  }
}

/* En móviles muy angostos, evita que el botón de WhatsApp tape el de "volver arriba" */
@media (max-width: 360px) {
  .gd-whatsapp-float,
  .gd-back-to-top {
    width: 3rem;
    height: 3rem;
  }
}
