/*
Theme Name: GBB Instalaciones
Theme URI: https://gbbinstalaciones.com
Author: GBB Servicios técnicos integrales SL
Author URI: https://gbbinstalaciones.com
Description: Tema personalizado para GBB Instalaciones Técnicas. Este tema está diseñado para empresas de instalaciones técnicas y obras, con un diseño moderno, secciones de servicios y contacto, páginas legales y compatibilidad con WordPress.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gbb
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/*
 * Variables de color: ajusta estas variables para modificar la apariencia
 */
:root {
  --primary-color: #003366;
  --secondary-color: #0071bc;
  --accent-color: #e5a00b;
  --dark-color: #02172f;
  --light-bg: #f5f7fa;
  --text-color: #333;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  background: var(--light-bg);
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-color);
}

/* Cabecera y navegación */
header.site-header {
  background: var(--dark-color);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo img {
  height: 48px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.main-nav a {
  color: #fff;
  font-weight: 500;
  padding: 0.5rem 0;
}

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

/* Sección hero */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('assets/hero.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -2;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(2,23,47,0.7) 0%, rgba(2,23,47,0.9) 100%);
  z-index: -1;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.hero .btn {
  display: inline-block;
  background: var(--secondary-color);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  margin: 0 0.5rem;
  font-weight: 500;
  transition: background 0.3s ease;
}

.hero .btn:hover {
  background: var(--accent-color);
}

/* Sección genérica */
section {
  padding: 4rem 1.5rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Servicios */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-item {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

.service-item i {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.service-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

/* Sobre nosotros */
.about {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.about img {
  max-width: 500px;
  width: 100%;
  border-radius: 8px;
}

.about-content {
  flex: 1;
}

.about-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-content p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Contacto */
.contact-form {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  max-width: 600px;
  margin: 0 auto;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}

.contact-form button {
  display: inline-block;
  background: var(--secondary-color);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: var(--accent-color);
}

/* Pie de página */
footer.site-footer {
  background: var(--dark-color);
  color: #fff;
  padding: 2rem 1.5rem;
}

footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

footer a {
  color: #fff;
}

footer a:hover {
  color: var(--accent-color);
}

footer .copyright {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Resposive ajustes */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .about {
    flex-direction: column;
    text-align: center;
  }
}