/* Reset y Tipografía */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #111827;
  --light: #f9fafb;
  --white: #ffffff;
  --gray: #6b7280;
  --accent: #25d366;
  --highlight: #3b82f6;
  --siesa-blue: #2d5f8b;
  --aws-orange: #FF9900;
  --ai-purple: #6e48aa;
  --reporteria-blue: #00A1F1;
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--secondary);
  background-color: var(--white);
}

/* Header */
header {
  background: var(--white);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  height: 100px;
  width: auto;
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-text {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--secondary);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: var(--secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

nav a:hover {
  color: var(--primary);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Hero section */
.hero {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.9) 0%, rgba(29, 78, 216, 0.9) 100%), 
              url('https://images.unsplash.com/photo-1620712943543-bcc4688e7485?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80') no-repeat center/cover;
  color: var(--white);
  padding: 6rem 1rem;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.highlight {
  color: #bfdbfe;
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 0.25rem;
  left: 0;
  width: 100%;
  height: 0.5rem;
  background-color: rgba(191, 219, 254, 0.3);
  z-index: -1;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: #e5e7eb;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 0.375rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--white);
  color: var(--primary);
  border: 1px solid var(--white);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--white);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border: 1px solid var(--white);
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--primary);
}

.hero-tech-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.hero-tech-icons i {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.hero-tech-icons i:hover {
  color: var(--white);
  transform: translateY(-5px);
}

/* Secciones generales */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Servicios */
.services {
  padding: 5rem 1rem;
  background-color: var(--light);
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: var(--white);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  padding: 2rem;
  border-top: 4px solid var(--primary);
  position: relative;
}

.card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card[data-service="siesa"] {
  border-top-color: var(--siesa-blue);
}

.card[data-service="aws"] {
  border-top-color: var(--aws-orange);
}

.card[data-service="ia"] {
  border-top-color: var(--ai-purple);
}

.card[data-service="reporteria"] {
  border-top-color: var(--reporteria-blue);
}

.card-icon {
  width: 3.5rem;
  height: 3.5rem;
  background-color: rgba(37, 99, 235, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.card[data-service="siesa"] .card-icon {
  background-color: rgba(45, 95, 139, 0.1);
}

.card[data-service="aws"] .card-icon {
  background-color: rgba(255, 153, 0, 0.1);
}

.card[data-service="ia"] .card-icon {
  background-color: rgba(110, 72, 170, 0.1);
}

.card[data-service="reporteria"] .card-icon {
  background-color: rgba(0, 161, 241, 0.1);
}

.card-icon i {
  font-size: 1.5rem;
  color: var(--primary);
}

.card[data-service="siesa"] .card-icon i {
  color: var(--siesa-blue);
}

.card[data-service="aws"] .card-icon i {
  color: var(--aws-orange);
}

.card[data-service="ia"] .card-icon i {
  color: var(--ai-purple);
}

.card[data-service="reporteria"] .card-icon i {
  color: var(--reporteria-blue);
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--secondary);
}

.card p {
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.card-features {
  list-style: none;
  margin-top: 1.5rem;
}

.card-features li {
  padding: 0.5rem 0;
  color: var(--secondary);
  position: relative;
  padding-left: 1.5rem;
}

.card-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.card[data-service="siesa"] .card-features li::before {
  color: var(--siesa-blue);
}

.card[data-service="aws"] .card-features li::before {
  color: var(--aws-orange);
}

.card[data-service="ia"] .card-features li::before {
  color: var(--ai-purple);
}

.card[data-service="reporteria"] .card-features li::before {
  color: var(--reporteria-blue);
}

/* Badges */
.siesa-badge {
  background: var(--siesa-blue);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: bold;
  display: inline-block;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.aws-badge {
  background: var(--aws-orange);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: bold;
  display: inline-block;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.ai-badge {
  background: var(--ai-purple);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: bold;
  display: inline-block;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* Botón WhatsApp en cards */
.btn-whatsapp {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  margin-top: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-whatsapp:hover {
  background: #128C7E;
  transform: translateY(-2px);
}

/* Sección de tecnologías */
.technologies {
  padding: 5rem 1rem;
  background-color: var(--white);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  background-color: var(--light);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.tech-item:hover {
  background-color: rgba(37, 99, 235, 0.1);
  transform: translateY(-3px);
}

.tech-item i {
  font-size: 2.5rem;
  color: var(--primary);
}

.tech-item span {
  font-weight: 500;
  color: var(--secondary);
  text-align: center;
}

/* Contacto */
.contact {
  padding: 5rem 1rem;
  background-color: var(--light);
}

.contact .container {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-item i {
  font-size: 1.25rem;
  color: var(--primary);
  margin-top: 0.25rem;
}

.info-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: var(--secondary);
}

.info-item a, .info-item p {
  color: var(--gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.info-item a:hover {
  color: var(--primary);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* WhatsApp flotante */
.whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--accent);
  color: var(--white);
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  z-index: 999;
}

.whatsapp:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Footer */
footer {
  background-color: var(--secondary);
  color: var(--white);
  padding: 3rem 1rem 1.5rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 30px;
}

.footer-logo span {
  font-weight: 600;
  font-size: 1.1rem;
}

.footer-links h4, .footer-social h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--white);
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  color: var(--white);
  font-size: 1.25rem;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  font-size: 0.9rem;
}

.footer-bottom strong {
  color: var(--white);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  nav ul {
    gap: 1rem;
  }
  
  .logo {
    height: 50px;
  }
}

@media (max-width: 480px) {
  header .container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .logo-text {
    display: none;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .service-cards {
    grid-template-columns: 1fr;
  }
}