@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Poppins:wght@600;700;800&display=swap');

/* Tan Meringue fallback */
@font-face {
  font-family: 'Tan Meringue';
  src: local('Georgia'), local('Times New Roman');
  font-weight: bold;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #fafafa;
}

::-webkit-scrollbar-thumb {
  background: #e84545;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #903749;
}

/* ================================
   🌈 Fade-in scroll animations
================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================
   🎨 Button styles
================================ */
.btn-primary {
  background: #e84545;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #903749;
  transform: translateY(-2px);
}

.btn-secondary {
  background: #FF7A00;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #e84545;
  transform: translateY(-2px);
}

/* ================================
   💳 Card hover effects
================================ */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ================================
   🟣 Gradient backgrounds
================================ */
.gradient-purple-blue {
  background: linear-gradient(135deg, #37164b 0%, #2b2e4a 100%);
}

/* ================================
   🖱️ Text selection
================================ */
::selection {
  background: #e84545;
  color: #fafafa;
}

/* ================================
   📱 Responsive FAQ
================================ */
@media (max-width: 768px) {
  .faq-columns {
    grid-template-columns: 1fr;
  }
}

/* ================================
   📰 Newsletter responsive
================================ */
@media (max-width: 768px) {
  .newsletter-form {
    flex-direction: column;
  }
}

/* ================================
   📲 Social icon animations
================================ */
.social-icon {
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.1);
}

/* ================================
   🧭 Accessibility focus
================================ */
button:focus,
a:focus,
input:focus {
  outline: 2px solid #FF7A00;
  outline-offset: 2px;
}

/* ================================
   💫 Loading animation
================================ */
@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

.loading {
  animation: pulse 2s infinite;
}

/* ================================
   🧍 Responsive typography
================================ */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  p {
    font-size: 0.875rem;
  }
}

/* ================================
   ✍️ Custom form styles
================================ */
.form-input {
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.form-input:focus {
  border-color: #FF7A00;
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.1);
}

/* ================================
   🪶 Feather icon hover
================================ */
.feather {
  transition: all 0.3s ease;
}

.feather:hover {
  transform: scale(1.1);
}

/* ===================================================
   🔔 Notifications (JS system feedback)
=================================================== */
.fixed.top-4.right-4 {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.translate-x-full {
  transform: translateX(120%);
  opacity: 0;
}

.fixed.top-4.right-4:not(.translate-x-full) {
  transform: translateX(0);
  opacity: 1;
}

/* ===================================================
   🌟 Visual polish and scroll refinement
=================================================== */
section {
  scroll-margin-top: 100px;
  /* evita que el header tape el título al hacer scroll */
}

h1,
h2,
h3 {
  letter-spacing: 0.5px;
}

button,
.btn-primary,
.btn-secondary {
  transition: all 0.3s ease-in-out;
}

/* ===================================================
   🖼️ Lazy loading effects
=================================================== */
img[data-src] {
  filter: blur(8px);
  opacity: 0.6;
  transition: filter 0.6s ease, opacity 0.6s ease;
}

img:not([data-src]) {
  filter: none;
  opacity: 1;
}

/* ===================================================
   🧭 Header link hover
=================================================== */
nav a {
  transition: color 0.3s ease, transform 0.3s ease;
}

nav a:hover {
  color: #FF7A00;
  transform: translateY(-2px);
}

/* ===================================================
   🧊 Enhanced card hover
=================================================== */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

/* ===================================================
   📱 Extra responsive adjustments
=================================================== */
@media (max-width: 768px) {
  section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .text-center h2 {
    font-size: 1.75rem;
  }

  .grid {
    gap: 1.5rem;
  }
}

/* --- Ajustes visuales formulario Brevo en sección lead --- */

/* Quitar fondos y bordes por defecto */
#lead-form-wrapper .sib-form {
  background: transparent !important;
  text-align: left !important;
}

#lead-form-wrapper #sib-container {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Ocultar título y texto internos de Brevo */
#lead-form-wrapper #sib-container .sib-form-block:first-of-type,
#lead-form-wrapper #sib-container .sib-form-block:nth-of-type(2),
#lead-form-wrapper #sib-container .entry__label,
#lead-form-wrapper #sib-container .entry__specification {
  display: none !important;
}

/* Layout pill: email + botón, en columna en mobile, fila en desktop */
#lead-form-wrapper #sib-form {
  margin-top: 2.5rem;
  display: flex !important;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  #lead-form-wrapper #sib-form {
    flex-direction: row;
    align-items: center;
  }
}

/* Input email estilo pill */
#lead-form-wrapper #sib-form .input {
  width: 100%;
  border-radius: 9999px !important;
  padding: 1rem 1.5rem !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  background: #ffffff !important;
  color: #111827 !important;
  font-size: 0.95rem;
}

#lead-form-wrapper #sib-form .input::placeholder {
  color: #6b7280 !important;
}

/* Sacar márgenes internos de los bloques para que no rompan el layout */
#lead-form-wrapper #sib-form .sib-input,
#lead-form-wrapper #sib-form .form__entry,
#lead-form-wrapper #sib-form .sib-form-block {
  margin: 0 !important;
  padding: 0 !important;
}

/* Botón naranja como el tuyo */
#lead-form-wrapper #sib-form .sib-form-block__button {
  border-radius: 9999px !important;
  padding: 1rem 2.5rem !important;
  background: #ff7a00 !important;
  /* naranja */
  color: #ffffff !important;
  font-weight: 600;
  border: none !important;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease-in-out, transform 0.1s ease-in-out;
}

#lead-form-wrapper #sib-form .sib-form-block__button:hover {
  background: #ff6a00 !important;
  /* coral */
  transform: translateY(-1px);
}

/* Mensajes debajo del formulario */
#lead-form-wrapper #success-message,
#lead-form-wrapper #error-message {
  max-width: 100% !important;
}

/* ============================
   AJUSTES VISUALES FORMULARIOS BREVO
   (Lead Magnet + cualquier otro)
   ============================ */

/* Quitar caja/fondo por defecto */
.sib-form {
  background: transparent !important;
  text-align: left !important;
  box-shadow: none !important;
}

#sib-container {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Ocultar títulos y textos internos ("Newsletter", texto interno, label y texto chico) */
#sib-container .sib-form-block:first-of-type,
#sib-container .sib-form-block:nth-of-type(2),
#sib-container .entry__label,
#sib-container .entry__specification {
  display: none !important;
}

/* Layout tipo pill: input + botón
   - columna en mobile
   - fila en desktop */
#sib-form {
  margin-top: 2rem;
  display: flex !important;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  #sib-form {
    flex-direction: row;
    align-items: center;
  }
}

/* Input: estilo pastilla blanco como el original */
#sib-form .input {
  width: 100%;
  border-radius: 9999px !important;
  padding: 1rem 1.5rem !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  background: #ffffff !important;
  color: #111827 !important;
  font-size: 0.95rem;
  box-shadow: none !important;
}

#sib-form .input::placeholder {
  color: #6b7280 !important;
}

/* Quitar márgenes internos de los bloques para que no separen demasiado */
#sib-form .sib-input,
#sib-form .form__entry,
#sib-form .sib-form-block {
  margin: 0 !important;
  padding: 0 !important;
}

/* Botón naranja pastilla, pegado al input */
#sib-form .sib-form-block__button {
  border-radius: 9999px !important;
  padding: 1rem 2.5rem !important;
  background: #ff7a00 !important;
  /* tu naranja */
  color: #ffffff !important;
  font-weight: 600;
  border: none !important;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease-in-out, transform 0.1s ease-in-out;
}

#sib-form .sib-form-block__button:hover {
  background: #ff6a00 !important;
  /* coral */
  transform: translateY(-1px);
}

/* Mensajes de éxito/error justo debajo del form */
#success-message,
#error-message {
  max-width: 100% !important;
  margin-top: 0.75rem !important;
}

/* ==========================================================
   FIX FORM BREVO — Lead Magnet personalizado IngeniaMaze
   ========================================================== */

#lead-form-wrapper .sib-form {
  background: transparent !important;
  text-align: left !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
}

#lead-form-wrapper #sib-container {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* OCULTAR textos internos que Brevo mete automáticamente */
#lead-form-wrapper #sib-container .sib-form-block:first-of-type,
#lead-form-wrapper #sib-container .sib-form-block:nth-of-type(2),
#lead-form-wrapper #sib-container .entry__label,
#lead-form-wrapper #sib-container .entry__specification {
  display: none !important;
}

/* Layout responsive: columna en mobile, fila en desktop */
#lead-form-wrapper #sib-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
  margin-top: 2rem !important;
  width: 100% !important;
}

@media (min-width: 640px) {
  #lead-form-wrapper #sib-form {
    flex-direction: row !important;
    align-items: center !important;
  }
}

/* INPUTS (el de nombre y el email) */
#lead-form-wrapper #sib-form input.input {
  width: 100% !important;
  border-radius: 9999px !important;
  padding: 1rem 1.5rem !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  background: #fff !important;
  color: #000 !important;
  font-size: 1rem !important;
  height: auto !important;
}

#lead-form-wrapper #sib-form input.input::placeholder {
  color: #6b7280 !important;
}

/* Quitar padding/margins internos que rompen el diseño */
#lead-form-wrapper #sib-form .sib-input,
#lead-form-wrapper #sib-form .form__entry,
#lead-form-wrapper #sib-form .sib-form-block {
  padding: 0 !important;
  margin: 0 !important;
}

/* BOTÓN */
#lead-form-wrapper #sib-form .sib-form-block__button {
  border-radius: 9999px !important;
  padding: 1rem 2.5rem !important;
  background: #FF7A00 !important;
  color: #fff !important;
  font-weight: 600 !important;
  border: none !important;
  cursor: pointer !important;
  transition: background 0.2s ease-in-out, transform 0.1s ease-in-out !important;
}

#lead-form-wrapper #sib-form .sib-form-block__button:hover {
  background: #ff6200 !important;
  transform: translateY(-1px);
}

/* MENSAJES de error/éxito */
#lead-form-wrapper #success-message,
#lead-form-wrapper #error-message {
  margin-top: 1rem !important;
  font-size: 0.95rem !important;
  max-width: 100% !important;
}

/* LIMPIAR ESTILOS QUE AÚN METE BREVO */
#lead-form-wrapper .entry__error {
  display: none !important;
}

/* ===================================================
   🎯 HEADER FLOTANTE MODERNO
=================================================== */

/* Animación de entrada del header */
#floating-header {
  animation: slideDownFade 0.6s ease-out;
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Efecto glassmorphism mejorado */
.floating-nav-container {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(255, 122, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Efecto hover del contenedor principal */
.floating-nav-container:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 20px 60px rgba(255, 122, 0, 0.15),
    0 8px 24px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Enlaces de navegación con efecto pill */
.nav-link-floating {
  position: relative;
  overflow: hidden;
}

.nav-link-floating::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 122, 0, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.nav-link-floating:hover::before {
  width: 100%;
  height: 100%;
  border-radius: 9999px;
}

/* Efecto de escala suave en hover */
.nav-link-floating:hover {
  transform: translateY(-1px);
}

/* Animación del menú móvil */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slideDown {
  animation: slideDown 0.3s ease-out;
}

/* Enlaces del menú móvil */
.mobile-nav-link {
  position: relative;
  overflow: hidden;
}

.mobile-nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #e84545, #FF7A00);
  transition: width 0.3s ease;
}

.mobile-nav-link:hover::after {
  width: 100%;
}

/* Efecto de scroll - header se hace más compacto */
#floating-header.scrolled .floating-nav-container {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.12),
    0 4px 12px rgba(255, 122, 0, 0.08);
}

#floating-header.scrolled {
  top: 1rem;
}

/* Ajuste del padding superior del body para el header flotante */
body {
  padding-top: 0;
}

/* Animación del botón CTA */
.bg-gradient-to-r {
  background-size: 200% auto;
  transition: all 0.3s ease;
}

.bg-gradient-to-r:hover {
  background-position: right center;
}

/* Efecto de pulso sutil en el botón CTA */
@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.3);
  }

  50% {
    box-shadow: 0 6px 20px rgba(255, 122, 0, 0.5);
  }
}

.bg-gradient-to-r:hover {
  animation: pulse-glow 2s infinite;
}

/* Responsive: ajustes para móvil */
@media (max-width: 1024px) {
  #floating-header {
    width: 96%;
  }

  .floating-nav-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 640px) {
  #floating-header {
    top: 0.5rem;
    width: 98%;
  }

  .floating-nav-container {
    padding: 0.75rem 1rem;
  }

  #floating-header.scrolled {
    top: 0.25rem;
  }
}

/* Mejora de accesibilidad para focus */
.nav-link-floating:focus,
.mobile-nav-link:focus {
  outline: 2px solid #FF7A00;
  outline-offset: 4px;
  border-radius: 9999px;
}

/* Animación suave del ícono del menú móvil */
button[data-mobile-menu] svg {
  transition: transform 0.3s ease;
}

button[data-mobile-menu]:hover svg {
  transform: rotate(90deg);
}

/* Efecto de brillo sutil en el header */
.floating-nav-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.3),
      transparent);
  transition: left 0.5s ease;
  pointer-events: none;
  border-radius: 9999px;
}

.floating-nav-container:hover::after {
  left: 100%;
}

/* Logo en el header flotante */
#floating-header img[alt*="Logo"] {
  filter: drop-shadow(0 2px 4px rgba(255, 122, 0, 0.1));
  transition: all 0.3s ease;
}

#floating-header a:hover img[alt*="Logo"] {
  filter: drop-shadow(0 4px 8px rgba(255, 122, 0, 0.25));
}

/* Animación sutil del logo */
@keyframes logo-pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

#floating-header a:hover img[alt*="Logo"] {
  animation: logo-pulse 1s ease-in-out infinite;
}