/* TecnoNet Custom Styles */
:root {
  --primary-blue: #196096;
  --primary-blue-hover: #0f4269;
  --primary-gray: #1f2937;
  --secondary-gray: #6b7280;
  --light-gray: #f9fafb;
  --border-gray: #e5e7eb;
}

* {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Navigation Styles */
.nav-link {
  @apply text-gray-600 hover:text-[#196096] px-3 py-2 rounded-md text-sm font-medium transition-colors duration-200;
}

.nav-link:hover {
  @apply text-[#196096];
}

.mobile-nav-link {
  @apply text-gray-600 hover:text-[#196096] hover:bg-gray-50 block px-3 py-2 rounded-md text-base font-medium transition-colors duration-200;
}

/* Hero Section - Mejorado */
.hero-section {
  background: linear-gradient(135deg, #0a2540 0%, #196096 50%, #2c7db5 100%);
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(25, 96, 150, 0.3) 0%, transparent 50%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)" /></svg>');
  opacity: 0.5;
}

/* CTA Button - Diseño Profesional Grande */
.cta-button {
  @apply inline-block bg-gradient-to-r from-[#196096] to-[#2c7db5] text-white font-bold text-xl transition-all duration-300;
  padding: 1.25rem 3rem;
  border-radius: 60px;
  box-shadow: 0 10px 30px rgba(25, 96, 150, 0.4);
  position: relative;
  overflow: hidden;
  border: 3px solid #196096;
  letter-spacing: 0.5px;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.6s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 20px 50px rgba(25, 96, 150, 0.6);
  border-color: #0a2540;
  background: linear-gradient(to right, #0a2540, #196096);
}

.cta-button:active {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 25px rgba(25, 96, 150, 0.5);
}

.cta-button:focus {
  --tw-ring-color: var(--primary-blue);
}

/* Advantage Cards - Efecto Limpio y Sutil */
.advantage-card {
  @apply bg-white p-8 rounded-xl shadow-sm text-center;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.advantage-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(25, 96, 150, 0.12);
}

.advantage-icon {
  @apply w-16 h-16 rounded-full flex items-center justify-center mx-auto mb-4;
  background: linear-gradient(135deg, #196096 0%, #2c7db5 100%);
  color: white;
  transition: none;
  box-shadow: 0 4px 15px rgba(25, 96, 150, 0.2);
}

/* Module Cards - Mejorado */
.module-card {
  @apply bg-white rounded-xl shadow-sm overflow-hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.module-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(25, 96, 150, 0.2);
  border-color: #196096;
}

.module-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Responsive - Imágenes de módulos */
@media (max-width: 768px) {
  .module-card img {
    height: 220px;
  }
}

.module-card .p-6 {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background: white;
  position: relative;
  z-index: 2;
}

.module-tag {
  @apply inline-block text-sm px-2 py-1 font-semibold;
  background: transparent;
  color: #196096;
  border: none;
  transition: color 0.3s ease;
}

.module-tag:hover {
  color: #2c7db5;
}

/* Form Styles */
.form-input {
  @apply transition-all duration-200;
}

.form-input:focus {
  @apply outline-none shadow-lg ring-2 ring-[#196096];
}

.error-message {
  @apply text-red-500 text-sm mt-1;
}

.error-message.hidden {
  @apply hidden;
}

/* Loading animation for form submission */
.loading {
  @apply opacity-50 pointer-events-none;
}

.loading::after {
  content: '';
  @apply inline-block w-4 h-4 ml-2 border-2 border-white border-t-transparent rounded-full animate-spin;
}

/* FAQ Styles */
.faq-item {
  @apply border-b border-gray-200 last:border-b-0;
}

.faq-question {
  @apply w-full text-left py-6 px-0 flex items-center text-lg font-medium text-gray-900 hover:text-primary-blue focus:outline-none focus:text-primary-blue transition-colors duration-200;
}

.faq-question span {
  flex: 1;
  padding-right: 1rem;
}

.faq-answer {
  @apply pb-6 text-gray-600 leading-relaxed;
}

.faq-answer.hidden {
  @apply hidden;
}
.faq-icon {
  width: 16px !important;
  height: 16px !important;
  color: #6b7280 !important;
  transition: all 0.2s ease !important;
  flex-shrink: 0;
  margin-left: auto;
  transform-origin: center;
  position: absolute;
  right: 0;
} 

.faq-question:hover .faq-icon {
  color: #196096 !important;
}

.faq-icon.rotate {
  @apply transform rotate-180;
  transform-origin: center;
}

.faq-question.active {
  @apply text-primary-blue;
}

.faq-question.active .faq-icon {
  @apply text-primary-blue;
}
/* Contact Info Cards */
.contact-info-card {
  @apply bg-gray-50 p-6 rounded-lg;
}

/* Lazy Loading */
.lazy-load {
  @apply opacity-0 transition-opacity duration-300;
}

.lazy-load.loaded {
  @apply opacity-100;
}

/* Responsive Utilities */
@media (max-width: 640px) {
  .hero-section h1 {
    @apply text-3xl;
  }
  
  .hero-section p {
    @apply text-lg;
  }
  
  .advantage-card {
    @apply p-6;
  }
  
  .module-card {
    @apply mx-4;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-in-out;
}

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

.slide-in-right {
  animation: slideInRight 0.6s ease-in-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Success Message */
.success-message {
  @apply bg-green-100 border border-green-400 text-green-700 px-4 py-3 rounded-lg mb-4 hidden;
}

.success-message.show {
  @apply block;
}

/* WhatsApp Button - Ahora manejado por whatsapp-button.js */
/* Los estilos se aplican inline para evitar dependencias y mejorar rendimiento */

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #196096, #2c7db5);
  z-index: 9999;
  transition: width 0.1s ease;
}

/* Stats Counter Animation */
.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #196096 0%, #2c7db5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section Divider */
.section-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #196096, #2c7db5);
  margin: 0 auto;
  border-radius: 2px;
  position: relative;
}

.section-divider::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: white;
  border: 3px solid #196096;
  border-radius: 50%;
}

/* Testimonial or Quote Box */
.quote-box {
  background: linear-gradient(135deg, rgba(25, 96, 150, 0.05) 0%, rgba(44, 125, 181, 0.05) 100%);
  border-left: 4px solid #196096;
  padding: 2rem;
  border-radius: 0 12px 12px 0;
  position: relative;
  overflow: hidden;
}

.quote-box::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 120px;
  color: rgba(25, 96, 150, 0.1);
  font-family: Georgia, serif;
  line-height: 1;
}

/* Improved Navigation Shadow on Scroll */
nav.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

/* Badge/Pill Style */
.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(25, 96, 150, 0.1) 0%, rgba(44, 125, 181, 0.1) 100%);
  color: #196096;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 2px solid rgba(25, 96, 150, 0.2);
  transition: all 0.3s ease;
}

.badge:hover {
  background: linear-gradient(135deg, #196096 0%, #2c7db5 100%);
  color: white;
  transform: translateY(-2px);
}

/* Image Overlay Effect */
.image-overlay {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.image-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(25, 96, 150, 0.7) 0%, rgba(44, 125, 181, 0.7) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.image-overlay:hover::after {
  opacity: 1;
}

/* Fade In Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* Pulse Animation for Important Elements */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(25, 96, 150, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(25, 96, 150, 0.6);
  }
}

.pulse-glow {
  animation: pulse-glow 2s infinite;
}

/* ============================================
   RESPONSIVE STYLES - MOBILE & TABLET
   ============================================ */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-section p {
    font-size: 1.1rem;
  }
  
  .advantage-card {
    padding: 1.5rem;
  }
  
  .cta-button {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
}

/* Mobile (hasta 768px) */
@media (max-width: 768px) {
  /* Hero Section */
  .hero-section {
    padding: 4rem 1rem;
    min-height: 70vh;
  }
  
  .hero-section h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .hero-section p {
    font-size: 1rem;
  }
  
  /* CTA Button */
  .cta-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    border-radius: 40px;
  }
  
  /* Advantage Cards */
  .advantage-card {
    padding: 1.25rem;
  }
  
  .advantage-icon {
    width: 3.5rem;
    height: 3.5rem;
  }
  
  /* Module Cards */
  .module-card h3 {
    font-size: 1.25rem;
  }
  
  .module-tag {
    font-size: 0.7rem;
    padding: 0.375rem 0.75rem;
  }
  
  /* Navigation */
  nav {
    padding: 0.75rem 1rem;
  }
  
  /* Sections */
  section {
    padding: 3rem 1rem;
  }
  
  /* Grid adjustments */
  .grid {
    gap: 1.5rem;
  }
}

/* Small Mobile (hasta 480px) */
@media (max-width: 480px) {
  .hero-section h1 {
    font-size: 1.75rem;
  }
  
  .hero-section p {
    font-size: 0.95rem;
  }
  
  .cta-button {
    width: 100%;
    text-align: center;
  }
  
  .advantage-card {
    padding: 1rem;
  }
  
  .module-card img {
    height: 200px;
  }
  
  .module-tag {
    font-size: 0.65rem;
    padding: 0.25rem 0.625rem;
  }
}

/* Landscape Mobile */
@media (max-height: 600px) and (orientation: landscape) {
  .hero-section {
    min-height: 100vh;
    padding: 2rem 1rem;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
}
