/* ── RESET & VARIABLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --beige: #F5F0E8;
  --beige-dark: #EDE8D8;
  --green: #6FBF73;
  --green-dark: #4A8C4E;
  --green-deeper: #2E5E31;
  --brown: #7A6030;
  --card-bg: #E8F0DC;
  --text: #3A3A2E;
  --text-soft: #6B6B55;
  --locked: #C8C8B8;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito Sans', sans-serif;
  background-color: var(--beige);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── ANIMACIONES ── */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── HERO ── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 60px;
  min-height: 100vh;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 30%, #D8EDCA 0%, transparent 70%);
  pointer-events: none;
}

.logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: floatIn 0.8s ease both;
}

.logo-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(80,130,60,0.18));
  animation: bounce 3s ease-in-out infinite;
}

.brand-name {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 800;
  color: var(--brown);
}

.tagline {
  margin-top: 28px;
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 700;
  color: var(--green-dark);
  animation: floatIn 0.8s 0.15s ease both;
}

.description {
  margin-top: 14px;
  max-width: 480px;
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  color: var(--text-soft);
  line-height: 1.7;
  animation: floatIn 0.8s 0.3s ease both;
}

.hero-cta { margin-top: 36px; animation: floatIn 0.8s 0.45s ease both; }

.scroll-hint {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-soft);
  font-size: 0.85rem;
  animation: floatIn 0.8s 0.6s ease both;
}

.scroll-hint .bounce-leaf { font-size: 1.4rem; animation: bounce 2s ease-in-out infinite; }

/* ── BOTONES ── */
.btn-primary {
  display: inline-block;
  background: var(--green);
  color: white;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 36px;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(111,191,115,0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(111,191,115,0.45);
}

/* ── SECCIONES ── */
.section {
  padding: 80px 24px;
  max-width: 960px;
  margin: 0 auto;
}

.section-title {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--brown);
  text-align: center;
  margin-bottom: 48px;
}

/* ── APPS GRID ── */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.app-card {
  background: var(--card-bg);
  border-radius: 28px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 2px 12px rgba(80,120,60,0.08);
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(80,120,60,0.15);
}

.app-card .spacer { flex: 1; }

.app-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.app-icon img { width: 115%; height: 115%; object-fit: cover; }

.app-name {
  font-family: 'Nunito', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--green-deeper);
}

.app-desc { font-size: 0.95rem; color: var(--text-soft); line-height: 1.65; }

.badge-soon {
  display: inline-block;
  background: var(--green);
  color: white;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 22px;
  border-radius: 50px;
}

/* ── LOCKED ── */
.app-card.locked { background: var(--beige-dark); opacity: 0.82; filter: grayscale(0.3); }
.app-card.locked:hover { transform: none; box-shadow: 0 2px 12px rgba(80,120,60,0.08); }
.app-icon.locked-icon { background: var(--locked); }
.lock-symbol { font-size: 2rem; }
.app-name.locked-name { color: var(--locked); letter-spacing: 6px; }
.app-desc.locked-desc { color: #AEAE9E; font-style: italic; }

.badge-locked {
  display: inline-block;
  background: var(--locked);
  color: white;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 22px;
  border-radius: 50px;
  letter-spacing: 1px;
}

/* ── FILOSOFÍA ── */
.filosofia {
  background: var(--card-bg);
  border-radius: 32px;
  padding: 56px 40px;
  text-align: center;
  margin: 0 auto 32px;
  max-width: 700px;
}

.filosofia-emoji { font-size: 2.5rem; margin-bottom: 16px; display: block; }

.filosofia p {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  font-weight: 600;
  color: var(--green-deeper);
  line-height: 1.8;
}

.manifiesto-link {
  display: block;
  text-align: center;
  margin: 0 auto 80px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--green-dark);
  text-decoration: none;
  transition: color 0.2s;
}

.manifiesto-link:hover { color: var(--green-deeper); }

/* ── CONTACTO ── */
.contacto { text-align: center; padding: 80px 24px; background: var(--card-bg); }

.contacto-inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.contacto-emoji { font-size: 2.8rem; }

.contacto h2 {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  font-weight: 800;
  color: var(--brown);
}

.contacto p { font-size: 1rem; color: var(--text-soft); line-height: 1.7; }

.btn-contact {
  background: var(--green);
  color: white;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 36px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(111,191,115,0.35);
  margin-top: 8px;
}

.btn-contact:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(111,191,115,0.45); }

/* ── APOYAR ── */
.apoyar {
  text-align: center;
  padding: 28px 24px;
  background: var(--beige);
  border-top: 1px solid var(--beige-dark);
}

.apoyar-inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.apoyar-emoji { font-size: 1.2rem; }

.apoyar h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-soft);
}

.apoyar p { font-size: 0.9rem; color: var(--text-soft); line-height: 1.5; }

.btn-apoyar-disabled {
  background: transparent;
  color: var(--locked);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 20px;
  border-radius: 50px;
  border: 2px solid var(--locked);
  cursor: not-allowed;
  opacity: 0.7;
}

.apoyar-nota { font-size: 0.8rem; color: var(--locked); font-style: italic; }

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(58,58,46,0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.visible { opacity: 1; pointer-events: all; }

.modal {
  background: var(--beige);
  border-radius: 28px;
  padding: 40px 36px;
  max-width: 480px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateY(20px);
  transition: transform 0.3s;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.modal-overlay.visible .modal { transform: translateY(0); }

.modal-header { display: flex; align-items: center; justify-content: space-between; }

.modal-title {
  font-family: 'Nunito', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--brown);
}

.modal-close {
  background: var(--beige-dark);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close:hover { background: var(--locked); }

.modal-subtitle { font-size: 0.95rem; color: var(--text-soft); line-height: 1.6; margin-top: -8px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--green-deeper);
}

.form-group input,
.form-group textarea {
  background: white;
  border: 2px solid var(--beige-dark);
  border-radius: 14px;
  padding: 12px 16px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--green); }

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--locked); }

.btn-send {
  background: var(--green);
  color: white;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(111,191,115,0.35);
}

.btn-send:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(111,191,115,0.45); }

.form-success { display: none; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 20px 0; }
.form-success.show { display: flex; }
.form-success span { font-size: 3rem; }
.form-success p { font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--green-deeper); }

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 32px 24px;
  color: var(--text-soft);
  font-size: 0.85rem;
  border-top: 1px solid var(--beige-dark);
  background: var(--beige);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

footer a {
  color: var(--green-dark);
  text-decoration: none;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  transition: color 0.2s;
}

footer a:hover { color: var(--green-deeper); }
footer span { color: var(--green); }

/* ── MANIFIESTO ── */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  border-bottom: 1px solid var(--beige-dark);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.header-logo img { width: 36px; height: 36px; object-fit: contain; }

.header-logo span {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--brown);
}

.btn-volver {
  display: inline-block;
  background: var(--card-bg);
  color: var(--green-deeper);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-volver:hover { background: var(--beige-dark); }

.contenido { max-width: 720px; margin: 0 auto; padding: 60px 24px 100px; }

.manifiesto-hero { text-align: center; margin-bottom: 60px; }
.manifiesto-hero span { font-size: 3rem; display: block; margin-bottom: 16px; }

.manifiesto-hero h1 {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  color: var(--brown);
  margin-bottom: 20px;
}

.manifiesto-hero p { font-size: 1.05rem; color: var(--text-soft); line-height: 1.75; max-width: 560px; margin: 0 auto; }

.mision { background: var(--card-bg); border-radius: 24px; padding: 36px; margin-bottom: 48px; }

.mision h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--green-deeper);
  margin-bottom: 16px;
}

.mision p { font-size: 1rem; color: var(--text-soft); line-height: 1.8; }

.principios-titulo {
  font-family: 'Nunito', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brown);
  margin-bottom: 28px;
}

.principio {
  background: white;
  border-radius: 20px;
  padding: 28px 32px;
  margin-bottom: 16px;
  border-left: 4px solid var(--green);
}

.principio h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--green-deeper);
  margin-bottom: 10px;
}

.principio p { font-size: 0.97rem; color: var(--text-soft); line-height: 1.75; }

.crecer { background: var(--card-bg); border-radius: 24px; padding: 36px; margin: 48px 0; text-align: center; }

.crecer h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--green-deeper);
  margin-bottom: 16px;
}

.crecer p { font-size: 1rem; color: var(--text-soft); line-height: 1.8; }

.frase-final { text-align: center; padding: 48px 24px; border-top: 1px solid var(--beige-dark); margin-top: 48px; }

.frase-final p {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 700;
  color: var(--green-deeper);
  font-style: italic;
}

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
  .filosofia { padding: 40px 24px; margin: 0 16px 32px; }
  .section { padding: 60px 16px; }
  .apps-grid { grid-template-columns: 1fr; }
  .modal { padding: 32px 24px; }
  .header { padding: 20px; }
  .principio { padding: 24px 20px; }
}