﻿/* ===== VARIABLES ===== */
:root {
  --cream: #F5E6A0;
  --cream-dark: #EDD87A;
  --green-dark: #1A5C2A;
  --green-mid: #2E7D3E;
  --green-pickle: #5D7A35;
  --blue: #5B7FA6;
  --red: #C0392B;
  --white: #FAFAFA;
  --text: #1A1A1A;
  --text-soft: #4A4A4A;
  --shadow: 0 8px 32px rgba(26,92,42,0.15);
  --shadow-lg: 0 20px 60px rgba(26,92,42,0.2);
  --radius: 16px;
  --radius-sm: 8px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; }
ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 { font-family: 'Fredoka One', cursive; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--green-dark); }
h3 { font-size: 1.4rem; color: var(--green-dark); }

/* ===== CONTAINER ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--green-dark);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(26,92,42,0.35);
}
.btn-primary:hover { box-shadow: 0 8px 30px rgba(26,92,42,0.4); }
.btn-ghost {
  background: transparent;
  color: var(--green-dark);
  border: 2.5px solid var(--green-dark);
}
.btn-ghost:hover { background: rgba(26,92,42,0.06); }
.btn-ig { gap: 10px; }

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  background: rgba(245,230,160,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(26,92,42,0.12);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: var(--shadow); }
.nav-logo img { height: 48px; width: 48px; border-radius: 50%; object-fit: cover; transition: transform 0.2s; }
.nav-logo:hover img { transform: rotate(-5deg) scale(1.05); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-weight: 700;
  color: var(--green-dark);
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 0.7; }
.nav-cta {
  background: var(--green-dark);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 50px;
  transition: transform 0.2s, box-shadow 0.2s !important;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(26,92,42,0.3); opacity: 1 !important; }
.nav-ejemplos {
  border: 2px solid var(--green-dark);
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 800 !important;
  transition: background 0.2s, color 0.2s !important;
}
.nav-ejemplos:hover { background: var(--green-dark); color: var(--cream) !important; opacity: 1 !important; }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-burger span { display: block; width: 26px; height: 3px; background: var(--green-dark); border-radius: 4px; transition: all 0.3s; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 120px 60px 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg-circles { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.2;
}
.circle-1 {
  width: 500px; height: 500px;
  background: var(--green-dark);
  top: -100px; right: -100px;
}
.circle-2 {
  width: 300px; height: 300px;
  background: var(--blue);
  bottom: -80px; left: 100px;
}
.circle-3 {
  width: 180px; height: 180px;
  background: var(--red);
  top: 40%; left: 45%;
}
.hero-content { flex: 1; position: relative; z-index: 1; }
.hero-badge {
  display: inline-block;
  background: var(--green-dark);
  color: var(--cream);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.hero-title { color: var(--green-dark); margin-bottom: 20px; }
.highlight {
  color: var(--red);
  position: relative;
  display: inline-block;
}
.highlight::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0; right: 0;
  height: 6px;
  background: var(--cream-dark);
  z-index: -1;
  border-radius: 4px;
}
.hero-sub { font-size: 1.15rem; color: var(--text-soft); line-height: 1.7; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-trust { display: flex; gap: 20px; flex-wrap: wrap; }
.hero-trust span {
  font-weight: 700;
  color: var(--green-dark);
  font-size: 0.9rem;
  padding-left: 20px;
  position: relative;
}
.hero-trust span::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green-mid);
}
.hero-img { flex: 1; max-width: 480px; position: relative; z-index: 1; }

/* Web mockup card */
.hero-card {
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 3px solid rgba(26,92,42,0.12);
}
.hero-card-bar {
  background: var(--green-dark);
  padding: 12px 16px;
  display: flex;
  gap: 6px;
}
.hero-card-bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  display: block;
}
.hero-card-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.mock-header { height: 20px; background: var(--cream); border-radius: 6px; width: 60%; }
.mock-nav { display: flex; gap: 8px; }
.mock-dot { height: 10px; flex: 1; background: rgba(26,92,42,0.15); border-radius: 4px; }
.mock-hero-block { height: 90px; background: linear-gradient(135deg, var(--green-dark), var(--blue)); border-radius: 10px; }
.mock-cards { display: flex; gap: 10px; }
.mock-card { flex: 1; height: 60px; background: var(--cream); border-radius: 8px; border: 2px solid rgba(26,92,42,0.1); }

/* Floating logo */
.hero-logo-float {
  position: absolute;
  bottom: -20px; right: -20px;
  width: 110px;
  height: 110px;
  background: var(--cream);
  border-radius: 50%;
  overflow: hidden;
  padding: 6px;
  box-shadow: var(--shadow);
  border: 3px solid var(--green-dark);
  animation: float 3s ease-in-out infinite;
}
.hero-logo-float img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===== SECTION HEADER ===== */
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block;
  background: rgba(26,92,42,0.1);
  color: var(--green-dark);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.section-header h2 { color: var(--green-dark); }

/* ===== SERVICIOS ===== */
.servicios { padding: 100px 0; background: white; }
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.servicio-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 2.5px solid rgba(26,92,42,0.12);
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
}
.servicio-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.servicio-card.featured {
  background: var(--green-dark);
  border-color: var(--green-dark);
}
.servicio-card.featured h3,
.servicio-card.featured p,
.servicio-card.featured li { color: var(--cream) !important; }
.servicio-tag {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: white;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 4px 14px;
  border-radius: 50px;
  white-space: nowrap;
}
.servicio-icon { font-size: 2.5rem; margin-bottom: 16px; }
.servicio-card h3 { margin-bottom: 12px; }
.servicio-card p { color: var(--text-soft); line-height: 1.6; margin-bottom: 20px; }
.servicio-list { display: flex; flex-direction: column; gap: 8px; }
.servicio-list li {
  padding-left: 20px;
  position: relative;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.95rem;
}
.servicio-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--green-pickle);
}
.servicio-card.featured .servicio-list li::before { color: var(--cream-dark); }

/* ===== COMO FUNCIONA ===== */
.como-funciona { padding: 100px 0; background: var(--cream); }
.pasos { display: flex; align-items: flex-start; gap: 0; justify-content: center; flex-wrap: wrap; }
.paso {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 260px;
  gap: 16px;
}
.paso-num {
  width: 72px; height: 72px;
  background: var(--green-dark);
  color: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka One', cursive;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(26,92,42,0.3);
}
.paso-content h3 { margin-bottom: 8px; font-size: 1.2rem; }
.paso-content p { color: var(--text-soft); line-height: 1.6; font-size: 0.95rem; }
.paso-connector {
  flex: 1;
  min-width: 40px;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--green-dark) 0, var(--green-dark) 8px, transparent 8px, transparent 16px);
  align-self: center;
  margin-top: -60px;
  opacity: 0.4;
}

/* ===== POR QUE ===== */
.por-que { padding: 100px 0; background: white; }
.por-que-inner { display: flex; gap: 80px; align-items: center; flex-wrap: wrap; }
.por-que-text { flex: 1; min-width: 300px; }
.por-que-text p { color: var(--text-soft); line-height: 1.7; margin: 20px 0 32px; font-size: 1.05rem; }
.beneficios { display: flex; flex-direction: column; gap: 20px; }
.beneficios li { display: flex; gap: 16px; align-items: flex-start; }
.ben-icon { font-size: 1.6rem; flex-shrink: 0; line-height: 1; }
.beneficios strong { display: block; color: var(--green-dark); font-size: 1.05rem; margin-bottom: 4px; }
.beneficios p { color: var(--text-soft); font-size: 0.92rem; line-height: 1.5; margin: 0; }
.por-que-visual { flex: 1; min-width: 280px; position: relative; }
.stats-card {
  background: var(--green-dark);
  border-radius: 20px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: var(--shadow-lg);
}
.stat { text-align: center; padding: 20px 0; }
.stat-num {
  display: block;
  font-family: 'Fredoka One', cursive;
  font-size: 3rem;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label { color: rgba(245,230,160,0.7); font-size: 0.9rem; font-weight: 600; }
.stat-divider { height: 1px; background: rgba(245,230,160,0.2); }
.mascot-wrapper {
  position: absolute;
  bottom: -40px; right: -30px;
  width: 130px;
  height: 130px;
  background: var(--cream);
  border-radius: 50%;
  overflow: hidden;
  padding: 8px;
  box-shadow: var(--shadow);
  border: 3px solid var(--green-dark);
  animation: float 3.5s ease-in-out infinite;
}
.mascot-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

/* ===== CONTACTO ===== */
.contacto { padding: 100px 0; background: var(--cream); }
.cta-box {
  background: var(--green-dark);
  border-radius: 24px;
  padding: 60px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: rgba(245,230,160,0.07);
  border-radius: 50%;
}
.cta-text h2 { color: var(--cream); font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 12px; }
.cta-text p { color: rgba(245,230,160,0.8); font-size: 1.05rem; line-height: 1.6; }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; flex-shrink: 0; }
.btn-primary.btn-ig {
  background: var(--cream);
  color: var(--green-dark);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  font-size: 1.05rem;
  padding: 16px 32px;
}
.btn-primary.btn-ig:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
a.btn-wa, .btn-wa {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: #1EDD60 !important;
  color: #fff !important;
  font-family: 'Nunito', sans-serif !important;
  font-weight: 800 !important;
  font-size: 1.05rem !important;
  padding: 16px 32px !important;
  border-radius: 50px !important;
  border: none !important;
  text-decoration: none !important;
  box-shadow: 0 4px 28px rgba(30,221,96,0.65), 0 0 0 3px rgba(30,221,96,0.2) !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}
a.btn-wa:hover, .btn-wa:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 36px rgba(30,221,96,0.75), 0 0 0 4px rgba(30,221,96,0.25) !important;
}
.cta-handle { color: rgba(245,230,160,0.7); font-size: 0.9rem; font-weight: 700; }

/* ===== FOOTER ===== */
.footer { background: var(--green-dark); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; text-align: center; }
.footer-logo { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(245,230,160,0.3); }
.footer p { color: rgba(245,230,160,0.7); font-size: 0.9rem; }
.footer-ig {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--cream);
  font-weight: 700;
  font-size: 0.9rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.footer-ig:hover { opacity: 1; }

/* ===== SCROLL ANIMATIONS ===== */
.reveal, .reveal-right {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal-right { transform: translateX(60px); }
.reveal.visible, .reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal-right.visible { transition-delay: 0.2s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero { flex-direction: column; padding: 100px 24px 60px; gap: 40px; }
  .hero-img { max-width: 100%; width: 100%; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--cream);
    padding: 24px;
    gap: 20px;
    border-bottom: 2px solid rgba(26,92,42,0.15);
    box-shadow: var(--shadow);
  }
  .pasos { flex-direction: column; align-items: center; gap: 32px; }
  .paso-connector { display: none; }
  .por-que-inner { flex-direction: column; }
  .cta-box { flex-direction: column; text-align: center; padding: 40px 24px; }
  .cta-actions { width: 100%; }
  .btn-primary.btn-ig, .btn-wa { width: 100%; justify-content: center; }
  .mascot-wrapper { right: -10px; }
}
@media (max-width: 600px) {
  .hero { padding: 90px 16px 50px; }
  .servicios-grid { grid-template-columns: 1fr; }
  .stats-card { padding: 24px; }
  .stat-num { font-size: 2.2rem; }
}
