:root {
  --pistache: #A8C686;
  --girasol: #F4C430;
  --dorado-miel: #DAA520;
  --crema: #FDFBF7;
  --verde-oscuro: #5D7A3C;
  --marrón-miel: #8B6F47;
  --texto-oscuro: #333;
  --texto-claro: #fff;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background: var(--crema);
  color: var(--texto-oscuro);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

/* Navbar */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); /* Safari */
  z-index: 1000;
  transition: all 0.4s ease;
}

header.scrolled {
  padding: 0.8rem 5%;
  background: rgba(253, 251, 247, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.logo {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 700;
  color: var(--verde-oscuro);
  text-decoration: none;
}

.logo span {
  color: var(--girasol);
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: var(--verde-oscuro);
  font-weight: 500;
  transition: color 0.3s ease, transform 0.3s ease;
}

nav a:hover {
  color: var(--girasol);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--verde-oscuro);
  transition: transform 0.3s;
}

.menu-toggle:hover {
  transform: rotate(90deg);
}

/* Hero */
.hero {
  height: 100vh;
  min-height: 700px;
  background: linear-gradient(rgba(168, 198, 134, 0.35), rgba(244, 196, 48, 0.25)),
              url('https://images.unsplash.com/photo-1501594907352-7e242c92c0f5?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover no-repeat fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--texto-claro);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 5%;
}

.hero h1 {
  font-size: clamp(3.5rem, 12vw, 7rem);
  margin-bottom: 1.5rem;
  text-shadow: 0 6px 25px rgba(0,0,0,0.7);
}

.hero p {
  font-size: clamp(1.3rem, 4.5vw, 1.8rem);
  margin-bottom: 2.5rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.cta-btn {
  display: inline-block;
  padding: clamp(1rem, 3vw, 1.4rem) clamp(2rem, 5vw, 3rem);
  background: var(--girasol);
  color: var(--verde-oscuro);
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  font-size: clamp(1.1rem, 4vw, 1.3rem);
  transition: all 0.4s ease;
  box-shadow: 0 10px 35px rgba(244, 196, 48, 0.45);
}

.cta-btn:hover {
  transform: translateY(-8px);
  background: var(--dorado-miel);
  box-shadow: 0 15px 45px rgba(218, 165, 32, 0.55);
  color: white;
}

/* Secciones generales */
section {
  padding: clamp(5rem, 12vw, 10rem) 5%;
}

.section-title {
  font-size: clamp(3rem, 9vw, 5rem);
  text-align: center;
  margin-bottom: 4rem;
  color: var(--verde-oscuro);
}

/* Servicios */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  max-width: 1300px;
  margin: 0 auto;
}

.service-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 45px rgba(0,0,0,0.09);
  transition: all 0.4s ease;
}

.service-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 25px 70px rgba(0,0,0,0.15);
}

.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service-info {
  padding: 2rem;
  text-align: center;
}

.service-info h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--verde-oscuro);
}

/* Footer */
footer {
  background: var(--verde-oscuro);
  color: var(--texto-claro);
  padding: 5rem 5% 3rem;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.social-links a {
  color: var(--texto-claro);
  font-size: 3rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: var(--girasol);
  transform: scale(1.15);
}

.footer-bottom {
  font-size: 1rem;
  opacity: 0.85;
}

/* Responsive */
@media (max-width: 768px) {
  header {
    padding: 1rem 5%;
  }

  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--crema);
    padding: 1.5rem 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  }

  nav.active {
    display: flex;
  }

  nav a {
    padding: 1.2rem 5%;
    font-size: 1.2rem;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: 80vh;
  }

  .hero h1 {
    font-size: clamp(3rem, 11vw, 5.5rem);
  }

  .cta-btn {
    width: 90%;
    padding: 1.2rem 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* Dark mode opcional (puedes activar con JS o media query) */
@media (prefers-color-scheme: dark) {
  :root {
    --crema: #1e1e1e;
    --texto-oscuro: #e0e0e0;
  }

  body {
    background: var(--crema);
    color: var(--texto-oscuro);
  }

  header {
    background: rgba(30, 30, 30, 0.92);
  }
}