/* ==========================================================================
   CREAKTIVE - PÁGINA DE CONTACTO (PIXEL-PERFECT)
   Estilos dedicados para Hero con video, cinta marquee, formulario multi-paso
   y pie de página de oficina corporativa.
   ========================================================================== */

/* --- 1. Resaltado de Navegación Activa --- */
.nav-link.active,
.mobile-nav-link.active {
  color: var(--color-white);
}

.nav-link.active::after {
  width: 100%;
  background-color: var(--color-primary, #F9CF1E);
}

.mobile-nav-link.active {
  color: var(--color-primary, #F9CF1E);
  font-weight: 700;
}

/* --- 2. Hero Section con Video de Fondo --- */
.contact-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #0d0d0d;
  color: #ffffff;
  padding-top: var(--header-height, 85px);
  padding-bottom: 50px;
}

.contact-hero-video-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.contact-hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.contact-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(10, 10, 10, 0.45) 0%, rgba(5, 5, 5, 0.88) 100%);
  z-index: 2;
}

.contact-hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-hero-title {
  font-family: var(--font-display, 'Playfair Display', Georgia, serif);
  font-size: clamp(2.8rem, 5.8vw, 4.6rem);
  font-weight: 700;
  line-height: 1.14;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

/* Efecto Shimmer Dorado Continuo */
.shimmer-text {
  background: linear-gradient(
    to right,
    #F5C518 0%,
    #FFF6C5 25%,
    #F5C518 50%,
    #F5C518 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerAnimation 3s linear infinite;
  display: inline-block;
}

@keyframes shimmerAnimation {
  to {
    background-position: 200% center;
  }
}

.contact-hero-subtitle {
  font-family: var(--font-body, 'Poppins', sans-serif);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.86);
  max-width: 640px;
  line-height: 1.65;
  margin-inline: auto;
  margin-bottom: 50px;
}

/* Indicador de Desplazamiento "Completa el formulario" & Ratón */
.contact-hero-scroll-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: inherit;
  transition: transform 0.25s ease;
  user-select: none;
}

.contact-hero-scroll-btn:hover {
  transform: translateY(3px);
}

.contact-hero-scroll-title {
  font-family: var(--font-body, 'Poppins', sans-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.scroll-mouse-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-text {
  font-family: var(--font-body, 'Poppins', sans-serif);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

.scroll-mouse {
  width: 20px;
  height: 32px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 9999px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background-color: #F5C518;
  border-radius: 9999px;
  animation: scrollMove 1.6s ease-in-out infinite;
}

@keyframes scrollMove {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(6px);
    opacity: 0.25;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* --- 3. Cinta Continua Amarilla (Marquee Ribbon) --- */
/* Se utiliza la clase compartida .marquee-ribbon de style.css para velocidad y estilo idénticos al index */

/* --- 4. Sección Principal del Formulario --- */
.contact-form-section {
  background-color: #fbfbfb;
  padding: 85px 0 100px;
  position: relative;
}

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

.contact-headline {
  font-family: var(--font-display, 'Playfair Display', Georgia, serif);
  font-size: clamp(2.3rem, 4.4vw, 3.2rem);
  font-weight: 700;
  color: #111111;
  line-height: 1.25;
  margin-bottom: 14px;
}

.contact-headline-word {
  color: #111111;
}

.contact-highlight-wrapper {
  position: relative;
  display: inline-block;
  color: #F5C518;
  font-style: italic;
  padding-inline: 4px;
}

.contact-highlight-svg {
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 18px;
  pointer-events: none;
  overflow: visible;
}

.contact-highlight-path {
  stroke: #F5C518;
  stroke-width: 8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-subtext {
  font-family: var(--font-body, 'Poppins', sans-serif);
  font-size: clamp(1.05rem, 1.6vw, 1.15rem);
  color: #555555;
  max-width: 680px;
  margin-inline: auto;
  line-height: 1.65;
}

/* --- 5. Tarjeta del Formulario Multi-Paso Ampliada y Cómoda --- */
.contact-card {
  background-color: #ffffff;
  border-radius: 18px;
  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e5e5;
  max-width: 960px;
  margin-inline: auto;
  padding: 44px 50px 48px;
  position: relative;
}

/* Barra de Progreso de 4 Pasos */
.contact-progress-wrapper {
  width: 100%;
  height: 20px;
  background-color: #484848;
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 34px;
  display: flex;
  align-items: center;
}

.contact-progress-bar {
  height: 100%;
  background-color: #F5C518;
  border-radius: 9999px;
  width: 25%; /* Inicial: Paso 1 */
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
}

.contact-progress-label {
  font-family: var(--font-body, 'Poppins', sans-serif);
  font-size: 12px;
  font-weight: 700;
  color: #111111;
  line-height: 1;
}

/* Contenedor de Pasos */
.form-step {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-step.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Grid de Formulario */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 26px;
  margin-bottom: 24px;
}

.form-row-full {
  grid-template-columns: 1fr;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-label {
  font-family: var(--font-body, 'Poppins', sans-serif);
  font-size: 16px;
  font-weight: 700;
  color: #111111;
  line-height: 1.35;
}

.req-star {
  color: #d93025;
  margin-left: 2px;
}

.form-control {
  width: 100%;
  height: 54px;
  padding: 12px 18px;
  font-family: var(--font-body, 'Poppins', sans-serif);
  font-size: 16px;
  color: #222222;
  background-color: #ffffff;
  border: 1.5px solid #c2c2c2;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control::placeholder {
  color: #999999;
}

.form-control:focus {
  border-color: #F5C518;
  box-shadow: 0 0 0 3.5px rgba(245, 197, 24, 0.22);
}

/* Input textarea */
.form-textarea {
  height: 150px;
  resize: vertical;
  line-height: 1.6;
  padding: 16px 18px;
}

/* Select wrapper con icono de flecha personalizado */
.select-wrapper {
  position: relative;
  width: 100%;
}

.select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  cursor: pointer;
}

.select-arrow {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  width: 14px;
  height: 14px;
  fill: #333333;
}

/* Validación y Errores Accesibles */
.field-error-text {
  display: none;
  font-size: 13.5px;
  color: #d93025;
  font-weight: 500;
  margin-top: 4px;
}

.has-field-error .form-control {
  border-color: #d93025 !important;
  background-color: #fff9f9;
}

.has-field-error .field-error-text {
  display: block;
}

/* Paso 3: Checkboxes de Servicios (3 Columnas) */
.services-selection-title {
  font-family: var(--font-body, 'Poppins', sans-serif);
  font-size: 18px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 22px;
}

.services-checkboxes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 30px;
  margin-bottom: 30px;
}

.service-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body, 'Poppins', sans-serif);
  font-size: 16px;
  font-weight: 500;
  color: #2b2b2b;
  cursor: pointer;
  user-select: none;
}

.service-checkbox-input {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid #999999;
  border-radius: 5px;
  background-color: #ffffff;
  cursor: pointer;
  display: inline-grid;
  place-content: center;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  flex-shrink: 0;
}

.service-checkbox-input::before {
  content: "";
  width: 12px;
  height: 12px;
  transform: scale(0);
  transition: transform 0.15s ease-in-out;
  background-color: #111111;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.service-checkbox-input:checked {
  background-color: #F5C518;
  border-color: #F5C518;
}

.service-checkbox-input:checked::before {
  transform: scale(1);
}

.service-checkbox-input:focus-visible {
  outline: 2px solid #F5C518;
  outline-offset: 2px;
}

/* Botones de Navegación del Formulario */
.form-actions-row {
  display: flex;
  gap: 16px;
  margin-top: 14px;
}

.btn-form-next,
.btn-form-submit {
  flex: 1;
  width: 100%;
  height: 54px;
  background-color: #F5C518;
  color: #111111;
  border: none;
  border-radius: 8px;
  font-family: var(--font-body, 'Poppins', sans-serif);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.btn-form-next:hover,
.btn-form-submit:hover {
  background-color: #e5bd15;
  box-shadow: 0 6px 18px rgba(245, 197, 24, 0.35);
}

.btn-form-next:active,
.btn-form-submit:active {
  transform: scale(0.99);
}

.btn-form-prev {
  height: 54px;
  padding-inline: 28px;
  background-color: #f1f3f5;
  color: #333333;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-family: var(--font-body, 'Poppins', sans-serif);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-form-prev:hover {
  background-color: #e5e7eb;
  color: #111111;
}

/* Vista de Confirmación / Envío Exitoso */
.contact-success-card {
  display: none;
  text-align: center;
  padding: 30px 15px;
}

.contact-success-card.active {
  display: block;
  animation: fadeInStep 0.4s ease forwards;
}

.success-badge-icon {
  width: 68px;
  height: 68px;
  background-color: #F5C518;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(245, 197, 24, 0.4);
}

.success-badge-icon svg {
  width: 32px;
  height: 32px;
  fill: #111111;
}

.success-headline {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 28px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 12px;
}

.success-desc {
  font-family: var(--font-body, 'Poppins', sans-serif);
  font-size: 15px;
  color: #555555;
  max-width: 480px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.btn-success-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background-color: #111111;
  color: #ffffff;
  border-radius: 6px;
  font-family: var(--font-body, 'Poppins', sans-serif);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-success-reset:hover {
  background-color: #333333;
}

/* --- 6. Footer Especial de Oficina (Sin Formulario Duplicado) --- */
.contact-footer {
  position: relative;
  background-color: #0A0A0A;
  background-image: url('../images/footer-background.webp');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  padding-top: 60px;
  padding-bottom: 24px;
  overflow: hidden;
}

.contact-footer-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(5, 5, 5, 0.65);
  z-index: 1;
}

.contact-footer-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1350px;
  width: 100%;
  margin-inline: auto;
  padding-inline: 24px;
}

.contact-footer-logo {
  text-align: center;
  margin-bottom: 45px;
}

.contact-footer-logo img {
  width: 195px;
  height: auto;
  opacity: 0.96;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.contact-footer-logo:hover img {
  transform: scale(1.03);
  opacity: 1;
}

.contact-footer-divider {
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.18);
  margin-bottom: 22px;
}

.contact-footer-bottom {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.contact-footer-copy {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.75);
}

.contact-footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-footer-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  transition: color 0.2s ease;
}

.contact-footer-links a:hover {
  color: var(--color-primary, #F9CF1E);
}

.footer-separator {
  color: rgba(255, 255, 255, 0.4);
  user-select: none;
}

/* --- 7. Adaptabilidad Móvil y Responsive --- */
@media (max-width: 768px) {
  .contact-hero {
    min-height: 100vh;
    min-height: 100svh;
    padding-top: calc(var(--header-height, 85px) + 15px);
    padding-bottom: 40px;
  }

  .contact-hero-subtitle {
    margin-bottom: 35px;
  }

  .contact-card {
    padding: 26px 20px 30px;
    border-radius: 14px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .services-checkboxes-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-column {
    gap: 12px;
  }

  .contact-footer-bottom {
    flex-direction: column-reverse;
    text-align: center;
    justify-content: center;
    gap: 14px;
  }

  .contact-footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .contact-card {
    padding: 22px 16px 26px;
  }

  .btn-form-next,
  .btn-form-submit {
    font-size: 15px;
  }

  .btn-form-prev {
    padding-inline: 16px;
    font-size: 14px;
  }
}
