/*
Theme Name: Valparapia
Theme URI: https://valparapia.cl
Author: Valparapia Agencia Creativa
Author URI: https://valparapia.cl
Description: Tema autoadministrable para Valparapia - Agencia Creativa de Valparaiso. Incluye gestion de servicios, casos, blog, chatbot WhatsApp, banner de cookies, panel de audiencia y CMS completo.
Version: 1.0.0
License: GPL v2
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: valparapia
Requires at least: 6.0
Requires PHP: 7.4
*/

/* === RESET & BASE === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --deep-ocean: #0B3D3D;
  --deep-ocean-light: #1a5c5c;
  --warm-stone: #C4B2A8;
  --blush-rose: #F2C4CE;
  --lavender: #C4B5FD;
  --pale-sage: #B5C9A8;
  --soft-sky: #A8C4D9;
  --rich-black: #0A0A0A;
  --pure-white: #FFFFFF;
  --wp-admin-bar: 0px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--rich-black);
  background: var(--pure-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* === TYPOGRAPHY === */
.text-display {
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.text-h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.text-h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.text-h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 600;
  line-height: 1.3;
}

.text-body-large {
  font-size: 1.125rem;
  line-height: 1.6;
}

.text-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.text-nav {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.text-mono {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

/* === LAYOUT === */
.content-max {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}

.section-padding {
  padding: clamp(4rem, 8vh, 7rem) 0;
}

/* === NAVIGATION === */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.site-nav.scrolled {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 1px 10px rgba(0,0,0,0.05);
}

.site-nav .content-max {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-nav .logo img { height: 42px; width: auto; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-menu a {
  color: var(--deep-ocean);
  position: relative;
  padding-bottom: 2px;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--deep-ocean);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-menu a:hover::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 22px;
  background: var(--blush-rose);
  color: var(--rich-black);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 100px;
  transition: background 0.3s;
}

.nav-cta:hover { background: #e8b5c0; }

.mobile-toggle { display: none; }

/* === HERO === */
.hero-section {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--deep-ocean);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section .tech-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(242,196,206,0.2);
  border: 1px solid rgba(242,196,206,0.3);
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero-badge span { color: var(--blush-rose); font-size: 0.85rem; font-weight: 600; }
.hero-badge .pulse { width: 6px; height: 6px; background: var(--blush-rose); border-radius: 50%; animation: pulse 2s infinite; }

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.hero-section h1 { color: white; margin-bottom: 1.5rem; }
.hero-section .subtitle { color: var(--warm-stone); font-size: 1.3rem; line-height: 1.5; }
.hero-image { border-radius: 1rem; overflow: hidden; }
.hero-image img { width: 100%; height: auto; }

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.scroll-indicator .line { width: 1px; height: 40px; background: var(--warm-stone); animation: pulse 2s infinite; }
.scroll-indicator span { color: var(--warm-stone); }

/* === TRUSTED BY === */
.trusted-section { background: white; padding: 4rem 0; text-align: center; }
.trusted-section .label { color: var(--deep-ocean); margin-bottom: 1.5rem; }
.clients-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.clients-list span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--deep-ocean);
  opacity: 0.35;
  transition: opacity 0.3s;
  letter-spacing: 0.02em;
}
.clients-list span:hover { opacity: 1; }

/* === SERVICES HOME === */
.services-home { background: white; }
.services-home .section-header { text-align: center; margin-bottom: 3rem; }
.services-home .section-header h2 { color: var(--deep-ocean); margin-bottom: 0.75rem; }
.services-home .section-header p { color: var(--rich-black); opacity: 0.7; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  border: 1px solid rgba(11,61,61,0.1);
  border-radius: 1rem;
  padding: 2.5rem;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  border-color: var(--blush-rose);
}

.service-card .icon-box {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.service-card h3 { color: var(--deep-ocean); margin-bottom: 0.75rem; }
.service-card .poetic { color: var(--rich-black); opacity: 0.7; font-style: italic; margin-bottom: 1.25rem; }
.service-card ul { list-style: none; }
.service-card ul li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--rich-black);
  opacity: 0.6;
  margin-bottom: 0.4rem;
}
.service-card ul li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blush-rose);
  flex-shrink: 0;
}

.services-home .link-more {
  text-align: center;
  margin-top: 2.5rem;
}
.services-home .link-more a {
  color: var(--deep-ocean);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.services-home .link-more a:hover { gap: 0.75rem; }

/* === STATS === */
.stats-section { background: var(--deep-ocean); }
.stats-section .label { color: var(--warm-stone); text-align: center; margin-bottom: 3rem; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item .number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: white;
  line-height: 1;
}
.stat-item .label { color: var(--warm-stone); margin-top: 0.5rem; font-size: 1rem; }

/* === ABOUT === */
.about-section { background: rgba(242,196,206,0.12); }
.about-grid {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 4rem;
  align-items: center;
}
.about-content .label { color: var(--deep-ocean); margin-bottom: 1rem; }
.about-content h2 { color: var(--deep-ocean); margin-bottom: 1.5rem; }
.about-content p { color: var(--rich-black); opacity: 0.8; margin-bottom: 1rem; }
.about-content .cta-link {
  color: var(--deep-ocean);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}
.about-image { position: relative; }
.about-image img { border-radius: 0.5rem; }
.about-image::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  width: 6rem;
  height: 6rem;
  background: var(--blush-rose);
  border-radius: 0.5rem;
  z-index: -1;
}

/* === SERVICES PAGE === */
.services-hero {
  background: var(--deep-ocean);
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
}
.services-hero .breadcrumb { color: var(--warm-stone); margin-bottom: 1rem; display: block; }
.services-hero h1 { color: white; margin-bottom: 1rem; }
.services-hero .subtitle { color: var(--blush-rose); font-size: 1.5rem; margin-bottom: 1.5rem; }
.services-hero .lead { color: var(--warm-stone); max-width: 700px; line-height: 1.7; }

.pillar-section { padding: 5rem 0; }
.pillar-section:nth-child(even) { background: rgba(196,181,253,0.08); }
.pillar-section:nth-child(odd) { background: white; }

.pillar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.pillar-grid.reversed .pillar-image { order: 2; }
.pillar-grid.reversed .pillar-content { order: 1; }

.pillar-image { position: sticky; top: 100px; }
.pillar-image img { border-radius: 1rem; width: 100%; }

.pillar-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 1rem;
}

.pillar-content h2 { color: var(--deep-ocean); margin-bottom: 1.5rem; }

.service-detail-item {
  padding: 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid #f0f0f0;
  margin-bottom: 0.75rem;
  transition: all 0.2s;
}
.service-detail-item:hover {
  border-color: rgba(11,61,61,0.2);
  background: #fafafa;
}

.service-detail-item .num {
  width: 32px;
  height: 32px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--deep-ocean);
  flex-shrink: 0;
}

.service-detail-item h4 { color: var(--deep-ocean); margin-bottom: 0.5rem; font-size: 1rem; }
.service-detail-item p { color: var(--rich-black); opacity: 0.6; font-size: 0.9rem; line-height: 1.5; }

/* === CASOS PAGE === */
.casos-hero {
  background: var(--deep-ocean);
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
}
.casos-hero .case-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(242,196,206,0.15);
  border: 1px solid rgba(242,196,206,0.3);
  border-radius: 100px;
  margin-bottom: 1.5rem;
  color: var(--blush-rose);
  font-size: 0.85rem;
}
.casos-hero h1 { color: white; margin-bottom: 1.5rem; }
.casos-hero .desc { color: var(--warm-stone); font-size: 1.15rem; max-width: 650px; line-height: 1.7; margin-bottom: 2rem; }

.quick-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.quick-stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.75rem;
}
.quick-stat .value { color: white; font-weight: 700; font-size: 1.1rem; }
.quick-stat .label { color: var(--warm-stone); font-size: 0.8rem; }

.challenge-section { background: white; }
.challenge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.challenge-content .label { color: var(--deep-ocean); margin-bottom: 0.75rem; display: block; }
.challenge-content h2 { color: var(--deep-ocean); margin-bottom: 1.5rem; }
.challenge-content p { color: var(--rich-black); opacity: 0.7; line-height: 1.7; }

.objectives-box {
  background: linear-gradient(135deg, rgba(242,196,206,0.2), rgba(196,181,253,0.2));
  border-radius: 1rem;
  padding: 2rem;
}
.objectives-box h3 { color: var(--deep-ocean); margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.5rem; }
.objectives-box ul { list-style: none; }
.objectives-box li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--rich-black);
  opacity: 0.75;
  margin-bottom: 0.75rem;
}
.objectives-box li svg { flex-shrink: 0; margin-top: 0.15rem; }

/* Timeline */
.timeline-section { background: rgba(242,196,206,0.06); }
.timeline-section .section-header { text-align: center; margin-bottom: 4rem; }
.timeline { position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--blush-rose), var(--lavender), var(--pale-sage));
}

.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-dot {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.timeline-content {
  flex: 1;
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid #f0f0f0;
  transition: box-shadow 0.3s;
}
.timeline-content:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.08); }

.timeline-content .phase {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-size: 0.65rem;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 0.75rem;
}
.timeline-content h3 { color: var(--deep-ocean); margin-bottom: 0.75rem; }
.timeline-content p { color: var(--rich-black); opacity: 0.65; font-size: 0.9rem; line-height: 1.6; }

.highlight-quote {
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  margin-top: 1rem;
  border-left: 4px solid;
}
.highlight-quote p {
  font-style: italic;
  font-weight: 500;
  color: var(--deep-ocean);
  opacity: 1;
}

.timeline-metric {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--deep-ocean);
}

/* Results */
.results-section { background: var(--deep-ocean); }
.results-section .section-header { text-align: center; margin-bottom: 3rem; }
.results-section .label { color: var(--warm-stone); margin-bottom: 0.75rem; display: block; }
.results-section h2 { color: white; }

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.result-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  transition: background 0.3s;
}
.result-card:hover { background: rgba(255,255,255,0.1); }

.result-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.3rem;
  background: rgba(242,196,206,0.15);
}

.result-card .value { font-size: 1.75rem; font-weight: 700; color: white; }
.result-card .label { color: var(--warm-stone); margin-top: 0.25rem; font-size: 0.85rem; }
.result-card .unit { color: var(--warm-stone); opacity: 0.6; font-size: 0.75rem; }

.quote-section {
  margin-top: 4rem;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.quote-section blockquote { color: var(--warm-stone); font-size: 1.25rem; font-style: italic; line-height: 1.6; margin-bottom: 1rem; }
.quote-section .source { color: rgba(255,255,255,0.5); font-size: 0.85rem; }

/* === CONTACT === */
.contact-hero {
  background: var(--deep-ocean);
  min-height: 50vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
}
.contact-hero .breadcrumb { color: var(--warm-stone); margin-bottom: 1rem; display: block; }
.contact-hero h1 { color: white; margin-bottom: 1rem; }
.contact-hero .subtitle { color: var(--blush-rose); font-size: 1.25rem; max-width: 600px; }

.contact-section { background: white; }
.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4rem;
}

.contact-form h2 { color: var(--deep-ocean); margin-bottom: 2rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--deep-ocean);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: none;
  border-bottom: 2px solid rgba(11,61,61,0.15);
  padding: 0.75rem 0;
  font-size: 1rem;
  background: transparent;
  transition: border-color 0.3s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blush-rose); }

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  height: 48px;
  padding: 0 2rem;
  background: var(--blush-rose);
  color: var(--rich-black);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.3s;
}
.btn-submit:hover { background: #e8b5c0; }

.contact-info h3 { color: var(--deep-ocean); margin-bottom: 1.5rem; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.contact-item .icon-box {
  width: 40px;
  height: 40px;
  background: rgba(11,61,61,0.05);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item .label { color: var(--deep-ocean); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.25rem; }
.contact-item a { color: var(--rich-black); opacity: 0.7; transition: color 0.3s; }
.contact-item a:hover { color: var(--deep-ocean); opacity: 1; }

.social-links { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid #f0f0f0; }
.social-links span { color: var(--deep-ocean); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.75rem; display: block; }
.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(11,61,61,0.05);
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
  transition: background 0.3s;
}
.social-links a:hover { background: rgba(242,196,206,0.3); }

/* === BLOG === */
.blog-hero {
  background: var(--deep-ocean);
  min-height: 45vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
}
.blog-hero .breadcrumb { color: var(--warm-stone); margin-bottom: 1rem; display: block; }
.blog-hero h1 { color: white; margin-bottom: 1rem; }
.blog-hero .subtitle { color: var(--blush-rose); font-size: 1.15rem; max-width: 600px; }

.blog-categories {
  background: white;
  border-bottom: 1px solid #f0f0f0;
  padding: 1.25rem 0;
}
.blog-categories .cat-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.blog-categories .label { color: var(--deep-ocean); margin-right: 0.5rem; }
.blog-categories a, .blog-categories span {
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s;
}
.blog-categories a { background: #f5f5f5; color: #555; }
.blog-categories a:hover, .blog-categories a.active { background: var(--deep-ocean); color: white; }
.blog-categories span { background: var(--deep-ocean); color: white; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-card .image-wrap {
  aspect-ratio: 16/10;
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 1rem;
  position: relative;
}
.blog-card .image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.blog-card:hover .image-wrap img { transform: scale(1.03); }
.blog-card .image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,61,61,0.15), rgba(242,196,206,0.25));
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card .meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.blog-card .category { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }
.blog-card .date { font-size: 0.8rem; color: #888; }

.blog-card h3 {
  color: var(--deep-ocean);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}
.blog-card:hover h3 { color: var(--deep-ocean-light); }

.blog-card .excerpt { font-size: 0.85rem; color: #555; line-height: 1.5; }

/* Single Post */
.post-hero { background: var(--deep-ocean); padding-top: 120px; padding-bottom: 3rem; }
.post-hero .back-link { color: var(--warm-stone); font-size: 0.9rem; display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; }
.post-hero .back-link:hover { color: white; }
.post-hero .meta { display: flex; gap: 1.5rem; margin-bottom: 1rem; }
.post-hero .category { color: var(--blush-rose); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }
.post-hero .date { color: var(--warm-stone); font-size: 0.8rem; }
.post-hero h1 { color: white; max-width: 700px; line-height: 1.1; margin-bottom: 1rem; }
.post-hero .subtitle { color: var(--blush-rose); font-size: 1.1rem; max-width: 600px; }

.post-content { max-width: 720px; margin: 0 auto; padding: 3rem 1.5rem; }
.post-content h2 { color: var(--deep-ocean); font-size: 1.75rem; font-weight: 700; margin: 2.5rem 0 1rem; }
.post-content p { color: #333; line-height: 1.7; margin-bottom: 1.25rem; }
.post-content strong { color: var(--deep-ocean); }

.post-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}
.post-tags span { padding: 0.3rem 0.75rem; background: #f5f5f5; border-radius: 100px; font-size: 0.75rem; color: #555; }

.post-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.25rem;
  background: #f9f9f9;
  border-radius: 0.75rem;
}
.post-author .avatar {
  width: 48px;
  height: 48px;
  background: var(--deep-ocean);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
}

/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid #eee;
  padding: 1.25rem 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.06);
}

.cookie-banner .cookie-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-banner .cookie-icon {
  width: 40px;
  height: 40px;
  background: rgba(242,196,206,0.3);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cookie-banner h4 { color: var(--deep-ocean); font-size: 0.9rem; margin-bottom: 0.25rem; display: flex; align-items: center; gap: 0.4rem; }
.cookie-banner p { font-size: 0.8rem; color: #666; max-width: 500px; }

.cookie-buttons { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-left: auto; }

.cookie-btn {
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
}

.cookie-btn-outline {
  background: transparent;
  border: 1px solid #ddd;
  color: #555;
}
.cookie-btn-outline:hover { border-color: #aaa; }

.cookie-btn-dark {
  background: var(--deep-ocean);
  color: white;
}
.cookie-btn-dark:hover { background: var(--deep-ocean-light); }

.cookie-expand { color: var(--deep-ocean); font-size: 0.8rem; font-weight: 500; background: none; border: none; cursor: pointer; display: flex; align-items: center; gap: 0.3rem; }

.cookie-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.cookie-type { padding: 1rem; background: #f9f9f9; border-radius: 0.5rem; }
.cookie-type h5 { font-size: 0.8rem; color: var(--deep-ocean); margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.4rem; }
.cookie-type h5 .dot { width: 8px; height: 8px; border-radius: 50%; }
.cookie-type p { font-size: 0.75rem; color: #777; }

/* === WHATSAPP CHAT === */
.wp-chat-btn {
  position: fixed;
  bottom: 90px;
  right: 1.5rem;
  z-index: 1000;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37,211,102,0.4);
  cursor: pointer;
  border: none;
  animation: wp-pulse 3s infinite;
}

@keyframes wp-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.wp-chat-panel {
  position: fixed;
  bottom: 160px;
  right: 1.5rem;
  z-index: 1001;
  width: 370px;
  max-width: calc(100vw - 3rem);
  max-height: 500px;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #f0f0f0;
}

.wp-header {
  background: var(--deep-ocean);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wp-header-info { display: flex; align-items: center; gap: 0.75rem; }
.wp-header-info .wp-icon { width: 36px; height: 36px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.wp-header-info h4 { color: white; font-size: 0.85rem; }
.wp-header-info p { color: var(--warm-stone); font-size: 0.7rem; }

.wp-close { background: none; border: none; color: rgba(255,255,255,0.7); cursor: pointer; font-size: 1.2rem; }
.wp-close:hover { color: white; }

.wp-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wp-msg { display: flex; gap: 0.5rem; max-width: 85%; }
.wp-msg.bot { align-self: flex-start; }
.wp-msg.user { align-self: flex-end; flex-direction: row-reverse; }

.wp-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
}
.wp-msg.bot .wp-avatar { background: var(--deep-ocean); }
.wp-msg.user .wp-avatar { background: var(--blush-rose); }

.wp-bubble {
  padding: 0.6rem 0.9rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  line-height: 1.5;
}
.wp-msg.bot .wp-bubble { background: #f5f5f5; color: #333; border-top-left-radius: 0.25rem; }
.wp-msg.user .wp-bubble { background: var(--deep-ocean); color: white; border-top-right-radius: 0.25rem; }

.wp-options { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.5rem; }
.wp-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 0.75rem;
  font-size: 0.8rem;
  color: #444;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}
.wp-option:hover { background: rgba(242,196,206,0.15); border-color: var(--blush-rose); }

.wp-input-area {
  padding: 0.75rem 1rem;
  border-top: 1px solid #f0f0f0;
  display: flex;
  gap: 0.5rem;
}

.wp-input-area input {
  flex: 1;
  padding: 0.6rem 1rem;
  background: #f5f5f5;
  border: none;
  border-radius: 100px;
  font-size: 0.8rem;
  outline: none;
}

.wp-input-area button {
  width: 36px;
  height: 36px;
  background: var(--deep-ocean);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wp-cta-final {
  margin-top: 0.75rem;
  text-align: center;
}
.wp-cta-final a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #25D366;
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 100px;
  transition: background 0.3s;
}
.wp-cta-final a:hover { background: #128C7E; }

/* === FOOTER === */
.site-footer { background: var(--deep-ocean); color: white; }
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 3rem;
  padding: 4rem 0;
}
.site-footer .footer-brand img { height: 48px; filter: brightness(0) invert(1); margin-bottom: 0.75rem; }
.site-footer .footer-brand p { color: var(--warm-stone); }
.site-footer .footer-brand .tagline { font-size: 0.85rem; margin-top: 0.75rem; opacity: 0.7; }

.site-footer h4 { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--warm-stone); margin-bottom: 1.25rem; }
.site-footer .footer-links { list-style: none; }
.site-footer .footer-links li { margin-bottom: 0.6rem; }
.site-footer .footer-links a { color: var(--warm-stone); transition: color 0.3s; }
.site-footer .footer-links a:hover { color: white; }

.site-footer .contact-list { list-style: none; }
.site-footer .contact-list li { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; color: var(--warm-stone); font-size: 0.9rem; }
.site-footer .contact-list a { color: var(--warm-stone); transition: color 0.3s; }
.site-footer .contact-list a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { color: var(--warm-stone); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-bottom .legal-links { display: flex; gap: 1.5rem; }
.footer-bottom .legal-links a { color: var(--warm-stone); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; transition: color 0.3s; }
.footer-bottom .legal-links a:hover { color: white; }

/* === WORDPRESS ADMIN FIXES === */
.admin-bar .site-nav { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-nav { top: 46px; } }

/* === ALERTS === */
.alert { padding: 1rem 1.25rem; border-radius: 0.75rem; margin-bottom: 1.5rem; }
.alert-success { background: rgba(181,201,168,0.2); border: 1px solid var(--pale-sage); color: #3d6b3d; }
.alert-error { background: rgba(242,196,206,0.3); border: 1px solid var(--blush-rose); color: #8b4040; }

/* === MOBILE === */
@media (max-width: 768px) {
  .hero-grid,
  .services-grid,
  .stats-grid,
  .about-grid,
  .pillar-grid,
  .challenge-grid,
  .contact-grid,
  .blog-grid,
  .results-grid,
  .site-footer .footer-grid { grid-template-columns: 1fr; }

  .pillar-grid.reversed .pillar-image,
  .pillar-grid.reversed .pillar-content { order: unset; }

  .nav-menu { display: none; }
  .mobile-toggle { display: block; background: none; border: none; font-size: 1.5rem; color: var(--deep-ocean); cursor: pointer; }

  .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--deep-ocean);
    padding: 3rem;
    gap: 2rem;
    z-index: 999;
  }
  .nav-menu.active a { color: white; font-size: 1.5rem; }

  .text-display { font-size: clamp(2rem, 8vw, 3.5rem); }

  .quick-stats { justify-content: center; }
  .results-grid { grid-template-columns: repeat(2, 1fr); }

  .wp-chat-panel { width: calc(100vw - 2rem); right: 1rem; bottom: 140px; }
  .wp-chat-btn { bottom: 70px; right: 1rem; }

  .timeline::before { left: 20px; }
  .timeline-item { gap: 1rem; }
  .timeline-dot { width: 42px; height: 42px; }

  .cookie-banner .cookie-inner { flex-direction: column; align-items: flex-start; }
  .cookie-buttons { margin-left: 0; }
  .cookie-details { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .results-grid { grid-template-columns: 1fr; }
}

/* === PRINT === */
@media print {
  .site-nav, .site-footer, .wp-chat-btn, .cookie-banner, .wp-chat-panel { display: none !important; }
}

/* === SELECTION === */
::selection { background: var(--blush-rose); color: var(--rich-black); }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--deep-ocean); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--deep-ocean-light); }

/* === SCROLL REVEAL === */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }
