:root {
  --primary: #2c3e50;
  --secondary: #34495e;
  --accent: #2980b9;
  --light: #f4f7f6;
  --white: #ffffff;
  --text: #333333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--white);
  scroll-behavior: smooth;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Nav */
header {
  background: var(--white);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Contenedor que agrupa logo e imagen */
.brand-container {
    display: flex;
    align-items: center; /* Centra verticalmente el logo con el texto */
    gap: 15px;           /* Espacio entre el logo y el texto */
    text-decoration: none;
}

/* Ajustes para la imagen del logo */
.header-logo {
    height: 50px;        /* Ajusta el tamaño según necesites */
    width: auto;         /* Mantiene la proporción */
    display: block;
}

.logo-text {
    font-size: 1.4rem;
    color: var(--primary);
    text-transform: uppercase;
    line-height: 1;      /* Evita espacios extraños */
}

/* Responsive: Ajuste para celulares */
@media (max-width: 480px) {
    .header-logo {
        height: 40px;    /* Un poco más pequeño en móviles */
    }
    .logo-text {
        font-size: 1.1rem;
    }
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li a {
  text-decoration: none;
  color: var(--text);
  margin: 0 15px;
  font-weight: 400;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: var(--accent);
}

/* Hero Section */
.hero {
  background:
    linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)),
    url("https://www.comercturro.com/blog/documentos/ImagenesArticulos/principales/herramientas-alba%C3%B1il-imprescindibles.jpg")
      no-repeat center center/cover;
  height: 80vh;
  display: flex;
  align-items: center;
  color: var(--white);
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 10px;
}

.tagline {
  font-size: 1.8rem;
  font-weight: 300;
  font-style: italic;
  margin-bottom: 20px;
}

.description {
  max-width: 700px;
  margin: 0 auto 30px;
  font-size: 1.2rem;
}

/* Buttons */
.btn-primary,
.btn-submit {
  background-color: var(--accent);
  color: white;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
  padding: 10px 25px;
  text-decoration: none;
  margin-left: 10px;
  border-radius: 5px;
}

.btn-whatsapp {
  background-color: #25d366;
  color: white;
  padding: 8px 15px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

/* Services */
.services {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
  color: var(--primary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--light);
  padding: 40px;
  text-align: center;
  border-radius: 10px;
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card .icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

/* Contact Form */
.contact {
  padding: 80px 0;
  background: var(--light);
}

.contact-box {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

#contact-form {
  display: flex;
  flex-direction: column;
  margin-top: 30px;
}

#contact-form input,
#contact-form textarea {
  margin-bottom: 15px;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

footer {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 40px 0;
}

@media (max-width: 768px) {
  .nav-links,
  .btn-whatsapp {
    display: none;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
}
