/* =========================================
   Angela Perrone · P.N.L. Holístico
   Stylesheet — refined edition v2
   ========================================= */

:root {
  --bg: #fbf8f3;
  --bg-2: #f5efe5;
  --bg-3: #ffffff;
  --bg-warm: #fdf6ec;
  --ink: #2a241c;
  --ink-soft: #6b6256;
  --ink-mute: #968b7d;
  --accent: #b5651d;
  --accent-deep: #8b4a14;
  --accent-soft: #f0d5bd;
  --accent-glow: #fbe9d8;
  --accent-pale: #fff5ea;
  --line: #ece2d0;
  --line-soft: #f5ede0;
  --gold: #c89858;
  --shadow-xs: 0 1px 3px rgba(42, 36, 28, 0.04);
  --shadow-sm: 0 4px 16px -4px rgba(42, 36, 28, 0.08);
  --shadow-md: 0 12px 32px -12px rgba(42, 36, 28, 0.12);
  --shadow-lg: 0 30px 60px -25px rgba(42, 36, 28, 0.2);
  --shadow-glow: 0 20px 50px -15px rgba(181, 101, 29, 0.25);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Manrope', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--accent-soft); color: var(--accent-deep); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 6.5vw, 5.4rem); }
h2 { font-size: clamp(1.9rem, 4.5vw, 3.4rem); line-height: 1.1; }
h3 { font-size: 1.4rem; line-height: 1.2; }
h4 { font-size: 1.05rem; line-height: 1.3; margin-bottom: 0.4rem; color: var(--ink); }
p { color: var(--ink-soft); font-size: 1.05rem; }
a { color: inherit; text-decoration: none; }

/* ============ NAV ============ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(251, 248, 243, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}
nav.scrolled {
  border-bottom-color: var(--line);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.logo {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.logo span { color: var(--accent); font-style: italic; }
.nav-links { display: flex; gap: 2.2rem; font-size: 0.92rem; color: var(--ink-soft); }
.nav-links a { transition: color 0.2s; position: relative; }
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  background: var(--ink);
  color: var(--bg);
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.3s;
}
.nav-cta:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 8px 16px -6px rgba(181, 101, 29, 0.4);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.3s;
  border-radius: 2px;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.mobile-menu.active { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: 'Fraunces', serif;
  font-size: 1.7rem;
  color: var(--ink);
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu .mobile-cta {
  margin-top: 1rem;
  background: var(--accent);
  color: var(--bg);
  padding: 1rem 2rem;
  border-radius: 999px;
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
}

@media (max-width: 800px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  nav { padding: 0.9rem 1.3rem; }
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  padding: 8rem 2.5rem 5rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.hero-decor {
  position: absolute;
  top: -20%;
  right: -20%;
  width: 70%;
  height: 100%;
  background:
    radial-gradient(circle at 60% 40%, var(--accent-glow) 0%, transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(240, 213, 189, 0.4) 0%, transparent 50%);
  z-index: 0;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.hero-text { position: relative; z-index: 2; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-deep);
  font-weight: 500;
  margin-bottom: 1.8rem;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent-deep);
}
.hero h1 .accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}
.hero h1 .underline { position: relative; display: inline-block; }
.hero h1 .underline::after {
  content: '';
  position: absolute;
  bottom: 0.05em;
  left: -2%;
  right: -2%;
  height: 14px;
  background: var(--accent-soft);
  opacity: 0.55;
  z-index: -1;
  border-radius: 4px;
}
.hero-sub {
  font-size: 1.1rem;
  margin: 2rem 0 2.5rem;
  max-width: 500px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }
.cta-row { display: flex; gap: 1.2rem; flex-wrap: wrap; align-items: center; }
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  padding: 1.05rem 2rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: var(--shadow-glow);
  font-family: inherit;
}
.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -8px rgba(181, 101, 29, 0.45);
}
.btn-secondary {
  color: var(--ink);
  padding: 1.05rem 0;
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--ink);
  transition: all 0.3s;
}
.btn-secondary:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.arrow { transition: transform 0.3s; display: inline-block; }
.btn-primary:hover .arrow { transform: translateX(4px); }

/* Hero visual */
.hero-visual { position: relative; z-index: 1; }
.hero-img {
  aspect-ratio: 4/5;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--gold) 100%);
  box-shadow: var(--shadow-lg);
}
.hero-img::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 40px rgba(255, 248, 235, 0.2);
  pointer-events: none;
}
.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.02) saturate(0.96);
}
.hero-stat {
  position: absolute;
  bottom: -2.5rem;
  left: -2.5rem;
  background: var(--bg-3);
  padding: 1.6rem 1.8rem;
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
  z-index: 3;
  max-width: 290px;
  border: 1px solid var(--line-soft);
}
.hero-stat .quote-mark {
  font-family: 'Fraunces', serif;
  font-size: 3.5rem;
  color: var(--accent-soft);
  line-height: 0.6;
  display: block;
  margin-bottom: -0.5rem;
}
.hero-stat strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.4;
  font-style: italic;
  margin-bottom: 0.6rem;
}
.hero-stat span {
  font-size: 0.78rem;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
}

/* ============ TRUST BAR ============ */
.trust {
  padding: 2.2rem 0;
  background: var(--ink);
  color: var(--bg);
  overflow: hidden;
}
.trust-track {
  display: flex;
  gap: 4rem;
  align-items: center;
  animation: scroll 50s linear infinite;
  width: max-content;
}
.trust-item {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-style: italic;
  opacity: 0.75;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4rem;
  letter-spacing: 0.01em;
}
.trust-item::after {
  content: '✦';
  color: var(--accent-soft);
  font-style: normal;
  opacity: 0.7;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ SECTIONS ============ */
section {
  padding: 7rem 2.5rem;
  position: relative;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}
.section-eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-deep);
  font-weight: 500;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.section-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent-deep);
}
.section-eyebrow.center { justify-content: center; }
.section-eyebrow.light { color: var(--accent-soft); }
.section-eyebrow.light::before { background: var(--accent-soft); }

/* ============ WHAT (P.N.L. Holístico) ============ */
.what { background: var(--bg-2); }
.what-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: start;
}
.what h2 em { color: var(--accent); font-style: italic; }
.what > .container > .what-grid > div:first-child > p {
  margin-top: 1.5rem;
}
.what-quote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.4;
  color: var(--ink);
  border-left: 2px solid var(--accent);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0 1rem;
}
.what-quote-author {
  font-size: 0.85rem;
  color: var(--ink-mute);
  font-style: normal;
  margin-top: 0.6rem;
  letter-spacing: 0.03em;
}
.what-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.what-item {
  display: flex;
  gap: 1.2rem;
  align-items: start;
  padding: 1.6rem 1.8rem;
  background: var(--bg-3);
  border-radius: 10px;
  border-left: 3px solid var(--accent);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: var(--shadow-xs);
}
.what-item:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}
.what-num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1;
  min-width: 32px;
  margin-top: 0.2rem;
}
.what-item p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.55; }

/* ============ APLICACIONES ============ */
.apps-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}
.apps-intro h2 em { color: var(--accent); font-style: italic; }
.apps-intro p { margin-top: 1.5rem; font-size: 1.1rem; }
.apps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.app-card {
  padding: 3rem 2.5rem;
  background: var(--bg-3);
  border-radius: 12px;
  border: 1px solid var(--line);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.app-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.app-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-soft);
}
.app-card:hover::before { transform: scaleX(1); }
.app-tag {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--gold);
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}
.app-card h3 { margin-bottom: 1.2rem; }
.app-card ul { list-style: none; }
.app-card li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.95rem;
  color: var(--ink-soft);
  display: flex;
  gap: 0.7rem;
  align-items: center;
}
.app-card li::before {
  content: '→';
  color: var(--accent);
  font-weight: 500;
}
.app-card li:last-child { border-bottom: none; }

/* ============ SERVICIOS ============ */
.services {
  background: var(--ink);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}
.services::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -10%;
  width: 50%;
  height: 80%;
  background: radial-gradient(circle, rgba(181, 101, 29, 0.15), transparent 60%);
  pointer-events: none;
}
.services h2 { color: var(--bg); }
.services h2 em { color: var(--accent-soft); font-style: italic; }
.services p { color: rgba(251, 248, 243, 0.7); }
.services-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 4rem;
  gap: 3rem;
  position: relative;
  z-index: 1;
}
.services-header p { max-width: 420px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}
.service {
  padding: 2.2rem;
  background: rgba(251, 248, 243, 0.04);
  border: 1px solid rgba(251, 248, 243, 0.08);
  border-radius: 12px;
  transition: all 0.4s;
  backdrop-filter: blur(10px);
}
.service:hover {
  background: rgba(251, 248, 243, 0.07);
  transform: translateY(-4px);
  border-color: var(--accent-soft);
}
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(240, 213, 189, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  color: var(--accent-soft);
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.3rem;
  border: 1px solid rgba(240, 213, 189, 0.2);
}
.service h3 {
  margin-bottom: 0.8rem;
  color: var(--bg);
  font-size: 1.18rem;
}
.service p { font-size: 0.92rem; line-height: 1.55; }

/* ============ CURSOS ============ */
.courses-section { background: var(--bg); }
.courses-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}
.courses-header h2 em { color: var(--accent); font-style: italic; }
.courses-header p { margin-top: 1.2rem; }
.courses-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.course {
  background: var(--bg-3);
  padding: 2.2rem 2.5rem;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 2rem;
  align-items: center;
  transition: background 0.3s;
}
.course:hover { background: var(--bg-warm); }
.course-num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.7rem;
  color: var(--accent);
}
.course-info h3 { margin-bottom: 0.4rem; font-size: 1.18rem; }
.course-info p { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.5; }
.course-meta {
  font-size: 0.82rem;
  color: var(--ink-mute);
  text-align: right;
  line-height: 1.5;
}
.course-meta strong {
  display: block;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.1rem;
}

/* ============ LIBRO — REDISEÑADA ============ */
.book {
  background: linear-gradient(135deg, var(--accent-glow) 0%, var(--bg-warm) 50%, var(--bg-2) 100%);
  position: relative;
  overflow: hidden;
}
.book::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(181, 101, 29, 0.18), transparent 60%);
  pointer-events: none;
}
.book::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(200, 152, 88, 0.15), transparent 60%);
  pointer-events: none;
}
.book-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.book-text h2 { margin-bottom: 1.2rem; }
.book-text h2 em { color: var(--accent-deep); font-style: italic; }
.book-lead { font-size: 1.1rem; color: var(--ink); margin-top: 1.2rem; }
.book-text > p:not(.book-lead) { margin-top: 1rem; }
.book-text em { color: var(--accent-deep); font-style: italic; font-weight: 500; }
.book-meta {
  display: flex;
  gap: 2rem;
  margin-top: 2.2rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(42, 36, 28, 0.12);
  flex-wrap: wrap;
}
.book-meta-item strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.2rem;
}
.book-meta-item span {
  font-size: 0.78rem;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
}
.book-cta { margin-top: 2rem; }

/* Book visual — real cover image */
.book-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  perspective: 1200px;
}
.book-cover-real {
  position: relative;
  width: 100%;
  max-width: 340px;
  transform: rotate(-2.5deg);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  filter: drop-shadow(0 30px 50px rgba(42, 36, 28, 0.3));
}
.book-cover-real:hover {
  transform: rotate(-1deg) scale(1.03) translateY(-4px);
}
.book-cover-real img {
  width: 100%;
  height: auto;
  border-radius: 3px 6px 6px 3px;
  display: block;
}
/* Spine effect: subtle dark gradient on left */
.book-cover-real::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 14px;
  background: linear-gradient(90deg,
    rgba(0, 0, 0, 0.18) 0%,
    rgba(0, 0, 0, 0.05) 60%,
    transparent 100%);
  border-radius: 3px 0 0 3px;
  z-index: 2;
  pointer-events: none;
}
/* Subtle page edges hint on right */
.book-cover-real::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(225, 215, 195, 0.6) 100%);
  border-radius: 0 3px 3px 0;
  z-index: 1;
}

/* ============ ABOUT ============ */
.about { background: var(--bg); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: center;
}
.about-photo {
  aspect-ratio: 4/5;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--accent-soft), var(--gold));
  box-shadow: var(--shadow-lg);
}
.about-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 40px rgba(255, 248, 235, 0.15);
  pointer-events: none;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.02);
}
.about h2 em { color: var(--accent); font-style: italic; }
.about > .container > .about-grid > div:last-child > p { margin-top: 1.2rem; }
.about-creds {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.cred strong {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  color: var(--accent-deep);
  line-height: 1.2;
  font-style: italic;
  margin-bottom: 0.3rem;
}
.cred span {
  font-size: 0.82rem;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}

/* ============ CONTACTO ============ */
.contact {
  background: var(--ink);
  color: var(--bg);
  padding: 7rem 2.5rem;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -15%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(181, 101, 29, 0.15), transparent 60%);
  pointer-events: none;
}
.contact h2 { color: var(--bg); margin-bottom: 1.5rem; }
.contact h2 em { color: var(--accent-soft); font-style: italic; }
.contact .reveal > p { color: rgba(251, 248, 243, 0.75); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.contact-info { padding-top: 1.5rem; }
.contact-method {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(251, 248, 243, 0.1);
  transition: padding-left 0.3s;
}
.contact-method:hover { padding-left: 0.5rem; }
.contact-method:last-child { border-bottom: none; }
.contact-method-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(240, 213, 189, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-soft);
  font-size: 1.05rem;
  border: 1px solid rgba(240, 213, 189, 0.15);
  transition: all 0.3s;
}
.contact-method:hover .contact-method-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.contact-method-label {
  font-size: 0.72rem;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.15rem;
}
.contact-method-value {
  color: var(--bg);
  font-size: 1rem;
  font-family: 'Fraunces', serif;
  font-style: italic;
  transition: color 0.3s;
}
.contact-method:hover .contact-method-value { color: var(--accent-soft); }

.contact-form {
  background: rgba(251, 248, 243, 0.04);
  padding: 2.5rem;
  border-radius: 14px;
  border: 1px solid rgba(251, 248, 243, 0.08);
  backdrop-filter: blur(10px);
}
.contact-form label {
  display: block;
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bg);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.95rem 1.1rem;
  background: rgba(251, 248, 243, 0.06);
  border: 1px solid rgba(251, 248, 243, 0.12);
  border-radius: 8px;
  color: var(--bg);
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  transition: all 0.3s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(251, 248, 243, 0.35); }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-soft);
  background: rgba(251, 248, 243, 0.08);
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form button {
  width: 100%;
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 1.05rem;
  border-radius: 999px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  font-size: 0.95rem;
}
.contact-form button:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

/* ============ FOOTER ============ */
footer {
  padding: 3rem 2.5rem 2rem;
  background: #1a1612;
  color: rgba(251, 248, 243, 0.5);
  border-top: 1px solid rgba(251, 248, 243, 0.06);
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
}
.footer-grid a { color: inherit; transition: color 0.3s; }
.footer-grid a:hover { color: var(--accent-soft); }
.footer-social { display: flex; gap: 1.8rem; flex-wrap: wrap; }

/* ============ FLOATING CONTACT ============ */
.contact-float {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  background: var(--accent);
  color: var(--bg);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -8px rgba(181, 101, 29, 0.5);
  z-index: 99;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  animation: pulse 2.5s infinite;
}
.contact-float:hover {
  transform: scale(1.1);
  background: var(--accent-deep);
}
@keyframes pulse {
  0%, 100% {
    box-shadow:
      0 12px 28px -8px rgba(181, 101, 29, 0.5),
      0 0 0 0 rgba(181, 101, 29, 0.4);
  }
  50% {
    box-shadow:
      0 12px 28px -8px rgba(181, 101, 29, 0.5),
      0 0 0 14px rgba(181, 101, 29, 0);
  }
}

/* ============ REVEAL ANIMATION ============ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* =============================================
   RESPONSIVE — Tablets & Mobile
   ============================================= */

@media (max-width: 1000px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .what-grid, .about-grid { gap: 3.5rem; }
  .book-grid { gap: 4rem; }
}

@media (max-width: 800px) {
  section { padding: 5rem 1.3rem; }

  /* Hero */
  .hero {
    grid-template-columns: 1fr;
    padding: 6rem 1.3rem 4rem;
    gap: 3rem;
    min-height: auto;
  }
  .hero-visual {
    max-width: 360px;
    margin: 0 auto;
    width: 100%;
  }
  .hero-stat {
    left: 1rem;
    right: 1rem;
    bottom: -1.5rem;
    max-width: none;
    padding: 1.3rem 1.5rem;
  }
  .hero-sub { font-size: 1.05rem; margin: 1.5rem 0 2rem; }
  .cta-row { gap: 1rem; }
  .btn-primary { padding: 1rem 1.6rem; font-size: 0.92rem; }

  /* Sections that should stack */
  .what-grid,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .apps-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .services-grid { grid-template-columns: 1fr; }
  .services-header { flex-direction: column; align-items: start; }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  /* What */
  .what-quote { font-size: 1.15rem; padding-left: 1.2rem; }
  .what-item { padding: 1.3rem 1.4rem; }

  /* Apps */
  .app-card { padding: 2rem 1.6rem; }

  /* Services */
  .service { padding: 1.8rem; }

  /* Cursos */
  .course {
    grid-template-columns: 40px 1fr;
    padding: 1.5rem 1.3rem;
    gap: 1rem;
    row-gap: 0.5rem;
  }
  .course-num { font-size: 1.4rem; }
  .course-info h3 { font-size: 1.1rem; }
  .course-meta {
    grid-column: 1 / -1;
    text-align: left;
    margin-top: 0.3rem;
    padding-top: 0.6rem;
    border-top: 1px dashed var(--line);
    font-size: 0.78rem;
  }
  .course-meta strong { font-size: 0.85rem; display: inline; }
  .course-meta strong::after { content: ' · '; }
  .course-meta span { display: inline; }

  /* LIBRO — fixed mobile */
  .book {
    padding: 5rem 1.3rem;
  }
  .book-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: left;
  }
  .book-visual {
    order: -1;
    margin-bottom: 0.5rem;
  }
  .book-cover-real {
    max-width: 240px;
    transform: rotate(-1.5deg);
  }
  .book-meta {
    gap: 1.5rem;
    margin-top: 1.8rem;
    padding-top: 1.5rem;
  }
  .book-meta-item strong { font-size: 0.95rem; }
  .book-meta-item span { font-size: 0.72rem; }
  .book-lead { font-size: 1rem; }
  .book-cta .btn-primary { width: 100%; justify-content: center; }

  /* About */
  .about-photo { max-width: 360px; margin: 0 auto; width: 100%; }
  .about-creds { gap: 1rem; }
  .cred strong { font-size: 0.95rem; }

  /* Contact */
  .contact { padding: 5rem 1.3rem; }
  .contact-form { padding: 1.8rem; }
  .contact-method { padding: 1rem 0; }
  .contact-method-value { font-size: 0.92rem; word-break: break-all; }

  /* Footer */
  .footer-grid {
    flex-direction: column;
    text-align: center;
    gap: 1.2rem;
  }
  .footer-social { justify-content: center; }

  /* Floating button — smaller on mobile */
  .contact-float {
    width: 50px;
    height: 50px;
    bottom: 1.3rem;
    right: 1.3rem;
  }
  .contact-float svg { width: 22px; height: 22px; }

  /* Trust scroll faster on mobile */
  .trust-track { animation-duration: 35s; }
  .trust-item { font-size: 1.1rem; gap: 3rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.85rem; }
  .hero { padding: 5.5rem 1.1rem 3.5rem; }
  section { padding: 4rem 1.1rem; }
  .hero-stat { padding: 1.1rem 1.2rem; }
  .hero-stat strong { font-size: 0.92rem; }
  .book-cover-real { max-width: 200px; }
  .what-item { gap: 0.8rem; padding: 1.1rem 1.2rem; }
  .what-num { font-size: 1.2rem; min-width: 26px; }
  h4 { font-size: 1rem; }
}
