/* PsicoIntegra — warm editorial visual system, October 2026 */
:root {
  color-scheme: light;
  --paper: #f8f4ed !important;
  --surface: #fffdf9 !important;
  --ink: #263632 !important;
  --muted: #586861 !important;
  --line: #d9d5ca !important;
  --green: #315e4a !important;
  --green-hover: #254a3a !important;
  --blue: #315e4a !important;
  --clay: #a6533d !important;
  --clay-hover: #88432f !important;
  --pale: #e9eee5 !important;
  --green-pale: #e9eee5 !important;
  --shadow: 0 14px 36px rgb(38 54 50 / 8%) !important;
  --radius: 1rem !important;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif !important;
  --sans: "DM Sans", "Avenir Next", Avenir, sans-serif !important;
}

html { background: var(--paper); scroll-behavior: smooth; }
body { background: var(--paper) !important; color: var(--ink) !important; font-family: var(--sans) !important; }
::selection { color: #fffdf9; background: #315e4a; }
a { text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid #a6533d !important; outline-offset: 3px !important;
}

/* Calm, tactile surfaces instead of glass, blur and decorative blobs. */
.site-header, header.top {
  background: #fffdf9 !important; border-bottom: 1px solid var(--line) !important;
  box-shadow: 0 3px 16px rgb(38 54 50 / 3%); backdrop-filter: none !important;
}
.nav { min-height: 5rem !important; }
.brand { gap: .8rem !important; }
.brand-logo { border: 0 !important; border-radius: .7rem !important; }
.brand-name { color: var(--ink) !important; letter-spacing: -.045em !important; }
.brand-sub { color: var(--muted) !important; }
.nav-links a, .nav-dropdown > summary { color: #42564c !important; }
.nav-links a:hover, .nav-dropdown > summary:hover { color: var(--clay) !important; }
.dropdown-panel, .nav-dropdown[open] > .dropdown-panel {
  border-color: var(--line) !important; border-radius: .8rem !important;
  background: var(--surface) !important; box-shadow: 0 16px 38px rgb(38 54 50 / 12%) !important;
}
.menu-toggle, .lang-toggle { border-color: #c9c6ba !important; border-radius: .65rem !important; color: var(--ink) !important; background: #fffdf9 !important; }
.button, button, .nav-access > summary {
  border-color: var(--green) !important; border-radius: .7rem !important;
  background: var(--green) !important; color: #fffdf9 !important;
  box-shadow: none !important; transition: background .18s ease, transform .18s ease !important;
}
.button:hover, button:hover { background: var(--green-hover) !important; transform: translateY(-1px); }
.button.secondary { background: transparent !important; color: var(--green) !important; }
.header-whatsapp-cta { background: #315e4a !important; border-radius: .7rem !important; }

/* Warm editorial rhythm: fewer boxes, more breathing room and readable measure. */
main section { padding-block: clamp(3.4rem, 7vw, 6rem) !important; }
.wrap { width: min(1160px, calc(100% - 3rem)) !important; }
h1, h2, h3 { color: var(--ink) !important; letter-spacing: -.04em !important; }
h1, h2 { font-family: var(--serif) !important; font-weight: 500 !important; }
h1 { font-size: clamp(2.8rem, 6.5vw, 5.6rem) !important; line-height: 1.01 !important; }
h2 { font-size: clamp(2.15rem, 4.8vw, 3.65rem) !important; line-height: 1.04 !important; }
h3 { line-height: 1.2 !important; }
p { text-wrap: pretty; }
.eyebrow, .kicker, .section-label { color: var(--clay) !important; letter-spacing: .09em !important; }
.eyebrow::before { background: var(--clay) !important; }
.hero { padding-top: clamp(2.5rem, 5vw, 4.5rem) !important; }
.hero-grid { gap: clamp(2rem, 6vw, 5.5rem) !important; }
.hero-copy, .section-head p, .about-copy p { color: var(--muted) !important; }
.hero-photo { max-width: 440px !important; }
.hero-photo::before, .about-photo::before {
  inset: 1rem -1rem -1rem 1rem !important; border: 0 !important;
  border-radius: 1rem !important; background: #e3b89e !important; opacity: .82 !important;
}
.hero-photo img, .about-photo img {
  border-radius: 1rem !important; box-shadow: 0 18px 46px rgb(38 54 50 / 13%) !important;
}
.about-photo { padding: 0 0 1rem 1rem !important; }
.photo-caption { border-radius: .7rem !important; background: #fffdf9 !important; box-shadow: 0 6px 20px rgb(38 54 50 / 10%) !important; }
.credibility { border-block-color: var(--line) !important; background: #ede8de !important; }
.life-skills, .about, .faq, .approach-section, .contact, .social-section { background: #fffdf9 !important; }
.life-brain-demo { display: block !important; min-height: 0 !important; border: 0 !important; border-radius: .3rem !important; background: #f0e8dc !important; box-shadow: none !important; }
.life-brain-quote { min-height: 12rem; border-left: 5px solid var(--clay) !important; background: transparent !important; }
.life-brain-visual { display: none !important; }
.life-list { border-top-color: var(--line) !important; }
.life-item { border-bottom-color: var(--line) !important; }
.life-illustration, .step-index, .approach-number { border-radius: .7rem !important; background: #e9eee5 !important; }
.life-illustration svg { stroke: var(--green) !important; }
.resource, .step, .knowledge-card, .approach-card, .card, .training-panel {
  border-color: var(--line) !important; border-radius: .85rem !important;
  box-shadow: none !important;
}
.resource { background: #fffdf9 !important; }
.resource:hover, .knowledge-card:hover, .approach-card:hover { border-color: #b9c6b8 !important; transform: translateY(-2px); }
.knowledge-card:nth-child(3n+2), .approach-card:nth-child(2) { background: #f2ede4 !important; }
.training-panel { background: #e9eee5 !important; }
.topic { border-top-color: var(--line) !important; }
.topic-no, .life-number { color: var(--clay) !important; }
.text-link, .hero-link { color: var(--green) !important; }
.social-link { border-color: var(--line) !important; border-radius: .75rem !important; background: #fffdf9 !important; }
.social-link[href]:hover { background: #e9eee5 !important; border-color: #b9c6b8 !important; }
.contact-box { border-radius: .85rem !important; background: #315e4a !important; }
.contact-box h2 { color: #fffdf9 !important; }
.contact-box p { color: #f4f2eb !important; }
.light-button { border-color: #fffdf9 !important; background: #fffdf9 !important; color: #315e4a !important; }
.notice, .scope-note { border-radius: .35rem !important; background: #f1ece3 !important; color: #4d5e55 !important; }
.listen-section { background: #e9eee5 !important; }
.listen-layout { display: grid; grid-template-columns: minmax(15rem, .78fr) minmax(20rem, 1.22fr); align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.listen-intro { max-width: 31rem; }
.listen-intro h2 { margin: .8rem 0 1rem; }
.listen-intro p { max-width: 35rem; color: var(--muted); }
.listen-card { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1.5rem; align-items: center; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: .85rem; background: #fffdf9; }
.listen-art { display: flex; min-height: 9rem; flex-direction: column; align-items: center; justify-content: space-between; padding: 1rem .5rem; border-radius: .65rem; background: #315e4a; color: #f8f4ed; }
.listen-art > span { font: 500 2rem/1 var(--serif); }
.listen-wave { display: flex; align-items: center; gap: 3px; height: 2.6rem; }
.listen-wave i { display: block; width: 3px; height: 36%; border-radius: 3px; background: #e3b89e; }
.listen-wave i:nth-child(3n) { height: 78%; }
.listen-wave i:nth-child(3n + 1) { height: 56%; }
.listen-wave i:nth-child(4n) { height: 92%; }
.listen-series { color: var(--clay); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.listen-details h3 { margin: .45rem 0; font: 500 clamp(1.25rem, 2.4vw, 1.65rem)/1.16 var(--serif); }
.listen-details p { margin-bottom: 1rem; color: var(--muted); font-size: .9rem; }
.listen-details audio { display: block; width: 100%; height: 2.8rem; accent-color: var(--green); }
.ways-section { background: #f8f4ed !important; }
.ways-layout { display: grid; grid-template-columns: minmax(17rem, .82fr) minmax(25rem, 1.18fr); align-items: center; gap: clamp(2.5rem, 7vw, 6rem); }
.ways-copy { max-width: 34rem; }
.ways-copy h2 { margin: .8rem 0 1rem; }
.ways-copy > p { color: var(--muted); }
.ways-controls { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.4rem 0 .7rem; }
.ways-choice { min-height: 2.75rem; padding: .55rem .95rem !important; border: 1px solid #b9c6b8 !important; border-radius: 999px !important; background: #fffdf9 !important; color: var(--green) !important; font-size: .9rem !important; font-weight: 700 !important; }
.ways-choice[aria-pressed="true"] { border-color: var(--green) !important; background: var(--green) !important; color: #fffdf9 !important; }
.ways-choice:hover { border-color: var(--green) !important; transform: translateY(-1px); }
.ways-caption { min-height: 1.6em; margin: .3rem 0 1.2rem; color: var(--ink) !important; font-family: var(--serif); font-size: 1.1rem; }
.ways-link { margin-top: .1rem; }
.ways-art { overflow: hidden; border: 1px solid #d9d5ca; border-radius: .85rem; background: #eee8dd; box-shadow: 0 14px 36px rgb(38 54 50 / 8%); }
.ways-illustration { display: block; width: 100%; height: auto; }
.ways-room { fill: #eee8dd; }
.ways-window { fill: #fffdf9; stroke: #315e4a; stroke-width: 3; }
.ways-window-line, .ways-shelf, .ways-floor, .ways-chair, .ways-table-leg { fill: none; stroke: #315e4a; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.ways-plant { fill: #e9eee5; stroke: #315e4a; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ways-child-shirt { fill: #a6533d; }
.ways-child-face { fill: #e5b58f; }
.ways-child-hair { fill: #263632; }
.ways-arm { fill: none; stroke: #e5b58f; stroke-width: 12; stroke-linecap: round; }
.ways-table { fill: #d4b890; stroke: #315e4a; stroke-width: 3; stroke-linejoin: round; }
.ways-mode { opacity: 0; transform: translateY(7px); transform-origin: center; transition: opacity .24s ease, transform .24s ease; }
.ways-art[data-mode="play"] .ways-mode--play, .ways-art[data-mode="draw"] .ways-mode--draw, .ways-art[data-mode="talk"] .ways-mode--talk { opacity: 1; transform: translateY(0); }
.ways-block { stroke: #fffdf9; stroke-width: 2; }
.block-clay { fill: #a6533d; }
.block-green { fill: #66876a; }
.block-gold { fill: #d7a04c; stroke-linejoin: round; }
.ways-path { fill: none; stroke: #fffdf9; stroke-width: 3; stroke-dasharray: 4 6; stroke-linecap: round; }
.ways-paper { fill: #fffdf9; stroke: #d9d5ca; stroke-width: 2; }
.ways-drawing { fill: none; stroke: #a6533d; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.ways-pencil { fill: #d7a04c; stroke: #315e4a; stroke-width: 2; stroke-linejoin: round; }
.ways-bubble { fill: #fffdf9; stroke: #315e4a; stroke-width: 3; stroke-linejoin: round; }
.ways-bubble--second { fill: #e9eee5; }
.ways-dot { fill: #a6533d; }
.ways-room { fill: #eee8dd; }
.room-window { fill: #fffdf9; stroke: #315e4a; stroke-width: 4; }
.window-sky { fill: #dce9e5; }
.window-sun { fill: #d7a04c; }
.window-hill { fill: #91aa83; }
.window-frame { fill: none; stroke: #fffdf9; stroke-width: 7; stroke-linecap: round; }
.curtain { fill: #c77b60; }
.wall-shelf { fill: #9c6d4a; }
.shelf-book { stroke: #fffdf9; stroke-width: 2; }
.book-one { fill: #315e4a; }
.book-two { fill: #d7a04c; }
.book-three { fill: #a6533d; }
.wall-art { fill: #fffdf9; stroke: #d7a04c; stroke-width: 5; }
.wall-art-mark { fill: none; stroke: #315e4a; stroke-width: 4; stroke-linecap: round; }
.plant-pot { fill: #c77b60; }
.plant-stem { fill: none; stroke: #315e4a; stroke-width: 4; stroke-linecap: round; }
.plant-leaf { fill: #66876a; }
.leaf-b { fill: #91aa83; }
.leaf-c { fill: #315e4a; }
.room-floor { fill: #f4eee5; }
.floor-rug { fill: #d5c9b7; }
.rug-detail { fill: none; stroke: #eee8dd; stroke-width: 4; }
.chair-back { fill: #315e4a; }
.chair-seat { fill: #d7a04c; }
.chair-leg { fill: none; stroke: #315e4a; stroke-width: 6; stroke-linecap: round; }
.child-shirt { fill: #a6533d; }
.shirt-collar { fill: #f0d7ac; }
.child-arm { fill: #e5b58f; }
.child-ear, .child-face, .child-neck { fill: #e5b58f; }
.child-hair { fill: #3c302c; }
.child-eye { fill: #263632; }
.child-smile { fill: none; stroke: #8c4c39; stroke-width: 3; stroke-linecap: round; }
.activity-table { fill: #e2bc80; }
.table-front { fill: #c68d54; }
.table-leg { fill: none; stroke: #9c6d4a; stroke-width: 8; stroke-linecap: round; }
.toy-block { stroke: #fffdf9; stroke-width: 3; }
.toy-green { fill: #66876a; }
.toy-clay { fill: #c77b60; }
.toy-ball { fill: #d7a04c; stroke: #fffdf9; stroke-width: 3; }
.toy-arch { fill: none; stroke: #315e4a; stroke-width: 7; stroke-linecap: round; }
.toy-dot { fill: #fffdf9; }
.drawing-paper { fill: #fffdf9; stroke: #d8cdbd; stroke-width: 2; }
.drawing-line { fill: none; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.line-green { stroke: #66876a; }
.drawing-sun { fill: #d7a04c; }
.drawing-pencil { fill: #c77b60; stroke: #8c4c39; stroke-width: 2; stroke-linejoin: round; }
.pencil-tip { fill: #f0d7ac; stroke: #8c4c39; stroke-width: 2; stroke-linejoin: round; }
.talk-bubble { stroke: #fffdf9; stroke-width: 3; stroke-linejoin: round; }
.bubble-green { fill: #315e4a; }
.bubble-clay { fill: #c77b60; }
.talk-dot { fill: #fffdf9; }
.talk-dot-light { fill: #315e4a; }
.ways-section { background: #f8faf8 !important; }
.ways-art { background: #e8f0f1; border-color: #d3e0df; }
.ways-room { fill: #f0f5f3; }
.room-window { fill: #fff; stroke: #397287; stroke-width: 3; }
.window-sky { fill: #b9dfe8; }
.window-sun { fill: #ffc85a; }
.window-hill { fill: #73ae90; }
.window-frame { stroke: #fff; stroke-width: 6; }
.modern-shelf { fill: #397287; }
.shelf-book { stroke: none; }
.book-one { fill: #f08a72; }
.book-two { fill: #ffc85a; }
.book-three { fill: #5f9b79; }
.wall-art { fill: #fff; stroke: #f08a72; stroke-width: 7; }
.wall-art-mark { stroke: #397287; stroke-width: 3; }
.plant-pot { fill: #f08a72; }
.plant-stem { stroke: #397287; stroke-width: 4; }
.plant-leaf { fill: #5f9b79; }
.leaf-b { fill: #8bc39d; }
.leaf-c { fill: #397287; }
.room-floor { fill: #e5efec; }
.chair-back { fill: #72a991; }
.chair-seat { fill: #ffc85a; }
.chair-leg { stroke: #397287; stroke-width: 5; }
.child-shirt { fill: #397287; }
.shirt-collar { fill: #f7f8f4; }
.child-arm, .child-ear, .child-face, .child-neck { fill: #e6b28f; }
.child-hair { fill: #263632; }
.child-smile { stroke: #a75243; }
.activity-table { fill: #fff; }
.table-front { fill: #b8d0ca; }
.table-leg { stroke: #6b8984; stroke-width: 6; }
.toy-school { fill: #76b0c1; stroke: #fff; stroke-width: 3; }
.toy-roof { fill: #f08a72; }
.toy-door { fill: #397287; }
.toy-window { fill: #fff3c7; }
.toy-person-head { fill: #e6b28f; }
.toy-person-body { fill: #f08a72; }
.toy-person-leg { fill: none; stroke: #397287; stroke-width: 3; stroke-linecap: round; }
.draw-school { fill: none; stroke: #397287; stroke-width: 4; stroke-linejoin: round; }
.draw-door { fill: #f08a72; }
.draw-window { fill: #ffc85a; }
.draw-cloud { fill: #d4e7eb; stroke: #397287; stroke-width: 2; }
.draw-rain { fill: none; stroke: #76b0c1; stroke-width: 3; stroke-linecap: round; }
.talk-bubble { stroke: #397287; stroke-width: 2; }
.bubble-light { fill: #fff; }
.talk-quote { fill: #263632; font-family: var(--sans); font-size: 21px; font-weight: 700; }
.talk-emoji { fill: #397287; font-family: var(--sans); font-size: 17px; font-weight: 600; }
.ways-note { max-width: 34rem; margin: .25rem 0 1rem; color: #5a6c68; font-size: .78rem; line-height: 1.45; }
footer { background: #263632 !important; color: #f8f4ed !important; }
footer a { color: #f8f4ed !important; }

/* Patient and professional access screens share the same visual language. */
header.top { min-height: 4.5rem; }
header.top a { color: var(--green) !important; text-decoration: none; }
main:not(#contenido) { color: var(--ink) !important; }
main:not(#contenido) h1, main:not(#contenido) h2 { font-family: var(--serif) !important; }
.card, .status, .empty, .relationships form { border-radius: .8rem !important; }
.status { border-left-color: var(--green) !important; background: #e9eee5 !important; }
input, select, textarea { border-color: #c9c6ba !important; border-radius: .55rem !important; background: #fffdf9 !important; color: var(--ink) !important; }
table th { color: var(--ink) !important; }
@media (min-width: 760px) {
  .nav-links { gap: clamp(.8rem, 1.5vw, 1.4rem) !important; }
}
@media (max-width: 760px) {
  .wrap { width: min(100% - 2rem, 42rem) !important; }
  h1 { font-size: clamp(2.65rem, 12vw, 4rem) !important; }
  main section { padding-block: 3.5rem !important; }
  .hero-photo { width: min(88%, 390px) !important; margin-top: 1.8rem !important; }
  .hero-photo::before, .about-photo::before { inset: .7rem -.7rem -.7rem .7rem !important; }
  .listen-layout { grid-template-columns: 1fr; gap: 1.6rem; }
  .listen-card { grid-template-columns: 4.5rem 1fr; gap: 1rem; padding: 1rem; }
  .listen-art { min-height: 7.5rem; padding: .8rem .35rem; }
  .listen-wave { gap: 2px; }
  .ways-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .ways-art { order: -1; }
  .ways-illustration { min-height: 13rem; }
  .nav-links.is-open { border-color: var(--line) !important; border-radius: 0 0 .8rem .8rem !important; background: #fffdf9 !important; }
  .nav-links.is-open .nav-access > summary { background: var(--green) !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
