/* --- GOOGLE FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@600;700&family=Rubik:wght@400;500&display=swap');

/* --- PALETA DE COLORES Y VARIABLES --- */
:root {
  --primary-color: #f57e20; /* Naranja principal */
  --secondary-color: #1e293b; /* Azul oscuro/Carbón */
  --success-color: #25d366; /* Verde WhatsApp */
  --light-gray-color: #f8f9fa;
  --text-color: #4a4a4a;
  --heading-color: #1e293b;
  --font-heading: 'Rajdhani', sans-serif;
  --font-body: 'Rubik', sans-serif;
}

/* --- ESTILOS GENERALES --- */
body {
  font-family: var(--font-body);
  color: var(--text-color);
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--heading-color);
}

.section-subtitle {
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 12px 30px;
  font-weight: 600;
  text-transform: uppercase;
}
.btn-primary:hover {
  background-color: #d86e1a;
  border-color: #d86e1a;
}
.btn-outline-light {
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
}
.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}


/* --- HEADER --- */
.header-top {
  background-color: var(--secondary-color);
  padding: 0.5rem 0;
  font-size: 0.85rem;
}
.header-top a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 0.75rem; /* Margen horizontal para espaciar */
  transition: opacity 0.3s;
}
.header-top a:hover {
  opacity: 0.8;
}
.header-top .social-icons a {
  margin: 0 0.5rem;
}
.navbar-brand {
  color: var(--heading-color) !important;
  font-size: 1.2rem;
}
.navbar .nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--heading-color);
  margin: 0 0.5rem;
}
.navbar .nav-link:hover {
  color: var(--primary-color);
}

.logo-img {
  height: 40px; 
  margin-right: 10px;
}

/* --- HERO SECTION --- */
#hero {
  background: url('../img/proyectos/cortes_pavimentos.jpg') no-repeat center center/cover;
  min-height: 80vh;
  position: relative;
  color: #fff; 
}
#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(30, 41, 59, 0.7);
}
#hero .container {
  position: relative;
  z-index: 2;
}
#hero h1 {
    color: #fff;
}

/* --- SERVICIOS SECTION --- */
.service-box {
  background-color: var(--light-gray-color);
  padding: 30px;
  text-align: center;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
  height: 100%;
}
.service-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-color: var(--primary-color);
}
.service-icon {
  background-color: var(--primary-color);
  color: #fff;
  width: 70px;
  height: 70px;
  line-height: 70px;
  font-size: 2rem;
  border-radius: 50%;
  margin: 0 auto 20px auto;
}
.service-title {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 15px;
}

/* --- PROYECTOS SECTION --- */
.project-image {
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s;
  height: 100%;
  object-fit: cover;
}
.project-image:hover {
    transform: scale(1.05);
}


/* --- TESTIMONIOS SECTION --- */
.testimonials-section {
  background: linear-gradient(rgba(30, 41, 59, 0.8), rgba(30, 41, 59, 0.8)), url('../img/hero-vereda.jpeg') no-repeat center center/cover;
  color: #fff;
}
.testimonial-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 8px;
}
.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
}
.testimonial-card cite {
    font-weight: 600;
    font-style: normal;
    color: var(--primary-color);
}


/* --- CONTACTO SECTION --- */
.contact-form .form-control {
    border-radius: 0;
    padding: 1rem;
    border: 1px solid #ddd;
}
.contact-form .form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}
.contact-bg-image {
    background: url('../img/proyectos/Poniendosoleras.jpg') no-repeat center center/cover;
    min-height: 400px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 2rem;
}
.contact-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(30, 41, 59, 0.8);
    color: #fff;
    padding: 2rem;
}
.contact-info-overlay h4 {
    color: #fff;
    font-size: 1.1rem;
}
.contact-info-overlay i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* --- FOOTER --- */
.footer-section {
  background-color: var(--secondary-color);
  color: #adb5bd;
  padding-top: 4rem;
}
.footer-logo-img {
    max-width: 200px;
    margin-bottom: 1rem;
}
.footer-title {
  color: #fff;
  margin-bottom: 1.5rem;
  font-weight: 600;
}
.footer-links li {
  margin-bottom: 0.75rem;
}
.footer-links a, .footer-links li {
  color: #adb5bd;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover {
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid #343a40;
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 2rem;
}
.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
}

/* --- BOTONES DE CONTACTO FLOTANTES --- */
.fab-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--success-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: transform 0.3s ease;
  font-size: 2rem;
}
.fab-whatsapp:hover {
  transform: scale(1.1);
  color: #fff;
}

.mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid #e5e7eb;
  z-index: 1000;
  width: 100%;
}
.mobile-cta .btn {
  padding: 0.8rem 1rem;
  font-weight: 600;
}

body {
  padding-bottom: 90px;
}
@media (min-width: 576px) {
  body {
    padding-bottom: 0;
  }
}

/* --- RESPONSIVE FIXES --- */
@media (max-width: 768px) {
  .section-title {
    font-size: 2.2rem;
    line-height: 1.2;
  }
  
  /* ✅ AJUSTE FINAL MÓVIL: Encabezado superior en una línea */
  .header-top .container {
    flex-direction: row; /* Cambiado a fila */
    flex-wrap: wrap;     /* Permite que los elementos pasen a la siguiente línea si no caben */
    justify-content: center;
  }
  .header-top .contact-info, .header-top .social-icons {
      width: auto; /* Ancho automático para que se ajusten al contenido */
      margin-bottom: 0;
  }

  /* Arreglo para el Hero */
  #hero {
    min-height: 70vh;
  }
  #hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  
  /* ✅ AJUSTE FINAL MÓVIL: Botones del banner apilados y con espacio */
  #hero div[data-aos="fade-up"] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem; /* Espacio entre los botones */
  }
  #hero div[data-aos="fade-up"] .btn {
    width: 80%; /* Ancho consistente para ambos botones */
    margin: 0;
  }


  /* Ajustes generales */
  section {
      padding-top: 3rem !important;
      padding-bottom: 3rem !important;
  }
  .navbar-brand {
    font-size: 1rem;
  }
  .logo-img {
    height: 35px;
  }
}

@media (max-width: 576px) {
    .header-top a {
        margin: 0 0.5rem;
        font-size: 0.8rem; /* Reducir un poco la fuente si es necesario */
    }
}