/* ======================= GENERAL ======================= */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background: #FFF8F0; /* beige cálido */
  color: #333;
  line-height: 1.6;
  scroll-behavior: smooth;
}

h1, h2, h3 {
  font-weight: 700;
  margin: 0;
  color: #8BA17B; /* verde oliva suave */
}

p, li, a, input, textarea, button {
  font-weight: 300;
  transition: 0.3s;
}

/* ======================= HEADER ======================= */
header {
  height: 80px;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* LOGO GENERAL */
.logo-img {
  width: 250px; /* tamaño cómodo en desktop */
  height: auto;
  transition: all 0.3s ease;
}
.logo {
  flex-shrink: 0;
}

/* AJUSTE PARA MOBILE */
@media (max-width: 768px) {
  .logo-img {
    width: 180px; /* mantenelo visible en pantallas chicas */
  }

  header {
    padding: 0.8rem 1.2rem;
  }

  nav {
    gap: 1rem;
  }
}
nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

nav a {
  color: #8BA17B;
  text-decoration: none;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
}

nav a:hover {
  background: rgba(139,161,123,0.2);
}

.help-btn {
  background: #E6C07B;
  color: #333;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 500;
}

.help-btn:hover {
  background: #D9AA5F;
}

/* MENU HAMBURGUESA */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #8BA17B;
  border-radius: 2px;
}

/* ====== MENÚ MOBILE ====== */
@media (max-width: 768px) {
  nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 80px;
    right: 0;
    width: 100%;
    background: #FFFFFF;
    gap: 1rem;
    padding: 1.5rem 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transform: translateY(-200%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 99;
  }

  nav.active {
    transform: translateY(0);
    opacity: 1;
  }

  nav a {
    font-size: 1.1rem;
    color: #8BA17B;
  }

  .help-btn {
    background: #E6C07B;
    color: #333;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    text-decoration: none;
  }

  .menu-toggle {
    display: flex;
  }
}

/* ======================= HERO ======================= */
.hero {
  position: relative;
  height: 45vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(114, 97, 60, 0.514);
  z-index: 0;
}

.hero h2,
.hero p,
.hero .cta-btn {
  position: relative;
  z-index: 1;
}

.hero h2 { font-size: 2.8rem; margin-bottom: 1rem; color: #fff; }
.hero p { font-size: 1.3rem; margin-bottom: 2rem; }

.cta-btn {
  background: #E6C07B;
  color: #333;
  padding: 0.8rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.cta-btn:hover {
  background: #799460;
  transform: translateY(-2px);
}

/* ===== AJUSTES MOBILE HERO ===== */
@media (max-width: 768px) {
  .hero h2 {
    font-size: 1.9rem; /* más chico */
  }

  .hero p {
    font-size: 1rem; /* más chico */
  }

  .cta-btn {
    margin-top: 1rem; /* sube el botón */
  }
}

/* ======================= SECCIONES / PLANES ======================= */
section { padding: 4rem 2rem; text-align: center; }

#planes h2 { margin-bottom: 2rem; font-size: 2rem; }

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.card {
  background: #fff;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  flex: 0 1 300px;
  text-align: left;
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.5s ease, opacity 0.5s ease, box-shadow 0.3s;
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.card h3 { margin-bottom: 1rem; color: #8BA17B; }
.card ul { padding-left: 1rem; }
.card li { margin-bottom: 0.5rem; }

/* ======================= SOBRE MÍ ======================= */
#sobre-mi {
  min-height: calc(100vh - 160px);
  padding-bottom: 2rem;
  padding: 4rem 1.5rem;
  max-width: 1100px;
  margin: 2rem auto; /* separación del header y de otras secciones */
  color: #333;
  font-family: 'Poppins', sans-serif;
  background: #FFFFFF; /* fondo blanco */
  border-radius: 15px; /* esquinas redondeadas */
  box-shadow: 0 4px 15px rgba(0,0,0,0.08); /* sombra suave */
}

#sobre-mi h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  font-weight: 700;
  color: #8BA17B;
}

.sobre-mi-wrapper {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

/* Imagen */
.foto-container {
  flex: 1;
  text-align: center;
}

.foto-sobre-mi {
  width: 100%;
  max-width: 300px;
  border-radius: 15px;
  object-fit: cover;
  margin: 0 auto;
}

/* Texto */
.texto {
  flex: 2;
  font-size: 1rem;
  line-height: 1.7;
}

.texto p {
  margin-bottom: 1rem;
}

.texto ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.texto li {
  margin-bottom: 0.5rem;
}

/* ======================= MOBILE ======================= */
@media (max-width: 768px) {
  #sobre-mi {
    padding: 2.5rem 1rem;
    margin: 1.5rem 1rem;
  }

  .sobre-mi-wrapper {
    flex-direction: column;
    gap: 1rem; /* menos espacio entre foto y texto */
  }

  .foto-container {
    order: -1; /* foto arriba del texto */
    margin-bottom: 1.5rem; /* separación cómoda entre foto y texto */
  }

  .texto {
    font-size: 0.95rem;
    line-height: 1.5; /* un poco más compacto que desktop */
  }

  .texto p {
    margin-bottom: 0.8rem; /* menos espacio entre párrafos */
  }

  .texto ul {
    margin: 0.8rem 0;
    padding-left: 1.2rem; /* un poco más ajustado */
  }

  .texto li {
    margin-bottom: 0.4rem; /* menos espacio entre viñetas */
  }

  .foto-sobre-mi {
    max-width: 200px;
    border-radius: 12px;
  }
}


/* ======================= YSONUT ======================= */
.ysonut { max-width: 900px; margin: 3rem auto; padding: 2rem 1.5rem; background: #fff; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.08); text-align: left; }

.ysonut-cards { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; margin-top: 2rem; }

.ysonut-card { background: #FAF8F3; border-radius: 15px; padding: 2rem 1.5rem; text-align: center; flex: 1 1 350px; max-width: 400px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.ysonut-card:hover { transform: translateY(-6px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }

.ysonut-logo { width: 160px; height: 80px; object-fit: contain; margin-bottom: 1rem; }

@media (max-width: 768px) {
  .ysonut-cards { flex-direction: column; align-items: center; }
  .ysonut-card { width: 90%; }
  .ysonut-logo { width: 140px; height: 70px; }
}

.ysonut h2 { text-align: center; font-size: 2rem; color: #8BA17B; margin-bottom: 1.5rem; }
.ysonut h3 { margin-top: 1.5rem; margin-bottom: 1rem; color: #8BA17B; }
.ysonut p { margin-bottom: 1rem; font-weight: 300; line-height: 1.6; }
.ysonut ul { list-style: disc; margin: 0 0 2rem 1.5rem; }
.ysonut li { margin-bottom: 0.5rem; }

/* ======================= CONTACTO ======================= */
#contacto {
  background: #F2F6F0;
  padding: 3rem 9%;
  color: #333;
}

#contacto h2 { margin-top: -1rem; font-size: 2rem; text-align: center; color: #6B8A5A; margin-bottom: 0.5rem; }
#contacto p { text-align: center; color: #555; margin-bottom: 3rem; font-size: 1.2rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: 1300px;
  margin: 0 auto;
  align-items: stretch;
}

.contact-form {
  background: #fff;
  border-radius: 20px;
  padding: 2rem 2.5rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label { font-weight: 500; color: #6B4A3A; }
.contact-form input, .contact-form textarea { padding: 0.8rem 1rem; border: 1px solid #ddd; border-radius: 10px; background: #FAF8F3; font-family: inherit; }
.btn-contacto { background: #6B8A5A; color: #fff; padding: 0.9rem 1.5rem; border-radius: 15px; font-weight: 600; border: none; cursor: pointer; transition: background 0.3s, transform 0.2s; }
.btn-contacto:hover { background: #587349; transform: translateY(-2px); }

.maps { display: flex; flex-direction: column; gap: 1.5rem; }
.map-wrapper { background: #fff; border-radius: 20px; padding: 1rem; box-shadow: 0 6px 20px rgba(0,0,0,0.06); }
.map-wrapper h3 { color: #6B8A5A; font-size: 1.1rem; margin-bottom: 0.6rem; }
.map { width: 100%; border: 0; border-radius: 12px; height: 250px; }

.contact-info {
  max-width: 1300px; /* igual que contact-grid */
  margin: 4rem auto 0 auto;
  background: #fff;
  padding: 3rem 2.5rem; /* mismo padding horizontal que la grid */
  border-radius: 25px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.contact-info h3 { color: #6B8A5A; margin-bottom: 1rem; font-size: 1.5rem; font-weight: 700; }
.contact-info p { font-size: 1.2rem; margin-bottom: 2rem; color: #444; }

.contact-info h3 + .social-icons,
.social-icons { display: flex; justify-content: center; gap: 1.5rem; margin-top: 0.5rem; }
.social-icons img { width: 40px; height: 40px; transition: transform 0.3s, filter 0.3s; cursor: pointer; }
.social-icons img:hover { transform: scale(1.2) rotate(10deg); filter: brightness(1.2); }

@media (max-width: 850px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { padding: 2rem 1rem; }
  .social-icons img { width: 36px; height: 36px; }
  .map { height: 250px; }
}

/* ======================= FOOTER ======================= */
footer { background: #8BA17B; color: white; text-align: center; padding: 1rem 0; }

/* ======================= BOTÓN WHATSAPP ======================= */
.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #E6C07B;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}
.whatsapp-btn img { width: 35px; height: 35px; }
.whatsapp-btn:hover { transform: scale(1.1); }
