:root {
  --azul-celeste: #066cfb;
  --azul-oscuro: #033874;
  --amarillo: #ffc107;
  --rojo: #dc3545;
  --blanco: #f8f9fa;
  --gris-claro: #ccd4e2;
}
body {
  font-family: 'Montserrat', Arial, sans-serif;
  background: linear-gradient(120deg, var(--azul-celeste) 0%, var(--azul-oscuro) 100%);
  color: var(--blanco);
  min-height: 100vh;
}

.navbar, .teceec-header {
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-celeste));
}
.navlogo-img, .logo-header {
  width: 60px;
  height: auto;
  filter: drop-shadow(0 2px 6px #0003);
}
.navbar-nav .nav-link {
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--blanco) !important;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s;
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  left: 10%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--amarillo);
  transition: width 0.3s;
}
.navbar-nav .nav-link:hover::after {
  width: 80%;
}
.navbar-nav .nav-link:hover {
  color: var(--amarillo) !important;
  text-shadow: 0 0 8px var(--amarillo);
}  

/* WhatsApp y redes en header */
.icon-box {
  background-color: #ffffff10;
  padding: 0.75rem;
  border-radius: 50%;
  box-shadow: 0 0 10px var(--azul-celeste);
}
.btn-outline-danger, .btn-outline-primary {
  border-radius: 30px;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  transition: background 0.3s, color 0.3s;
}
.btn-outline-danger:hover, .btn-outline-primary:hover {
  background: var(--amarillo);
  color: #212529;
  border-color: var(--amarillo);
}


/*** HERO SECTION ***/
.hero-section {
  position: relative;
  background-image: url('../img/fondo-portafolio.jpg');
  background-size: cover;
  background-position: center;
  min-height: 60vh;
  color: var(--blanco);
  padding: 100px 20px 40px 20px;
  text-align: center;
  overflow: hidden;
  border-radius: 0 0 40px 40px;
  box-shadow: 0 8px 32px var(--azul-celeste);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(31, 29, 29, 0.7);
  border-radius: 0 0 40px 40px;
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding-top: 8vh;
  animation: fadeInUp 1s;
}
.logo-img {
  width: 180px;
  height: auto;
  margin-bottom: 20px;
  animation: fadeInUp 1s;
  border-radius: 10px;
  box-shadow: 0 4px 20px var(--azul-celeste);
  transition: transform 0.3s;
}
.logo-img:hover { transform: scale(1.08); }
.hero-content h2 {
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--amarillo);
  text-shadow: 0 2px 8px #0007;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--blanco);
  margin-bottom: 1rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px);}
  to { opacity: 1; transform: translateY(0);}
}
.service-section .card {
  border: none;
  border-radius: 18px;
  box-shadow: 0 8px 32px var(--azul-celeste);
  background: linear-gradient(135deg, var(--azul-oscuro) 80%, var(--azul-celeste) 100%);
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
  margin-bottom: 32px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.service-section .card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 16px 40px var(--amarillo);
}
.service-section .icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--amarillo);
}
.service-section .card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--amarillo);
  margin-bottom: 0.7rem;
  letter-spacing: 0.5px;
}
.service-section .card-text {
  font-size: 1rem;
  color: var(--gris-claro);
  line-height: 1.7;
}
.service-section ul {
  margin-top: 1rem;
  margin-bottom: 0;
}
.service-section li {
  font-size: 0.97rem;
  margin-bottom: 6px;
  color: var(--blanco);
}
.btn-danger {
  background: linear-gradient(135deg, var(--rojo), #a71d2a);
  border: none;
  border-radius: 30px;
  font-weight: 600;
  padding: 0.6rem 2rem;
  transition: background 0.3s;
}
.btn-danger:hover {
  background: linear-gradient(135deg, #a71d2a, var(--rojo));
  color: var(--blanco);
}
.modal-content {
  border-radius: 18px;
  overflow: hidden;
  background: var(--azul-oscuro);
  color: var(--blanco);
}
.modal-header {
  border-bottom: none;
}
.modal-body h2, .modal-body h4, .modal-body h5 {
  color: var(--amarillo);
  font-weight: 700;
}
.modal-body p, .modal-body ul li {
  color: var(--blanco);
}
.modal-body .lead {
  color: var(--blanco);
}
.modal-overlay {
  background-color: rgba(0, 0, 0, 0.55);
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
}

/*** FOOTER ***/
.footer {
  margin-top: auto;
  padding-top: 3rem;
  padding-bottom: 2rem;
  background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-celeste));
  color: var(--blanco);
  border-top: 2px solid var(--amarillo);
  font-size: 0.95rem;
}
.footer a {
  color: var(--amarillo);
  text-decoration: none;
  font-weight: 600;
}
.footer a:hover {
  color: var(--rojo);
  text-decoration: underline;
}
@media (max-width: 992px) {
  .service-section .card {
    min-height: 380px;
  }
}
@media (max-width: 768px) {
  .hero-section { padding: 60px 10px 30px 10px; min-height: 40vh; }
  .logo-img { width: 80px; }
  .service-section .card { margin-bottom: 20px; min-height: 0; }
  .navbar-nav .nav-link { font-size: 1rem; }
  .service-section .row > div[class*="col-"] {
    margin-bottom: 24px;
  }
  .footer { font-size: 0.85rem; }
}
@media (max-width: 576px) {
  .hero-content h2 { font-size: 1.5rem; }
  .service-section .card-title { font-size: 1.1rem; }
  .service-section .icon { font-size: 2rem; }
  .footer { font-size: 0.8rem; }
}
/* Colores para iconos */
.text-success { color: var(--azul-celeste) !important; }
.text-primary { color: var(--azul-celeste) !important; }
.text-warning { color: var(--amarillo) !important; }
.text-danger { color: var(--rojo) !important; }
.text-info { color: var(--amarillo) !important; }

/* Botón flotante de WhatsApp */
.whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px; /* Cambiado a derecha */
  z-index: 1000;
  background: var(--amarillo);
  color: var(--azul-celeste);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px var(--azul-celeste);
  font-size: 2rem;
  transition: background 0.3s, color 0.3s;
}
.whatsapp-btn:hover {
  background: var(--rojo);
  color: var(--blanco);
}