:root {
  --primary-dark: #2a0000;
  --primary-medium: #4a1515;
  --text-light: #f5f5f5;
  --text-gray: #e0e0e0;
  --white: #ffffff;
  --black: #000000;
}

body { 
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
  color: var(--text-light);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

header, footer { 
  background-color: rgba(42, 0, 0, 0.95);
  backdrop-filter: blur(10px);
}

.navbar-brand img { 
  height: 30px;
  width: auto;
  display: block;
  transform: scale(1.5);
  transform-origin: left center;
  background-color: white;
  padding: 1px;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.navbar-brand img:hover {
  transform: scale(1.6);
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--text-light) !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--text-light);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

section { 
  padding: 60px 0;
}

#inicio {
  background: linear-gradient(180deg, var(--text-light) 0%, var(--white) 100%);
  padding: 100px 0;
}

#inicio h1 {
  font-size: 3rem;
  font-weight: bold;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

#inicio p {
  font-size: 1.2rem;
  color: var(--primary-medium);
}

h2 {
  color: var(--text-light);
  border-left: 4px solid var(--white);
  padding-left: 15px;
  margin-bottom: 30px;
  font-weight: 600;
}

.card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--primary-medium);
}

.client-logo {
  max-height: 100px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.card:hover .client-logo {
  transform: scale(1.1);
}

.card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.card-title {
  font-size: 1rem;
  word-break: break-word;
  font-weight: 600;
}

.client-name-link {
  color: var(--primary-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.client-name-link:hover {
  color: var(--primary-medium);
  text-decoration: none; 
}

#contacto a {
  color: var(--text-light);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid transparent;
}

#contacto a:hover {
  border: 1px solid var(--text-light);
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

footer {
  border-top: 3px solid var(--white);
}

@media (max-width: 768px) {
  #inicio h1 {
    font-size: 2rem;
  }
}