/* ========================================
   SALES FINDER - RESPONSIVE CSS
   Mobile-first responsive design
   ======================================== */

/* ========================================
   MOBILE NAVIGATION
   ======================================== */
@media (max-width: 767px) {
  .nav-menu {
    position: fixed !important;
    left: -100% !important;
    top: 80px !important;
    flex-direction: column !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 250, 251, 0.98) 100%) !important;
    backdrop-filter: blur(10px) !important;
    width: 100% !important;
    height: calc(100vh - 80px) !important;
    text-align: center !important;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: -5px 0 25px rgba(51, 102, 204, 0.15) !important;
    z-index: 9999 !important;
    padding: 2rem 0 !important;
    border-top: 3px solid transparent !important;
    border-image: linear-gradient(90deg, var(--accent-blue), var(--secondary-blue)) 1 !important;
    overflow-y: auto !important;
    display: flex !important;
    opacity: 0 !important;
  }

  .nav-menu.active {
    left: 0 !important;
    opacity: 1 !important;
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
  }

  .nav-menu li {
    margin: 0.5rem 0 !important;
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeInSlide 0.3s ease-out forwards;
  }

  /* Stagger effect - cada item aparece con delay */
  .nav-menu.active li:nth-child(1) { animation-delay: 0.1s; }
  .nav-menu.active li:nth-child(2) { animation-delay: 0.15s; }
  .nav-menu.active li:nth-child(3) { animation-delay: 0.2s; }
  .nav-menu.active li:nth-child(4) { animation-delay: 0.25s; }
  .nav-menu.active li:nth-child(5) { animation-delay: 0.3s; }

.nav-link {
    font-size: 1.25rem !important;
    display: block !important;
    padding: 1rem 2rem !important;
    margin: 0 1.5rem !important;
    border-radius: 12px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    background: transparent !important;
    border: 2px solid transparent !important;
    box-shadow: none !important;
    color: var(--text-dark) !important;
  }

  /* Hover effect con sombra azul difuminada */
  .nav-link:hover {
    background: linear-gradient(135deg, rgba(51, 102, 204, 0.08), rgba(68, 120, 219, 0.08)) !important;
    transform: translateX(8px) !important;
    border: 2px solid rgba(51, 102, 204, 0.2) !important;
    box-shadow: 
      0 4px 15px rgba(51, 102, 204, 0.2),
      0 0 30px rgba(68, 120, 219, 0.15) !important;
    color: var(--accent-blue) !important;
  }

  /* Efecto de brillo al hacer hover */
  .nav-link::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent) !important;
    transition: left 0.5s !important;
    z-index: 1 !important;
  }

  .nav-link:hover::before {
    left: 100% !important;
  }

  /* Active link style - SOLO cuando tiene la clase .active */
  .nav-link.active {
    background: linear-gradient(135deg, rgba(51, 102, 204, 0.15), rgba(68, 120, 219, 0.15)) !important;
    color: var(--accent-blue) !important;
    font-weight: 600 !important;
    border: 2px solid rgba(51, 102, 204, 0.3) !important;
    box-shadow: 0 2px 10px rgba(51, 102, 204, 0.25) !important;
  }

  /* Quitar el focus outline por defecto del navegador */
  .nav-link:focus {
    outline: none !important;
  }

  /* CTA button en el menú móvil */
  .nav-link.cta-button {
    background: linear-gradient(135deg, var(--accent-blue), var(--secondary-blue)) !important;
    color: white !important;
    font-weight: 600 !important;
    border: 2px solid transparent !important;
    box-shadow: 
      0 6px 25px rgba(51, 102, 204, 0.4),
      0 0 40px rgba(68, 120, 219, 0.3) !important;
    margin-top: 1rem !important;
  }

  .nav-link.cta-button:hover {
    transform: translateX(8px) scale(1.05) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 
      0 6px 25px rgba(74, 143, 217, 0.4),
      0 0 40px rgba(91, 155, 213, 0.3) !important;
    color: white !important;
  }
  
  /* Hamburger menu animation */
  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: var(--accent-blue);
  }

  .nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background: var(--accent-blue);
  }
}

/* Animaciones */
@keyframes slideInRight {
  from {
    left: -100%;
    opacity: 0;
  }
  to {
    left: 0;
    opacity: 1;
  }
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ========================================
   MOBILE HERO ADJUSTMENTS
   ======================================== */
@media (max-width: 767px) {
  .hero {
    min-height: 100vh;
    padding-top: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-container {
    padding: var(--space-16) var(--space-4);
    text-align: center;
    display: block !important;
    grid-template-columns: 1fr !important;
  }

  .hero-content {
    max-width: 100%;
    padding: var(--space-8) var(--space-4);
    text-align: center;
  }

  /* CRÍTICO: Ocultar versiones desktop en móvil */
  .hero .hero-title-desktop,
  .hero .hero-description-desktop {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
  }

  /* CRÍTICO: Mostrar SOLO versiones móvil */
  .hero .hero-title-mobile,
  .hero .hero-description-mobile {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    opacity: 1 !important;
  }

  /* Título móvil - Grande y legible */
  .hero .hero-title-mobile {
    font-size: 2.25rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1.5rem !important;
    font-weight: 700 !important;
    text-align: center !important;
  }

  /* Descripción móvil - Concisa */
  .hero .hero-description-mobile {
    font-size: 1.125rem !important;
    line-height: 1.6 !important;
    margin-bottom: 2rem !important;
    color: rgba(255, 255, 255, 0.95) !important;
    text-align: center !important;
    max-width: 90% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Botones en móvil - Más grandes y espaciados */
  .hero-cta {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .hero-cta .btn {
    width: 100%;
    padding: 1rem 2rem !important;
    font-size: 1rem !important;
    font-weight: 600;
    border-radius: 10px;
  }

  .hero-cta .btn-primary {
    min-height: 56px;
  }

  .hero-cta .btn-secondary {
    min-height: 56px;
    border-width: 2px;
  }

  /* Ocultar elementos decorativos en móvil */
  .hero-visual,
  .hero-graphic,
  .hero-shapes,
  .shape-1,
  .shape-2,
  .shape-3,
  .shape-4 {
    display: none !important;
  }
  /* Ocultar elementos decorativos en móvil */
  .hero-visual,
  .hero-graphic,
  .hero-shapes,
  .shape-1,
  .shape-2,
  .shape-3,
  .shape-4 {
    display: none !important;
  }
  /* Ocultar círculos decorativos de la sección About en móvil */
  .about-visual,
  .about-placeholder,
  .about-image {
    display: none !important;
  }

  /* Optimizar layout de About para móvil */
  .about-content {
    grid-template-columns: 1fr !important;
    text-align: center !important;
  }

  .about-text {
    padding: 0 1rem !important;
  }

  .about-stats {
    justify-content: center !important;
  }
}

/* ========================================
   DESKTOP - Mostrar versión completa
   ======================================== */
@media (min-width: 768px) {
  /* Ocultar versión móvil */
  .hero-title-mobile,
  .hero-description-mobile {
    display: none !important;
  }
  
  /* Mostrar versión desktop */
  .hero-title-desktop,
  .hero-description-desktop {
    display: block !important;
  }
  
  .hero-title-desktop {
    font-size: var(--font-size-5xl);
    line-height: 1.1;
    margin-bottom: 1.5rem;
  }
  
  .hero-description-desktop {
    font-size: var(--font-size-xl);
    line-height: 1.6;
    margin-bottom: 2rem;
  }

  .hero-cta {
    flex-direction: row;
    gap: 1.5rem;
    justify-content: center;
  }

  .hero-cta .btn {
    width: auto;
    min-width: 200px;
  }
}

/* ========================================
   TABLET STYLES (768px - 1023px)
   ======================================== */
@media (min-width: 768px) and (max-width: 1023px) {
  .container {
    padding: 0 var(--space-8);
  }

  .hero-title {
    font-size: var(--font-size-4xl);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .about-stats {
    gap: var(--space-8);
  }

  .stat-number {
    font-size: var(--font-size-2xl);
  }
}

/* ========================================
   LARGE SCREENS (1024px+)
   ======================================== */
@media (min-width: 1024px) {
  /* Enhanced spacing for large screens */
  section {
    padding: var(--space-24) 0;
  }

  .hero-container {
    padding: var(--space-24) var(--space-8);
  }

  /* 4-column layouts for components */
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-10);
  }

  .benefits-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Larger typography for desktop */
  .hero-title {
    font-size: var(--font-size-5xl);
    line-height: 1.1;
  }

  .section-title {
    font-size: var(--font-size-4xl);
  }

  /* Enhanced hover effects for desktop */
  .service-card:hover {
    transform: translateY(-12px);
  }

  .benefit-card:hover,
  .profile-card:hover {
    transform: translateY(-8px);
  }
}

/* ========================================
   EXTRA LARGE SCREENS (1200px+)
   ======================================== */
@media (min-width: 1200px) {
  .container {
    padding: 0 var(--space-12);
  }

  .hero-graphic {
    width: 500px;
    height: 500px;
  }

  /* Even larger shapes for XL screens */
  .shape-1 {
    width: 120px;
    height: 120px;
  }

  .shape-2 {
    width: 90px;
    height: 90px;
  }

  .shape-3 {
    width: 150px;
    height: 150px;
  }

  .shape-4 {
    width: 60px;
    height: 60px;
  }

  /* Enhanced grid layouts */
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-10);
  }

  .about-placeholder {
    width: 450px;
    height: 450px;
  }
}

/* ========================================
   ULTRA WIDE SCREENS (1400px+)
   ======================================== */
@media (min-width: 1400px) {
  :root {
    --container-max-width: 1400px;
  }

  .hero-title {
    font-size: 4rem;
  }

  .section-title {
    font-size: 3.5rem;
  }
}

/* ========================================
   MOBILE-SPECIFIC OPTIMIZATIONS
   ======================================== */
@media (max-width: 480px) {
  /* Extra small mobile devices */
  .container {
    padding: 0 var(--space-3);
  }

  .hero-container {
    padding: var(--space-8) var(--space-3);
  }

  .hero-title {
    font-size: var(--font-size-xl);
  }

  .hero-description {
    font-size: var(--font-size-sm);
  }

  .btn {
    padding: var(--space-3) var(--space-5);
    font-size: var(--font-size-sm);
  }

  .service-card,
  .benefit-card,
  .profile-card,
  .testimonial-card {
    padding: var(--space-6);
  }

  .service-icon,
  .benefit-icon {
    width: 48px;
    height: 48px;
  }

  .service-icon svg,
  .benefit-icon svg {
    width: 24px;
    height: 24px;
  }

  .stat-number {
    font-size: var(--font-size-xl);
  }

  .about-stats {
    gap: var(--space-4);
  }

  .form-placeholder {
    padding: var(--space-8);
  }

  .footer-content {
    gap: var(--space-6);
  }

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

/* ========================================
   TOUCH DEVICE OPTIMIZATIONS
   ======================================== */
@media (hover: none) and (pointer: coarse) {
  /* Optimize for touch devices */
  .btn {
    min-height: 44px; /* Minimum touch target size */
    padding: var(--space-4) var(--space-6);
  }

  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Remove hover effects on touch devices */
  .service-card:hover,
  .benefit-card:hover,
  .profile-card:hover,
  .testimonial-card:hover {
    transform: none;
    box-shadow: 0 4px 6px var(--shadow-light);
  }

  .btn-primary:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(51, 102, 204, 0.3);
  }

  /* Focus styles for touch */
  .btn:focus,
  .nav-link:focus {
    outline: 3px solid var(--accent-blue);
    outline-offset: 2px;
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
  .header,
  .nav-toggle,
  .footer,
  .cta-section,
  .form-placeholder {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
    color: black;
    background: white;
  }

  .hero {
    min-height: auto;
    page-break-after: always;
  }

  .service-card,
  .benefit-card,
  .profile-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }

  a {
    color: black;
    text-decoration: underline;
  }

  .highlight {
    background: none;
    color: black;
    font-weight: bold;
  }
}

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .shape {
    animation: none;
  }

  .placeholder-shimmer {
    animation: none;
    background: #f0f0f0;
  }
}

/* ========================================
   HIGH CONTRAST MODE
   ======================================== */
@media (prefers-contrast: high) {
  :root {
    --text-dark: #000000;
    --text-gray: #333333;
    --border-light: #666666;
    --shadow-light: rgba(0, 0, 0, 0.3);
    --shadow-medium: rgba(0, 0, 0, 0.5);
  }

  .service-card,
  .benefit-card,
  .profile-card,
  .testimonial-card {
    border: 2px solid var(--border-light);
  }

  .btn-primary {
    border: 2px solid var(--primary-blue);
  }

  .btn-secondary {
    border: 3px solid var(--primary-blue);
  }
}

/* ========================================
   DARK MODE SUPPORT
   ======================================== */
@media (prefers-color-scheme: dark) {
  :root {
    --text-dark: #f9fafb;
    --text-gray: #d1d5db;
    --text-light: #9ca3af;
    --background-light: #1f2937;
    --border-light: #374151;
    --white: #111827;
  }

  body {
    background-color: var(--white);
    color: var(--text-dark);
  }

  .header {
    background: rgba(17, 24, 39, 0.95);
    border-bottom: 1px solid var(--border-light);
  }

  .service-card,
  .benefit-card,
  .profile-card,
  .testimonial-card,
  .faq-item {
    background: #1f2937;
    border: 1px solid var(--border-light);
  }

  .footer {
    background: #000000;
  }

  .nav-menu {
    background-color: var(--white);
  }
}

/* ========================================
   LANDSCAPE ORIENTATION (MOBILE)
   ======================================== */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
    padding-top: 60px;
  }

  .hero-container {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    padding: var(--space-12) var(--space-4);
  }

  .hero-content {
    text-align: left;
  }

  .hero-title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-4);
  }

  .hero-description {
    margin-bottom: var(--space-6);
  }

  .hero-cta {
    flex-direction: row;
    justify-content: flex-start;
  }

  .hero-graphic {
    width: 200px;
    height: 200px;
  }
}