:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 8px 12px rgba(0, 0, 0, 0.15);
}

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

.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
  transition: transform 0.3s ease;
  height: 85px;
}

.navbar-brand img:hover {
  transform: scale(1.05);
}

.navbar-brand span {
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.navbar-nav .nav-link {
  margin: 0 10px;
  transition: color 0.3s ease;
  font-weight: 500;
}

.navbar-nav .nav-link:hover {
  color: #667eea !important;
}

.hero-section {
  background: var(--primary-gradient);
  color: white;
  padding: 60px 0;
  margin-bottom: 60px;
  border-radius: 10px;
}

.hero-section h2 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.hero-section .list-group-item {
  padding: 10px 0;
  margin-bottom: 10px;
  border-left: 3px solid #fff;
  padding-left: 15px;
  animation: slideInLeft 0.5s ease;
}

.card {
  border: none;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  height: 100%;
  overflow: hidden;
}

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

.card-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 15px 20px;
}

.card-header .card-title {
  font-size: 1.3rem;
  font-weight: 600;
}

.card-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-text {
  flex-grow: 1;
  margin-bottom: 15px;
  color: #666;
  line-height: 1.7;
}

.btn {
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: 5px;
}

.btn-primary {
  background-color: #667eea;
  border-color: #667eea;
}

.btn-primary:hover {
  background-color: #764ba2;
  border-color: #764ba2;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
}

.btn-success {
  background-color: #27ae60;
  border-color: #27ae60;
}

.btn-success:hover {
  background-color: #229954;
  border-color: #229954;
}

.form-control {
  border: 2px solid #e0e0e0;
  border-radius: 5px;
  padding: 10px 15px;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-label {
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

#proyectos {
  padding-top: 40px;
  padding-bottom: 40px;
}

#proyectos h2 {
  margin-bottom: 40px;
  color: #333;
  font-weight: 700;
  font-size: 2rem;
  text-align: center;
}

#contacto {
  padding-top: 40px;
  padding-bottom: 40px;
}

#contacto h2 {
  color: #333;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 40px;
}

#contacto .card {
  border: 1px solid #e0e0e0;
}

#contacto address {
  font-style: normal;
  line-height: 2;
}

#contacto a {
  text-decoration: none;
  color: #667eea;
  font-weight: 500;
}

#contacto a:hover {
  color: #764ba2;
  text-decoration: underline;
}

.footer {
  background: linear-gradient(135deg, #333 0%, #222 100%);
  color: white;
  text-align: center;
  padding: 30px 20px;
  margin-top: 60px;
  border-top: 3px solid #667eea;
}

.footer p {
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */
@media (max-width: 768px) {
  .hero-section {
    padding: 40px 0;
    margin-bottom: 40px;
  }

  .hero-section h2 {
    font-size: 1.8rem;
  }

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

  .card-body {
    padding: 15px;
  }

  #proyectos h2,
  #contacto h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
  }

  .navbar-brand span {
    display: none;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 30px 0;
    border-radius: 5px;
  }

  .hero-section h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .hero-section p {
    font-size: 0.95rem;
  }

  .card {
    margin-bottom: 15px;
  }

  .form-control {
    font-size: 16px; /* Previene zoom en iOS */
  }
}

.text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}