/* ======== FUENTES GOOGLE ======== */
@import url('https://fonts.googleapis.com/css2?family=Teko:wght@500;600;700&family=Barlow:wght@400;700&display=swap');

/* ======== ESTILOS GLOBALES ======== */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Barlow', sans-serif;
  background-color: #111;
  color: white;
}

a {
  color: orange;
  text-decoration: none;
}

h1, h2 {
  margin: 0 0 20px 0;
}

/* ======== HEADER Y NAV ======== */
header {
  background-color: #000;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 50px;
}

nav {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

nav a {
  color: white;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.95em;
}

/* ======== BLOQUE INICIO HERO ======== */
.hero {
  position: relative;
  min-height: 100vh;
  background-image: url("imagenes/techo.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 5%;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-contenido {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
  max-width: 1200px;
}

.hero-logo img {
  max-width: 250px;
  width: 100%;
  filter: drop-shadow(0 0 10px #000000aa);
}

/* ======== SERVICIOS ESTILO HERRERO ======== */
.hero-servicios {
  color: white;
  font-family: 'Teko', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-servicios h2 {
  font-size: 2.2em;
  color: orange;
  margin-bottom: 15px;
}

.hero-servicios ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1.6em;
  line-height: 1.2em;
}

.hero-servicios li {
  margin-bottom: 8px;
  transition: transform 0.2s;
}

.hero-servicios li:hover {
  transform: scale(1.05);
}

/* ======== BOTÓN DESTACADO (REUTILIZABLE) ======== */
.boton {
  background-color: orange;
  color: black;
  font-family: 'Teko', sans-serif;
  font-size: 1.3em;
  font-weight: bold;
  padding: 12px 20px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: 0.3s;
  display: inline-block;
  margin-top: 15px;
}

.boton:hover {
  background-color: #ffae00;
  transform: scale(1.05);
}

/* ======== RESPONSIVE HERO ======== */
@media (max-width: 768px) {
  .hero-contenido {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 20px;
  }

  .hero-logo img {
    max-width: 200px;
  }

  .hero-servicios h2 {
    font-size: 1.8em;
  }

  .hero-servicios ul {
    font-size: 1.3em;
  }

  .boton {
    font-size: 1.1em;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-servicios {
    letter-spacing: 0.5px;
  }
}

/* ======== GALERÍA SWIPER ======== */
.swiper {
  width: 100%;
  padding: 20px 0;
}

.swiper-slide {
  background-color: #1e1e1e;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide a {
  display: block;
  width: 90%;
}

.swiper-slide img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.swiper-slide img:hover {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .swiper-slide img {
    height: 220px;
  }
}

/* ======== CONTACTO ======== */
#contacto {
  padding: 40px 20px;
  background-color: #000;
  text-align: center;
}

#contacto h2 {
  color: orange;
  margin-bottom: 20px;
}

#contacto a {
  font-weight: bold;
  font-size: 1.1em;
}

/* ======== FOOTER ======== */
footer {
  background-color: #111;
  color: #999;
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
}

/* ======== ELEMENTO DESTACADO OPCIONAL ======== */
.destacado {
  color: orange;
  font-weight: bold;
  font-size: 1.1em;
  text-transform: uppercase;
  letter-spacing: 1px;
}
