/* ==========================================================================
   SISTEMA DE DISEÑO PREMIUM - TODODIGITALMX.COM
   ========================================================================== */

:root {
  /* Paleta de Colores SaaS Tecnológica - TEMA CLARO */
  --bg-dark: #FFFFFF;            /* Fondo principal (blanco) */
  --bg-dark-1: #F8FAFC;          /* Fondo secundario claro (slate-50) */
  --bg-dark-2: #F1F5F9;          /* Fondo terciario claro (slate-100) */
  
  --bg-light-1: #FFFFFF;         /* Blanco puro */
  --bg-light-2: #F8FAFC;         /* Gris claro de contraste */
  
  --primary-blue: #0F4C81;       /* Azul Principal */
  --primary-blue-dark: #08345C;  /* Azul Oscuro */
  --primary-blue-glow: rgba(15, 76, 129, 0.12);
  
  --accent-orange: #FF7A00;      /* Naranja Principal */
  --accent-orange-hover: #E86700;/* Naranja Hover */
  --accent-orange-glow: rgba(255, 122, 0, 0.12);
  
  --text-light: #0F172A;         /* Texto principal oscuro sobre fondo claro */
  --text-gray: #475569;          /* Texto secundario oscuro sobre fondo claro (slate-600) */
  --text-dark: #0F172A;          /* Texto sobre claro */
  --text-dark-gray: #475569;     /* Texto secundario claro */
  --text-white: #FFFFFF;         /* Blanco puro para elementos sobre fondos oscuros o de color */
  
  --border-color-dark: rgba(15, 76, 129, 0.12);
  --border-color-light: #E2E8F0;
  
  /* Fuentes */
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Transiciones */
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.2s ease;
}

/* ==========================================================================
   RESET & ESTILOS BASE
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-body);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Canvas de fondo */
#canvas-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background-color: var(--bg-dark);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
}

/* ==========================================================================
   UTILIDADES & COMPONENTES COMUNES
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.container-fluid {
  width: 100%;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.no-padding {
  padding: 0 !important;
}

.section-padding {
  padding: 8rem 0;
  position: relative;
  z-index: 1;
}

.text-center {
  text-align: center;
}

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

.gradient-text {
  background: linear-gradient(135deg, var(--text-light) 30%, var(--accent-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Headers de Sección */
.section-header {
  margin-bottom: 5rem;
}

.section-subtitle {
  font-size: 0.9rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-orange);
  font-weight: 700;
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-title);
}

.section-title {
  font-family: var(--font-title);
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.header-divider {
  width: 60px;
  height: 4px;
  background: var(--accent-orange);
  margin: 1.5rem auto 0;
  border-radius: 2px;
}

.section-description {
  max-width: 600px;
  margin: 1.5rem auto 0;
  color: var(--text-gray);
  font-size: 1.1rem;
  font-weight: 300;
}

/* Modificadores de Fondo para Secciones */
.bg-dark-1 {
  background-color: var(--bg-dark-1);
}

.bg-dark-2 {
  background-color: var(--bg-dark);
}

/* Botones Estilo SaaS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent-orange);
  color: var(--text-white);
  box-shadow: 0 4px 15px var(--accent-orange-glow);
}

.btn-primary:hover {
  background: var(--accent-orange-hover);
  box-shadow: 0 6px 20px rgba(255, 122, 0, 0.35);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(241, 245, 249, 0.85);
  color: var(--primary-blue-dark);
  border: 1px solid var(--border-color-dark);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  gap: 0.6rem;
}

.btn-secondary:hover {
  background: rgba(226, 232, 240, 0.95);
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  transform: translateY(-2px);
}

.btn-nav {
  padding: 0.6rem 1.4rem;
  font-size: 0.8rem;
  background: transparent;
  color: var(--primary-blue-dark);
  border: 1px solid var(--border-color-dark);
  background: rgba(15, 76, 129, 0.08);
}

.btn-nav:hover {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: var(--text-white);
  box-shadow: 0 4px 12px var(--primary-blue-glow);
}

.btn-whatsapp {
  background: #25d366;
  color: var(--text-white);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
  gap: 0.7rem;
}

.btn-whatsapp:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

.btn-block {
  width: 100%;
}

.btn-small {
  padding: 0.6rem 1.2rem;
  font-size: 0.8rem;
}

.btn-icon-svg {
  transition: var(--transition-fast);
}

.btn:hover .btn-icon-svg {
  transform: translateX(3px);
}

/* ==========================================================================
   HEADER & NAVEGACIÓN FIJA
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.2rem 0;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  padding: 0.8rem 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-color-dark);
  box-shadow: 0 4px 30px rgba(15, 76, 129, 0.04);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-svg {
  width: 48px;
  height: 48px;
}

.logo-text {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-gray);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-orange);
  transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-light);
}

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

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-toggle .bar {
  width: 25px;
  height: 2px;
  background-color: var(--text-light);
  transition: var(--transition-fast);
}

/* Animación del menú hamburguesa */
.mobile-nav-toggle.open .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-nav-toggle.open .bar:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.open .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   SECCIÓN HERO
   ========================================================================== */

.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 750px;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.badge-tech {
  display: inline-flex;
  background: rgba(15, 76, 129, 0.15);
  border: 1px solid var(--border-color-dark);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent-orange);
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-title);
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.8rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-gray);
  font-weight: 300;
  margin-bottom: 3.5rem;
  max-width: 580px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
}

.whatsapp-btn-icon {
  fill: #25d366;
}

.hero-illustration-panel {
  position: relative;
  display: flex;
  justify-content: center;
}

.image-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  animation: floatIllustration 6s infinite alternate ease-in-out;
}

.hero-img {
  width: 100%;
  filter: drop-shadow(0 15px 40px rgba(15, 76, 129, 0.3));
}

/* Luces traseras de ambiente */
.glow-spot-1 {
  position: absolute;
  top: 10%;
  left: 20%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(15, 76, 129, 0.25) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.glow-spot-2 {
  position: absolute;
  bottom: 10%;
  right: 10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 122, 0, 0.15) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

@keyframes floatIllustration {
  0% { transform: translateY(0); }
  100% { transform: translateY(-20px); }
}

/* ==========================================================================
   SECCIÓN SERVICIOS
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 2rem;
}

.service-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color-dark);
  border-radius: 12px;
  padding: 3rem 2.2rem;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 76, 129, 0.04);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(255, 122, 0, 0.08) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-orange);
  box-shadow: 0 15px 35px rgba(15, 76, 129, 0.08);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-box {
  width: 60px;
  height: 60px;
  background: rgba(15, 76, 129, 0.12);
  border: 1px solid var(--border-color-dark);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
  margin-bottom: 2.2rem;
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon-box {
  background: var(--accent-orange);
  color: var(--text-light);
  box-shadow: 0 0 15px var(--accent-orange-glow);
}

.service-icon {
  width: 28px;
  height: 28px;
}

.service-title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.service-desc {
  font-size: 0.92rem;
  color: var(--text-gray);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 2.2rem;
  flex-grow: 1;
}

.service-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.02em;
  margin-top: auto;
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.service-link:hover {
  color: var(--accent-orange);
}

/* ==========================================================================
   SECCIÓN BENEFICIOS
   ========================================================================== */

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
}

.benefit-item {
  display: flex;
  gap: 1.2rem;
  background: #FFFFFF;
  border: 1px solid var(--border-color-dark);
  padding: 2.2rem;
  border-radius: 12px;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 25px rgba(15, 76, 129, 0.03);
}

.benefit-item:hover {
  border-color: var(--primary-blue);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(15, 76, 129, 0.07);
}

.benefit-icon {
  color: var(--accent-orange);
  flex-shrink: 0;
}

.benefit-content h4 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.benefit-content p {
  font-size: 0.88rem;
  color: var(--text-gray);
  font-weight: 300;
  line-height: 1.5;
}

/* ==========================================================================
   SECCIÓN PROCESO (LÍNEA DE TIEMPO)
   ========================================================================== */

.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 30px;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-blue), var(--accent-orange), var(--primary-blue-dark));
  z-index: 1;
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  padding-left: 80px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  top: 5px;
  left: 15px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 2px solid var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 0 10px var(--accent-orange-glow);
  color: var(--accent-orange);
  transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-dot {
  background: var(--accent-orange);
  color: var(--bg-dark);
  box-shadow: 0 0 15px rgba(255, 122, 0, 0.6);
  transform: scale(1.1);
}

.timeline-content-box {
  background: #FFFFFF;
  border: 1px solid var(--border-color-dark);
  padding: 2.5rem;
  border-radius: 12px;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 25px rgba(15, 76, 129, 0.03);
}

.timeline-item:hover .timeline-content-box {
  border-color: var(--primary-blue);
  box-shadow: 0 15px 30px rgba(15, 76, 129, 0.07);
}

.timeline-step-title {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--text-light);
}

.timeline-content-box p {
  color: var(--text-gray);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.6;
}

/* ==========================================================================
   PORTAFOLIO DEMO
   ========================================================================== */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
}

.portfolio-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color-dark);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 25px rgba(15, 76, 129, 0.03);
}

.portfolio-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-orange);
  box-shadow: 0 15px 30px rgba(15, 76, 129, 0.07);
}

.portfolio-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 65%; /* aspect ratio 16:10 */
  overflow: hidden;
  background-color: var(--bg-dark-1);
}

.portfolio-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.portfolio-card:hover .portfolio-img {
  transform: scale(1.08);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 17, 32, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-body {
  padding: 2rem;
}

.portfolio-body h4 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.portfolio-body p {
  font-size: 0.88rem;
  color: var(--text-gray);
  font-weight: 300;
  line-height: 1.5;
}

/* ==========================================================================
   ESTADÍSTICAS ANIMADAS
   ========================================================================== */

.stats-section {
  position: relative;
  border-top: 1px solid var(--border-color-dark);
  border-bottom: 1px solid var(--border-color-dark);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  text-align: center;
}

.stat-card {
  padding: 1.5rem;
}

.stat-number {
  font-family: var(--font-title);
  font-size: 3.8rem;
  font-weight: 800;
  color: var(--accent-orange);
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ==========================================================================
   TESTIMONIOS
   ========================================================================== */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.testimonial-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color-dark);
  padding: 3rem 2.2rem;
  border-radius: 12px;
  position: relative;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 25px rgba(15, 76, 129, 0.03);
}

.testimonial-card:hover {
  border-color: var(--primary-blue);
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(15, 76, 129, 0.07);
}

.testimonial-rating {
  color: var(--accent-orange);
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
}

.testimonial-quote {
  font-size: 1rem;
  font-style: italic;
  font-weight: 300;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 2.2rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid rgba(15, 76, 129, 0.08);
  padding-top: 1.5rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-weight: 700;
  font-family: var(--font-title);
  font-size: 1.1rem;
}

.author-info h5 {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.author-info span {
  font-size: 0.8rem;
  color: var(--accent-orange);
}

/* ==========================================================================
   PREGUNTAS FRECUENTES (FAQS)
   ========================================================================== */

.faq-accordion-wrapper {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--border-color-dark);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition-fast);
  box-shadow: 0 5px 15px rgba(15, 76, 129, 0.02);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-light);
  padding: 1.8rem 2.2rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-title);
}

.faq-icon-arrow {
  color: var(--accent-orange);
  font-size: 1.3rem;
  font-weight: 300;
  transition: transform 0.4s ease;
}

.faq-item.active {
  border-color: var(--primary-blue);
  background: #FFFFFF;
  box-shadow: 0 10px 25px rgba(15, 76, 129, 0.05);
}

.faq-item.active .faq-icon-arrow {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out;
}

.faq-answer p {
  padding: 0 2.2rem 2.2rem;
  font-size: 0.92rem;
  color: var(--text-gray);
  font-weight: 300;
  line-height: 1.7;
}

/* ==========================================================================
   CONTACTO & FORMULARIO INTELIGENTE
   ========================================================================== */

.contact-container {
  max-width: 1100px;
}

.contact-box-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4.5rem;
  background: #FFFFFF;
  border: 1px solid var(--border-color-dark);
  border-radius: 16px;
  padding: 4.5rem;
  box-shadow: 0 20px 50px rgba(15, 76, 129, 0.05);
}

.contact-box-title {
  font-family: var(--font-title);
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.2rem;
}

.contact-box-desc {
  color: var(--text-gray);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 3.5rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.contact-method-item {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.method-icon {
  width: 50px;
  height: 50px;
  border: 1px solid transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.method-text span {
  font-size: 0.78rem;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.method-text p {
  font-size: 1.05rem;
  font-weight: 700;
}

.method-link:hover {
  color: var(--accent-orange);
}

.contact-form-panel {
  width: 100%;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.form-group-flex {
  display: flex;
  gap: 1.5rem;
}

.form-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-orange);
}

.form-field input,
.form-field select,
.form-field textarea {
  background: #FFFFFF;
  border: 1px solid var(--border-color-dark);
  color: var(--text-light);
  padding: 0.9rem 1.1rem;
  font-size: 0.92rem;
  border-radius: 6px;
  outline: none;
  transition: var(--transition-fast);
  width: 100%;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent-orange);
  background: #FFFFFF;
  box-shadow: 0 0 12px rgba(255, 122, 0, 0.12);
}

.form-field select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF7A00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

.form-field select option {
  background: #FFFFFF;
  color: var(--text-light);
}

.form-field textarea {
  min-height: 110px;
  resize: vertical;
}

/* MODAL CONFIRMACIÓN */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #FFFFFF;
  border: 1px solid var(--border-color-dark);
  padding: 3.5rem;
  border-radius: 12px;
  max-width: 485px;
  width: 90%;
  transform: translateY(30px);
  transition: var(--transition-smooth);
  box-shadow: 0 15px 45px rgba(15, 76, 129, 0.12);
}

.modal.open .modal-content {
  transform: translateY(0);
}

.modal-icon-success {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.1);
  border: 2px solid #25d366;
  color: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.8rem;
}

.modal-icon-success svg {
  width: 30px;
  height: 30px;
}

.modal-title {
  font-family: var(--font-title);
  font-size: 1.7rem;
  margin-bottom: 0.8rem;
}

.modal-text {
  font-size: 0.9rem;
  color: var(--text-gray);
  margin-bottom: 2.2rem;
  font-weight: 300;
  line-height: 1.6;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background: #F8FAFC;
  border-top: 1px solid var(--border-color-dark);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr;
  gap: 5rem;
  margin-bottom: 4rem;
}

.footer-brand-box {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-svg-small {
  width: 40px;
  height: 40px;
}

.footer-tagline {
  color: var(--text-gray);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.6;
  max-width: 420px;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gray);
  transition: var(--transition-smooth);
}

.footer-socials a:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  background: rgba(255, 122, 0, 0.05);
  transform: translateY(-2px);
}

.footer-links-box h4 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.8rem;
  letter-spacing: -0.01em;
  position: relative;
  padding-bottom: 0.8rem;
}

.footer-links-box h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent-orange);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-links a, .footer-links li {
  font-size: 0.88rem;
  color: var(--text-gray);
  font-weight: 300;
}

.footer-links a:hover {
  color: var(--accent-orange);
  transform: translateX(3px);
}

.footer-link-highlight {
  font-weight: 600;
  color: var(--primary-blue-dark) !important;
}

.footer-link-highlight:hover {
  color: var(--accent-orange) !important;
}

.footer-bottom {
  border-top: 1px solid rgba(15, 76, 129, 0.08);
  padding-top: 2rem;
  font-size: 0.78rem;
  color: var(--text-gray);
  font-weight: 300;
}

/* ==========================================================================
   BOTÓN WHATSAPP FLOTANTE PERMANENTE
   ========================================================================== */

.whatsapp-floating-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #25d366;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4), 0 0 15px rgba(37, 211, 102, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  z-index: 999;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.whatsapp-floating-btn svg {
  width: 30px;
  height: 30px;
}

.whatsapp-floating-btn:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6), 0 0 20px rgba(37, 211, 102, 0.3);
  background-color: #22c35e;
}

.whatsapp-tooltip {
  position: absolute;
  right: 75px;
  background: #FFFFFF;
  border: 1px solid var(--border-color-dark);
  color: var(--text-light);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition-smooth);
  box-shadow: 0 10px 25px rgba(15, 76, 129, 0.08);
  border-left: 3px solid #25d366;
}

.whatsapp-floating-btn:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   SISTEMA DE ANIMACIÓN AL HACER SCROLL (SCROLL REVEAL)
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform, opacity;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform, opacity;
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform, opacity;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform, opacity;
}

.reveal.active,
.reveal-left.active,
.reveal-right.active,
.reveal-scale.active {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

.glow-pulse {
  animation: glowEffect 2.5s infinite alternate ease-in-out;
}

@keyframes glowEffect {
  0% {
    box-shadow: 0 4px 15px var(--accent-orange-glow);
  }
  100% {
    box-shadow: 0 4px 20px rgba(255, 122, 0, 0.55), 0 0 10px 4px rgba(255, 122, 0, 0.2);
  }
}

/* ==========================================================================
   RESPONSIVIDAD Y MEDIA QUERIES (MOBILE FIRST)
   ========================================================================== */

/* --- TABLETS (Menos de 1024px) --- */
@media (max-width: 1024px) {
  .section-padding {
    padding: 6rem 0;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-grid {
    gap: 2rem;
  }
  
  .contact-box-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    padding: 3rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
  
  .footer-brand-box {
    grid-column: span 2;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* --- MOVILES GRANDES / TABLET RETRATO (Menos de 768px) --- */
@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: flex;
    z-index: 110;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 290px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    border-left: 1px solid var(--border-color-dark);
    flex-direction: column;
    padding: 8rem 2.5rem;
    gap: 2rem;
    transition: var(--transition-smooth);
    z-index: 105;
  }
  
  .nav-links.open {
    right: 0;
  }
  
  .nav-cta {
    display: none;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 4rem;
  }
  
  .hero-text-panel {
    order: 1;
  }
  
  .hero-illustration-panel {
    order: 0;
    margin-bottom: 2rem;
  }
  
  .hero-title {
    font-size: 2.6rem;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .timeline-container::before {
    left: 20px;
  }
  
  .timeline-item {
    padding-left: 55px;
  }
  
  .timeline-dot {
    left: 4px;
  }
  
  .timeline-content-box {
    padding: 1.8rem;
  }
  
  .faq-question {
    padding: 1.5rem;
    font-size: 1rem;
  }
  
  .faq-answer p {
    padding: 0 1.5rem 1.5rem;
  }
  
  .form-group-flex {
    flex-direction: column;
    gap: 1.8rem;
  }
  
  .whatsapp-tooltip {
    display: none;
  }
  
  .whatsapp-floating-btn {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
  }
  
  .whatsapp-floating-btn svg {
    width: 25px;
    height: 25px;
  }
}

/* --- MOVILES CHICOS (Menos de 480px) --- */
@media (max-width: 480px) {
  .section-title {
    font-size: 2.1rem;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-box-grid {
    padding: 2rem 1.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-brand-box {
    grid-column: span 1;
  }
}
