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

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: #2C3E50;
  background-color: #ffffff;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

/* Navegación */
nav {
  background-color: #4A7BA7;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: #5BA85C;
}

.nav-dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #3D5A7A;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  padding: 0.5rem 0;
  top: 100%;
  left: 0;
  border-radius: 4px;
}

.dropdown-content a {
  color: white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s;
}

.dropdown-content a:hover {
  background-color: #2C3E50;
}

.nav-dropdown:hover .dropdown-content {
  display: block;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #4A7BA7 0%, #3D5A7A 100%);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #e0e0e0;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Secciones */
section {
  padding: 3rem 0;
}

section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #2C3E50;
}

/* Botones */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background-color: #5BA85C;
  color: white;
}

.btn-primary:hover {
  background-color: #4A9B4B;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(91, 168, 92, 0.3);
}

.btn-secondary {
  background-color: white;
  color: #4A7BA7;
  border: 2px solid #4A7BA7;
}

.btn-secondary:hover {
  background-color: #4A7BA7;
  color: white;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s;
  border-top: 4px solid #4A7BA7;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.card h3 {
  color: #4A7BA7;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.card p {
  color: #666;
  line-height: 1.8;
}

/* Servicios */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.servicio-item {
  background: #F9FAFB;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #5BA85C;
  transition: all 0.3s;
}

.servicio-item:hover {
  background: #f0f0f0;
}

/* Formulario */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #2C3E50;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #E5E7EB;
  border-radius: 4px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #4A7BA7;
  box-shadow: 0 0 0 3px rgba(74, 123, 167, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

/* Footer */
footer {
  background-color: #2C3E50;
  color: white;
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-section {
  margin-bottom: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  color: #5BA85C;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #e0e0e0;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: #5BA85C;
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: #999;
}

.footer-bottom a {
  color: #5BA85C;
  text-decoration: none;
}

/* Utilidades */
.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.highlight {
  background-color: #F9FAFB;
  border-left: 4px solid #4A7BA7;
  padding: 1.5rem;
  border-radius: 4px;
  margin: 2rem 0;
}

.highlight h3 {
  color: #2C3E50;
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-menu {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

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

  section h2 {
    font-size: 1.8rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .nav-container {
    padding: 0 1rem;
  }
}

/* Estilos específicos para páginas */
.breadcrumb {
  background-color: #F9FAFB;
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: #4A7BA7;
  text-decoration: none;
  margin: 0 0.5rem;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.list-with-icons {
  list-style: none;
}

.list-with-icons li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.list-with-icons li::before {
  content: "✓";
  color: #5BA85C;
  font-weight: bold;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Mensaje de éxito */
.success-message {
  background-color: #5BA85C;
  color: white;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  display: none;
}

.success-message.show {
  display: block;
}

/* Estilos para artículos del blog */
.article-item {
  border-bottom: 1px solid #E5E7EB;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.article-item:last-child {
  border-bottom: none;
}

.article-date {
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.article-title {
  color: #4A7BA7;
  text-decoration: none;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  display: block;
}

.article-title:hover {
  text-decoration: underline;
}

.article-excerpt {
  color: #666;
  margin-bottom: 1rem;
}

.read-more {
  color: #5BA85C;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.read-more:hover {
  text-decoration: underline;
}
