:root{
  --navy:#0D1B2A;
  --navy-2:#13283c;
  --copper:#A06A2A;
  --copper-soft:#c48745;
  --white:#FFFFFF;
  --soft:#F5F7F8;
  --line:#DCE2E7;
  --text:#142231;
  --muted:#60707d;
  --shadow:0 16px 45px rgba(13,27,42,.10);
  --radius:16px;
  --container:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  overflow-x:hidden;
  font-family:"Sora","Aptos","Segoe UI",system-ui,sans-serif;
  color:var(--text);
  background:var(--white);
  line-height:1.55;
}
a{color:inherit}
img{display:block;max-width:100%}
button,input,textarea,select{font:inherit}
.skip-link{
  position:fixed;left:1rem;top:-5rem;z-index:9999;background:var(--navy);
  color:#fff;padding:.75rem 1rem;border-radius:8px;text-decoration:none
}
.skip-link:focus{top:1rem}
.container{width:min(calc(100% - 2rem),var(--container));margin-inline:auto}
.section{padding:5.5rem 0}
.section-white{background:#fff}
.section-soft{background:var(--soft)}
.section-navy{background:var(--navy);color:#fff}
.site-header{
  position:sticky;top:0;z-index:100;background:rgba(255,255,255,.94);
  backdrop-filter:saturate(140%) blur(14px);border-bottom:1px solid rgba(13,27,42,.08)
}
.header-inner{min-height:84px;display:flex;align-items:center;gap:2rem}
.brand{display:flex;align-items:center;flex:0 0 auto}
.brand img{width:235px;height:auto}
.main-nav{margin-left:auto;display:flex;align-items:center;gap:1.8rem}
.main-nav a{
  text-decoration:none;font-size:.93rem;font-weight:600;position:relative;padding:.35rem 0
}
.main-nav a::after{
  content:"";position:absolute;left:0;bottom:-.15rem;width:0;height:2px;background:var(--copper);
  transition:width .2s ease
}
.main-nav a:hover::after,.main-nav a:focus-visible::after{width:100%}
.menu-toggle{display:none;background:none;border:0;padding:.6rem;cursor:pointer}
.menu-toggle span{display:block;width:26px;height:2px;background:var(--navy);margin:5px 0}
.hero{padding:0;background:#fff}
.hero-grid{display:grid;grid-template-columns:minmax(520px,.95fr) minmax(0,1.15fr);min-height:calc(100vh - 84px);max-height:860px}
.hero-copy{padding:3.25rem 3.5rem 3rem 0;align-self:center;min-width:0}
.eyebrow{
  margin:0 0 .6rem;text-transform:uppercase;letter-spacing:.12em;font-size:.74rem;
  font-weight:700;color:var(--copper)
}
.hero h1{margin:0;color:var(--navy);font-size:clamp(2.55rem,3.55vw,4.3rem);line-height:.98;letter-spacing:-.035em;text-transform:uppercase;max-width:11.5ch}
.hero h1 span{color:var(--copper)}
.signature{
  margin:1.6rem 0 .85rem;font-size:.82rem;letter-spacing:.24em;font-weight:700;color:var(--navy)
}
.signature i{font-style:normal;color:var(--copper);padding:0 .35rem}
.hero-lede{max-width:640px;color:var(--muted);font-size:1.05rem}
.actions{display:flex;gap:1rem;flex-wrap:wrap;margin-top:2rem}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.8rem;min-height:50px;
  padding:.8rem 1.35rem;border-radius:8px;text-decoration:none;font-size:.88rem;font-weight:700;
  text-transform:uppercase;letter-spacing:.02em;border:1px solid transparent
}
.btn-primary{background:var(--copper);color:#fff;box-shadow:0 8px 24px rgba(160,106,42,.20)}
.btn-primary:hover,.btn-primary:focus-visible{background:#8d5d25}
.btn-secondary{border-color:var(--navy);color:var(--navy);background:#fff}
.btn-secondary:hover,.btn-secondary:focus-visible{background:var(--navy);color:#fff}
.hero-visual{
  position:relative;overflow:hidden;min-height:100%;background:
  linear-gradient(135deg,#f4f7f9 0%,#e9eef2 45%,#f8f4ef 100%);
  border-left:1px solid var(--line)
}
.hero-visual::before{
  content:"";position:absolute;inset:auto -5% 0 -5%;height:46%;background:linear-gradient(145deg,#d8e0e6,#b8c5cf);
  clip-path:polygon(0 100%,0 58%,18% 31%,33% 58%,49% 18%,65% 58%,82% 26%,100% 57%,100% 100%)
}
.hero-visual::after{
  content:"";position:absolute;inset:auto -5% 0 -5%;height:32%;background:linear-gradient(145deg,#b6c2cc,#8799a7);
  clip-path:polygon(0 100%,0 67%,18% 35%,35% 75%,54% 22%,70% 72%,87% 38%,100% 72%,100% 100%)
}

.hero-visual img.hero-photo{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:58% center;
}
.hero-placeholder{position:absolute;z-index:2;right:2rem;bottom:2rem;width:210px;height:310px;border:1px solid rgba(13,27,42,.25);
  border-radius:18px;background:rgba(255,255,255,.38);backdrop-filter:blur(5px);
  display:flex;flex-direction:column;justify-content:flex-end;padding:1.25rem;color:var(--navy)
}
.hero-placeholder::before{
  content:"";position:absolute;width:82px;height:82px;border-radius:50%;background:rgba(13,27,42,.18);
  top:48px;left:50%;transform:translateX(-50%)
}
.hero-placeholder::after{
  content:"";position:absolute;width:145px;height:165px;border-radius:80px 80px 20px 20px;background:rgba(13,27,42,.18);
  top:140px;left:50%;transform:translateX(-50%)
}
.hero-placeholder span{font-size:.76rem;font-weight:700;letter-spacing:.12em}
.hero-placeholder small{color:var(--muted)}
.split-grid{display:grid;grid-template-columns:340px minmax(0,650px);gap:4.5rem;align-items:center}
.portrait-placeholder{
  min-height:440px;background:linear-gradient(160deg,#eef2f5,#dce4e9);border-radius:var(--radius);
  border:1px solid var(--line);position:relative;overflow:hidden;display:flex;align-items:flex-end;padding:1rem
}
.portrait-shape::before{
  content:"";position:absolute;width:120px;height:120px;border-radius:50%;background:#9aa9b4;top:70px;left:50%;transform:translateX(-50%)
}
.portrait-shape::after{
  content:"";position:absolute;width:240px;height:245px;border-radius:130px 130px 18px 18px;background:#8a9aa6;bottom:0;left:50%;transform:translateX(-50%)
}
.portrait-placeholder span{z-index:2;font-size:.72rem;letter-spacing:.15em;font-weight:700;color:#fff}
h2{font-size:clamp(2rem,3vw,3.15rem);line-height:1.06;letter-spacing:-.025em;margin:.2rem 0 1.25rem;color:var(--navy)}
.content-narrow p:not(.eyebrow){font-size:1.05rem;color:var(--muted)}
.text-link{display:inline-flex;align-items:center;gap:.45rem;color:var(--copper);font-weight:700;text-decoration:none;margin-top:.6rem}
.text-link:hover,.text-link:focus-visible{text-decoration:underline;text-underline-offset:4px}
.section-heading{display:flex;align-items:end;justify-content:space-between;gap:2rem;margin-bottom:2rem}
.section-heading h2{max-width:720px;margin-bottom:0}
.section-heading.inverse h2{color:#fff}
.ecosystem{max-width:980px;margin:0 auto}
.project{
  background:#fff;border:1px solid var(--line);border-radius:12px;padding:1.15rem 1.25rem;
  display:flex;gap:1rem;align-items:center;min-height:112px
}
.project-root{
  max-width:430px;margin:0 auto;background:var(--navy);color:#fff;border-color:var(--navy)
}
.project-root h3,.project-root p{color:#fff}
.project-mark{
  width:52px;height:52px;border-radius:10px;background:var(--navy);color:#fff;
  display:grid;place-items:center;font-weight:800;letter-spacing:.04em;flex:0 0 auto
}
.project-root .project-mark{background:var(--copper)}
.project h3{margin:0 0 .2rem;font-size:1.02rem}
.project p{margin:0;color:var(--muted);font-size:.88rem}
.ecosystem-line{width:1px;height:36px;background:var(--copper);margin:0 auto}
.project-children{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;position:relative}
.project-children::before{
  content:"";position:absolute;left:16.5%;right:16.5%;top:-18px;border-top:1px solid var(--copper)
}
.project-children .project{position:relative}
.project-children .project::before{
  content:"";position:absolute;left:50%;top:-19px;height:19px;border-left:1px solid var(--copper)
}
.light-link{color:#d8a16b}
.timeline{
  list-style:none;padding:0;margin:2.3rem 0 0;display:grid;grid-template-columns:repeat(5,1fr);
  position:relative;gap:1rem
}
.timeline::before{
  content:"";position:absolute;top:20px;left:8%;right:8%;border-top:1px solid rgba(255,255,255,.35)
}
.timeline li{text-align:center;position:relative;z-index:1}
.step{
  width:42px;height:42px;border-radius:50%;display:grid;place-items:center;margin:0 auto 1rem;
  border:1px solid var(--copper-soft);background:var(--navy);color:#fff;font-weight:700
}
.timeline strong{display:block;margin-bottom:.45rem}
.timeline small{display:block;color:#b9c5ce}
.ideas-grid{display:grid;grid-template-columns:1.35fr 1fr 1fr;gap:1.25rem}
.idea-card{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 8px 28px rgba(13,27,42,.05)}
.media-placeholder{height:165px;position:relative;background:#e6ecef}
.media-placeholder::before,.media-placeholder::after{
  content:"";position:absolute;inset:0;background:linear-gradient(135deg,transparent 49.5%,rgba(13,27,42,.12) 50%,transparent 50.5%)
}
.media-placeholder::after{transform:scaleX(-1)}
.media-architecture{background:linear-gradient(140deg,#dbe2e7,#b6c4ce)}
.media-tech{background:linear-gradient(140deg,#e9dfd3,#c4ab8c)}
.media-map{background:linear-gradient(140deg,#e3ddd2,#ba9f72)}
.media-placeholder span{
  position:absolute;z-index:2;left:1rem;top:1rem;background:var(--copper);color:#fff;
  padding:.28rem .55rem;border-radius:4px;font-size:.65rem;font-weight:700
}
.idea-body{padding:1.1rem 1.2rem 1.3rem}
.idea-body h3{margin:.25rem 0 .5rem;font-size:1.15rem}
.idea-body p{margin:.2rem 0;color:var(--muted);font-size:.9rem}
.meta{text-transform:uppercase;font-size:.68rem!important;letter-spacing:.08em;font-weight:700;color:var(--copper)!important}
.archive-grid{display:grid;grid-template-columns:.9fr 1.3fr;gap:3rem;align-items:start}
.archive-intro h2{font-size:2rem}
.archive-list{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.archive-card{border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden}
.archive-thumb{height:110px;background:linear-gradient(145deg,#d5dde3,#b7c3cc);display:grid;place-items:center;color:var(--navy);font-weight:800}
.archive-card>div:last-child{padding:1rem}
.archive-card h3{font-size:.98rem;margin:0 0 .45rem}
.contact-strip{background:var(--navy);color:#fff;padding:2.6rem 0}
.contact-inner{display:flex;align-items:center;justify-content:space-between;gap:2rem}
.contact-inner h2{color:#fff;margin:0;font-size:clamp(1.7rem,2.6vw,2.5rem)}
.contact-inner p{color:#bcc8d1;margin:.4rem 0 0}
.contact-inner .eyebrow{color:#dba56f}
.site-footer{background:#fff;border-top:1px solid var(--line);padding:2.5rem 0}
.footer-grid{display:grid;grid-template-columns:1.3fr .8fr .8fr;gap:3rem}
.footer-brand img{width:245px}
.footer-brand .signature{font-size:.66rem;margin:1rem 0 .5rem}
.site-footer nav,.footer-links{display:grid;align-content:start;gap:.55rem}
.site-footer a{text-decoration:none;font-size:.88rem}
.site-footer a:hover,.site-footer a:focus-visible{color:var(--copper)}
.small{font-size:.78rem;color:var(--muted)}
.mobile-only{display:none}

@media (max-width:900px){
  .container{width:min(calc(100% - 1.5rem),var(--container))}
  .header-inner{min-height:72px}
  .brand img{width:190px}
  .menu-toggle{display:block;margin-left:auto}
  .main-nav{
    position:fixed;inset:72px 0 auto 0;background:#fff;border-bottom:1px solid var(--line);
    box-shadow:var(--shadow);display:grid;gap:0;padding:.6rem 1rem 1rem;transform:translateY(-130%);
    transition:transform .25s ease
  }
  .main-nav.open{transform:translateY(0)}
  .main-nav a{padding:.9rem .4rem;border-bottom:1px solid #edf0f2}
  body.menu-open{overflow:hidden}
  .hero-grid{grid-template-columns:1fr;min-height:auto;max-height:none}
  .hero-copy{padding:2.75rem 0 2.1rem}
  .hero h1{font-size:clamp(2.25rem,10vw,3.65rem);max-width:12ch}
  .signature{font-size:.7rem;letter-spacing:.18em}
  .hero-visual{height:300px;min-height:0;border-left:0;border-top:1px solid var(--line)}
  .hero-placeholder{right:1rem;bottom:1rem;width:145px;height:215px;padding:.8rem}
  .hero-placeholder::before{width:55px;height:55px;top:34px}
  .hero-placeholder::after{width:100px;height:112px;top:96px}
  .actions{display:grid;grid-template-columns:1fr}
  .section{padding:4rem 0}
  .split-grid{grid-template-columns:120px 1fr;gap:1.25rem;align-items:start}
  .portrait-placeholder{min-height:190px;border-radius:12px}
  .portrait-shape::before{width:48px;height:48px;top:26px}
  .portrait-shape::after{width:92px;height:96px}
  h2{font-size:2rem}
  .section-heading{display:block}
  .desktop-only{display:none}
  .mobile-only{display:inline-flex;margin-top:1.2rem}
  .project-root{max-width:none}
  .ecosystem-line,.project-children::before,.project-children .project::before{display:none}
  .project-children{grid-template-columns:1fr;gap:.7rem;margin-top:.7rem}
  .project{min-height:auto;padding:1rem}
  .timeline{grid-template-columns:1fr;gap:0;margin-top:1.5rem}
  .timeline::before{top:0;bottom:0;left:21px;right:auto;border-top:0;border-left:1px solid rgba(255,255,255,.35)}
  .timeline li{text-align:left;display:grid;grid-template-columns:42px 1fr;gap:1rem;padding-bottom:1.35rem}
  .step{margin:0}
  .ideas-grid{grid-template-columns:1fr}
  .media-placeholder{height:180px}
  .archive-grid{grid-template-columns:1fr;gap:1.7rem}
  .archive-list{grid-template-columns:1fr}
  .archive-card{display:grid;grid-template-columns:120px 1fr}
  .archive-thumb{height:100%}
  .contact-inner{display:grid}
  .contact-inner .btn{width:100%}
  .footer-grid{grid-template-columns:1fr;gap:1.5rem}
}
@media (max-width:520px){
  .brand img{width:170px}
  .split-grid{grid-template-columns:1fr}
  .portrait-placeholder{min-height:300px}
  .archive-card{grid-template-columns:100px 1fr}
  .hero-copy{padding-top:2.5rem}
  .hero h1{font-size:2.45rem}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}


/* === V0.4 · Logos oficiales y tarjetas enlazadas === */
.project-link{
  position:relative;
  color:inherit;
  text-decoration:none;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.project-link:hover,
.project-link:focus-visible{
  transform:translateY(-2px);
  box-shadow:0 10px 28px rgba(13,27,42,.10);
  border-color:rgba(160,106,42,.55);
  outline:none;
}
.project-logo{
  width:110px;
  height:58px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  background:#fff;
  border-radius:8px;
  padding:.45rem;
}
.project-logo img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
}
.project-logo-root{
  width:150px;
  height:64px;
}
.project-arrow{
  margin-left:auto;
  color:var(--copper);
  font-size:1.1rem;
  font-weight:700;
}
.project-root .project-arrow{color:#fff}
.project-root .project-logo{background:#fff}

/* === V0.4 · Página Contacto === */
.page-hero{
  background:var(--soft);
  border-bottom:1px solid var(--line);
}
.page-hero-inner{
  min-height:340px;
  display:flex;
  align-items:center;
  padding-block:4rem;
}
.page-hero h1{
  margin:.15rem 0 1rem;
  color:var(--navy);
  font-size:clamp(3rem,6vw,5.7rem);
  line-height:.95;
  letter-spacing:-.04em;
}
.page-hero p:not(.eyebrow){
  max-width:760px;
  color:var(--muted);
  font-size:1.08rem;
}
.contact-page-grid{
  display:grid;
  grid-template-columns:minmax(0,.8fr) minmax(520px,1.2fr);
  gap:5rem;
  align-items:start;
}
.contact-copy h2{margin-top:.2rem}
.contact-note{
  margin-top:2rem;
  padding:1.25rem;
  background:var(--soft);
  border-left:3px solid var(--copper);
  border-radius:0 10px 10px 0;
}
.contact-note p{margin:.35rem 0 0;color:var(--muted);text-align:justify;text-justify:inter-word}
.contact-form{
  border:1px solid var(--line);
  border-radius:16px;
  padding:2rem;
  box-shadow:0 12px 36px rgba(13,27,42,.06);
}
.form-row{display:grid;gap:.45rem;margin-bottom:1.15rem}
.form-row label,.checkbox-row{font-weight:700;font-size:.9rem}
.form-row input,
.form-row select,
.form-row textarea{
  width:100%;
  border:1px solid #cbd4db;
  background:#fff;
  color:var(--text);
  border-radius:8px;
  padding:.85rem .95rem;
  outline:none;
}
.form-row textarea{resize:vertical;min-height:160px}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus{
  border-color:var(--copper);
  box-shadow:0 0 0 3px rgba(160,106,42,.13);
}
.form-row small{color:var(--muted)}
.checkbox-row{
  display:flex;
  gap:.7rem;
  align-items:flex-start;
  margin:1.2rem 0 1.4rem;
  font-weight:500;
}
.checkbox-row input{margin-top:.28rem}
.checkbox-row a{color:var(--copper)}
.honeypot{
  position:absolute!important;
  left:-10000px!important;
  width:1px!important;
  height:1px!important;
  overflow:hidden!important;
}
.form-status{
  margin:.9rem 0 0;
  min-height:1.4em;
  color:var(--muted);
}
.contact-form button:disabled{opacity:.6;cursor:not-allowed}

@media (max-width:900px){
  .project-logo{width:105px;height:54px}
  .project-logo-root{width:130px;height:58px}
  .contact-page-grid{grid-template-columns:1fr;gap:2rem}
  .page-hero-inner{min-height:260px;padding-block:3rem}
}

@media (max-width:520px){
  .project{align-items:flex-start}
  .project-logo{width:92px;height:48px}
  .project-logo-root{width:110px;height:52px}
  .contact-form{padding:1.25rem}
}


/* === V0.5 · Quién soy === */
.portrait-photo{
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid var(--line);
  min-height:440px;
  background:var(--soft);
}
.portrait-photo img{
  width:100%;
  height:100%;
  min-height:440px;
  object-fit:cover;
  object-position:center 28%;
}
.about-hero{
  background:#fff;
  border-bottom:1px solid var(--line);
}
.about-hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(420px,.8fr);
  gap:4.5rem;
  align-items:stretch;
  min-height:calc(100vh - 84px);
  max-height:900px;
}
.about-hero-copy{
  align-self:center;
  padding:4rem 0;
}
.about-hero h1{
  margin:.2rem 0 1.5rem;
  max-width:11ch;
  color:var(--navy);
  font-size:clamp(3.2rem,5vw,5.8rem);
  line-height:.96;
  letter-spacing:-.04em;
}
.about-lede{
  max-width:760px;
  color:var(--muted);
  font-size:1.08rem;
}
.about-hero-photo{
  margin:0;
  min-height:100%;
  overflow:hidden;
  background:var(--navy);
}
.about-hero-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 20%;
}
.narrative-grid{
  display:grid;
  grid-template-columns:minmax(250px,.65fr) minmax(0,1.35fr);
  gap:5rem;
  align-items:start;
}
.narrative-kicker h2{
  margin-top:.2rem;
}
.narrative-copy{
  max-width:760px;
}
.narrative-copy p{
  margin:0 0 1.25rem;
  font-size:1.05rem;
  color:var(--muted);
}
.narrative-copy blockquote{
  margin:2rem 0 0;
  padding:1.5rem 1.6rem;
  border-left:3px solid var(--copper);
  background:#fff;
  color:var(--navy);
  font-size:1.15rem;
  font-weight:600;
}
.section-navy .narrative-copy p{color:#c4ced6}
.inverse-grid .narrative-kicker h2{color:#fff}
.about-project-links{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.75rem;
  margin-top:2rem;
}
.about-project-link{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:1rem;
  padding:1rem 1.1rem;
  border:1px solid rgba(255,255,255,.18);
  border-radius:10px;
  color:#fff;
  text-decoration:none;
}
.about-project-link:hover,
.about-project-link:focus-visible{
  border-color:var(--copper-soft);
  background:rgba(255,255,255,.04);
}
.about-project-link span{color:var(--copper-soft)}
.principles-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:1rem;
}
.principles-grid article{
  min-height:220px;
  padding:1.4rem;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
}
.principles-grid article span{
  display:inline-block;
  margin-bottom:1.5rem;
  color:var(--copper);
  font-weight:800;
}
.principles-grid article h3{
  margin:0;
  font-size:1rem;
  line-height:1.45;
}
.about-closing{
  background:var(--navy);
  color:#fff;
  padding:6rem 0;
}
.about-closing-inner{max-width:980px}
.about-closing h2{
  color:#fff;
  max-width:16ch;
  font-size:clamp(2.5rem,4.8vw,5rem);
}
.about-closing p:not(.eyebrow){
  max-width:780px;
  color:#c3ced6;
  font-size:1.05rem;
}
.btn-on-dark{
  color:#fff;
  border-color:rgba(255,255,255,.65);
  background:transparent;
}
.btn-on-dark:hover,
.btn-on-dark:focus-visible{
  background:#fff;
  color:var(--navy);
}

@media (max-width:900px){
  .portrait-photo{min-height:280px}
  .portrait-photo img{min-height:280px}
  .about-hero-grid{
    grid-template-columns:1fr;
    min-height:auto;
    max-height:none;
    gap:0;
  }
  .about-hero-copy{padding:3.2rem 0 2.5rem}
  .about-hero h1{font-size:clamp(2.7rem,10vw,4.4rem)}
  .about-hero-photo{height:520px;min-height:0}
  .about-hero-photo img{object-position:center 18%}
  .narrative-grid{grid-template-columns:1fr;gap:1.5rem}
  .about-project-links{grid-template-columns:1fr}
  .principles-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:520px){
  .about-hero-photo{height:390px}
  .about-hero h1{font-size:2.75rem}
  .principles-grid{grid-template-columns:1fr}
  .principles-grid article{min-height:auto}
}


/* === V0.6 · Ajustes aprobados === */

/* Quién soy: fotografía más contenida en Desktop */
@media (min-width:901px){
  .about-hero-grid{
    grid-template-columns:minmax(0,1.2fr) minmax(320px,.62fr);
    gap:4rem;
    min-height:auto;
    max-height:none;
    padding-block:3.75rem;
    align-items:center;
  }
  .about-hero-copy{padding:0}
  .about-hero-photo{
    min-height:0;
    height:auto;
    max-width:430px;
    width:100%;
    justify-self:end;
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 18px 45px rgba(13,27,42,.12);
  }
  .about-hero-photo img{
    display:block;
    width:100%;
    height:auto;
    aspect-ratio:1 / 1.12;
    object-fit:cover;
    object-position:center 22%;
  }
}

/* Qué construyo: más aire inferior */
#proyectos.section{
  padding-top:5.8rem;
  padding-bottom:7.4rem;
}

/* Título en un solo renglón para Desktop amplio */
@media (min-width:1100px){
  #proyectos .section-heading{
    align-items:center;
  }
  #proyectos .section-heading > div{
    flex:1 1 auto;
    min-width:0;
  }
  #proyectos .section-heading h2{
    max-width:none;
    white-space:nowrap;
    font-size:clamp(2.2rem,3vw,3.35rem);
    letter-spacing:-.03em;
  }
}

/* Tarjeta IBGMx: contraste alto */
.project-root{
  background:var(--navy);
  color:#fff;
}
.project-root h3{color:#fff !important}
.project-root p{color:#d9e2e8 !important}
.project-root .project-arrow{color:#fff !important}
.project-root .project-logo{background:#fff}

/* Equilibrio del bloque de proyectos */
.ecosystem{
  margin-top:2.2rem;
  margin-bottom:1.6rem;
}

/* Trayectoria: separación suficiente para que no parezca cortada */
#trayectoria.section{
  padding-top:5.6rem;
  padding-bottom:5.8rem;
}
#trayectoria .section-heading{
  align-items:flex-end;
}

@media (max-width:1099px){
  #proyectos .section-heading h2{white-space:normal}
}

@media (max-width:900px){
  #proyectos.section{
    padding-top:4rem;
    padding-bottom:4.6rem;
  }
  #trayectoria.section{
    padding-top:4.2rem;
    padding-bottom:4.5rem;
  }
  .about-hero-photo{
    max-width:none;
    border-radius:0;
    box-shadow:none;
  }
}


/* =========================================================
   V0.7 · Home por pantallas / secciones completas
   Criterio:
   Desktop = una sección principal por viewport.
   Mobile = altura natural y scroll continuo.
   ========================================================= */

:root{
  --header-height-desktop:84px;
}

/* Base Desktop */
@media (min-width:901px){
  .home-screen{
    min-height:calc(100vh - var(--header-height-desktop));
    display:flex;
    align-items:center;
    position:relative;
    scroll-margin-top:var(--header-height-desktop);
  }

  .home-screen > .container{
    width:min(calc(100% - 2rem),var(--container));
  }

  /* Hero ya tiene su propia retícula */
  .home-screen-hero{
    padding:0;
  }
  .home-screen-hero .hero-grid{
    width:min(calc(100% - 2rem),var(--container));
    margin-inline:auto;
    min-height:calc(100vh - var(--header-height-desktop));
    max-height:none;
    align-items:stretch;
  }

  /* Quién soy */
  .home-screen-about{
    padding-block:4.25rem;
  }

  /* Qué construyo: pantalla completa y centrada */
  .home-screen-projects{
    padding-block:4.5rem;
  }
  .home-screen-projects .container{
    display:flex;
    flex-direction:column;
    justify-content:center;
  }
  .home-screen-projects .section-heading{
    margin-bottom:2.35rem;
  }
  .home-screen-projects .ecosystem{
    margin-top:1.25rem;
    margin-bottom:0;
  }
  .home-screen-projects .project-root{
    min-height:126px;
    max-width:500px;
  }
  .home-screen-projects .project-children{
    gap:1.25rem;
  }
  .home-screen-projects .project{
    min-height:132px;
    padding:1.35rem 1.4rem;
  }
  .home-screen-projects .project-logo{
    width:125px;
    height:66px;
  }
  .home-screen-projects .project-logo-root{
    width:165px;
    height:72px;
  }

  /* Trayectoria como escena completa */
  .home-screen-timeline{
    padding-block:4.7rem;
  }
  .home-screen-timeline .container{
    display:flex;
    flex-direction:column;
    justify-content:center;
  }

  /* Ideas */
  .home-screen-ideas{
    padding-block:4.25rem;
  }
  .home-screen-ideas .container{
    display:flex;
    flex-direction:column;
    justify-content:center;
  }

  /* Archivo */
  .home-screen-archive{
    padding-block:4.25rem;
  }
  .home-screen-archive .container{
    display:grid;
    align-content:center;
  }

  /* Contacto como cierre-pantalla.
     El footer queda después del viewport, no "pegado" dentro de la misma escena. */
  .home-screen-contact{
    min-height:calc(100vh - var(--header-height-desktop));
    padding:0;
  }
  .home-screen-contact .contact-inner{
    min-height:calc(100vh - var(--header-height-desktop));
    align-content:center;
  }
}

/* En pantallas Desktop bajas evitamos compresión excesiva:
   la sección puede crecer si el contenido lo requiere. */
@media (min-width:901px) and (max-height:760px){
  .home-screen{
    min-height:calc(100vh - var(--header-height-desktop));
    align-items:flex-start;
  }
  .home-screen-about,
  .home-screen-projects,
  .home-screen-timeline,
  .home-screen-ideas,
  .home-screen-archive{
    padding-top:3.5rem;
    padding-bottom:3.5rem;
  }
  .home-screen-projects .project{
    min-height:118px;
  }
}

/* Mobile / tablet: contenido natural, sin forzar 100vh */
@media (max-width:900px){
  .home-screen{
    min-height:0;
    display:block;
    scroll-margin-top:72px;
  }

  .home-screen-hero .hero-grid{
    min-height:auto;
  }

  .home-screen-contact{
    min-height:0;
  }

  .home-screen-contact .contact-inner{
    min-height:0;
  }
}


/* =========================================================
   V0.8 · Ajustes de contenido y composición
   ========================================================= */

/* 1) Párrafos narrativos justificados en Desktop */
@media (min-width:901px){
  .about-lede,
  .narrative-copy p,
  .about-closing p:not(.eyebrow){
    text-align:justify;
    text-justify:inter-word;
    hyphens:auto;
  }
}

/* En Mobile conservamos alineación izquierda para evitar huecos excesivos */
@media (max-width:900px){
  .about-lede,
  .narrative-copy p,
  .about-closing p:not(.eyebrow){
    text-align:left;
    hyphens:none;
  }
}

/* 2) Qué construyo: tarjetas más grandes y logos con mayor presencia */
@media (min-width:901px){
  .home-screen-projects .project-root{
    min-height:150px;
    max-width:560px;
    padding:1.55rem 1.65rem;
  }

  .home-screen-projects .project-children{
    gap:1.5rem;
  }

  .home-screen-projects .project{
    min-height:160px;
    padding:1.6rem 1.65rem;
  }

  .home-screen-projects .project-logo{
    width:150px;
    height:82px;
    padding:.55rem;
  }

  .home-screen-projects .project-logo-root{
    width:190px;
    height:88px;
  }

  .home-screen-projects .project h3{
    font-size:1.08rem;
  }

  .home-screen-projects .project p{
    font-size:.94rem;
    line-height:1.55;
  }

  .home-screen-projects .project-arrow{
    font-size:1.22rem;
  }

  /* Baja visualmente el enlace para que no compita con el título */
  .home-screen-projects .projects-all-link{
    align-self:flex-end;
    margin-top:1.25rem;
    margin-bottom:.25rem;
  }
}

/* 3) IBGMx: preservar alto contraste */
.home-screen-projects .project-root h3{
  color:#fff !important;
}
.home-screen-projects .project-root p{
  color:#dce5eb !important;
}
.home-screen-projects .project-root .project-arrow{
  color:#fff !important;
}

/* 4) Mobile: crecer logos de manera controlada sin romper tarjetas */
@media (max-width:900px){
  .home-screen-projects .project-logo{
    width:118px;
    height:62px;
  }
  .home-screen-projects .project-logo-root{
    width:138px;
    height:68px;
  }
}


/* =========================================================
   V0.9 · Quién soy / Límites / Justificación narrativa
   ========================================================= */

/* Justificación consistente de todos los párrafos narrativos en Desktop */
@media (min-width:901px){
  .about-lede,
  .narrative-copy > p,
  .about-closing p:not(.eyebrow){
    text-align:justify;
    text-align-last:left;
    text-justify:inter-word;
    hyphens:none;
  }
}

/* Mobile: prioridad a legibilidad */
@media (max-width:900px){
  .about-lede,
  .narrative-copy > p,
  .about-closing p:not(.eyebrow){
    text-align:left;
    text-align-last:auto;
    hyphens:none;
  }
}

/* LÍMITES: un único símbolo rector de "alto / no negociable" */
.limits-eyebrow{
  display:flex;
  align-items:center;
  gap:.65rem;
}

.limit-symbol{
  width:22px;
  height:22px;
  flex:0 0 22px;
  border:1.6px solid var(--copper);
  border-radius:50%;
  position:relative;
  display:inline-block;
}

.limit-symbol::after{
  content:"";
  position:absolute;
  width:11px;
  height:2px;
  background:var(--copper);
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  border-radius:2px;
}

/* Título de Límites en un solo renglón en Desktop amplio */
@media (min-width:1100px){
  .limits-eyebrow + h2{
    max-width:none;
    white-space:nowrap;
    font-size:clamp(2.2rem,3.05vw,3.4rem);
    letter-spacing:-.03em;
  }

  .principles-grid{
    gap:1.15rem;
  }

  .principles-grid article{
    min-height:235px;
    padding:1.55rem;
  }
}

/* Evitar forzar una sola línea cuando el ancho ya no lo permite */
@media (max-width:1099px){
  .limits-eyebrow + h2{
    white-space:normal;
  }
}


/* =========================================================
   V0.10 · Hero conceptual + reconocimiento visual del ecosistema
   ========================================================= */

/* HERO: sustituye fotografía/placeholder por composición propietaria */
.hero-cycle-visual{
  isolation:isolate;
  background:
    radial-gradient(circle at 68% 44%,rgba(160,106,42,.10),transparent 19%),
    linear-gradient(145deg,#f7f9fa 0%,#e9eef2 52%,#f6f2ec 100%);
}
.hero-cycle-visual::before,
.hero-cycle-visual::after{display:none}

.cycle-architecture{
  position:absolute;
  inset:8% 6% 11%;
}
.cycle-ring{
  position:absolute;
  border:1px solid rgba(13,27,42,.18);
  border-radius:50%;
}
.cycle-ring-1{
  width:min(31vw,430px);height:min(31vw,430px);
  right:7%;top:14%;
}
.cycle-ring-2{
  width:min(20vw,275px);height:min(20vw,275px);
  right:14%;top:23%;
  border-color:rgba(160,106,42,.55);
}
.cycle-core{
  position:absolute;
  width:72px;height:72px;border-radius:18px;
  right:calc(14% + min(10vw,137px) - 36px);
  top:calc(23% + min(10vw,137px) - 36px);
  background:var(--navy);
  box-shadow:0 18px 45px rgba(13,27,42,.16);
}
.cycle-node{
  position:absolute;
  width:18px;height:18px;border-radius:50%;
  background:var(--copper);
  box-shadow:0 0 0 7px rgba(160,106,42,.10);
}
.cycle-node-1{left:9%;bottom:20%}
.cycle-node-2{left:31%;top:28%}
.cycle-node-3{left:45%;bottom:14%}
.cycle-node-4{right:8%;bottom:18%}
.cycle-line{
  position:absolute;height:1px;
  background:linear-gradient(90deg,rgba(13,27,42,.20),rgba(160,106,42,.75));
  transform-origin:left center;
}
.cycle-line-1{left:10%;bottom:21%;width:34%;transform:rotate(-42deg)}
.cycle-line-2{left:32%;top:29%;width:37%;transform:rotate(31deg)}
.cycle-line-3{left:46%;bottom:15%;width:36%;transform:rotate(-27deg)}
.cycle-caption{
  position:absolute;
  left:8%;bottom:6%;
  margin:0;
  color:var(--navy);
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.18em;
}
.cycle-caption i{color:var(--copper);font-style:normal;margin:0 .5rem}

/* QUIÉN SOY / EVOLUCIÓN: tarjetas blancas con logotipos oficiales */
.about-project-link{
  min-height:92px;
  padding:1rem 1.25rem;
  background:#fff;
  border:1px solid rgba(13,27,42,.14);
  color:var(--navy);
  box-shadow:0 8px 24px rgba(13,27,42,.04);
}
.about-project-link:hover,
.about-project-link:focus-visible{
  background:#fff;
  border-color:var(--copper);
  transform:translateY(-2px);
  box-shadow:0 12px 28px rgba(13,27,42,.09);
}
.about-project-link > span{
  color:var(--copper);
  font-size:1.05rem;
}
.about-project-logo{
  display:block;
  width:auto;
  max-width:76%;
  max-height:54px;
  object-fit:contain;
  object-position:left center;
}
.about-project-logo-ibgmx{max-width:72%;max-height:50px}
.about-project-logo-intech{max-width:78%;max-height:48px}
.about-project-logo-indigital{max-width:72%;max-height:52px}
.about-project-logo-inacademy{max-width:74%;max-height:52px}

@media (max-width:900px){
  .cycle-architecture{inset:8% 4% 12%}
  .cycle-ring-1{width:250px;height:250px;right:4%;top:5%}
  .cycle-ring-2{width:165px;height:165px;right:15%;top:18%}
  .cycle-core{width:54px;height:54px;right:calc(15% + 82px - 27px);top:calc(18% + 82px - 27px)}
  .cycle-caption{left:6%;bottom:6%;font-size:.62rem;letter-spacing:.12em}
  .about-project-link{min-height:84px}
  .about-project-logo{max-width:72%;max-height:48px}
}


/* =========================================================
   V0.11 · Hero final de revisión + Límites + cierre
   ========================================================= */

/* HERO: imagen conceptual aportada por el usuario */
.hero-image-visual{
  position:relative;
  overflow:hidden;
  min-height:100%;
  background:var(--navy);
  border-left:1px solid var(--line);
}
.hero-image-visual::before,
.hero-image-visual::after{
  display:none !important;
}
.hero-main-image{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center center;
}

/* LÍMITES: mayor jerarquía del símbolo + etiqueta */
.limits-eyebrow{
  gap:.8rem;
  font-size:.9rem;
  letter-spacing:.14em;
  font-weight:800;
}

.limit-symbol{
  width:28px;
  height:28px;
  flex-basis:28px;
  border-width:1.8px;
}

.limit-symbol::after{
  width:14px;
  height:2.2px;
}

/* Nuevo título de principios */
@media (min-width:1100px){
  .limits-eyebrow + h2{
    white-space:nowrap;
    max-width:none;
    font-size:clamp(2.25rem,3vw,3.35rem);
  }
}

/* Cierre: párrafo plenamente justificado en Desktop */
@media (min-width:901px){
  .about-closing p:not(.eyebrow){
    text-align:justify !important;
    text-align-last:left;
    text-justify:inter-word;
  }

  .about-closing h2{
    max-width:20ch;
    line-height:1.02;
  }
}

/* Mobile: preservar lectura natural */
@media (max-width:900px){
  .hero-image-visual{
    height:330px;
    min-height:0;
    border-left:0;
    border-top:1px solid var(--line);
  }

  .hero-main-image{
    object-position:center center;
  }

  .limits-eyebrow{
    font-size:.82rem;
  }

  .limit-symbol{
    width:25px;
    height:25px;
    flex-basis:25px;
  }

  .about-closing p:not(.eyebrow){
    text-align:left !important;
    text-align-last:auto;
  }

  .about-closing h2 br{
    display:none;
  }
}


/* =========================================================
   V0.14 · Motor Editorial PHP
   ========================================================= */
.article-hero{
  background:var(--soft);
  border-bottom:1px solid var(--line);
}
.article-hero-inner{
  max-width:980px;
  padding-block:5rem 3.5rem;
}
.article-hero h1{
  margin:.2rem 0 1.25rem;
  color:var(--navy);
  font-size:clamp(2.8rem,5vw,5.2rem);
  line-height:1.02;
  letter-spacing:-.035em;
}
.article-meta{
  display:flex;
  flex-wrap:wrap;
  gap:.7rem 1.2rem;
  color:var(--muted);
  font-size:.85rem;
}
.seo-priority{
  color:var(--copper);
  font-weight:800;
}
.article-layout{
  display:grid;
  grid-template-columns:minmax(0,780px) minmax(220px,300px);
  gap:4.5rem;
  align-items:start;
}
.article-content{
  font-size:1.04rem;
  line-height:1.8;
  color:var(--text);
  text-align:justify;
  text-justify:inter-word;
}
.article-content p{
  text-align:justify;
  text-justify:inter-word;
}
.article-content img{
  max-width:100%;
  height:auto;
  display:block;
  margin:1.5rem auto;
}
.article-content a{
  color:var(--copper);
  text-underline-offset:3px;
}
.article-content h2,
.article-content h3{
  color:var(--navy);
  margin-top:2rem;
}
.article-aside{
  position:sticky;
  top:110px;
  padding:1.25rem;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--soft);
}
.article-aside p{
  color:var(--muted);
  font-size:.9rem;
}
.article-taxonomy{
  margin-top:1.25rem;
  padding-top:1rem;
  border-top:1px solid var(--line);
}
.archive-index-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1.25rem;
}
.archive-index-card{
  border:1px solid var(--line);
  border-radius:14px;
  padding:1.35rem;
  background:#fff;
}
.archive-index-card h2{
  font-size:1.25rem;
  line-height:1.25;
  margin:.3rem 0 .8rem;
}
.archive-index-card p:not(.meta){
  color:var(--muted);
}

@media (max-width:900px){
  .article-hero-inner{padding-block:3.5rem 2.5rem}
  .article-hero h1{font-size:2.65rem}
  .article-layout{grid-template-columns:1fr;gap:2rem}
  .article-aside{position:static}
  .archive-index-grid{grid-template-columns:1fr}
}


/* =========================================================
   V0.15 · Piloto editorial SEO optimizado
   ========================================================= */
.archive-editorial-note{
  margin:0 0 2rem;
  padding:1.15rem 1.25rem;
  border-left:3px solid var(--copper);
  background:var(--soft);
  color:var(--text);
}
.archive-editorial-note strong{
  display:block;
  margin-bottom:.35rem;
  color:var(--navy);
}
.archive-editorial-note p{
  margin:0;
  color:var(--muted);
  font-size:.94rem;
}
.article-content ul{
  margin:1rem 0 1.75rem 1.25rem;
  padding:0;
}
.article-content li{
  margin:.45rem 0;
  line-height:1.65;
}
.legacy-figure{
  margin:1.75rem 0 2.25rem;
}
.legacy-figure img{
  width:auto;
  max-width:min(100%, 420px);
  height:auto;
  margin-left:auto;
  margin-right:auto;
  border:1px solid var(--line);
  border-radius:12px;
}

.article-content img.legacy-media{
  width:auto;
  max-width:min(100%, 520px);
  height:auto;
  margin-left:auto;
  margin-right:auto;
}

.article-content .archive-note-compact{
  margin-top:2.25rem;
  padding:1rem 1.1rem;
  border:1px solid var(--line);
  border-radius:10px;
}

.article-content .archive-note-compact p{
  margin:0;
  font-size:.94rem;
  line-height:1.65;
}
.legacy-figure figcaption{
  margin-top:.55rem;
  color:var(--muted);
  font-size:.82rem;
}
.home-screen-archive .archive-card h3{
  line-height:1.28;
}




/* =========================================================
   V0.18 · Hero limpio + Archivo + P1 editorial
   ========================================================= */

/* HOME HERO: el panel derecho adopta estrictamente la altura
   natural de la imagen. Sin marco superior/inferior artificial. */
@media (min-width:901px){
  .home-screen-hero{
    min-height:0 !important;
    height:auto !important;
    padding:0 !important;
    align-items:center;
  }

  .home-screen-hero .hero-grid{
    min-height:0 !important;
    max-height:none !important;
    align-items:center;
  }

  .home-screen-hero .hero-image-visual{
    min-height:0 !important;
    height:auto !important;
    padding:0 !important;
    margin:0 !important;
    aspect-ratio:auto !important;
    background:transparent !important;
    border-left:0 !important;
    display:flex;
    align-items:flex-start;
    justify-content:center;
    overflow:visible;
  }

  .home-screen-hero .hero-main-image{
    display:block;
    width:100% !important;
    max-width:709px !important;
    height:auto !important;
    max-height:none !important;
    margin:0 !important;
    padding:0 !important;
    object-fit:contain !important;
    object-position:top center !important;
    background:transparent !important;
  }
}

@media (max-width:900px){
  .home-screen-hero .hero-image-visual{
    min-height:0 !important;
    height:auto !important;
    padding:0 !important;
    margin:0 !important;
    aspect-ratio:auto !important;
    background:transparent !important;
    border:0 !important;
  }
  .home-screen-hero .hero-main-image{
    display:block;
    width:100% !important;
    height:auto !important;
    max-height:none !important;
    margin:0 auto !important;
    object-fit:contain !important;
  }
}

/* QUÉ CONSTRUYO: mantener CTA debajo del título sin traslape. */
@media (min-width:1100px){
  .home-screen-projects .section-heading{
    position:relative;
    display:block;
    margin-bottom:3.4rem;
  }
  .home-screen-projects .section-heading > div{width:100%}
  .home-screen-projects .projects-all-link-desktop{
    position:absolute;
    right:0;
    top:100%;
    margin-top:1rem;
    margin-bottom:0;
    white-space:nowrap;
  }
}

/* ARCHIVO: una línea en desktop amplio y Hero compacto. */
.archive-page-hero .page-hero-inner{
  min-height:0;
  padding-block:2.6rem 2.2rem;
}
@media (min-width:1100px){
  .archive-page-hero h1{
    font-size:clamp(2.8rem,3.7vw,3.9rem) !important;
    max-width:none !important;
    white-space:nowrap;
    letter-spacing:-.035em;
  }
}
@media (max-width:1099px){
  .archive-page-hero h1{white-space:normal}
}

/* P1 editorial: imágenes históricas y créditos. */
.legacy-credit{
  margin:.55rem 0 1.5rem;
  font-size:.82rem;
  color:var(--muted);
}
.legacy-credit a{
  color:var(--copper);
  font-weight:700;
}


/* =========================================================
   V0.19 · Cierre P2 + ajustes visuales acumulados
   ========================================================= */

/* Header: logo horizontal maestro V1.1 con +18% de presencia
   sin aumentar la altura del header. */
.site-logo img,
.brand img,
.header-logo img{
  transform:scale(1.30);
  transform-origin:left center;
}

/* Ideas Home: sin placeholders hasta existir publicaciones nuevas. */
.ideas-empty-state{
  min-height:420px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:4rem;
}
.ideas-empty-state > div{
  max-width:760px;
}
.ideas-empty-state p:not(.eyebrow){
  max-width:720px;
  color:var(--muted);
  font-size:1.05rem;
  line-height:1.7;
}
@media (max-width:900px){
  .ideas-empty-state{
    min-height:0;
    display:block;
  }
  .ideas-empty-state .text-link{
    display:inline-block;
    margin-top:1.5rem;
  }
}


/* ================================================================
   RC4.3 · Archivo histórico
   ================================================================ */

/* Todos los artículos del Archivo se presentan justificados. */
.article-content p,
.article-content li{
  text-align:justify;
  text-justify:inter-word;
}

.article-content p{
  margin:0 0 1.15rem;
}

.article-content ul,
.article-content ol{
  margin:0 0 1.35rem;
  padding-left:1.5rem;
}

.article-content li + li{
  margin-top:.42rem;
}

/* Imágenes históricas: centradas y sin ampliar archivos pequeños. */
.article-content .legacy-figure{
  margin:1.6rem auto 1.8rem;
  text-align:center;
}

.article-content .legacy-figure img,
.article-content img.legacy-media{
  display:block;
  width:auto;
  max-width:min(100%, 440px);
  height:auto;
  margin-inline:auto;
}

.article-content img.legacy-media-wide{
  max-width:min(100%, 625px);
}

/* Buscador de Archivo */
.archive-search{
  max-width:760px;
  margin:0 auto 2.2rem;
}

.archive-search label{
  display:block;
  margin-bottom:.55rem;
  font-weight:700;
  color:var(--navy);
}

.archive-search-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:.65rem;
}

.archive-search input{
  width:100%;
  min-height:50px;
  padding:.8rem 1rem;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  color:var(--text);
  outline:none;
}

.archive-search input:focus{
  border-color:var(--copper);
  box-shadow:0 0 0 3px rgba(160,106,42,.10);
}

.archive-search-button{
  min-height:50px;
  padding:.75rem 1.2rem;
  border:0;
  border-radius:8px;
  background:var(--navy);
  color:#fff;
  font-weight:700;
  cursor:pointer;
}

.archive-search-button:hover,
.archive-search-button:focus-visible{
  background:var(--copper);
}

.archive-search-summary{
  margin:0 0 1.6rem;
  color:var(--muted);
  font-size:.92rem;
}

.archive-search-summary a{
  margin-left:.45rem;
  color:var(--copper);
  font-weight:700;
}

.archive-empty{
  max-width:620px;
  margin:2rem auto;
  text-align:center;
  padding:2rem;
  border:1px solid var(--line);
  border-radius:12px;
}

.archive-empty h2{
  font-size:1.45rem;
}

@media (max-width:640px){
  .archive-search-row{
    grid-template-columns:1fr;
  }
  .archive-search-button{
    width:100%;
  }
}

/* RC4.5 · Justificación obligatoria del Archivo en todos los viewports */
.article-content,
.legacy-article .article-content p,
.legacy-article .article-content li,
.article-content p,
.article-content li{
  text-align:justify !important;
  text-justify:inter-word;
}


/* ================================================================
   RC4.6 · Consolidación técnica P3-01
   ================================================================ */
.legacy-article .article-content p,
.legacy-article .article-content li{
  text-align:justify !important;
  text-justify:inter-word;
  hyphens:auto;
}

.archive-final-note{
  margin-top:2rem !important;
  padding-top:1.15rem;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:.94rem;
  line-height:1.65;
}

.archive-search{
  max-width:840px;
  margin:0 auto 1rem;
  padding:1.15rem;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  box-shadow:0 8px 24px rgba(13,27,42,.05);
}
.archive-search label{
  display:block;
  margin:0 0 .65rem;
  color:var(--navy);
  font-size:.86rem;
  font-weight:700;
  letter-spacing:.02em;
}
.archive-search-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:.65rem;
  align-items:stretch;
}
.archive-search input[type="search"]{
  appearance:none;
  -webkit-appearance:none;
  width:100%;
  min-width:0;
  min-height:52px;
  margin:0;
  padding:.82rem 1rem;
  border:1px solid #cfd7dc;
  border-radius:9px;
  background:#fff;
  color:var(--text);
  font:inherit;
  line-height:1.2;
}
.archive-search input[type="search"]::placeholder{color:#7a8992;}
.archive-search input[type="search"]:focus{
  border-color:var(--copper);
  outline:0;
  box-shadow:0 0 0 3px rgba(160,106,42,.12);
}
.archive-search-button{
  min-width:118px;
  min-height:52px;
  margin:0;
  padding:.8rem 1.35rem;
  border:1px solid var(--navy);
  border-radius:9px;
  background:var(--navy);
  color:#fff;
  font:inherit;
  font-weight:700;
  cursor:pointer;
}
.archive-search-button:hover,
.archive-search-button:focus-visible{
  border-color:var(--copper);
  background:var(--copper);
}
.archive-search-summary{
  max-width:840px;
  margin:.75rem auto 1.75rem;
  padding:0 .15rem;
  color:var(--muted);
  font-size:.94rem;
  line-height:1.5;
}
.archive-search-summary strong{color:var(--navy);}
.archive-search-summary a{
  margin-left:.35rem;
  color:var(--copper);
  font-weight:700;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}
@media (max-width:640px){
  .archive-search{padding:1rem;border-radius:12px;}
  .archive-search-row{grid-template-columns:1fr;}
  .archive-search-button{width:100%;}
  .archive-search-summary{margin-top:.65rem;}
}

/* RC4.16 — Subtítulos históricos: mismo tamaño visual que el cuerpo */
.legacy-article .legacy-body-subtitle,
.article-content .legacy-body-subtitle,
.legacy-body-subtitle {
  font-size: 1rem !important;
  line-height: 1.75 !important;
  font-weight: 400 !important;
}
.legacy-article .legacy-body-subtitle strong,
.article-content .legacy-body-subtitle strong,
.legacy-body-subtitle strong {
  font-size: 1rem !important;
  line-height: 1.75 !important;
  font-weight: 700 !important;
}


/* RC4.18 — Archivo agrupado por año */
.archive-year-groups{
  display:grid;
  gap:1rem;
  margin-top:1.5rem;
}
.archive-year-group{
  border:1px solid rgba(13,27,42,.12);
  border-radius:16px;
  background:#fff;
  overflow:hidden;
}
.archive-year-summary{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:1rem;
  padding:1.15rem 1.25rem;
  cursor:pointer;
  list-style:none;
  background:#eef2f4;
}
.archive-year-summary::-webkit-details-marker{display:none}
.archive-year-title{
  font-size:1.15rem;
  font-weight:700;
}
.archive-year-count{
  font-size:.9rem;
  opacity:.72;
}
.archive-year-group[open] .archive-year-summary{
  border-bottom:1px solid rgba(13,27,42,.12);
}
.archive-year-grid{
  padding:1.25rem;
}
@media (max-width:640px){
  .archive-year-summary{
    padding:1rem;
  }
  .archive-year-grid{
    padding:1rem;
  }
}

/* RC4.19 — Aviso de Privacidad */
.privacy-page > p{max-width:72rem;margin:0 0 2.25rem;line-height:1.7}
.privacy-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid rgba(13,27,42,.15);margin:0 0 2rem}
.privacy-card{padding:2rem;border-right:1px solid rgba(13,27,42,.15);border-bottom:1px solid rgba(13,27,42,.15)}
.privacy-card:nth-child(2n){border-right:0}
.privacy-card:nth-last-child(-n+2){border-bottom:0}
.privacy-card h2,.privacy-limited h2{font-size:1.35rem;margin:0 0 .65rem}
.privacy-card p,.privacy-limited p{margin:0;line-height:1.65}
.privacy-limited{padding:1.6rem 2rem;border-left:4px solid #A06A2A;background:rgba(160,106,42,.06)}
@media(max-width:720px){
  .privacy-grid{grid-template-columns:1fr}
  .privacy-card,.privacy-card:nth-child(2n),.privacy-card:nth-last-child(-n+2){border-right:0;border-bottom:1px solid rgba(13,27,42,.15)}
  .privacy-card:last-child{border-bottom:0}
  .privacy-card{padding:1.35rem}
  .privacy-limited{padding:1.35rem}
}

/* RC4.20 — Analytics consent */
.cookie-consent[hidden] { display: none !important; }
.cookie-consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; padding: 1rem; background: rgba(13,27,42,.97); }
.cookie-consent-inner { max-width: 1180px; margin: 0 auto; display: flex; gap: 1rem; align-items: center; justify-content: space-between; }
.cookie-consent p { margin: 0; color: #fff; font-size: .9rem; line-height: 1.55; }
.cookie-consent a { color: #fff; text-decoration: underline; }
.cookie-consent-actions { display: flex; gap: .65rem; flex: 0 0 auto; }
.cookie-consent .button { cursor: pointer; }
@media (max-width: 720px) { .cookie-consent-inner { align-items: stretch; flex-direction: column; } .cookie-consent-actions { width: 100%; } .cookie-consent-actions .button { flex: 1; } }

/* RC4.21 — Reapertura de preferencias de cookies */
.footer-cookie-preferences {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}
.footer-cookie-preferences:hover,
.footer-cookie-preferences:focus-visible { text-decoration-thickness: 2px; }
