:root {
  --bg: #f6f6f2;
  --dark: #2f3b32;
  --muted: #61706a;
  --accent: #244118;
  --container: 1235px;
}

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

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

ul {
  list-style: disc inside;
  margin-top: 15px;
  padding-left: 10px;
}

li {
  margin-bottom: 15px;
}

.lead {
  font-family: 'Great Vibes', cursive;
  font-size: 50px;
  color: var(--accent);
  margin-bottom: 20px;
  line-height: 33px;
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.9);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

header .logo { height: 60px; }

nav ul { list-style: none; display: flex; gap: 20px; }
nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 6px;
  transition: 0.3s;
}
nav a:hover { background: rgba(123, 184, 107, 0.15); color: var(--dark); }

/* Hero */
#hero {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
#hero .hero-bg {
  position: absolute; width: 100%; height: 100%;
  object-fit: cover; top: 0; left: 0; z-index: -1;
}
#hero::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(0,0,0,0.35); z-index: -1;
}
.hero-content { color: white; max-width: 700px; padding: 20px; }
.hero-content h1, .hero-content p { font-size: 35px; }

.hero-content .btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.3s;
}

/* Split sections */
.split {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px 20px 300px;
  background: url('../img/bg-sobre.png') no-repeat bottom center;
}
#jardineria{
  background: url('../img/bg-jardineria.png') no-repeat bottom center;
}
#piscinas{
  background: url('../img/bg-piscinas.png') no-repeat bottom center;
}
#pergolas{
  background: url('../img/bg-pergolas.png') no-repeat bottom center;
}
#silvicultura{
  background: url('../img/bg-silvicultura.png') no-repeat bottom center;
}
.split h2 {
    display: flex;
    align-items: center;
    position: relative;
    height: 158px;
    margin-bottom: 20px;
    font-size: 30px;
    font-weight: 300;
}
.split h2::after {
    content: "";
    display: block;
    width: 185px;
    height: 158px;
    background: url('../img/img-tit-sobre.png') no-repeat center;
    position: absolute;
    right: 0;
    top: 0;
}
#jardineria h2::after {
    width: 218px;
    height: 125px;
    background: url('../img/img-tit-jardineria.png') no-repeat center;
}
#piscinas h2::after {
    width: 90px;
    height: 140px;
    background: url('../img/img-tit-piscinas.png') no-repeat center;
}
#pergolas h2::after {
    width: 150px;
    height: 160px;
    background: url('../img/img-tit-pergolas.png') no-repeat center;
}
#silvicultura h2::after {
    width: 160px;
    height: 160px;
    background: url('../img/img-tit-silvicultura.png') no-repeat center;
}
.split .text { flex: 1; }
.split .image { flex: 1; }
.split .image img {
  width: 100%;
}
.split.reverse { flex-direction: row-reverse; }

/* Contacto */
#contacto {
  background: #eef2ec;
}
#contacto .container {
  display: flex;
  margin: auto;
  align-items: center;
  background-color: #fafb9d;
}
#contacto h2 {
  font-size: 30px;
  font-weight: 300;
  margin-bottom: 30px;
}
#contacto .lead {
  color: #fff;
}
#contacto .text-container {
  padding: 80px 50px;
  background-color: #627b4c;
  color: #fff;
  min-width: 60%;
}
#contacto .info-container {
  min-width: 40%;
  padding: 80px 50px;
  background-color: #fafb9d;
}
.contact-info p {
	padding-left: 50px;
	position: relative;
	font-size: 18px;
}
.contact-info p strong {
  display: block;
  font-weight: 300;
}
.contact-info p::before {
  content: "";
  display: block;
  width: 41px;
  height: 41px;
  background: url('../img/telefono.png') no-repeat center;
  position: absolute;
  left: 0;
  top: 5px;
}
.contact-info p.mail {
	  margin-top: 20px;
}
.contact-info p.mail::before {
  background: url('../img/email.png') no-repeat center;
}


/* Botón flotante WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  z-index: 200;
  transition: transform 0.3s;
}
.whatsapp-float img {
  width: 32px;
  height: 32px;
}
.whatsapp-float:hover {
  transform: scale(1.1);
}


/* Footer */
footer {
  background: #f0f0ec;
  text-align: center;
  padding: 30px 20px;
  font-size: 14px;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 960px) {
	#contacto .container {
		flex-wrap: wrap;
	}
	#contacto .text-container {
		width: 100%;
	}
	#contacto .info-container {
		width: 100%;
	}
}

@media (max-width: 900px) {
  .hero-content h1, .hero-content p { font-size: 25px; }
  .split, .split.reverse {
    flex-direction: column;
    text-align: left;
  }
  .split .image { order: -1; }
  .split p.lead, .split h2 {
    text-align: center;
  }

  .lead {
    font-size: 35px;
    line-height: 25px;
  }
}

/* ========== Menú móvil ========== */
.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark);
}

/* Estado normal en escritorio */
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

@media (max-width: 950px) {
    nav a {
        font-size: 13px;
        padding: 6px 0;
    }
}

/* En móviles */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    z-index: 110;
  }

  nav {
    position: fixed;
    top: 0; right: -100%;
    width: 70%;
    height: 100%;
    background: white;
    box-shadow: -2px 0 8px rgba(0,0,0,0.15);
    transition: right 0.3s ease;
    padding-top: 80px;
  }

  nav.active {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 20px;
  }

  nav ul li a {
    font-size: 1.2rem;
    padding: 10px 0;
    display: block;
    width: 100%;
    border-bottom: 1px solid #eee;
  }
}