/* ===============================
   🎯 SISTEMA BASE
================================ */
:root {
  --primary: #0d6efd;
  --primary-dark: #0a58ca;
  --bg-light: #f8fafc;
  --text-dark: #1e293b;
  --text-light: #64748b;

  --radius: 12px;
  --shadow-sm: 0 4px 10px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
  --transition: all 0.3s ease;
}

/* ===============================
   BASE
================================ */
body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
}

/* ===============================
   NAVBAR
================================ */
.custom-header {
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.logo {
  height: 80px;
  width: auto;
  transform-origin: left center;
}

.nav-link {
  position: relative;
  font-weight: 500;
}

.nav-link::after {
  content: "";
  height: 2px;
  width: 0;
  background: var(--primary);
  position: absolute;
  bottom: -4px;
  left: 0;
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

/* ===============================
   HERO
================================ */
.hero {
  background-image: url("imagenes/fondohero.png");
  background-size: cover;
  background-position: center;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-box {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  padding: 50px;
  border-radius: var(--radius);
  max-width: 500px;
  box-shadow: var(--shadow-md);
}

.hero h2 {
  font-size: 2.3rem;
  font-weight: 700;
}

.hero p {
  color: var(--text-light);
}

/* ===============================
   SERVICES
================================ */
.services {
  background: var(--bg-light);
}

.service-img {
  max-width: 150px;
  margin-bottom: 15px;
}

.service-card {
  background: white;
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.service-card p {
  color: var(--text-light);
}

/* ===============================
   ABOUT
================================ */
.about .bg-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
  font-size: 0.90rem;
}

.about-img {
  width: 100%;
  max-width: 350px;
  height: auto;
  display: block;
  margin: 0 auto;
  padding-left: 20px;

}

.about .col-md-5 {
  display: flex;
  align-items: center;
  justify-content: center;
}
.about .bg-primary {
  padding: 30px !important;
}


/* ===============================
   CONTACT LIMPIO Y COMPACTO
================================ */

.contact {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 30px 0;
  font-size: 0.95rem;
}

/* Contenedor */
.contact .container {
  padding: 20px 25px;
}

/* Fila */
.contact-row {
  align-items: stretch;
}

/* Columnas */
.contact-form,
.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Inputs */
.contact .form-control {
  border-radius: 8px;
  border: none;
  padding: 8px 10px;
  font-size: 0.9rem;
}

/* Focus */
.contact .form-control:focus {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.4);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.15);
}

/* Espaciado */
.contact .mb-3 {
  margin-bottom: 10px !important;
}

/* Textarea */
.contact textarea {
  height: 90px;
  resize: none;
}

/* Botón */
.contact .btn {
  padding: 8px 16px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

/* Títulos */
.contact h2 {
  font-size: 1.5rem;
  margin-bottom: 6px;
  
}

.contact h4 {
  font-size: 0.95rem;
  margin-top: 10px;
  margin-bottom: 2px;
}

/* Texto */
.contact p {
  margin-bottom: 6px;
  opacity: 0.9;
}

/* Botón secundario */
.contact .btn-secondary {
  background: #fff;
  color: var(--primary);
  border-radius: 12px;
  border: none;
  transition: 0.3s ease;
}

.contact .btn-secondary:hover {
  background: #e2e8f0;
}

/* Separación derecha */
.contact-info {
  padding-left: 25px;
  border-left: 1px solid rgba(255,255,255,0.15);
}

/* Responsive */
@media (max-width: 768px) {
  .contact-info {
    border-left: none;
    padding-left: 0;
    margin-top: 20px;
  }
}

a {
  color: #dfd8d2;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===============================
   WHATSAPP FLOAT
================================ */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  z-index: 999;
  transition: all 0.3s ease;
}

.whatsapp-float img {
  width: 30px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.whatsapp-float {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===============================
   FOOTER
================================ */
.custom-footer {
  background: #0f172a;
}