/* Critical CSS - Estilos esenciales que deben cargar primero */

/* Reset básico */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background: #f4f4f4;
  color: #333;
  line-height: 1.6;
}

/* Header */
header {
  background: #003b5c;
  color: white;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  height: 60px;
  max-width: 100%;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 5px 10px;
}

nav a:hover {
  color: #66b3ff;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #003b5c 0%, #004d7a 50%, #0066a1 100%);
  color: white;
  padding: 100px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero h1, .hero p {
  position: relative;
  z-index: 2;
  margin: 0 0 20px 0;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: bold;
}

.hero p {
  font-size: 1.2rem;
}

/* Secciones */
section {
  padding: 40px 20px;
  max-width: 1000px;
  margin: auto;
}

/* Botones - CRÍTICO */
.btn {
  display: inline-block !important;
  padding: 15px 30px !important;
  text-decoration: none !important;
  border-radius: 6px !important;
  font-weight: bold !important;
  transition: all 0.3s ease !important;
  margin: 5px !important;
  text-align: center !important;
  border: none !important;
  cursor: pointer !important;
}

.btn-primary {
  background: #003b5c !important;
  color: white !important;
}

.btn-primary:hover {
  background: #004d7a !important;
  color: white !important;
  transform: translateY(-2px) !important;
}

.btn-secondary {
  background: transparent !important;
  color: #003b5c !important;
  border: 2px solid #003b5c !important;
}

.btn-secondary:hover {
  background: #003b5c !important;
  color: white !important;
  transform: translateY(-2px) !important;
}

.cta-buttons {
  display: flex !important;
  gap: 20px !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  margin-top: 30px !important;
}

/* Intro section */
.intro {
  background: white;
  margin: 40px auto;
  padding: 60px 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

/* Highlights */
.highlights {
  background: #f8f9fa;
  padding: 60px 20px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card h3 {
  color: #003b5c;
  margin-bottom: 15px;
}

/* Footer */
footer {
  background: #003b5c;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 20px;
  }
  
  nav ul {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .hero {
    padding: 60px 20px;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
}
