/* ===========================
   VARIABLES Y COLORES
   =========================== */
:root {
  --color-primary: #2C3E50;
  --color-secondary: #E67E22;
  --color-success: #27AE60;
  --color-light: #F8F9FA;
  --color-dark: #1A1A1A;
  --color-muted: #6C757D;
}

/* ===========================
   STICKY FOOTER LAYOUT
   =========================== */
html {
  font-size: 14px;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
}

main {
  flex: 1 0 auto;
  width: 100%;
}

footer.footer {
  flex-shrink: 0;
  width: 100%;
  margin-top: auto !important;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

/* ===========================
   HERO SECTION
   =========================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary) 0%, #34495e 100%);
  min-height: 600px;
  background-image: url('/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply;
}

.hero-overlay {
  background: rgba(44, 62, 80, 0.85);
  min-height: 600px;
  padding: 80px 0;
}

.min-vh-75 {
  min-height: 75vh;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.hero-ctas .btn {
  padding: 12px 30px;
  font-weight: 600;
}

.hero-badges .badge {
  font-size: 0.9rem;
  padding: 8px 15px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-ctas .btn {
    display: block;
    width: 100%;
    margin-bottom: 10px;
  }
}

/* ===========================
   SECCIONES
   =========================== */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.8rem;
  }
}

/* ===========================
   TARJETAS DE SERVICIOS
   =========================== */
.servicio-card {
  border: none;
  border-top: 4px solid var(--color-secondary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-radius: 10px;
}

.servicio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  border-top-color: var(--color-primary);
}

.servicio-icon {
  font-size: 3rem;
  color: var(--color-secondary);
}

.servicio-icon i {
  transition: transform 0.3s ease;
}

.servicio-card:hover .servicio-icon i {
  transform: scale(1.1);
}

/* ===========================
   PROYECTOS
   =========================== */
.proyecto-card {
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.proyecto-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.antes-despues-container {
  position: relative;
  overflow: hidden;
}

.antes-despues-container img {
  transition: transform 0.3s ease;
}

.proyecto-card:hover .antes-despues-container img {
  transform: scale(1.05);
}

.proyecto-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
}

.proyecto-meta {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

/* ===========================
   PROCESO DE TRABAJO
   =========================== */
.proceso-step {
  text-align: center;
  padding: 2rem 1rem;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.proceso-step h4 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

/* ===========================
   TESTIMONIOS
   =========================== */
.testimonio-card {
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.testimonio-card .stars i {
  font-size: 1.2rem;
}

.avatar-placeholder {
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

/* ===========================
   VENTAJAS
   =========================== */
.ventaja-card {
  padding: 2rem 1rem;
}

.ventaja-icon {
  font-size: 3rem;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

/* ===========================
   ZONAS
   =========================== */
.zonas-list li {
  padding: 8px 0;
  font-size: 1.1rem;
}

.map-placeholder {
  background: #e9ecef !important;
}

/* ===========================
   CTA SECTION
   =========================== */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, #34495e 100%);
}

.cta-buttons .btn {
  padding: 12px 30px;
  font-weight: 600;
}

/* ===========================
   WHATSAPP FLOTANTE
   =========================== */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #128C7E;
  transform: scale(1.1);
  color: white;
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 25px;
    bottom: 20px;
    right: 20px;
  }
}

/* ===========================
   FOOTER
   =========================== */
.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  display: block;
  padding: 5px 0;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

/* ===========================
   BOTONES PERSONALIZADOS
   =========================== */
.btn-primary {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
}

.btn-primary:hover {
  background-color: #d35400;
  border-color: #d35400;
}

.btn-outline-primary {
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}

.btn-outline-primary:hover {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  color: white;
}

/* ===========================
   NAVBAR
   =========================== */
.navbar-brand {
  font-size: 1.3rem;
}

.navbar .nav-link {
  font-weight: 500;
  padding: 8px 15px;
  transition: color 0.3s ease;
}

.navbar .nav-link:hover {
  color: var(--color-secondary) !important;
}

.dropdown-menu {
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
  padding: 10px 20px;
  transition: background-color 0.3s ease;
}

.dropdown-item:hover {
  background-color: var(--color-light);
}

/* ===========================
   UTILIDADES
   =========================== */
.bg-primary {
  background-color: var(--color-primary) !important;
}

.text-primary {
  color: var(--color-secondary) !important;
}

.bg-light {
  background-color: #f8f9fa !important;
}

.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* ===========================
   FORMULARIOS
   =========================== */
.form-control:focus,
.form-select:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 0.2rem rgba(230, 126, 34, 0.25);
}

/* ===========================
   ANIMACIONES
   =========================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}