/* =========================
   Base / Reset
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* =========================
   Layout
   ========================= */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Secciones genéricas */
.section {
  padding: 80px 0;
  scroll-margin-top: 90px; /* para que al hacer click en el menú no quede tapado por el header */
}

.section-subtitle {
  margin-top: 10px;
  color: #555;
}

/* =========================
   Header
   ========================= */
.header {
  background: #1f3d2b;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 999;
}

.header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 24px;
}

.logo {
  color: white;
}

.nav {
  list-style: none;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.nav a {
  color: white;
  text-decoration: none;
}

/* =========================
   Hero
   ========================= */
.hero {
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
              url('../img/hero-nuevo.jpg') center/cover no-repeat;
  color: white;
  padding: 140px 0;
  text-align: center;
}

.hero h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* Botones */
.btn {
  display: inline-block;
  background: #2e7d32;
  color: white;
  padding: 14px 28px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: 0.3s;
}

.btn:hover {
  background: #1b5e20;
}

/* Botón secundario */
.btn-sec{
  display: inline-block;
  margin-top: 10px;
  background: #ffffff;
  color: #1b5e20;
  border: 2px solid #1b5e20;
}

.btn-sec:hover{
  background: #e8f5e9;
}

/* =========================
   Empresa
   ========================= */
.empresa{
  padding: 80px 0;
}

.empresa-grid{
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 30px;
  align-items: start;
}

.empresa-texto h2{
  font-size: 2rem;
  margin-bottom: 12px;
}

.empresa-texto p{
  font-size: 1.05rem;
  margin-bottom: 18px;
  max-width: 60ch;
}

.empresa-lista{
  list-style: none;
  padding: 0;
  margin: 0 0 22px 0;
  display: grid;
  gap: 10px;
}

.empresa-card{
  background: #f4f7f5;
  border: 1px solid #e1e7e3;
  border-radius: 12px;
  padding: 18px;
}

.empresa-card h3{
  margin-bottom: 10px;
}

/* =========================
   Galería
   ========================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.grid img{
  width: 100%;
  height: auto;          /* importante: no forzamos altura */
  aspect-ratio: 4 / 3;   /* todas las tarjetas igual de “cuadro” */
  object-fit: contain;   /* NO recorta */
  background: #f4f7f5;   /* relleno bonito si sobra espacio */
  border-radius: 12px;
}

/* =========================
   Contacto (2 ubicaciones)
   ========================= */
.contacto-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 30px;
}

.contacto-card{
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.contacto-card h3{
  margin-bottom: 12px;
}

.contacto-card a{
  color: #1b5e20;
  text-decoration: none;
  font-weight: 600;
}

.contacto-card a:hover{
  text-decoration: underline;
}

.contacto-locs{
  margin-top: 16px;
  display: grid;
  gap: 14px;
}

.loc{
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.loc h4{
  margin-bottom: 6px;
}

.map-block{
  margin-top: 14px;
}

.map-title{
  font-weight: 700;
  margin-bottom: 8px;
}

.contacto-card iframe{
  width: 100%;
  height: 230px;
  border: 0;
  border-radius: 12px;
}

/* =========================
   Footer
   ========================= */
.footer{
  background: #1f3d2b;
  color: white;
  text-align: center;
  padding: 20px 0;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 900px){
  .empresa-grid{
    grid-template-columns: 1fr;
  }
  .contacto-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px){
  .header{
    padding: 14px 0;
  }
  .nav{
    gap: 14px;
  }
  .hero{
    padding: 110px 0;
  }
  .hero h2{
    font-size: 2.2rem;
  }
}
/* =========================
   Cookies banner + modal
========================= */
.cookie-banner{
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  padding: 14px;
  z-index: 2000;
  display: none; /* lo muestra JS */
}

.cookie-content{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
}

.cookie-text p{
  margin-top: 6px;
  color: #444;
}

.cookie-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-modal{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2100;
  padding: 18px;
}

.cookie-modal-card{
  width: min(520px, 100%);
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.2);
}

.cookie-check{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  color: #333;
}

.cookie-check input{
  margin-top: 3px;
}

@media (max-width: 700px){
  .cookie-content{
    grid-template-columns: 1fr;
  }
  .cookie-actions{
    justify-content: flex-start;
  }
}
.grid-vertical img{
  height: 420px;
}
.footer{
  background: #1f3d2b;
  color: #fff;
  padding: 22px 0;
  margin-top: 50px;
}

.footer p{
  margin: 6px 0;
}

.footer-links a{
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
}

.footer-links a:hover{
  opacity: 0.85;
}
/* Páginas legales */
.legal-page{
  padding: 70px 0;
}

.legal-content{
  background: #fff;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.legal-content h2{
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.legal-content h3{
  margin-top: 18px;
  margin-bottom: 8px;
}

.legal-content p, .legal-content li{
  color: #333;
}

.legal-content ul{
  padding-left: 18px;
}

.legal-content a{
  color: #1b5e20;
  font-weight: 600;
  text-decoration: none;
}

.legal-content a:hover{
  text-decoration: underline;
}
.logo-link{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-img{
  height: 46px;       /* ajusta: 40–60 según te guste */
  width: auto;
  display: block;
}
