/* ==========================================================================
   STYLE.CSS — Design System principal
   Identidad: calm · organic · premium · editorial · sophisticated
   ========================================================================== */

:root {
  --bg: #F5EDE0;
  --primary: #2A3520;
  --text: #1E2918;
  --text-light: #5A6A4A;
  --cream: #FAF5EE;
  --white: #FFFFFF;
  --defend: #C85A1A;
  --reset: #8A9A3A;
  --recover: #3B4A25;
  --whatsapp: #25D366;
  --border: rgba(42,53,32,0.12);

  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Lato', -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-soft: 0 8px 40px rgba(42,53,32,0.10);
  --shadow-strong: 0 20px 60px rgba(30,41,24,0.18);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --container-width: 1200px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--primary); color: var(--white); padding: 12px 20px;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--defend); outline-offset: 3px; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--primary); margin: 0 0 0.5em; }
h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 600; line-height: 1.15; letter-spacing: -0.5px; }
h2 { font-size: clamp(30px, 4.5vw, 44.8px); font-weight: 600; line-height: 1.2; }
h3 { font-size: clamp(21px, 3vw, 27.2px); font-weight: 700; line-height: 1.4; }
h4 { font-size: 14.4px; font-weight: 600; line-height: 1.65; letter-spacing: 1.152px; text-transform: uppercase; }
p { margin: 0 0 1em; color: var(--text-light); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 13px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--defend);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--defend); }

/* ---------- LAYOUT ---------- */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 24px; }
section { padding: clamp(60px, 10vw, 120px) 0; }
.section-header { max-width: 640px; margin-bottom: 56px; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 32px; border-radius: 100px; border: 1px solid transparent;
  font-size: 14px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  transition: all 0.25s var(--ease); white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--recover); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }
.btn-light { background: var(--white); color: var(--primary); }
.btn-light:hover { background: var(--cream); transform: translateY(-2px); }

/* ---------- NAVBAR ---------- */
.site-navbar {
  position: sticky; top: 0; z-index: 200;
  background: rgba(245,237,224,0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 88px; gap: 24px; }
.navbar-logo { height: 52px; width: auto; }
.navbar-nav ul { display: flex; gap: 36px; }
.navbar-nav a { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text); position: relative; padding: 4px 0; transition: color 0.2s var(--ease); }
.navbar-nav a::after { content:''; position:absolute; left:0; bottom:-4px; width:0; height:2px; background:var(--defend); transition: width 0.25s var(--ease); }
.navbar-nav a:hover, .navbar-nav a.active { color: var(--defend); }
.navbar-nav a:hover::after, .navbar-nav a.active::after { width: 100%; }
.navbar-cta { flex-shrink: 0; }
.navbar-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; z-index: 210; }
.navbar-toggle span { width: 26px; height: 2px; background: var(--primary); transition: all 0.25s var(--ease); }
.navbar-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggle.active span:nth-child(2) { opacity: 0; }
.navbar-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; top: 88px; background: var(--cream); z-index: 199;
  transform: translateX(100%); transition: transform 0.3s var(--ease); overflow-y: auto;
}
.mobile-menu.active { transform: translateX(0); }
.mobile-menu ul { padding: 40px 24px; display: flex; flex-direction: column; gap: 28px; }
.mobile-menu a { font-family: var(--font-heading); font-size: 28px; color: var(--primary); }

/* ---------- HERO ---------- */
.hero { padding-top: clamp(48px, 8vw, 100px); padding-bottom: clamp(48px, 8vw, 100px); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero-content p.lead { font-size: 18px; max-width: 480px; }
.hero-actions { display: flex; gap: 16px; margin-top: 2rem; flex-wrap: wrap; }
.hero-image-wrap {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4/5; background: linear-gradient(135deg, var(--recover), var(--primary));
}
.hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.image-placeholder {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55); gap: 12px; text-align: center; padding: 24px;
}
.image-placeholder i { font-size: 40px; }
.image-placeholder span { font-family: var(--font-body); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; }

/* ---------- FEATURES / CARDS ---------- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px; }
.feature-card {
  background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-soft);
  padding: 40px 32px; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-strong); }
.feature-icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--bg);
  display: flex; align-items: center; justify-content: center; margin-bottom: 24px; color: var(--defend); font-size: 22px;
}
.feature-card h3 { margin-bottom: 12px; }
.feature-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--primary); margin-top: 12px; }
.feature-link i { transition: transform 0.2s var(--ease); }
.feature-link:hover i { transform: translateX(4px); }

/* ---------- STORY SECTION (50/50) ---------- */
.story-section .grid-2 { gap: 80px; }
.story-image { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1/1; background: var(--recover); }
.story-image img { width: 100%; height: 100%; object-fit: cover; }
.story-list { margin: 24px 0; }
.story-list li { display: flex; gap: 14px; margin-bottom: 14px; color: var(--text-light); }
.story-list i { color: var(--reset); margin-top: 4px; }

/* ---------- PROCESS / EXPERIENCE ---------- */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; margin-top: 48px; }
.process-step { position: relative; padding-left: 8px; border-left: 2px solid var(--border); padding-bottom: 8px; }
.process-number { font-family: var(--font-heading); font-size: 15px; color: var(--defend); font-weight: 700; margin-bottom: 12px; display: block; }
.process-step h3 { margin-bottom: 10px; }

/* ---------- FEATURED EXPERIENCE ---------- */
.featured-experience { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 520px; display: flex; align-items: center; background: var(--recover); }
.featured-experience img.bg { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0.85; }
.featured-overlay { position: relative; z-index: 2; max-width: 480px; padding: 56px; color: var(--white); }
.featured-overlay .eyebrow { color: var(--reset); }
.featured-overlay .eyebrow::before { background: var(--reset); }
.featured-overlay h2 { color: var(--white); }
.featured-overlay p { color: rgba(255,255,255,0.85); }

/* ---------- TESTIMONIALS ---------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.testimonial-card { background: var(--cream); border-radius: var(--radius-md); padding: 36px; border: 1px solid var(--border); }
.testimonial-stars { color: var(--defend); margin-bottom: 16px; font-size: 14px; }
.testimonial-text { font-style: italic; color: var(--text); font-size: 17px; margin-bottom: 24px; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: var(--border); flex-shrink: 0; }
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-name { font-weight: 700; color: var(--primary); font-size: 15px; }
.testimonial-position { font-size: 13px; color: var(--text-light); }

/* ---------- BLOG ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.blog-card { background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-soft); transition: transform 0.3s var(--ease); }
.blog-card:hover { transform: translateY(-6px); }
.blog-card-image { aspect-ratio: 16/10; background: var(--bg); overflow: hidden; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.blog-card:hover .blog-card-image img { transform: scale(1.05); }
.blog-card-body { padding: 28px; }
.blog-category { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--defend); margin-bottom: 12px; }
.blog-card h3 { margin-bottom: 10px; }
.blog-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; font-size: 13px; color: var(--text-light); }
.blog-read-link { font-weight: 700; color: var(--primary); }

/* ---------- CONTACT ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 28px; }
.contact-info-item i { width: 44px; height: 44px; border-radius: 50%; background: var(--white); display: flex; align-items: center; justify-content: center; color: var(--defend); flex-shrink: 0; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; color: var(--primary); }
.form-control {
  width: 100%; padding: 14px 18px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--white); color: var(--text); transition: border-color 0.2s var(--ease);
}
.form-control:focus { border-color: var(--primary); }
textarea.form-control { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 14px; display: none; }
.form-alert.success { background: rgba(138,154,58,0.15); color: var(--recover); display: block; }
.form-alert.error { background: rgba(200,90,26,0.12); color: var(--defend); display: block; }

/* ---------- NEWSLETTER (footer) ---------- */
.newsletter-form { display: flex; border: 1px solid rgba(255,255,255,0.25); border-radius: 100px; overflow: hidden; }
.newsletter-form input { flex: 1; background: transparent; border: none; padding: 12px 18px; color: var(--white); }
.newsletter-form input::placeholder { color: rgba(255,255,255,0.6); }
.newsletter-form button { background: var(--defend); border: none; width: 46px; color: var(--white); }
.newsletter-msg { font-size: 13px; margin-top: 8px; color: var(--reset); }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--primary); color: var(--white); padding-top: 80px; }
.site-footer p { color: rgba(255,255,255,0.65); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 56px; }
.footer-logo { height: 46px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-social { display: flex; gap: 14px; margin-top: 20px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; transition: background 0.2s var(--ease); }
.footer-social a:hover { background: rgba(255,255,255,0.15); }
.footer-col h4 { color: var(--white); margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a:hover { color: var(--reset); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 24px 0; }
.footer-bottom p { margin: 0; font-size: 13px; }

/* ---------- WHATSAPP FLOAT ---------- */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; width: 60px; height: 60px; border-radius: 50%;
  background: var(--whatsapp); color: var(--white); display: flex; align-items: center; justify-content: center;
  font-size: 28px; box-shadow: 0 10px 30px rgba(0,0,0,0.25); z-index: 150; transition: transform 0.25s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- ANIMATIONS ---------- */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.fade-up.in-view { opacity: 1; transform: translateY(0); }

/* ---------- MISC PAGES (404/500) ---------- */
.error-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.error-page .code { font-family: var(--font-heading); font-size: clamp(80px, 14vw, 160px); color: var(--primary); line-height: 1; }

/* ---------- BADGES / ALERTS (shared with admin) ---------- */
.badge { display: inline-block; padding: 4px 12px; border-radius: 100px; font-size: 12px; font-weight: 700; }
.badge-success { background: rgba(138,154,58,0.15); color: var(--recover); }
.badge-danger { background: rgba(200,90,26,0.12); color: var(--defend); }
.badge-muted { background: var(--border); color: var(--text-light); }
