/* RESET */
body, html {
  margin:0; padding:0; font-family:'Poppins', sans-serif;
  background:#ebe2cd; scroll-behavior:smooth; color:#2F2F2F;
}
h1,h2,h3,p,li { margin:0; padding:0; }
a { text-decoration:none; color:inherit; }
ul { list-style:none; padding:0; }
img { max-width:100%; display:block; border-radius:12px; }

/* COLORES */
:root {
  --primary:#00bf63;
  --secondary:#FFB347;
  --light:#ebe2cd;
  --dark:#2F2F2F;
}

/* MENÚ PRINCIPAL */
.main-nav {
  position: fixed; top:0; left:0; width:100%;
  background: rgba(47,47,47,0.9); color:#fff; z-index:999;
}
.nav-container {
  max-width:1200px; margin:0 auto;
  display:flex; justify-content:space-between; align-items:center;
  padding:0.8rem 1.5rem;
}
.logo {
  display:flex; align-items:center; gap:0.6rem; font-size:1.4rem; font-weight:700; color:#fff;
}
.logo-img { height:40px; width:auto; }
.nav-links { display:flex; gap:2rem; }
.nav-links li a { color:#fff; font-weight:600; transition:0.3s; }
.nav-links li a:hover { color:var(--primary); }
.nav-toggle { display:none; font-size:1.5rem; cursor:pointer; color:#fff; }
@media (max-width:900px){
  .nav-links {
    position: fixed; top:0; right:-100%; height:100vh; width:70%;
    background: rgba(47,47,47,0.95); flex-direction:column; align-items:center; justify-content:center;
    gap:2rem; transition:0.3s;
  }
  .nav-links.active { right:0; }
  .nav-toggle { display:block; }
}

/* HERO */
.hero {
  position:relative; height:100vh; display:flex; flex-direction:column;
  justify-content:center; align-items:center; text-align:center; color:#fff;
  background:url('../img/imagen.jpg') center/cover no-repeat;
}
.hero::before {
  content:""; position:absolute; top:0; left:0; width:100%; height:100%;
  background:linear-gradient(135deg, rgba(0,0,0,0.4), rgba(0,0,0,0.6)); z-index:0;
}
.header-content { position:relative; z-index:1; max-width:90%; }
.header-content h1 { font-size:3.5rem; font-weight:700; margin-bottom:1rem; }
.header-content p { font-size:1.3rem; margin-bottom:2rem; }
.social-icons { margin-top:1.5rem; display:flex; gap:1rem; justify-content:center; }
.social-icons a { color:#fff; font-size:1.8rem; transition:0.3s; }
.social-icons a:hover { color:var(--primary); }

/* BOTONES */
/* CONTENEDOR DE BOTONES */
.botones {
  display: flex;
  justify-content: center;
  gap: 10px; /* espacio entre botones */
  margin-top: 1rem; /* <-- espacio entre el texto y los botones */
}

/* BOTONES */
.cta-button {
  position: relative;
  overflow: hidden;
  z-index: 1;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  background: var(--primary, #00bf63);
  color: #fff;
  cursor: pointer;
  display: inline-block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, rgba(0,191,99,0.1) 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: 0.5s;
  z-index: 0;
}

.cta-button:hover::before {
  width: 300%;
  height: 300%;
}

.cta-button:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 25px rgba(0,191,99,0.5);
}

/* SECCIONES */
.seccion {
  padding:4rem 2rem;
  text-align:center;
  margin-top:70px;
}
.seccion h2 {
  font-size:2.5rem;
  margin-bottom:2rem;
  color:var(--primary);
}

/* ACTIVIDADES / FORMACIÓN / BLOG */
.activities-grid, .products-grid, .team-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:2rem;
  max-width:1200px;
  margin:0 auto;
}
.activity, .product-card, .team-member {
  background:#fff;
  padding:1.5rem;
  border-radius:15px;
  box-shadow:0 10px 25px rgba(0,0,0,0.1);
  transition:transform 0.3s ease;
}
.activity:hover, .product-card:hover, .team-member:hover {
  transform:scale(1.05);
}
.activity h3, .product-card h3, .team-member h3 {
  margin-bottom:0.5rem;
  color:var(--primary);
}
.activity p, .product-card p, .team-member p {
  color:#555;
  margin-bottom:1rem; /* <-- separación antes de los botones */
}
.activity-img, .team-member img {
  width:100%;
  height:200px;
  object-fit:cover;
  border-radius:12px;
  margin-bottom:15px;
}

/* FORMULARIO */
form {
  background:#fff;
  padding:2rem;
  border-radius:15px;
  max-width:500px;
  width:90%;
  margin:2rem auto;
  box-shadow:0 10px 25px rgba(0,0,0,0.1);
}
form input, form textarea {
  width:100%;
  padding:0.8rem;
  margin-bottom:1rem;
  border-radius:8px;
  border:1px solid #ccc;
  font-size:1rem;
}
form button {
  width:100%;
  padding:1rem 2rem;
  border:none;
  border-radius:50px;
  font-weight:700;
  background:var(--primary);
  color:#fff;
  cursor:pointer;
}
.confirmation {
  display:none;
  text-align:center;
  color:green;
  font-weight:700;
  margin-top:1rem;
}

/* FOOTER */
footer {
  text-align:center;
  padding:2rem;
  font-size:0.9rem;
  color:#666;
  background:#fff;
}
footer a {
  color:var(--primary);
  transition:0.3s;
}
footer a:hover {
  color:var(--secondary);
}

/* RESPONSIVE */
@media (max-width:900px){
  .activities-grid, .products-grid, .team-grid {
    grid-template-columns:1fr;
  }
}
