/* Paleta editorial: azul marino profundo, marfil y gris piedra. */
/* ==========================================================
   PLANTILLA WEB - PSICOLOGÍA Y DESARROLLO HUMANO
   ========================================================== */
:root {
  --navy: #172638;
  --navy-dark: #101c2a;
  --navy-header: #1b2a3c;
  --ink: #26313d;
  --muted: #666b70;
  --ivory: #f3efe6;
  --paper: #fbf9f4;
  --stone-light: #e7e4de;
  --line: #d5d2cc;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --radius: 16px;
  --shadow: 0 14px 35px rgba(27, 53, 48, .09);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.container { width: min(1160px, calc(100% - 44px)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 1rem; z-index: 1000; background: white; padding: .75rem 1rem; }
.skip-link:focus { left: 1rem; }

/* HEADER EN AZUL MARINO TÉRMINO MEDIO */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--navy-header); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,.12); color: #ffffff; }
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; color: #ffffff; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; border: 1.5px solid #ffffff; color: #ffffff; border-radius: 50%; font-family: var(--serif); font-size: 1.8rem; }
.brand-text { display: grid; line-height: 1.25; }
.brand-text strong { font: 600 1.25rem var(--serif); color: #ffffff; }
.brand-text small { font-size: .7rem; color: #c5ceda; }
.main-nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); font-size: .83rem; color: #f3efe6; }
.main-nav > a:not(.nav-cta) { position: relative; padding-block: 8px; color: #f3efe6; }
.main-nav > a:not(.nav-cta)::after { content: ""; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: #ffffff; transition: width .2s; }
.main-nav > a:hover::after, .main-nav > a:focus-visible::after { width: 100%; }
.nav-cta { padding: 10px 17px; border-radius: 999px; background: #ffffff; color: var(--navy-dark); font-weight: 700; transition: transform .2s, background .2s; }
.nav-cta:hover { background: #e7e4de; color: var(--navy-dark); transform: translateY(-1px); }
.button-primary:hover { background: var(--navy-dark); transform: translateY(-1px); }
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 25px; height: 2px; background: #ffffff; margin: 5px; transition: .2s; }

/* HERO SECTION - FONDO AZUL MARINO TRANSPARENTE / AZULINO (SIN OPACIDAD BEIGE) */
.hero { position: relative; min-height: 520px; display: flex; align-items: center; overflow: hidden; background: #0f1926; color: #ffffff; }
.hero-photo { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15, 25, 38, 0.72), rgba(27, 44, 66, 0.55)), url("https://images.unsplash.com/photo-1573496799652-408c2ac9fe98?auto=format&fit=crop&w=2000&q=90") center 30%/cover no-repeat; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,25,38,0.65) 0%, rgba(15,25,38,0.30) 60%, rgba(15,25,38,0.10) 100%); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 250px; align-items: center; gap: 3rem; padding-block: 62px; }
.hero-copy { max-width: 680px; }
.hero-copy h1 { color: #ffffff; }
.hero-lead { max-width: 570px; margin-bottom: 24px; font-size: 1.05rem; color: #e1e7ed; }
.eyebrow { margin: 0 0 10px; color: #b4c6db; text-transform: uppercase; letter-spacing: .2em; font-size: .7rem; font-weight: 700; }
.eyebrow span { padding-inline: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.025em; line-height: 1.13; }
h1 { max-width: 690px; margin-bottom: 18px; font-size: clamp(2.5rem, 4.5vw, 4.25rem); }
h2 { margin-bottom: 14px; font-size: clamp(1.8rem, 3vw, 2.65rem); }
h3 { line-height: 1.3; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 44px; display: inline-flex; justify-content: center; align-items: center; gap: 9px; padding: 11px 22px; border: 1px solid transparent; border-radius: 999px; font-size: .85rem; font-weight: 700; text-align: center; transition: .2s ease; cursor: pointer; }
.button-primary { color: white; background: var(--navy-header); border: 1px solid rgba(255,255,255,0.2); }
.button-primary:hover { background: #0e1724; }
.button-outline { border-color: rgba(255,255,255,0.6); color: #ffffff; background: rgba(255,255,255,0.12); backdrop-filter: blur(4px); }
.button-outline:hover { background: #ffffff; color: var(--navy-dark); border-color: #ffffff; }
.featured-book { width: 100%; padding: 20px; border: 1px solid rgba(255,255,255,.2); border-radius: 20px; background: rgba(255,253,250,.94); color: var(--ink); box-shadow: var(--shadow); }
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--stone-light); color: var(--navy-dark); font-size: .68rem; font-weight: 700; }
.featured-book img { width: 112px; height: 125px; object-fit: cover; margin: 12px auto 15px; border-radius: 4px; box-shadow: 7px 9px 14px #152d2d25; }
.featured-book h2 { font: 600 1.12rem/1.28 var(--serif); margin-bottom: 8px; color: var(--ink); }
.featured-book p { color: var(--muted); font-size: .8rem; line-height: 1.5; margin-bottom: 12px; }
.text-link { display: inline-flex; align-items: center; color: var(--navy-dark); font-weight: 700; font-size: .8rem; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.section { padding: 76px 0; }
.services-section { background: var(--ivory); }
.section-heading { margin-bottom: 28px; }
.split-heading { display: grid; grid-template-columns: 1fr .9fr; gap: 3rem; align-items: end; }
.split-heading h2 { margin-bottom: 0; }
.section-intro { max-width: 440px; margin: 0 0 5px; padding-left: 24px; border-left: 1px solid #b9b6af; color: var(--muted); font-size: .92rem; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-card { min-height: 245px; display: flex; flex-direction: column; align-items: flex-start; padding: 24px; border: 1px solid rgba(255,255,255,.8); border-radius: var(--radius); background: rgba(255,255,255,.82); transition: transform .2s, box-shadow .2s; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.icon-circle { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 17px; border-radius: 50%; font-size: 1.5rem; color: #26384c; }
.peach { background: #ded9d0; } .sage { background: #d2d0ca; } .lilac { background: #d9d8d4; } .mint { background: #c7c9c8; }
.service-card h3 { margin-bottom: 9px; font: 600 1.18rem var(--serif); }
.service-card p { margin-bottom: 18px; color: var(--muted); font-size: .84rem; }
.service-card .text-link { margin-top: auto; }
.books-section { background: linear-gradient(110deg, #e5e2dc, #f3efe6); }
.books-layout { display: grid; grid-template-columns: .82fr 2fr; gap: 36px; align-items: center; }
.books-intro > p:not(.eyebrow) { max-width: 300px; color: #626970; font-size: .9rem; }
.books-intro .button { margin-top: 8px; }
.book-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.book-card { min-width: 0; padding: 16px; border-radius: 13px; background: rgba(255,255,255,.88); box-shadow: 0 4px 18px rgba(23,38,56,.05); }
.book-cover { min-height: 180px; max-width: 150px; margin: 0 auto 16px; padding: 17px 11px 12px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; color: #172638; box-shadow: 5px 8px 12px #263d3628; transform: rotate(-1deg); }
.cover-green { background: linear-gradient(145deg, #e8e5de, #b9b8b3); }
.cover-blue { color: #172638; background: linear-gradient(145deg, #d7dce0, #8998a8); }
.cover-terracotta { color: #343943; background: linear-gradient(145deg, #e7e0d4, #aaa39a); }
.cover-kicker { font-size: .48rem; letter-spacing: .06em; text-transform: uppercase; }
.book-cover strong { font: 600 1.15rem/1.1 var(--serif); }
.cover-art { font-size: 2.5rem; line-height: 1; opacity: .8; }
.book-cover small { font-size: .5rem; }
.book-info h3 { margin-bottom: 7px; font: 600 1rem/1.25 var(--serif); }
.book-info p { min-height: 46px; margin-bottom: 8px; color: var(--muted); font-size: .76rem; }
.book-price { display: block; margin-bottom: 10px; font-size: .8rem; font-weight: 700; }
.button-small { width: 100%; min-height: 36px; padding: 8px 10px; font-size: .72rem; }
.about-section { background: #fffdfa; }
.about-layout { display: grid; grid-template-columns: 1fr 1.25fr .9fr; gap: 32px; align-items: center; }
.about-photo { width: 100%; height: 315px; object-fit: cover; object-position: center 30%; border-radius: 8px; }
.about-copy p:not(.eyebrow) { color: var(--muted); font-size: .88rem; }
.about-copy .button { margin-top: 5px; }
.credentials { list-style: none; margin: 0; padding: 0 0 0 24px; border-left: 1px solid var(--line); }
.credentials li { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0; font-size: .78rem; }
.credentials li span { width: 24px; color: var(--navy); font-size: 1.1rem; text-align: center; }
.testimonials-section { background: #eeebe4; padding-block: 65px; }
.testimonials-section .section-heading { margin-bottom: 22px; }
.testimonials-section .section-heading h2 { margin-bottom: 0; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.testimonial-card { position: relative; margin: 0; padding: 24px 22px 18px; border-radius: 13px; background: #fffdfa; }
.quote-mark { position: absolute; top: 8px; left: 18px; color: var(--navy); font: 700 3rem var(--serif); line-height: 1; }
.testimonial-card blockquote { min-height: 68px; margin: 16px 0 17px; padding-left: 28px; color: #48515c; font-size: .82rem; }
.testimonial-card figcaption { display: flex; align-items: center; gap: 10px; }
.testimonial-card figcaption strong, .testimonial-card figcaption small { display: block; }
.testimonial-card figcaption strong { font: 600 .85rem var(--serif); }
.testimonial-card figcaption small { color: var(--muted); font-size: .7rem; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; flex-shrink: 0; border-radius: 50%; color: white; font-size: .7rem; font-weight: 700; }
.avatar-one { background: #a66e53; } .avatar-two { background: #697687; } .avatar-three { background: #777b86; }
.demo-note { margin: 15px 0 0; color: #77736d; font-size: .72rem; }
.blog-section { padding-block: 70px; }
.blog-layout { display: grid; grid-template-columns: .8fr 2fr; gap: 35px; align-items: center; }
.blog-intro > p:not(.eyebrow) { color: var(--muted); font-size: .85rem; }
.blog-intro .button { margin-top: 4px; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.article-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: white; }
.article-card img { width: 100%; height: 112px; object-fit: cover; }
.article-content { position: relative; padding: 13px; }
.article-tag { display: inline-block; margin-bottom: 7px; padding: 3px 7px; border-radius: 5px; background: var(--stone-light); color: var(--navy-dark); font-size: .58rem; font-weight: 700; }
.article-content h3 { min-height: 52px; margin-bottom: 9px; font: 600 1rem/1.25 var(--serif); }
.article-content small { color: var(--muted); font-size: .67rem; }
.article-hit { position: absolute; inset: 0; }
.contact-section { position: relative; overflow: hidden; padding: 55px 0; color: white; background: #172638; }
.contact-section::before { content: ""; position: absolute; inset: 0; background: url("https://images.unsplash.com/photo-1470770841072-f978cf4d019e?auto=format&fit=crop&w=1800&q=80") center 55%/cover; opacity: .18; }
.contact-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,28,42,.96), rgba(16,28,42,.86)); }
.contact-layout { position: relative; display: grid; grid-template-columns: 1fr 1fr .7fr; gap: 35px; align-items: center; }
.contact-section .eyebrow { color: #d1c9bb; }
.contact-copy h2 { margin-bottom: 10px; }
.contact-copy p:not(.eyebrow) { max-width: 350px; margin-bottom: 0; color: #e3dfd7; font-size: .82rem; }
.contact-details { display: grid; gap: 18px; }
.contact-details > a, .contact-details > div { display: flex; align-items: center; gap: 13px; }
.contact-icon { width: 32px; flex-shrink: 0; font-size: 1.35rem; text-align: center; }
.contact-details strong, .contact-details small { display: block; }
.contact-details strong { font-size: .82rem; font-weight: 600; }
.contact-details small { color: #d7d2c9; font-size: .72rem; }
.socials { min-height: 100px; padding-left: 25px; border-left: 1px solid rgba(255,255,255,.35); }
.socials > strong { display: block; margin-bottom: 18px; font-size: .8rem; }
.socials > div { display: flex; gap: 10px; }
.socials a { width: 35px; height: 35px; display: grid; place-items: center; border: 1.5px solid rgba(255,255,255,.5); border-radius: 50%; font-weight: 700; }
.socials a:hover { background: white; color: var(--navy-dark); }
.site-footer { background: #101c2a; color: #ddd9d1; }
.footer-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-inner p { margin: 0; font-size: .68rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 15px; font-size: .68rem; }
.footer-inner nav a:hover { color: white; text-decoration: underline; }
.floating-whatsapp { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: flex; align-items: center; gap: 9px; padding: 13px 17px; border-radius: 999px; color: white; background: #263b55; box-shadow: 0 7px 24px #101c2a35; font-size: .85rem; font-weight: 700; }
.floating-whatsapp:hover { background: #101c2a; transform: translateY(-2px); }
@media (max-width: 1000px) {
  .main-nav { gap: 14px; font-size: .78rem; }
  .hero-inner { grid-template-columns: minmax(0, 1fr) 220px; gap: 2rem; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .books-layout { grid-template-columns: 1fr; gap: 25px; }
  .books-intro > p:not(.eyebrow) { max-width: 560px; }
  .about-layout { grid-template-columns: .8fr 1.2fr; }
  .credentials { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 24px; padding: 8px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .contact-layout { grid-template-columns: 1fr 1fr; }
  .socials { grid-column: 1 / -1; min-height: auto; padding: 18px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.35); }
}
@media (max-width: 720px) {
  .container { width: min(100% - 32px, 560px); }
  .nav-wrap { min-height: 70px; gap: 10px; }
  .brand-mark { width: 39px; height: 39px; font-size: 1.5rem; }
  .brand-text strong { font-size: 1.08rem; }
  .brand-text small { font-size: .62rem; }
  .menu-toggle { display: block; margin-left: auto; }
  .main-nav { position: absolute; top: calc(100% + 1px); left: 0; right: 0; display: none; align-items: stretch; gap: 0; padding: 12px 20px 20px; background: var(--navy-header); border-bottom: 1px solid var(--line); box-shadow: 0 12px 18px #17263810; }
  .main-nav.is-open { display: flex; flex-direction: column; }
  .main-nav > a:not(.nav-cta) { padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.15); color: #ffffff; }
  .main-nav > a:not(.nav-cta)::after { display: none; }
  .nav-cta { margin-top: 12px; text-align: center; }
  .hero { min-height: auto; }
  .hero-photo { background-position: 60% center; }
  .hero-shade { background: linear-gradient(180deg, rgba(15,25,38,0.70) 0%, rgba(15,25,38,0.30) 100%); }
  .hero-inner { grid-template-columns: 1fr; gap: 25px; padding-block: 56px 38px; }
  h1 { font-size: clamp(2.35rem, 10vw, 3.4rem); }
  .hero-lead { font-size: .96rem; }
  .featured-book { max-width: 390px; display: grid; grid-template-columns: 85px 1fr; column-gap: 15px; align-items: start; padding: 15px; }
  .featured-book .pill { grid-column: 1 / -1; justify-self: start; }
  .featured-book img { grid-column: 1; grid-row: 2 / span 3; width: 85px; height: 105px; margin: 10px 0 0; }
  .featured-book h2 { grid-column: 2; margin: 10px 0 5px; }
  .featured-book p, .featured-book .text-link { grid-column: 2; }
  .section { padding: 55px 0; }
  .split-heading { grid-template-columns: 1fr; gap: 15px; }
  .section-intro { padding-left: 15px; }
  .service-grid { grid-template-columns: 1fr; gap: 12px; }
  .service-card { min-height: auto; padding: 22px; }
  .service-card p { margin-bottom: 14px; }
  .book-grid { grid-template-columns: 1fr; gap: 14px; }
  .book-card { display: grid; grid-template-columns: 115px 1fr; gap: 16px; padding: 14px; }
  .book-cover { min-height: 165px; width: 112px; margin: 0; padding: 14px 7px 10px; }
  .book-cover strong { font-size: .96rem; }
  .cover-art { font-size: 2rem; }
  .book-info h3 { font-size: .98rem; }
  .book-info p { min-height: 0; }
  .about-layout { grid-template-columns: 1fr; gap: 22px; }
  .about-photo { height: 280px; }
  .credentials { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .testimonial-card blockquote { min-height: 0; }
  .blog-layout { grid-template-columns: 1fr; gap: 25px; }
  .article-grid { grid-template-columns: 1fr; }
  .article-card { display: grid; grid-template-columns: 115px 1fr; }
  .article-card img { height: 100%; min-height: 145px; }
  .article-content h3 { min-height: 0; }
  .contact-layout { grid-template-columns: 1fr; gap: 27px; }
  .socials { grid-column: auto; }
  .footer-inner { padding-block: 18px; flex-direction: column; align-items: flex-start; }
  .footer-inner nav { gap: 12px; }
  .floating-whatsapp { right: 14px; bottom: 14px; padding: 12px 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Logo personalizado (subido desde el panel) */
.brand-logo { display: block; width: auto; height: auto; max-width: 100px; max-height: 60px; object-fit: contain; }
@media (max-width: 760px) { .brand-logo { max-width: 80px; max-height: 48px; } }
