/* =========================
   BASE GENERAL
========================= */

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: Arial, sans-serif;
  background: #ffffff;
  color: #111;
  min-height: 100vh;
  padding-top: 90px;
}

/* =========================
   MENÚ
========================= */

nav {
  background: #111;
  text-align: center;
  padding: 15px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

/* =========================
   HEADER
========================= */

header {
  text-align: center;
  padding: 30px 20px 20px 20px;
}

header img {
  display: block;
  margin: 0 auto;
}

header p:first-of-type {
  font-weight: bold;
  font-size: 18px;
}

/* =========================
   CONTENIDO GENERAL
========================= */

.contenido {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  line-height: 1.8;
  text-align: justify; /* ✅ AÑADIDO */
}

h1 {
  text-align: center;
}

/* =========================
   BOTONES
========================= */

.btn {
  display: inline-block;
  margin: 15px 10px 25px 10px;
  padding: 12px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
}

.btn-call {
  background: #111;
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 16px;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.btn-call:hover {
  background: #333;
  transform: translateY(-2px);
}

/* =========================
   HERO INDEX
========================= */

.hero {
  width: 100%;
  margin: 20px 0;
}

.hero img {
  width: 100%;
  max-width: 1200px;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
}

/* =========================
   SECCIONES INDEX
========================= */

.section {
  padding: 50px 20px;
  max-width: 1000px;
  margin: auto;
}

.section h2 {
  text-align: center;
}

/* =========================
   GALERÍA
========================= */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 180px));
  gap: 15px;
  justify-content: center;
}

.gallery img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  border-radius: 10px;
}

/* =========================
   CONTACTO
========================= */

.contact {
  text-align: center;
  background: #f5f5f5;
  padding: 40px 20px;
}

/* =========================
   TARJETAS
========================= */

.bloque-materiales {
  background: #f6f6f6;
  padding: 50px 20px;
  margin-top: 40px;
}

.grid-materiales {
  max-width: 1000px;
  margin: auto;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.tarjeta {
  background: white;
  flex: 1;
  min-width: 280px;
  max-width: 450px;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

.tarjeta:hover {
  transform: translateY(-5px);
}

.tarjeta h2 {
  margin-top: 0;
  text-align: center;
}

.tarjeta ul {
  padding-left: 18px;
  line-height: 1.7;
  text-align: justify; /* ✅ AÑADIDO */
}

/* =========================
   DIRECCIÓN / BLOQUES
========================= */

.direccion,
.bloque {
  background: #f5f5f5;
  max-width: 600px;
  width: 90%;
  margin: 30px auto;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  line-height: 1.6;
  box-sizing: border-box;
}

/* =========================
   MENÚ RESPONSIVE
========================= */

@media (max-width: 768px) {

  body {
    padding-top: 100px;
  }

  nav {
    padding: 10px;
  }

  nav a {
    display: inline-block;
    margin: 8px 10px;
    font-size: 14px;
  }

  .gallery {
  grid-template-columns: repeat(2, 1fr);
}

  .gallery img {
    height: auto;
  }
}

.intro-principal {
  font-size: 18px;
  font-weight: 500;
  max-width: 800px;
  margin: 0 auto 15px auto;
  line-height: 1.6;
}

footer {
  text-align: center;
  font-size: 11px;
  color: #888;
  padding: 25px 10px;
  margin-top: 50px;
  letter-spacing: 0.5px;
}

.texto-centro {
  text-align: center;
}
