/*
Theme Name: Osorio Penalista
Theme URI: https://osorioabogado.cl/
Author: Johny Osorio Valenzuela
Author URI: https://www.linkedin.com/in/johnyosoriovalenzuela/
Description: Tema one-page para abogado penalista. Diseño editorial, responsive, optimizado para SEO y velocidad. Incluye carrusel en hero, integración WhatsApp y formulario de contacto.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: osorio-penalista
Tags: one-page, law-firm, custom-colors, responsive-layout
*/

:root {
  --ink: #0D0D0D;
  --ink-soft: #1A1A1A;
  --charcoal: #2C2C2C;
  --muted: #6B6861;
  --line: #D4CCBC;
  --parchment: #F1EBDD;
  --bone: #E8DFC9;
  --cream: #F7F3EA;
  --burgundy: #6B2424;
  --burgundy-deep: #4A1818;
  --burgundy-soft: #8B3838;
  --white: #FFFFFF;
  --wa-green: #25D366;
  --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
  --font-body: 'Manrope', -apple-system, sans-serif;
  --container: 1280px;
  --gutter: clamp(1.5rem, 4vw, 4rem);
  --transition: 400ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--parchment);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--burgundy);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--burgundy);
}
.section-number {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--muted);
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 100;
}
h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 300;
}
h2 em { font-style: italic; font-weight: 400; color: var(--burgundy); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--parchment);
  cursor: pointer;
  transition: var(--transition);
}
.btn::after { content: '→'; font-size: 1.1rem; transition: transform var(--transition); }
.btn:hover { background: var(--burgundy); border-color: var(--burgundy); }
.btn:hover::after { transform: translateX(4px); }
.btn-whatsapp {
  background: var(--wa-green);
  border-color: var(--wa-green);
  color: var(--white);
}
.btn-whatsapp::after { content: ''; }
.btn-whatsapp::before {
  content: '';
  display: inline-block;
  width: 18px; height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}
.btn-whatsapp:hover { background: #1FB855; border-color: #1FB855; }
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: var(--transition);
  background: transparent;
}
.nav.scrolled {
  background: rgba(241, 235, 221, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--parchment);
  transition: color var(--transition);
  line-height: 1;
}
.nav.scrolled .logo { color: var(--ink); }
.logo span { color: var(--burgundy); font-style: italic; font-weight: 400; }
.logo small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(241, 235, 221, 0.6);
  margin-top: 0.2rem;
  transition: color var(--transition);
}
.nav.scrolled .logo small { color: var(--muted); }
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--parchment);
  transition: color var(--transition);
  position: relative;
}
.nav.scrolled .nav-links a { color: var(--ink); }
.nav-links a:hover { color: var(--burgundy); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--burgundy);
  transition: width var(--transition);
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.7rem 1.3rem;
  background: var(--wa-green);
  color: var(--white);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-cta::before {
  content: '';
  display: inline-block;
  width: 16px; height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}
.nav-cta:hover { background: #1FB855; }
.hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
}
.hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--parchment);
  margin: 5px 0;
  transition: var(--transition);
}
.nav.scrolled .hamburger span { background: var(--ink); }
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--ink);
  color: var(--parchment);
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 40%, rgba(107, 36, 36, 0.22), transparent 55%),
    radial-gradient(circle at 85% 70%, rgba(107, 36, 36, 0.10), transparent 50%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: overlay;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}
.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--burgundy-soft);
  margin-bottom: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  animation: fadeUp 900ms cubic-bezier(0.2, 0.8, 0.2, 1) 200ms forwards;
}
.hero-eyebrow::before {
  content: '';
  width: 40px; height: 1px;
  background: var(--burgundy-soft);
}
.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 5.5rem);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 2rem;
  font-variation-settings: "opsz" 144;
}
.hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--burgundy-soft);
}
.hero h1 .line {
  display: block;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1000ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.hero h1 .line:nth-child(1) { animation-delay: 300ms; }
.hero h1 .line:nth-child(2) { animation-delay: 450ms; }
.hero h1 .line:nth-child(3) { animation-delay: 600ms; }
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: rgba(241, 235, 221, 0.78);
  max-width: 520px;
  margin-bottom: 3rem;
  line-height: 1.55;
  opacity: 0;
  animation: fadeUp 1000ms cubic-bezier(0.2, 0.8, 0.2, 1) 800ms forwards;
}
.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1000ms cubic-bezier(0.2, 0.8, 0.2, 1) 1000ms forwards;
}
.hero .btn-outline {
  background: transparent;
  border: 1px solid rgba(241, 235, 221, 0.4);
  color: var(--parchment);
}
.hero .btn-outline:hover { background: var(--parchment); color: var(--ink); border-color: var(--parchment); }
.hero-image-wrap {
  position: relative;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1200ms cubic-bezier(0.2, 0.8, 0.2, 1) 600ms forwards;
}
.hero-carousel {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
  background: var(--ink-soft);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.95);
  transform: scale(1.02);
  transition: transform 8s linear;
}
.hero-slide.active img {
  transform: scale(1.08);
}
.hero-carousel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(13,13,13,0.45));
  z-index: 2;
  pointer-events: none;
}
.hero-tag-wrap {
  position: absolute;
  left: -20px; bottom: 40px;
  z-index: 3;
  pointer-events: none;
  max-width: 260px;
}
.hero-tag {
  position: absolute;
  top: 0; left: 0;
  background: var(--burgundy);
  color: var(--parchment);
  padding: 1rem 1.5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.25;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 800ms ease, transform 800ms ease;
  width: max-content;
  max-width: 260px;
}
.hero-tag.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}
.hero-tag::before {
  content: '';
  position: absolute;
  top: -3px; left: 0;
  width: 40px; height: 3px;
  background: var(--parchment);
}
.hero-indicators {
  position: absolute;
  bottom: 16px; right: 16px;
  display: flex;
  gap: 6px;
  z-index: 4;
}
.hero-indicators button {
  width: 32px;
  height: 3px;
  background: rgba(241, 235, 221, 0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 400ms ease, width 400ms ease;
  position: relative;
  overflow: hidden;
}
.hero-indicators button::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--parchment);
}
.hero-indicators button.active {
  background: rgba(241, 235, 221, 0.2);
}
.hero-indicators button.active::after {
  animation: progress 5s linear forwards;
}
.hero-indicators button:hover { background: rgba(241, 235, 221, 0.6); }
@keyframes progress {
  to { width: 100%; }
}
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  background: rgba(13, 13, 13, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(241, 235, 221, 0.2);
  color: var(--parchment);
  font-size: 1rem;
  cursor: pointer;
  z-index: 4;
  opacity: 0;
  transition: opacity 300ms ease, background 300ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-carousel:hover .hero-arrow { opacity: 1; }
.hero-arrow:hover { background: var(--burgundy); }
.hero-arrow.prev { left: 12px; }
.hero-arrow.next { right: 12px; }
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: opacity 400ms ease; }
  .hero-slide.active img { transform: scale(1.02); }
  .hero-indicators button.active::after { animation: none; width: 100%; }
}
.scroll-indicator {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(241, 235, 221, 0.5);
  writing-mode: vertical-rl;
  opacity: 0;
  animation: fadeIn 1000ms cubic-bezier(0.2, 0.8, 0.2, 1) 1500ms forwards;
  z-index: 2;
}
.scroll-indicator::after {
  content: '';
  display: block;
  width: 1px; height: 40px;
  background: rgba(241, 235, 221, 0.4);
  margin: 1rem auto 0;
  animation: scrollBar 2s ease-in-out infinite;
}
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes scrollBar {
  0%, 100% { transform: scaleY(1); transform-origin: top; }
  50% { transform: scaleY(0.3); transform-origin: top; }
}
section {
  padding: clamp(5rem, 10vw, 9rem) 0;
  position: relative;
}
.section-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4rem;
  margin-bottom: 5rem;
  align-items: end;
}
.section-header-left { max-width: 120px; }
.section-header-right { max-width: 800px; }
.about { background: var(--parchment); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: center;
}
.about-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.about-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: contrast(1.05);
}
.about-photo::before {
  content: '';
  position: absolute;
  top: 20px; left: 20px;
  right: -20px; bottom: -20px;
  border: 2px solid var(--burgundy);
  z-index: -1;
}
.about-text p {
  font-size: 1.05rem;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.about-text p:first-of-type {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  font-weight: 300;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}
.credentials {
  margin-top: 3rem;
  padding: 2rem 0 0;
  border-top: 1px solid var(--line);
}
.credentials h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 1.5rem;
}
.credentials-list {
  list-style: none;
  display: grid;
  gap: 1rem;
}
.credentials-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--charcoal);
}
.credentials-list li::before {
  content: '';
  flex-shrink: 0;
  width: 8px; height: 8px;
  margin-top: 0.55rem;
  background: var(--burgundy);
  transform: rotate(45deg);
}
.credentials-list strong { color: var(--ink); font-weight: 600; }
.practice { background: var(--ink); color: var(--parchment); }
.practice .eyebrow { color: var(--burgundy-soft); }
.practice h2 { color: var(--parchment); }
.practice h2 em { color: var(--burgundy-soft); }
.practice .section-number { color: rgba(241,235,221,0.4); }
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(241,235,221,0.15);
}
.practice-item {
  padding: 3rem 2rem;
  border-right: 1px solid rgba(241,235,221,0.15);
  border-bottom: 1px solid rgba(241,235,221,0.15);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.practice-item:nth-child(3n) { border-right: none; }
.practice-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--burgundy);
  transform: translateY(100%);
  transition: transform 500ms cubic-bezier(0.7, 0, 0.3, 1);
  z-index: 0;
}
.practice-item:hover::before { transform: translateY(0); }
.practice-item > * { position: relative; z-index: 1; }
.practice-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 1rem;
  color: var(--burgundy-soft);
  margin-bottom: 1.5rem;
  transition: color var(--transition);
}
.practice-item:hover .practice-num { color: var(--parchment); }
.practice-item h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.015em;
}
.practice-item p {
  font-size: 0.95rem;
  color: rgba(241,235,221,0.7);
  line-height: 1.55;
  transition: color var(--transition);
}
.practice-item:hover p { color: rgba(241,235,221,0.95); }
.practice-item-arrow {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--burgundy-soft);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}
.practice-item:hover .practice-item-arrow { color: var(--parchment); gap: 1rem; }
.practice-footnote {
  margin-top: 3rem;
  padding: 2rem;
  border: 1px solid rgba(241,235,221,0.2);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(241,235,221,0.8);
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.practice-footnote::before {
  content: '\2726';
  color: var(--burgundy-soft);
  font-size: 1.5rem;
  font-style: normal;
}
.approach {
  position: relative;
  padding: 10rem 0;
  color: var(--parchment);
  overflow: hidden;
}
.approach-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.approach-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.35) contrast(1.1);
}
.approach-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,13,13,0.8), rgba(74,24,24,0.55));
}
.approach .container { position: relative; z-index: 1; }
.approach-content { max-width: 760px; }
.approach h2 { color: var(--parchment); margin-bottom: 2rem; }
.approach h2 em { color: var(--burgundy-soft); }
.approach-lead {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 300;
  line-height: 1.4;
  margin-bottom: 3rem;
  color: rgba(241,235,221,0.92);
  font-style: italic;
}
.approach-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}
.pillar h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--burgundy-soft);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(241,235,221,0.2);
}
.pillar h4::before {
  content: attr(data-num);
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 2rem;
  color: var(--parchment);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.pillar p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(241,235,221,0.85);
}
.testimonials { background: var(--parchment); padding: 6rem 0; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}
.testimonial {
  background: var(--cream);
  padding: 2.5rem;
  border-top: 2px solid var(--burgundy);
  position: relative;
}
.testimonial-quote {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 0.5;
  color: var(--burgundy);
  height: 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
}
.testimonial p {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--charcoal);
  margin-bottom: 2rem;
  font-style: italic;
}
.testimonial-author {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.testimonial-author span {
  display: block;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: none;
  margin-top: 0.25rem;
  font-size: 0.85rem;
}
.contact { background: var(--cream); padding: 7rem 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  margin-top: 4rem;
}
.contact-info h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 2rem;
  line-height: 1.15;
}
.info-block {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.info-block:last-child { border-bottom: none; }
.info-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--burgundy);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.info-value {
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.5;
}
.info-value a { color: inherit; transition: color var(--transition); }
.info-value a:hover { color: var(--burgundy); }
.contact-whatsapp-big {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--wa-green);
  color: var(--white);
  margin-top: 2rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
}
.contact-whatsapp-big::before {
  content: '';
  flex-shrink: 0;
  width: 32px; height: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}
.contact-whatsapp-big:hover { background: #1FB855; }
.contact-whatsapp-big .wa-number {
  display: block;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}
.contact-whatsapp-big .wa-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-top: 0.1rem;
}
.contact-form {
  background: var(--parchment);
  padding: 3rem;
  border-top: 2px solid var(--burgundy);
}
.form-row { margin-bottom: 1.5rem; }
.form-row label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 0.9rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  transition: var(--transition);
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-bottom-color: var(--burgundy);
}
.form-row textarea { resize: vertical; min-height: 100px; }
.form-privacy {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.form-privacy input { width: auto; margin-top: 0.25rem; }
.form-notice {
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  border-left: 3px solid;
}
.form-notice.success {
  background: rgba(37, 211, 102, 0.08);
  border-color: var(--wa-green);
  color: #1a6b3d;
}
.form-notice.error {
  background: rgba(107, 36, 36, 0.08);
  border-color: var(--burgundy);
  color: var(--burgundy);
}
footer {
  background: var(--ink);
  color: var(--parchment);
  padding: 5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}
footer .logo { color: var(--parchment); font-size: 1.5rem; margin-bottom: 1rem; display: block; }
.footer-tagline {
  color: rgba(241,235,221,0.6);
  max-width: 300px;
  line-height: 1.6;
  margin-bottom: 2rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--burgundy-soft);
  margin-bottom: 1.5rem;
}
.footer-col ul { list-style: none; }
.footer-col li { padding: 0.4rem 0; }
.footer-col a {
  color: rgba(241,235,221,0.75);
  font-size: 0.92rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--burgundy-soft); }
.footer-bottom {
  border-top: 1px solid rgba(241,235,221,0.15);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(241,235,221,0.5);
}
.footer-bottom a { color: rgba(241,235,221,0.7); }
.footer-bottom a:hover { color: var(--burgundy-soft); }
.wa-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 60px; height: 60px;
  background: var(--wa-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  z-index: 99;
  transition: var(--transition);
  cursor: pointer;
}
.wa-float::before {
  content: '';
  width: 32px; height: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}
.wa-float::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--wa-green);
  opacity: 0;
  animation: pulse 2.5s ease-out infinite;
}
.wa-float:hover {
  background: #1FB855;
  transform: scale(1.08);
}
.wa-float-tooltip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--ink);
  color: var(--parchment);
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.wa-float-tooltip::after {
  content: '';
  position: absolute;
  right: -6px; top: 50%;
  transform: translateY(-50%);
  border-left: 6px solid var(--ink);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.wa-float:hover .wa-float-tooltip { opacity: 1; }
@keyframes pulse {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.4); }
}
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 900ms cubic-bezier(0.2,0.8,0.2,1), transform 900ms cubic-bezier(0.2,0.8,0.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* Inner page base styles for future pages */
.page-wrap {
  padding: 10rem 0 6rem;
  min-height: 60vh;
}
.page-wrap h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 300;
  margin-bottom: 2rem;
}
.page-wrap .entry-content p { margin-bottom: 1.2rem; line-height: 1.75; }
.page-wrap .entry-content a { color: var(--burgundy); border-bottom: 1px solid var(--burgundy); }

@media (max-width: 1024px) {
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .practice-item:nth-child(3n) { border-right: 1px solid rgba(241,235,221,0.15); }
  .practice-item:nth-child(2n) { border-right: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-header { grid-template-columns: 1fr; gap: 1rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-image-wrap { max-width: 450px; margin: 0 auto; }
  .approach-pillars { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 640px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: block; }
  .nav-links.open {
    display: flex;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--ink);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    z-index: 100;
  }
  .nav-links.open a { color: var(--parchment); font-size: 1.3rem; font-family: var(--font-display); }
  .practice-grid { grid-template-columns: 1fr; }
  .practice-item { border-right: none !important; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .hero { padding: 7rem 0 3rem; }
  .scroll-indicator { display: none; }
  .contact-form { padding: 2rem; }
  .hero-cta-group { flex-direction: column; width: 100%; }
  .hero-cta-group .btn { width: 100%; justify-content: center; }
  .hero-tag-wrap { left: 0 !important; max-width: 85%; }
  .hero-tag { font-size: 0.9rem; padding: 0.75rem 1rem; max-width: 85%; }
  .hero-arrow { width: 38px; height: 38px; }
  .about-photo::before { top: 12px; left: 12px; right: -12px; bottom: -12px; }
  .wa-float { width: 54px; height: 54px; bottom: 16px; right: 16px; }
  .wa-float::before { width: 28px; height: 28px; }
  .practice-footnote { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.5rem; }
}


/* ====================================================================
   SAFETY NET — fallback if hero entry animations fail for any reason
   (browser quirks, plugin overrides, broken CSS minification).
   These elements MUST be visible even if their entry animation breaks.
   ==================================================================== */
.hero-image-wrap.no-anim,
.hero-eyebrow.no-anim,
.hero-sub.no-anim,
.hero-cta-group.no-anim,
.scroll-indicator.no-anim {
  opacity: 1 !important;
  transform: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .hero-image-wrap,
  .hero-eyebrow,
  .hero-sub,
  .hero-cta-group,
  .scroll-indicator,
  .hero h1 .line {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* ========================================================
   LIGHT MODE — overrides para mantener aspecto claro
   en hero, áreas de práctica, enfoque y footer.
   Pega este bloque al FINAL de style.css.
   Para revertir al diseño original, simplemente borra
   este bloque.
   ======================================================== */
 
/* ---- NAV: siempre con texto oscuro sobre fondo claro ---- */
.nav .logo,
.nav .nav-links a { color: var(--ink); }
.nav .logo small { color: var(--muted); }
.nav .hamburger span { background: var(--ink); }
.nav-links.open { background: var(--parchment); }
.nav-links.open a { color: var(--ink) !important; }
 
/* ---- HERO ---- */
.hero {
  background: var(--parchment);
  color: var(--ink);
}
.hero::before {
  background-image:
    radial-gradient(circle at 15% 40%, rgba(107, 36, 36, 0.07), transparent 55%),
    radial-gradient(circle at 85% 70%, rgba(107, 36, 36, 0.04), transparent 50%);
}
.hero::after { opacity: 0; } /* el grano de ruido se ve raro sobre claro */
 
.hero-eyebrow { color: var(--burgundy); }
.hero-eyebrow::before { background: var(--burgundy); }
.hero h1 em { color: var(--burgundy); }
.hero-sub { color: var(--charcoal); }
 
.hero .btn-outline {
  background: transparent;
  border: 1px solid rgba(13, 13, 13, 0.35);
  color: var(--ink);
}
.hero .btn-outline:hover {
  background: var(--ink);
  color: var(--parchment);
  border-color: var(--ink);
}
 
.scroll-indicator { color: rgba(13, 13, 13, 0.5); }
.scroll-indicator::after { background: rgba(13, 13, 13, 0.4); }
 
/* Carrusel: ajustes para que indicadores y flechas se vean bien sobre fotos */
.hero-carousel { background: var(--bone); }
.hero-indicators button { background: rgba(13, 13, 13, 0.25); }
.hero-indicators button.active { background: rgba(13, 13, 13, 0.15); }
.hero-indicators button.active::after { background: var(--ink); }
.hero-indicators button:hover { background: rgba(13, 13, 13, 0.5); }
.hero-arrow {
  background: rgba(241, 235, 221, 0.85);
  border-color: rgba(13, 13, 13, 0.15);
  color: var(--ink);
}
.hero-arrow:hover { background: var(--burgundy); color: var(--parchment); border-color: var(--burgundy); }
 
/* ---- ÁREAS DE PRÁCTICA ---- */
.practice {
  background: var(--cream);
  color: var(--ink);
}
.practice .eyebrow { color: var(--burgundy); }
.practice h2 { color: var(--ink); }
.practice h2 em { color: var(--burgundy); }
.practice .section-number { color: var(--muted); }
 
.practice-grid { border-top: 1px solid var(--line); }
.practice-item {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.practice-item h3 { color: var(--ink); }
.practice-item p { color: var(--charcoal); }
.practice-num { color: var(--burgundy); }
.practice-item-arrow { color: var(--burgundy); }
 
/* Hover sigue invirtiendo a burgundy con texto claro — funciona perfecto */
 
.practice-footnote {
  border: 1px solid var(--line);
  background: var(--parchment);
  color: var(--charcoal);
}
 
@media (max-width: 1024px) {
  .practice-item:nth-child(3n) { border-right: 1px solid var(--line); }
}
 
/* ---- ENFOQUE (parallax con foto) ---- */
.approach { color: var(--ink); }
.approach-bg img {
  filter: brightness(1.15) contrast(0.85) sepia(0.25);
  opacity: 0.85;
}
.approach-bg::after {
  background: linear-gradient(135deg, rgba(241, 235, 221, 0.88), rgba(232, 223, 201, 0.72));
}
.approach .eyebrow { color: var(--burgundy) !important; }
.approach h2 { color: var(--ink); }
.approach h2 em { color: var(--burgundy) !important; }
.approach .section-number { color: var(--muted) !important; }
.approach-lead { color: var(--charcoal); }
 
.pillar h4 {
  color: var(--burgundy) !important;
  border-bottom: 1px solid var(--line);
}
.pillar h4::before { color: var(--ink); }
.pillar p { color: var(--charcoal); }
 
/* ---- FOOTER ---- */
footer {
  background: var(--parchment);
  color: var(--ink);
  border-top: 1px solid var(--line);
}
footer .logo { color: var(--ink); }
.footer-tagline { color: var(--muted); }
.footer-col h4 { color: var(--burgundy); }
.footer-col a { color: var(--charcoal); }
.footer-col a:hover { color: var(--burgundy); }
.footer-bottom {
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer-bottom a { color: var(--charcoal); }
.footer-bottom a:hover { color: var(--burgundy); }

/* ========================================================
   FIX: Carrusel en móvil/tablet
   Pega este bloque al FINAL de style.css (después del
   light-mode-overrides si lo agregaste).
   ======================================================== */
 
@media (max-width: 1024px) {
  /* Layout en una columna, alineado al inicio (no al centro vertical) */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
  }
 
  /* Wrap del carrusel: visibilidad forzada y dimensiones definidas.
     - opacity/transform/animation se anulan por si la animación de entrada
       falla en algún navegador móvil (in-app browsers de IG/WA/FB, Android
       viejos), dejando el contenido invisible. */
  .hero-image-wrap {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
 
  /* Carrusel: altura asegurada por DOS vías
     - aspect-ratio para navegadores modernos
     - min-height como red de seguridad si aspect-ratio falla */
  .hero-carousel {
    width: 100%;
    aspect-ratio: 4 / 5;
    min-height: 480px;
  }
}
 
@media (max-width: 640px) {
  /* Móvil pequeño: ajustar ancho máximo y alto mínimo proporcional */
  .hero-image-wrap { max-width: 360px; }
  .hero-carousel { min-height: 420px; }
 
  /* Asegurar que el tag burgundy quede dentro del carrusel y legible */
  .hero-tag-wrap {
    left: 0 !important;
    right: 0;
    bottom: 20px;
    max-width: 90%;
    margin: 0 auto;
  }
  .hero-tag {
    max-width: 90%;
    font-size: 0.88rem;
    padding: 0.7rem 1rem;
  }
}

/* ========================================================
   ROUNDED CORNERS — bordes redondeados sutiles para botones
   y CTAs. Mantiene el aspecto editorial pero más moderno.
   Pega este bloque al FINAL de style.css.
   ======================================================== */

:root {
  --radius-btn: 6px;     /* botones estándar */
  --radius-card: 8px;    /* cajas/cards más grandes */
}

/* Todos los botones estándar */
.btn {
  border-radius: var(--radius-btn);
}

/* CTA del nav (WhatsApp arriba) */
.nav-cta {
  border-radius: var(--radius-btn);
}

/* Caja verde grande "Escríbeme ahora +56..." */
.contact-whatsapp-big {
  border-radius: var(--radius-card);
}

/* Indicadores del carrusel — más sutil */
.hero-indicators button {
  border-radius: 2px;
}

/* Flechas del carrusel */
.hero-arrow {
  border-radius: var(--radius-btn);
}

/* Notificaciones de éxito/error del formulario */
.form-notice {
  border-radius: 4px;
}

.testimonial,
.practice-item,
.contact-form,
.about-stats,
.practice-footnote {
  border-radius: var(--radius-card);
}

/* El botón flotante de WhatsApp ya es 50% (circular), no se modifica.
   Si quisieras también redondear las cards "practice-item", "testimonial",
   "amelia-placeholder" o el ::before decorativo, agrégalo aquí. */
   
   
