/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: 'Inter', system-ui, sans-serif; font-size: 1rem; line-height: 1.7; color: #1a2e1f; background: #f5f2eb; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; line-height: 1.2; }

/* ========== LOADER ========== */
.loader { position: fixed; inset: 0; z-index: 9999; background: #1a5c3a; display: flex; align-items: center; justify-content: center; transition: opacity 0.5s, visibility 0.5s; }
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { color: #f5f2eb; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== SKIP LINK ========== */
.skip-link { position: absolute; top: -100%; left: 1rem; background: #1a5c3a; color: #f5f2eb; padding: 0.5rem 1rem; border-radius: 0 0 0.5rem 0.5rem; z-index: 100; font-weight: 500; }
.skip-link:focus { top: 0; }

/* ========== CONTAINER ========== */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ========== HEADER ========== */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(245, 242, 235, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(26, 92, 58, 0.08); transition: box-shadow 0.3s; }
.site-header.scrolled { box-shadow: 0 2px 20px rgba(26, 92, 58, 0.1); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-main { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1rem; color: #1a5c3a; }
.logo-sub { font-size: 0.7rem; color: #4a6b52; letter-spacing: 0.05em; text-transform: uppercase; }

/* Nav */
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 0.5rem; z-index: 101; }
.hamburger, .hamburger::before, .hamburger::after { display: block; width: 22px; height: 2px; background: #1a5c3a; border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.hamburger::before, .hamburger::after { content: ''; position: absolute; }
.hamburger::before { transform: translateY(-6px); }
.hamburger::after { transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger::after { transform: rotate(-45deg); }
.main-nav { }
.nav-list { display: flex; gap: 0.25rem; align-items: center; }
.nav-link { padding: 0.5rem 1rem; border-radius: 8px; font-size: 0.9rem; font-weight: 500; color: #2d4a35; transition: background 0.2s, color 0.2s; }
.nav-link:hover { background: rgba(26, 92, 58, 0.08); color: #1a5c3a; }
.nav-link--cta { background: #1a5c3a; color: #f5f2eb; margin-left: 0.5rem; }
.nav-link--cta:hover { background: #144a2e; }

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav { position: fixed; top: 0; right: 0; width: 280px; height: 100vh; background: #f5f2eb; padding: 5rem 2rem 2rem; transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: -10px 0 40px rgba(0,0,0,0.1); z-index: 100; }
  .main-nav.open { transform: translateX(0); }
  .nav-list { flex-direction: column; gap: 0.25rem; align-items: stretch; }
  .nav-link { padding: 0.875rem 1rem; font-size: 1.05rem; border-radius: 8px; }
  .nav-link--cta { margin-left: 0; margin-top: 0.5rem; text-align: center; }
  .nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 99; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
  .nav-overlay.visible { opacity: 1; visibility: visible; }
}

/* ========== HERO ========== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 6rem 1.5rem 4rem; }
.hero-gradient { position: absolute; inset: 0; background: linear-gradient(135deg, #0d3b22 0%, #1a5c3a 30%, #2d7a4e 60%, #4a9b66 100%); }
.hero-pattern { position: absolute; inset: 0; }
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 800px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 0.75rem; color: rgba(245, 242, 235, 0.7); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1.5rem; }
.hero-title { font-size: clamp(2.5rem, 7vw, 5rem); color: #f5f2eb; margin-bottom: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.hero-accent { font-style: italic; font-weight: 600; color: #a8d5b2; }
.hero-desc { font-size: clamp(1.05rem, 2vw, 1.25rem); color: rgba(245, 242, 235, 0.8); max-width: 580px; margin: 0 auto 2.5rem; line-height: 1.7; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 4rem; }
.hero-stats { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-number { display: block; font-family: 'Playfair Display', serif; font-size: 2.5rem; font-weight: 700; color: #f5f2eb; line-height: 1; }
.stat-label { font-size: 0.8rem; color: rgba(245, 242, 235, 0.6); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.25rem; }
.stat-divider { width: 1px; align-self: stretch; background: rgba(245, 242, 235, 0.15); margin: 0 0.5rem; }
.hero-scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: rgba(245, 242, 235, 0.4); font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; }
.hero-scroll svg { animation: bounce 2s infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ========== BUTTONS ========== */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.875rem 1.75rem; border-radius: 50px; font-size: 0.95rem; font-weight: 500; transition: all 0.25s; }
.btn--primary { background: #1a5c3a; color: #f5f2eb; }
.btn--primary:hover { background: #144a2e; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(26, 92, 58, 0.3); }
.btn--ghost { background: rgba(245, 242, 235, 0.12); color: #f5f2eb; border: 1px solid rgba(245, 242, 235, 0.25); }
.btn--ghost:hover { background: rgba(245, 242, 235, 0.2); transform: translateY(-2px); }
.btn--light { background: #f5f2eb; color: #1a5c3a; }
.btn--light:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
.btn--outline-light { background: transparent; color: #f5f2eb; border: 1px solid rgba(245, 242, 235, 0.4); }
.btn--outline-light:hover { background: rgba(245, 242, 235, 0.1); transform: translateY(-2px); }
.btn--full { width: 100%; justify-content: center; }

/* ========== SECTIONS ========== */
.section { padding: 6rem 0; }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 4rem; }
.section-eyebrow { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: #1a5c3a; margin-bottom: 0.75rem; }
.section-eyebrow--light { color: rgba(245, 242, 235, 0.6); }
.section-title { font-size: clamp(2rem, 4vw, 3rem); color: #1a2e1f; letter-spacing: -0.02em; margin-bottom: 1rem; }
.section-title--light { color: #f5f2eb; }
.section-desc { font-size: 1.1rem; color: #4a6b52; line-height: 1.7; }
.section-desc--light { color: rgba(245, 242, 235, 0.7); }

/* ========== CENTRO ========== */
.centro { background: #f5f2eb; }
.centro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-bottom: 4rem; }
.centro-image img { border-radius: 16px; width: 100%; height: 400px; object-fit: cover; box-shadow: 0 20px 60px rgba(26, 92, 58, 0.15); }
.lead { font-size: 1.15rem; color: #2d4a35; line-height: 1.8; margin-bottom: 1rem; font-weight: 400; }
.centro-text p { color: #4a6b52; margin-bottom: 1rem; }
.centro-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.feature-card { background: #fff; border-radius: 16px; padding: 2rem; border: 1px solid rgba(26, 92, 58, 0.08); transition: transform 0.3s, box-shadow 0.3s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(26, 92, 58, 0.1); }
.feature-icon { width: 52px; height: 52px; border-radius: 12px; background: rgba(26, 92, 58, 0.08); display: flex; align-items: center; justify-content: center; color: #1a5c3a; margin-bottom: 1.25rem; }
.feature-card h3 { font-size: 1.1rem; color: #1a2e1f; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.9rem; color: #4a6b52; line-height: 1.6; }
@media (max-width: 900px) {
  .centro-grid { grid-template-columns: 1fr; gap: 2rem; }
  .centro-image img { height: 280px; }
  .centro-features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .centro-features { grid-template-columns: 1fr; }
}

/* ========== PROPUESTA ========== */
.propuesta { position: relative; background: #1a5c3a; overflow: hidden; }
.propuesta-bg { position: absolute; inset: 0; background: linear-gradient(160deg, #0d3b22 0%, #1a5c3a 50%, #2d7a4e 100%); }
.propuesta-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.propuesta-item { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; padding: 2rem; transition: background 0.3s, transform 0.3s; }
.propuesta-item:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-4px); }
.propuesta-num { font-family: 'Playfair Display', serif; font-size: 2.5rem; font-weight: 700; color: rgba(168, 213, 178, 0.3); line-height: 1; margin-bottom: 0.75rem; }
.propuesta-item h3 { font-size: 1.15rem; color: #f5f2eb; margin-bottom: 0.5rem; }
.propuesta-item p { font-size: 0.9rem; color: rgba(245, 242, 235, 0.65); line-height: 1.6; }
@media (max-width: 768px) {
  .propuesta-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .propuesta-grid { grid-template-columns: 1fr; }
}

/* ========== COMUNIDAD ========== */
.comunidad { background: #f5f2eb; }
.comunidad-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.comunidad-card { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid rgba(26, 92, 58, 0.08); transition: transform 0.3s, box-shadow 0.3s; }
.comunidad-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(26, 92, 58, 0.1); }
.comunidad-card-img img { width: 100%; height: 220px; object-fit: cover; }
.comunidad-card-body { padding: 1.75rem; }
.comunidad-card-body h3 { font-size: 1.2rem; color: #1a2e1f; margin-bottom: 0.5rem; }
.comunidad-card-body p { font-size: 0.9rem; color: #4a6b52; line-height: 1.7; }
@media (max-width: 768px) {
  .comunidad-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}

/* ========== CTA ========== */
.cta-section { background: #1a5c3a; padding: 5rem 0; }
.cta-card { position: relative; background: linear-gradient(135deg, #144a2e 0%, #1a5c3a 100%); border-radius: 24px; padding: 4rem; overflow: hidden; text-align: center; }
.cta-pattern { position: absolute; inset: 0; }
.cta-content { position: relative; z-index: 1; }
.cta-title { font-size: clamp(1.75rem, 4vw, 2.75rem); color: #f5f2eb; margin-bottom: 1rem; }
.cta-desc { font-size: 1.1rem; color: rgba(245, 242, 235, 0.7); max-width: 520px; margin: 0 auto 2rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ========== CONTACTO ========== */
.contacto { background: #f5f2eb; }
.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contacto-datos { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.5rem; }
.contacto-dato dt { display: flex; align-items: center; gap: 0.625rem; font-weight: 600; color: #1a2e1f; margin-bottom: 0.25rem; font-size: 0.9rem; }
.contacto-dato dd { padding-left: 2.125rem; color: #4a6b52; font-size: 0.95rem; }
.contacto-dato dd a { color: #1a5c3a; text-decoration: underline; text-underline-offset: 3px; }
.contacto-dato dd a:hover { color: #144a2e; }

/* Form */
.contacto-form-wrap { background: #fff; border-radius: 20px; padding: 2.5rem; border: 1px solid rgba(26, 92, 58, 0.08); box-shadow: 0 8px 40px rgba(26, 92, 58, 0.06); }
.form-title { font-size: 1.5rem; color: #1a2e1f; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; color: #2d4a35; margin-bottom: 0.375rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.75rem 1rem; border: 1.5px solid rgba(26, 92, 58, 0.15); border-radius: 10px; font-family: 'Inter', sans-serif; font-size: 0.95rem; color: #1a2e1f; background: #f9f7f2; transition: border-color 0.2s, box-shadow 0.2s; outline: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #1a5c3a; box-shadow: 0 0 0 3px rgba(26, 92, 58, 0.1); background: #fff; }
.form-group input::placeholder, .form-group textarea::placeholder { color: #9bb09f; }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231a5c3a' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.form-success { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.25rem; background: rgba(26, 92, 58, 0.06); border-radius: 10px; color: #1a5c3a; font-size: 0.9rem; margin-top: 1rem; }
.form-success svg { flex-shrink: 0; color: #1a5c3a; }
@media (max-width: 768px) {
  .contacto-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contacto-form-wrap { padding: 1.5rem; }
}

/* ========== FOOTER ========== */
.site-footer { background: #0d2818; color: rgba(245, 242, 235, 0.6); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; padding-bottom: 3rem; }
.logo--light .logo-main { color: #f5f2eb; }
.logo--light .logo-sub { color: rgba(245, 242, 235, 0.5); }
.footer-tagline { font-size: 0.9rem; line-height: 1.7; margin-top: 1rem; max-width: 280px; }
.footer-links h4, .footer-contact h4 { color: #f5f2eb; font-family: 'Inter', sans-serif; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-links ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: #a8d5b2; }
.footer-contact address { font-style: normal; font-size: 0.9rem; line-height: 1.8; }
.footer-contact a { color: #a8d5b2; }
.footer-contact a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(245, 242, 235, 0.08); padding: 1.5rem 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; font-size: 0.8rem; }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ========== BACK TO TOP ========== */
.back-to-top { position: fixed; bottom: 2rem; right: 2rem; width: 44px; height: 44px; border-radius: 50%; background: #1a5c3a; color: #f5f2eb; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(26, 92, 58, 0.3); transition: transform 0.2s, opacity 0.2s, visibility 0.2s; z-index: 50; }
.back-to-top:hover { transform: scale(1.1); }
.back-to-top[hidden] { opacity: 0; visibility: hidden; pointer-events: none; }

/* ========== REVEAL ANIMATION ========== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }
.reveal.delay-5 { transition-delay: 0.5s; }
.reveal.delay-6 { transition-delay: 0.6s; }

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
