/* Colores personalizados basados en el logo de Casa Creativa */
:root {
  --cc-amarillo: #FFD700;
  --cc-morado: #8B3A8B;
  --cc-naranja: #FF8C42;
  --cc-naranja-claro: #FFB366;
  --cc-morado-claro: #A855A8;
}

/* Actualizar variables de Bootstrap */
:root {
  --bs-primary: #FFB366;
  --bs-secondary: #8B3A8B;
}

/* Masthead mejorado */
.masthead {
  background: linear-gradient(135deg, #8B3A8B 0%, #FF8C42 100%);
  min-height: 600px;
}

.masthead .divider {
  background-color: #FFD700;
  border: none;
  height: 4px;
}

/* Sección Misión y Visión - Diseño en tarjetas */
.section-mission-vision {
  background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
  padding: 80px 0;
}

.mission-vision-card {
  background: white;
  border: none;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.mission-vision-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(139, 58, 139, 0.2);
}

.mission-vision-card.mission {
  border-top: 5px solid #8B3A8B;
}

.mission-vision-card.vision {
  border-top: 5px solid #FF8C42;
}

.mission-vision-card h2 {
  color: #2c3e50;
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.mission-vision-card p {
  color: #555;
  line-height: 1.8;
  font-size: 1.05rem;
}

.mission-vision-card .divider {
  background-color: #FFD700;
  height: 3px;
  width: 60px;
  margin: 20px auto 30px;
}

/* Botones mejorados */
.btn-primary {
  background-color: #FF8C42;
  border-color: #FF8C42;
  font-weight: 600;
  padding: 12px 30px;
  transition: all 0.3s ease;
  border-radius: 50px;
}

.btn-primary:hover {
  background-color: #8B3A8B;
  border-color: #8B3A8B;
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(255, 140, 66, 0.4);
}

.btn-secondary {
  background-color: #8B3A8B;
  border-color: #8B3A8B;
  font-weight: 600;
  padding: 12px 30px;
  transition: all 0.3s ease;
  border-radius: 50px;
}

.btn-secondary:hover {
  background-color: #FF8C42;
  border-color: #FF8C42;
  transform: scale(1.05);
}

.btn-light {
  background-color: #FFD700;
  color: #2c3e50;
  border-color: #FFD700;
  font-weight: 600;
  border-radius: 50px;
}

.btn-light:hover {
  background-color: #FFB366;
  border-color: #FFB366;
  color: #2c3e50;
}

/* Valores Corporativos - Estilo mejorado */
#services {
  background: linear-gradient(135deg, #f8f9fa 0%, #e8f4f8 100%);
}

#services h2 {
  color: #2c3e50;
  font-weight: 700;
  margin-bottom: 20px;
}

#services .divider {
  background-color: #8B3A8B;
}

.value-card {
  transition: all 0.3s ease;
  padding: 30px;
  border-radius: 10px;
  background: white;
  border-left: 4px solid #FF8C42;
  margin-bottom: 20px;
}

.value-card:nth-child(2) {
  border-left-color: #8B3A8B;
}

.value-card:nth-child(3) {
  border-left-color: #FFD700;
}

.value-card:nth-child(4) {
  border-left-color: #FF8C42;
}

.value-card:nth-child(5) {
  border-left-color: #8B3A8B;
}

.value-card:hover {
  transform: translateX(10px);
  box-shadow: 0 5px 20px rgba(139, 58, 139, 0.1);
}

.value-card i {
  color: #FF8C42;
}

.value-card:nth-child(2) i {
  color: #8B3A8B;
}

.value-card:nth-child(3) i {
  color: #FFD700;
}

.value-card h3 {
  color: #2c3e50;
  font-weight: 700;
}

/* Portafolio mejorado */
#portfolio {
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  padding: 80px 0;
}

#portfolio h2 {
  color: #2c3e50;
  font-weight: 700;
  margin-bottom: 30px;
}

#portfolio .divider {
  background-color: #8B3A8B;
}

#portfolio .container-fluid img.img-fluid {
  height: 300px;
  object-fit: cover;
  width: 100%;
  transition: transform 0.3s ease;
  display: block;
}

#portfolio .portfolio-box {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  display: block;
}

#portfolio .portfolio-box:hover img {
  transform: scale(1.15) rotate(2deg);
}

#portfolio .portfolio-box-caption {
  background: rgba(139, 58, 139, 0.85);
  transition: all 0.3s ease;
}

#portfolio .portfolio-box:hover .portfolio-box-caption {
  background: rgba(255, 140, 66, 0.95);
}

/* Contacto mejorado */
#contact {
  background: linear-gradient(135deg, #8B3A8B 0%, #A855A8 100%);
}

#contact h2 {
  color: white;
  font-weight: 700;
}

#contact .divider {
  background-color: #FFD700;
}

.contact-item {
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 15px;
  transition: all 0.3s ease;
  border-top: 4px solid #FF8C42;
}

.contact-item:nth-child(2) {
  border-top-color: #FFD700;
}

.contact-item:nth-child(3) {
  border-top-color: #8B3A8B;
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.contact-item h5 {
  color: #2c3e50;
  font-weight: 700;
  margin-bottom: 15px;
}

.contact-item i {
  color: #FF8C42;
}

.contact-item:nth-child(2) i {
  color: #FFD700;
}

.contact-item:nth-child(3) i {
  color: #8B3A8B;
}

/* Navbar mejorada */
#mainNav {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

#mainNav.navbar-shrink {
  background-color: rgba(255, 255, 255, 0.99);
  padding: 0.5rem 0 !important;
}

#mainNav .navbar-brand {
  color: #2c3e50 !important;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.5px;
}

#mainNav .navbar-brand img {
  max-height: 50px;
  margin-right: 10px;
  transition: transform 0.3s ease;
}

#mainNav .navbar-brand:hover img {
  transform: scale(1.1);
}

#mainNav .nav-link {
  color: #2c3e50 !important;
  font-weight: 600;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: all 0.3s ease;
  margin: 0 5px;
}

#mainNav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #FF8C42 0%, #8B3A8B 100%);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

#mainNav .nav-link:hover {
  color: #FF8C42 !important;
}

#mainNav .nav-link:hover::after {
  width: 100%;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
}

/* Transiciones globales */
* {
  transition-property: background-color, color, border-color, box-shadow;
  transition-duration: 0.3s;
  transition-timing-function: ease;
}

/* Efectos hover en tarjetas */
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15) !important;
}
