/* static/css/style.css */

:root {
  --primary: #0891b2; /* Teal 600 */
  --primary-dark: #0e7490; /* Teal 700 */
  --secondary: #3b82f6; /* Blue 500 */
  --secondary-light: #60a5fa; /* Blue 400 */
  --accent: #f97316; /* Orange 500 */
  --text-dark: #1e293b; /* Slate 800 */
  --text-light: #64748b; /* Slate 500 */
  --bg-light: #f8fafc; /* Slate 50 */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Para que los enlaces internos respeten el header fijo */
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: white;
  padding-top: 70px;
  font-size: 16px;
  overflow-x: hidden;
  margin: 0;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--primary-dark);
}

p {
  margin-bottom: 1rem;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

/* Clase para ocultar elementos en escritorio pero mostrarlos en móvil */
.mobile-only {
  display: none !important; /* Ocultar por defecto en escritorio */
}

/* Navbar */
.navbar {
  background-color: white;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  height: 70px;
  display: flex;
  align-items: center;
  transition: var(--transition);
  overflow: visible;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
}

/* Navbar logo */
.navbar .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 1001;
}

.navbar .logo img {
  width: 24px;
  height: 24px;
}

.navbar .logo:hover {
  opacity: 0.9;
}

/* Logo en el hero section */
.hero-section .logo-container img {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}

/* Footer logo */
footer .logo img {
  width: 24px;
  height: 24px;
}

/* Menú de navegación */
.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Botón hamburguesa para móvil */
.hamburger {
  cursor: pointer;
  z-index: 1001;
  width: 40px;
  height: 40px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.hamburger:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Sections */
.section {
  padding: 5rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.section.alt {
  background-color: var(--bg-light);
}

/* Hero Section */
.hero-section {
  color: white;
  text-align: center;
  padding: 8rem 1.5rem 6rem;
  position: relative;
  height: auto;
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  margin: 0 auto;
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.4;
}

.hero-section p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Hero Carousel */
.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero-carousel .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  transform: scale(1.05);
  animation: subtle-zoom 10s infinite alternate ease-in-out;
  will-change: opacity;
  filter: none !important;
}

.hero-carousel .slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2;
  pointer-events: none;
}

/* Gradiente adicional para mejorar legibilidad */
.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.5) 100%);
  z-index: 2;
  pointer-events: none;
}

@keyframes subtle-zoom {
  0% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1.15);
  }
}

/* Feature Section */
.feature {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 5rem;
  align-items: center;
}

.feature:last-child {
  margin-bottom: 0;
}

.feature:nth-child(even) {
  flex-direction: row-reverse;
}

.feature-image {
  flex: 1;
  max-width: 500px;
}

.feature-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.feature-image img:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-content {
  flex: 1;
}

.feature-content h3 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-content p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.feature-content ul {
  padding-left: 1.5rem;
}

.feature-content li {
  margin-bottom: 0.5rem;
  position: relative;
}

/* Cards */
.card {
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Pricing */
.pricing-card {
  text-align: center;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-lg);
  background-color: white;
  transition: var(--transition);
}

.pricing-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.pricing-card h3 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 1.5rem 0;
  color: var(--text-dark);
}

.price span {
  font-size: 1rem;
  color: var(--text-light);
}

/* Form */
.form-group {
  margin-bottom: 1.25rem;
}

.input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

/* Estilos de botón */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Botón primario */
.button.bg-white {
  background-color: white;
  color: var(--primary);
}

.button.bg-white:hover {
  background-color: #f9fafb; /* gray-50 */
}

/* Botón secundario */
.button.secondary {
  background-color: transparent;
  color: white;
  border: 1px solid white;
}

.button.secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Table */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.responsive-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.responsive-table th {
  background-color: var(--primary);
  color: white;
  font-weight: 500;
  padding: 1rem;
  text-align: left;
}

.responsive-table th:first-child {
  border-top-left-radius: var(--radius-sm);
}

.responsive-table th:last-child {
  border-top-right-radius: var(--radius-sm);
}

.responsive-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.responsive-table tbody tr:last-child td {
  border-bottom: none;
}

.responsive-table tbody tr:nth-child(odd) {
  background-color: rgba(0, 0, 0, 0.02);
}

.responsive-table .check {
  color: var(--primary);
  font-size: 1.25rem;
}

.responsive-table .cross {
  color: #ef4444;
  font-size: 1.25rem;
}

/* Sección de servicios */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.service-card {
  background-color: white;
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(8, 145, 178, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

/* Animaciones */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

/* Iconos */
[data-lucide] {
  flex-shrink: 0;
  stroke-width: 2px;
}

[data-lucide="check-circle"] {
  width: 20px;
  height: 20px;
}

.flex.items-center i,
.flex.items-start i {
  flex: none;
}

/* Estilos específicos para destacar el formulario de contacto */
#contacto .formulario-destacado {
  background-color: #e6f2ff;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border: 1px solid #bfdeff;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#contacto .formulario-destacado:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

#contacto .formulario-destacado h3 {
  color: #0891b2;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

#contacto .formulario-destacado .button {
  background-color: #0891b2;
  color: white;
  transition: all 0.3s ease;
}

#contacto .formulario-destacado .button:hover {
  background-color: #0e7490;
  transform: translateY(-2px);
}

#contacto .formulario-destacado input,
#contacto .formulario-destacado textarea {
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
}

#contacto .formulario-destacado input:focus,
#contacto .formulario-destacado textarea:focus {
  border-color: #0891b2;
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
  outline: none;
}

/* Media Queries */
@media (max-width: 1024px) {
  .feature {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  /* Mostrar elementos solo en móvil */
  .mobile-only {
    display: flex !important;
  }
  
  /* Ajustes del menú en móvil */
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 70px;
    right: 15px;
    left: auto;
    width: 250px;
    max-width: 80%;
    background-color: white;
    padding: 0.5rem 0;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    z-index: 1000;
    max-height: 80vh;
    overflow-y: auto;
  }

  .nav-links.show {
    display: flex !important;
    animation: fadeInMenu 0.3s ease forwards;
  }

  @keyframes fadeInMenu {
    from {
      opacity: 0;
      transform: translateY(-10px) scale(0.95);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .nav-links a {
    padding: 0.75rem 1.5rem;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
    font-weight: 500;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-links a:hover {
    background-color: rgba(8, 145, 178, 0.05);
    color: var(--primary);
  }

  .hamburger {
    display: flex !important;
    position: relative !important;
    margin-left: auto;
    right: 0 !important;
  }
  
  /* Ajustar features en móvil */
  .feature,
  .feature:nth-child(even) {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .feature-image {
    max-width: 100%;
  }
  
  body {
    padding-top: 60px; /* Coincide con la altura del navbar en móvil */
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .navbar .container {
    width: 100% !important;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    position: relative;
  }

  /* Ajuste del contenedor para evitar desbordamiento */
  main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  /* Hero en móvil */
  .hero-section h1 {
    font-size: 2.25rem;
  }
  
  .hero-section p {
    font-size: 1rem;
  }
  
  .section {
    padding: 3rem 1rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  /* Ajustes para botones en móvil */
  .button {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .flex-col .button:last-child {
    margin-bottom: 0;
  }
  
  /* Tablas responsivas en móvil */
  .table-responsive {
    display: block;
  }

  .responsive-table thead {
    display: none;
  }

  .responsive-table tbody tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
  }

  .responsive-table td {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    text-align: right;
  }

  .responsive-table td::before {
    content: attr(data-label);
    font-weight: 500;
    color: var(--text-dark);
    text-align: left;
  }
  
  /* Logos más pequeños en móvil */
  .navbar .logo img {
    width: 20px;
    height: 20px;
  }
  
  /* Mejorar contraste del hero en móviles */
  .hero-overlay {
    background: rgba(0, 0, 0, 0.3);
  }
  
  .hero-section::after {
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
  }
  
  .hero-content h1,
  .hero-content p,
  .hero-content .text-white\/90 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
  }
  
  .hero-carousel .slide {
    animation: none;
    filter: none !important;
  }
}

/* Fix específico para iOS */
@supports (-webkit-touch-callout: none) {
  /* Safari en iOS */
  html, body {
    -webkit-overflow-scrolling: touch;
  }
  
  .navbar, .hero-section {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  
  /* Desactivar scroll suave en iOS para mejor rendimiento */
  html {
    scroll-behavior: auto;
  }
}

/* Preferencias de rendimiento */
@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;
  }
}





