/* styles.css */
:root {
  /* Paleta de Colores */
  --primary-color: #0F172A;    /* Tech Navy */
  --secondary-color: #0284C7;  /* Primary Tech Blue */
  --accent-color: #F97316;     /* Accent CTA Orange */
  --accent-hover: #EA580C;
  --bg-light: #F8FAFC;         /* Gris Neutro Claro */
  --text-main: #334155;
  --text-muted: #64748B;
  --white: #F1F5F9;
  
  /* Tipografía */
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* UI / UX */
  --border-radius: 12px;
  --box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  --transition: all 0.3s ease;
}

/* Reset Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Contenedor Principal */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* --- HEADER & NAVEGACIÓN --- */
header {
  background-color: var(--white);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
}

.logo span {
  color: var(--secondary-color);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-main);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent-color);
}

/* Botones */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.3s ease;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.28);
  color: var(--white);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: #0369A1;
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--primary-color);
}

/* Menú Hamburguesa */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}

/* --- SECCIONES GLOBALES --- */
.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  animation: fade-up 0.7s ease both;
  background-color: var(--primary-color);
  padding: 2rem;
  width: auto;
  color: white;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-title p {
  color: var(--white);
  max-width: 600px;
  margin: 0 auto;
}

/* --- HERO SECTION --- */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1E293B 100%);
  color: var(--white);
  padding: 6rem 0;
}

.hero > .container > h1 {
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
  animation: fade-up 0.7s ease both;
}

.hero > .container > p {
  animation: fade-up 0.7s ease 0.12s both;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text {
  animation: fade-up 0.8s ease both;
}

.hero-image {
  animation: fade-up 0.8s ease 0.18s both;
}

.hero-text h1 {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero-text p {
  font-size: 1.125rem;
  color: #CBD5E1;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-image img {
  border-radius: var(--border-radius);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* --- CARDS & GRID --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
}

.card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border: 1px solid #E2E8F0;
}

.grid-3 > .card,
.grid-2 > .card {
  animation: fade-up 0.65s ease both;
}

.grid-3 > .card:nth-child(2),
.grid-2 > .card:nth-child(2) {
  animation-delay: 0.1s;
}

.grid-3 > .card:nth-child(3),
.grid-2 > .card:nth-child(3) {
  animation-delay: 0.2s;
}

.grid-2 > .card:nth-child(4) {
  animation-delay: 0.3s;
}

.grid-2 > .card:nth-child(5) {
  animation-delay: 0.4s;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--secondary-color);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

/* --- CATÁLOGO DE PRODUCTOS --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.product-card {
  padding: 0;
  overflow: hidden;
}

.product-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.product-image-credit {
  padding: 0.5rem 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.product-image-credit a:hover {
  color: var(--secondary-color);
}

.product-card h3 {
  margin: 0;
  padding: 1.25rem 1.5rem;
}

/* --- ESTADÍSTICAS --- */
.stats {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

/* --- FAQ ACORDEÓN --- */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  margin-bottom: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.5rem;
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.5rem;
  color: var(--text-muted);
}

.faq-item.active .faq-answer {
  max-height: 200px; /* Ajustar según contenido */
  padding-bottom: 1.5rem;
}

.faq-item.active .faq-question {
  color: var(--secondary-color);
}

/* --- FORMULARIOS --- */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  font-family: var(--font-body);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* --- FOOTER --- */
footer {
  background-color: var(--primary-color);
  color: #94A3B8;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #334155;
  font-size: 0.875rem;
}

/* --- MEDIA QUERIES (Mobile First approach implicit above, refining for small screens) --- */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: -100%;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 2rem 0;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
  }
  .nav-links.active {
    left: 0;
  }
  .section {
    padding: 3rem 0;
  }
  .hero-text h1 {
    font-size: 2.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}