
:root{--t:#009C9A;--td:#006B70;--p:#073642;--ink:#111719;--muted:#617074;--soft:#F4F8F8;--line:#DDE8E8;--max:1180px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;line-height:1.5}a{color:inherit;text-decoration:none}img{max-width:100%;display:block}.container{width:min(var(--max),calc(100% - 44px));margin:auto}.eyebrow{margin:0 0 12px;color:var(--td);font-size:.78rem;font-weight:800;letter-spacing:.18em;text-transform:uppercase}.display{margin:0;font-size:clamp(3rem,6vw,5.8rem);line-height:.95;letter-spacing:-.06em}.title{margin:0;font-size:clamp(2rem,4vw,3.8rem);line-height:1;letter-spacing:-.05em}.lead{font-size:1.12rem;color:#435255;max-width:720px}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:0 22px;border-radius:12px;border:1px solid transparent;font-weight:750}.primary{background:var(--t);color:white}.primary:hover{background:var(--td)}.outline{border-color:var(--td);color:var(--td);background:white}.card{border:1px solid var(--line);border-radius:22px;background:white;box-shadow:0 18px 50px rgba(7,54,66,.08)}
header{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);backdrop-filter:blur(12px)}.nav{min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand img{width:230px;height:58px;object-fit:contain;object-position:left}.menu{display:flex;gap:28px;align-items:center;list-style:none;margin:0;padding:0;font-size:.94rem;font-weight:650}.item{position:relative}.link{display:block;padding:29px 0 25px}.link.active{color:var(--td)}.drop{position:absolute;top:63px;left:-18px;width:245px;padding:10px;background:white;border:1px solid var(--line);border-radius:15px;box-shadow:0 18px 50px rgba(7,54,66,.12);opacity:0;visibility:hidden;transform:translateY(8px);transition:.18s}.item:hover .drop,.item:focus-within .drop{opacity:1;visibility:visible;transform:none}.drop a{display:block;padding:12px;border-radius:9px}.drop a:hover{background:var(--soft);color:var(--td)}.drop hr{border:0;border-top:1px solid var(--line);margin:6px}.hamb{display:none;border:0;background:var(--soft);width:45px;height:45px;border-radius:10px}
.hero{min-height:625px;background:linear-gradient(90deg,#fff 0%,#fff 42%,rgba(255,255,255,.88) 52%,rgba(255,255,255,0) 68%),url("https://images.unsplash.com/photo-1524995997946-a1c2e315a42f?auto=format&fit=crop&w=1800&q=88") center right/cover no-repeat}.hero .container{min-height:625px;display:flex;align-items:center}.hero-copy{max-width:660px}.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}.strip{background:var(--soft);border-block:1px solid var(--line)}.strip-inner{min-height:90px;display:grid;grid-template-columns:1fr auto;gap:20px;align-items:center}.strip strong{display:block}.strip small{color:var(--muted)}.reg{font-weight:850;color:var(--p)}
.section{padding:92px 0}.head{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-bottom:40px}.head p{max-width:470px;color:var(--muted);margin:0}.journals{display:grid;grid-template-columns:1fr 1fr;gap:28px}.journal{display:grid;grid-template-columns:205px 1fr;overflow:hidden}.cover{padding:20px;min-height:320px;background:linear-gradient(145deg,#effafa,#dfeeee);display:grid;place-items:center}.cover img{width:100%;height:100%;object-fit:cover;box-shadow:0 12px 30px rgba(0,0,0,.16)}.fallback{display:none;width:100%;aspect-ratio:.72;place-items:center;background:linear-gradient(145deg,var(--p),var(--t));color:white;font-weight:850;font-size:1.45rem;text-align:center}.jbody{padding:34px;display:flex;flex-direction:column;justify-content:center}.jbody h3{margin:0 0 8px;font-size:2rem}.jbody p{color:var(--muted);margin:0 0 24px}
.library{display:grid;grid-template-columns:1fr 1fr;overflow:hidden;border-radius:26px;background:linear-gradient(135deg,var(--p),#075563);color:white}.library-copy{padding:60px}.library-copy .eyebrow{color:#82e6e2}.library-copy p{color:#d9eeee}.library-photo{min-height:350px;background:linear-gradient(90deg,rgba(7,54,66,.72),transparent),url("https://images.unsplash.com/photo-1544947950-fa07a98d237f?auto=format&fit=crop&w=1300&q=88") center/cover}.teaser{padding:44px 48px;background:var(--soft);border:1px solid var(--line);border-radius:22px;display:flex;justify-content:space-between;align-items:center;gap:30px}.teaser p{margin:8px 0 0;color:var(--muted)}
.page-hero{padding:94px 0 80px;background:radial-gradient(circle at 82% 18%,rgba(0,156,154,.14),transparent 25%),linear-gradient(135deg,#fff,#f4fbfb);border-bottom:1px solid var(--line)}.about-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:60px}.info3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:28px}.info{padding:28px}.info h3{margin:0 0 10px;color:var(--p)}.info p{margin:0;color:var(--muted)}.institution{background:var(--soft)}.facts{display:grid;grid-template-columns:1fr 1fr;gap:18px}.ibox{padding:35px}.fact-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:22px}.fact{padding:16px;background:white;border:1px solid var(--line);border-radius:12px}.fact b{display:block;color:var(--p)}.fact span{color:var(--muted);font-size:.92rem}.team{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:36px}.person{padding:32px}.avatar{width:68px;height:68px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,var(--p),var(--t));color:white;font-weight:900;margin-bottom:20px}.person h3{margin:0 0 5px}.role{color:var(--td);font-weight:800}
.pub{display:grid;grid-template-columns:250px 1fr;gap:42px;align-items:center;padding:34px;margin-bottom:26px}.pub .cover{border-radius:15px;min-height:335px}.pub h2{font-size:3rem;margin:0 0 8px}.tags{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0 24px}.tag{padding:8px 12px;border-radius:999px;background:var(--soft);border:1px solid var(--line);font-size:.84rem;font-weight:750;color:var(--p)}
.contact{display:grid;grid-template-columns:.9fr 1.1fr;gap:30px}.contact-card{padding:38px}.contact-list{margin-top:26px}.contact-row{padding:16px 0;border-bottom:1px solid var(--line)}.contact-row:last-child{border:0}.contact-row small{display:block;color:var(--muted)}.socials{display:flex;gap:9px;flex-wrap:wrap;margin-top:24px}.social{padding:11px 14px;border:1px solid var(--line);border-radius:10px;font-weight:750}.map{overflow:hidden;min-height:520px}.map iframe{width:100%;height:100%;min-height:520px;border:0}
footer{background:#061f25;color:#d6e7e8;padding:52px 0 26px}.footer-grid{display:grid;grid-template-columns:1.3fr .7fr .8fr;gap:45px}.footer-logo{width:245px;filter:invert(1) brightness(4)}.footer-copy{color:#9fbdc0;max-width:420px}.ftitle{font-weight:850;color:white;margin:0 0 12px}.flinks{display:grid;gap:8px;color:#adc7c9;font-size:.92rem}.copy{margin-top:35px;padding-top:20px;border-top:1px solid rgba(255,255,255,.12);color:#83a7aa;font-size:.84rem}
@media(max-width:960px){.menu{position:absolute;top:78px;left:22px;right:22px;display:none;flex-direction:column;align-items:stretch;gap:0;padding:14px;background:white;border:1px solid var(--line);border-radius:16px;box-shadow:0 18px 50px rgba(7,54,66,.12)}.menu.open{display:flex}.link{padding:12px}.drop{position:static;display:none;width:auto;opacity:1;visibility:visible;transform:none;border:0;box-shadow:none}.item.open .drop{display:block}.hamb{display:block}.hero{background:linear-gradient(90deg,rgba(255,255,255,.98),rgba(255,255,255,.82)),url("https://images.unsplash.com/photo-1524995997946-a1c2e315a42f?auto=format&fit=crop&w=1400&q=88") center/cover}.journals,.contact,.about-grid,.facts{grid-template-columns:1fr}.library{grid-template-columns:1fr}.team,.info3{grid-template-columns:1fr 1fr}.pub{grid-template-columns:220px 1fr}.footer-grid{grid-template-columns:1fr 1fr}.footer-grid>div:first-child{grid-column:1/-1}}
@media(max-width:680px){.container{width:min(var(--max),calc(100% - 28px))}.brand img{width:190px}.hero,.hero .container{min-height:560px}.strip-inner{grid-template-columns:1fr;padding:18px 0}.head{align-items:start;flex-direction:column}.journal{grid-template-columns:140px 1fr}.cover{min-height:280px;padding:12px}.jbody{padding:22px 18px}.library-copy{padding:40px 28px}.teaser{padding:32px 26px;align-items:flex-start;flex-direction:column}.info3,.team{grid-template-columns:1fr}.fact-grid{grid-template-columns:1fr}.pub{grid-template-columns:1fr;padding:22px}.pub .cover{min-height:auto}.pub .cover img{width:min(230px,80%);height:auto}.footer-grid{grid-template-columns:1fr}.footer-grid>div:first-child{grid-column:auto}}


/* ===== RIICHS V2: EDITORIAL VISUAL SYSTEM ===== */
:root{
  --aqua-wash:#EAF8F7;
  --aqua-pale:#F4FBFA;
  --petrol-wash:#EAF1F2;
}

/* Minimal editorial texture shared by inner pages */
.page-hero{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 83% 22%,rgba(0,156,154,.22),transparent 18%),
    radial-gradient(circle at 68% 82%,rgba(7,54,66,.09),transparent 24%),
    linear-gradient(135deg,#ffffff 0%,#F3FBFA 58%,#E7F5F4 100%);
}
.page-hero::before{
  content:"";
  position:absolute;
  width:310px;height:410px;
  right:8%;top:-120px;
  border:1px solid rgba(0,107,112,.16);
  border-radius:4px;
  transform:rotate(8deg);
  box-shadow:
    -22px 20px 0 -1px rgba(255,255,255,.45),
    -22px 20px 0 0 rgba(0,107,112,.10),
    -44px 40px 0 -1px rgba(255,255,255,.35),
    -44px 40px 0 0 rgba(0,107,112,.07);
}
.page-hero::after{
  content:"“";
  position:absolute;
  right:4%;
  bottom:-95px;
  font-family:Georgia,serif;
  font-size:330px;
  line-height:1;
  color:rgba(0,156,154,.07);
  pointer-events:none;
}
.page-hero .container{position:relative;z-index:2}

/* Alternating editorial section backgrounds */
body:has(.page-hero) main > .section:nth-of-type(2){
  position:relative;
  background:
    linear-gradient(rgba(255,255,255,.91),rgba(255,255,255,.91)),
    repeating-linear-gradient(90deg,transparent 0,transparent 79px,rgba(0,156,154,.055) 80px);
}
body:has(.page-hero) main > .section:nth-of-type(3){
  position:relative;
}
body:has(.page-hero) main > .section:nth-of-type(3)::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 12% 18%,rgba(0,156,154,.08),transparent 17%),
    radial-gradient(circle at 88% 78%,rgba(7,54,66,.06),transparent 20%);
}

/* Refined institutional section */
.institution{
  position:relative;
  overflow:hidden;
  background:
    linear-gradient(120deg,#EAF8F7 0%,#F7FBFB 54%,#EDF4F4 100%);
}
.institution::after{
  content:"RIICHS";
  position:absolute;
  right:-22px;
  bottom:-50px;
  font-size:150px;
  font-weight:900;
  letter-spacing:-.08em;
  color:rgba(7,54,66,.035);
  pointer-events:none;
}
.institution > .container{position:relative;z-index:1}

/* Cards get a subtle editorial accent */
.info,.person,.ibox,.pub,.contact-card,.map{
  position:relative;
}
.info::before,.person::before,.ibox::before,.pub::before,.contact-card::before{
  content:"";
  position:absolute;
  top:0;left:28px;
  width:58px;height:4px;
  border-radius:0 0 5px 5px;
  background:var(--t);
}
.person:nth-child(2)::before,.pub:nth-child(2)::before{background:var(--p)}

/* Journals page background and visual separation */
.publications-editorial{
  background:
    linear-gradient(180deg,#fff 0%,#F5FAFA 48%,#fff 100%);
}
.pub{
  overflow:hidden;
  background:
    linear-gradient(110deg,rgba(234,248,247,.52),rgba(255,255,255,.96) 42%);
}
.pub:nth-child(2){
  background:
    linear-gradient(110deg,rgba(234,241,242,.68),rgba(255,255,255,.96) 42%);
}

/* Contact page */
.contact-editorial{
  position:relative;
  background:
    linear-gradient(180deg,#fff,#F3FAF9);
}
.contact-editorial::before{
  content:"";
  position:absolute;
  left:0;right:0;top:0;height:170px;
  background:
    linear-gradient(90deg,rgba(0,156,154,.055) 1px,transparent 1px),
    linear-gradient(rgba(0,156,154,.055) 1px,transparent 1px);
  background-size:34px 34px;
  mask-image:linear-gradient(to bottom,#000,transparent);
  pointer-events:none;
}
.contact-editorial > .container{position:relative;z-index:1}

/* Social brand buttons with original brand marks/colors */
.social{
  display:inline-flex;
  align-items:center;
  gap:9px;
  background:#fff;
  transition:.18s ease;
}
.social svg{width:20px;height:20px;display:block;flex:0 0 20px}
.social-facebook{color:#1877F2;border-color:rgba(24,119,242,.24)}
.social-instagram{color:#C13584;border-color:rgba(193,53,132,.24)}
.social-whatsapp{color:#128C7E;border-color:rgba(18,140,126,.24)}
.social:hover{transform:translateY(-1px);box-shadow:0 8px 22px rgba(7,54,66,.08)}

/* Footer social icon row */
.footer-socials{display:flex;gap:10px;margin-top:18px}
.footer-social{
  width:39px;height:39px;border-radius:50%;
  display:grid;place-items:center;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  transition:.18s ease;
}
.footer-social:hover{background:rgba(255,255,255,.15);transform:translateY(-1px)}
.footer-social svg{width:19px;height:19px;fill:white}

/* Small decorative rule for section headings */
.head .title::after,.section > .container > .title::after{
  content:"";
  display:block;
  width:58px;height:4px;
  margin-top:17px;
  border-radius:99px;
  background:var(--t);
}

@media(max-width:680px){
  .page-hero::before{right:-140px;opacity:.65}
  .page-hero::after{font-size:220px;bottom:-60px}
  .institution::after{font-size:90px}
}


/* ===== RIICHS V3: CABECERAS EDITORIALES + LOGO MAYOR ===== */

/* Marca principal más visible */
.brand img{
  width:320px !important;
  height:72px !important;
  object-fit:contain;
  object-position:left center;
}
.nav{min-height:92px}
.drop{top:76px}

/* Hero interior: composición editorial de dos planos */
.page-hero{
  min-height:440px;
  display:flex;
  align-items:center;
  padding:80px 0;
}
.page-hero .container{
  width:min(var(--max),calc(100% - 44px));
}
.page-hero .display{
  max-width:880px;
}
.page-hero .lead{
  max-width:700px;
  margin-top:24px;
}

/* NOSOTROS: hojas editoriales abstractas */
body.page-nosotros .page-hero{
  background:
    radial-gradient(circle at 80% 20%,rgba(0,156,154,.20),transparent 18%),
    linear-gradient(120deg,#FFFFFF 0%,#F5FBFA 57%,#E7F5F4 100%);
}
body.page-nosotros .page-hero::before{
  width:290px;height:370px;
  right:9%;top:35px;
  transform:rotate(7deg);
  background:rgba(255,255,255,.34);
  box-shadow:
    -24px 22px 0 rgba(255,255,255,.44),
    -25px 23px 0 rgba(0,107,112,.08),
    -48px 44px 0 rgba(255,255,255,.28),
    -49px 45px 0 rgba(0,107,112,.055);
}
body.page-nosotros .page-hero::after{
  content:"RIICHS";
  right:3%;
  bottom:-10px;
  font-family:Inter,system-ui,sans-serif;
  font-size:120px;
  font-weight:900;
  letter-spacing:-.08em;
  color:rgba(7,54,66,.035);
}

/* REVISTAS: líneas de páginas y columna turquesa */
body.page-revistas .page-hero{
  background:
    linear-gradient(90deg,#FFFFFF 0%,#FFFFFF 58%,rgba(234,248,247,.96) 58%,rgba(234,248,247,.96) 100%);
}
body.page-revistas .page-hero::before{
  width:270px;height:350px;
  right:10%;top:45px;
  border:1px solid rgba(0,107,112,.15);
  background:
    linear-gradient(rgba(0,156,154,.08) 1px,transparent 1px);
  background-size:100% 31px;
  transform:rotate(4deg);
  box-shadow:
    -25px 24px 0 rgba(255,255,255,.65),
    -26px 25px 0 rgba(0,107,112,.09);
}
body.page-revistas .page-hero::after{
  content:"Aa";
  right:3%;
  bottom:-50px;
  font-family:Georgia,serif;
  font-style:italic;
  font-size:210px;
  color:rgba(0,156,154,.07);
}

/* CONTACTO: retícula académica + nodo */
body.page-contacto .page-hero{
  background:
    radial-gradient(circle at 82% 46%,rgba(0,156,154,.20),transparent 10%),
    linear-gradient(135deg,#FFFFFF 0%,#F7FCFB 56%,#EAF7F6 100%);
}
body.page-contacto .page-hero::before{
  width:360px;height:360px;
  right:5%;top:35px;
  border:0;
  border-radius:50%;
  transform:none;
  background:
    linear-gradient(90deg,rgba(0,107,112,.07) 1px,transparent 1px),
    linear-gradient(rgba(0,107,112,.07) 1px,transparent 1px);
  background-size:30px 30px;
  box-shadow:none;
  mask-image:radial-gradient(circle,#000 0%,rgba(0,0,0,.8) 48%,transparent 72%);
}
body.page-contacto .page-hero::after{
  content:"";
  width:90px;height:90px;
  right:16%;bottom:70px;
  border-radius:50%;
  background:rgba(0,156,154,.10);
  border:1px solid rgba(0,107,112,.16);
}

/* Inicio: el logo más grande requiere un poco más de respiración */
body.page-inicio .hero{
  margin-top:0;
}

/* Refinamiento editorial de títulos */
body.page-nosotros .page-hero .display,
body.page-revistas .page-hero .display,
body.page-contacto .page-hero .display{
  position:relative;
}
body.page-nosotros .page-hero .display::after,
body.page-revistas .page-hero .display::after,
body.page-contacto .page-hero .display::after{
  content:"";
  display:block;
  width:74px;height:5px;
  margin-top:25px;
  border-radius:99px;
  background:var(--t);
}

/* Responsive del logo y cabeceras */
@media(max-width:960px){
  .brand img{width:270px !important;height:66px !important}
  .nav{min-height:84px}
  .menu{top:84px}
  .page-hero{min-height:400px}
}
@media(max-width:680px){
  .brand img{width:235px !important;height:62px !important}
  .nav{min-height:78px}
  .menu{top:78px}
  .page-hero{min-height:360px;padding:62px 0}
  body.page-revistas .page-hero{
    background:linear-gradient(135deg,#fff,#ECF8F7);
  }
  body.page-nosotros .page-hero::before,
  body.page-revistas .page-hero::before,
  body.page-contacto .page-hero::before{
    opacity:.35;
    right:-145px;
  }
  body.page-nosotros .page-hero::after{font-size:72px}
}


/* ===== RIICHS V4: LOGO XL + HEROES VISUALES ===== */
.brand img{
  width:455px !important;
  height:104px !important;
  object-fit:contain;
  object-position:left center;
}
.nav{min-height:116px}
.drop{top:98px}

/* Stronger visual identity on inner-page headers */
.page-hero{
  min-height:500px;
  padding:86px 0;
  border-bottom:0;
}
.page-hero::before{opacity:1 !important}

/* A visible editorial side-panel without relying on copyrighted photography */
body.page-nosotros .page-hero,
body.page-revistas .page-hero,
body.page-contacto .page-hero{
  position:relative;
}
body.page-nosotros .page-hero .container,
body.page-revistas .page-hero .container,
body.page-contacto .page-hero .container{
  padding-right:390px;
}
body.page-nosotros .page-hero::before{
  width:320px;height:410px;right:6%;top:45px;
  background:
    linear-gradient(90deg,rgba(0,156,154,.12) 1px,transparent 1px),
    linear-gradient(rgba(0,156,154,.10) 1px,transparent 1px),
    linear-gradient(145deg,#fff,#E1F4F2);
  background-size:34px 34px,34px 34px,100% 100%;
  border:1px solid rgba(0,107,112,.25);
  box-shadow:-28px 28px 0 #fff,-29px 29px 0 rgba(0,107,112,.15),-56px 56px 0 rgba(234,248,247,.9);
}
body.page-nosotros .page-hero::after{
  content:"RIICHS";
  font-size:128px;
  color:rgba(7,54,66,.07);
  right:2%;bottom:0;
}
body.page-revistas .page-hero{
  background:linear-gradient(100deg,#fff 0%,#fff 55%,#DFF4F2 55%,#EAF8F7 100%);
}
body.page-revistas .page-hero::before{
  width:315px;height:400px;right:6%;top:48px;
  background:
    linear-gradient(rgba(7,54,66,.11) 1px,transparent 1px),
    linear-gradient(145deg,#fff,#E9F7F6);
  background-size:100% 34px,100% 100%;
  border:1px solid rgba(7,54,66,.2);
  box-shadow:-26px 25px 0 rgba(255,255,255,.9),-27px 26px 0 rgba(0,107,112,.13);
}
body.page-revistas .page-hero::after{
  content:"Aa";
  font-size:225px;
  color:rgba(0,107,112,.10);
  right:1%;bottom:-35px;
}
body.page-contacto .page-hero{
  background:
    linear-gradient(100deg,#fff 0%,#fff 56%,#E2F5F3 56%,#F0FAF9 100%);
}
body.page-contacto .page-hero::before{
  width:350px;height:350px;right:5%;top:65px;
  background:
    radial-gradient(circle at 50% 50%,rgba(0,156,154,.28) 0 5px,transparent 6px),
    linear-gradient(90deg,rgba(7,54,66,.12) 1px,transparent 1px),
    linear-gradient(rgba(7,54,66,.12) 1px,transparent 1px);
  background-size:70px 70px,35px 35px,35px 35px;
  border-radius:28px;
  border:1px solid rgba(0,107,112,.14);
  mask-image:none;
}
body.page-contacto .page-hero::after{
  width:130px;height:130px;right:14%;bottom:38px;
  background:rgba(0,156,154,.15);
  border:2px solid rgba(0,107,112,.18);
}

/* Legal footer */
.legal-links{
  display:flex;gap:14px;flex-wrap:wrap;margin-top:14px;
  font-size:.82rem;color:#9fbfc1
}
.legal-links a{text-decoration:underline;text-underline-offset:3px}
.legal-note{max-width:720px}

/* Cookie banner */
.cookie-banner{
  position:fixed;z-index:1000;left:20px;right:20px;bottom:20px;
  max-width:1050px;margin:auto;
  padding:20px 22px;
  border-radius:16px;
  background:#fff;
  border:1px solid var(--line);
  box-shadow:0 18px 60px rgba(7,54,66,.22);
  display:none;
  align-items:center;justify-content:space-between;gap:24px
}
.cookie-banner.show{display:flex}
.cookie-banner p{margin:0;color:#425356;font-size:.92rem}
.cookie-actions{display:flex;gap:9px;flex-shrink:0}
.cookie-actions button{cursor:pointer}

/* Legal pages */
.legal-page{padding:78px 0;background:linear-gradient(180deg,#F4FBFA,#fff 280px)}
.legal-content{max-width:900px}
.legal-content h1{font-size:clamp(2.7rem,5vw,4.6rem);letter-spacing:-.05em;margin:0 0 18px}
.legal-content h2{margin:38px 0 10px;color:var(--p);font-size:1.45rem}
.legal-content p,.legal-content li{color:#4f6063}
.legal-content ul{padding-left:22px}
.legal-box{padding:24px 28px;background:var(--soft);border:1px solid var(--line);border-radius:16px;margin:24px 0}

@media(max-width:1050px){
  .brand img{width:365px !important;height:90px !important}
  .nav{min-height:102px}
  .menu{gap:20px}
  .drop{top:86px}
}
@media(max-width:960px){
  .brand img{width:330px !important;height:82px !important}
  .nav{min-height:94px}
  .menu{top:94px}
  body.page-nosotros .page-hero .container,
  body.page-revistas .page-hero .container,
  body.page-contacto .page-hero .container{padding-right:280px}
  body.page-nosotros .page-hero::before,
  body.page-revistas .page-hero::before,
  body.page-contacto .page-hero::before{right:-70px}
}
@media(max-width:680px){
  .brand img{width:280px !important;height:72px !important}
  .nav{min-height:84px}
  .menu{top:84px}
  body.page-nosotros .page-hero .container,
  body.page-revistas .page-hero .container,
  body.page-contacto .page-hero .container{padding-right:0}
  body.page-nosotros .page-hero::before,
  body.page-revistas .page-hero::before,
  body.page-contacto .page-hero::before{opacity:.16 !important;right:-180px}
  .cookie-banner{align-items:stretch;flex-direction:column}
  .cookie-actions{width:100%}
  .cookie-actions .btn{flex:1}
}


/* =========================================================
   REVISION APROBADA:
   - Inicio conserva su portada original de V4.
   - Logo conserva el tamaño aprobado.
   - Solo Nosotros, Revistas y Contacto reciben fotografía.
   ========================================================= */

/* Logo aprobado */
.brand img{
  width:182px !important;
  height:58px !important;
  object-fit:contain;
  object-position:left center;
}
.nav{min-height:78px}
.drop{top:64px}

/* Base para portadas internas con fotografía editorial discreta */
body.page-nosotros .page-hero,
body.page-revistas .page-hero,
body.page-contacto .page-hero{
  min-height:430px;
  padding:76px 0;
  position:relative;
  display:flex;
  align-items:center;
  overflow:hidden;
  border-bottom:1px solid rgba(7,54,66,.08);
}

/* El texto queda en una zona limpia y legible */
body.page-nosotros .page-hero .container,
body.page-revistas .page-hero .container,
body.page-contacto .page-hero .container{
  position:relative;
  z-index:3;
  padding-right:42%;
}
body.page-nosotros .page-hero .display,
body.page-revistas .page-hero .display,
body.page-contacto .page-hero .display{
  max-width:760px;
}
body.page-nosotros .page-hero .lead,
body.page-revistas .page-hero .lead,
body.page-contacto .page-hero .lead{
  max-width:640px;
}

/* NOSOTROS — libro abierto / conocimiento */
body.page-nosotros .page-hero{
  background:
    linear-gradient(90deg,
      rgba(255,255,255,.99) 0%,
      rgba(255,255,255,.96) 39%,
      rgba(244,251,250,.78) 56%,
      rgba(234,248,247,.18) 75%,
      rgba(234,248,247,.05) 100%),
    url("../images/portada-nosotros.jpg")
    70% center/cover no-repeat;
}

/* REVISTAS — libros y proceso de publicación */
body.page-revistas .page-hero{
  background:
    linear-gradient(90deg,
      rgba(255,255,255,.99) 0%,
      rgba(255,255,255,.96) 38%,
      rgba(240,250,249,.76) 56%,
      rgba(223,244,242,.18) 76%,
      rgba(223,244,242,.04) 100%),
    none
    72% center/cover no-repeat;
}

/* CONTACTO — escritorio académico/editorial */
body.page-contacto .page-hero{
  background:
    linear-gradient(90deg,
      rgba(255,255,255,.99) 0%,
      rgba(255,255,255,.96) 39%,
      rgba(244,251,250,.76) 57%,
      rgba(226,245,243,.16) 77%,
      rgba(226,245,243,.03) 100%),
    url("../images/portada-contacto.jpg")
    72% center/cover no-repeat;
}

/* Quitamos los gráficos abstractos de V4 solo en estas tres portadas,
   porque ahora la fotografía cumple esa función visual. */
body.page-nosotros .page-hero::before,
body.page-nosotros .page-hero::after,
body.page-revistas .page-hero::before,
body.page-revistas .page-hero::after,
body.page-contacto .page-hero::before,
body.page-contacto .page-hero::after{
  display:none !important;
}

/* Pequeño acento RIICHS sobre la fotografía */
body.page-nosotros .page-hero .container::after,
body.page-revistas .page-hero .container::after,
body.page-contacto .page-hero .container::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-25px;
  width:72px;
  height:5px;
  border-radius:999px;
  background:var(--t);
}

/* Responsive */
@media(max-width:960px){
  .brand img{width:182px !important;height:58px !important}
  .nav{min-height:78px}
  .menu{top:78px}
  body.page-nosotros .page-hero .container,
  body.page-revistas .page-hero .container,
  body.page-contacto .page-hero .container{
    padding-right:28%;
  }
}
@media(max-width:680px){
  .brand img{width:168px !important;height:54px !important}
  body.page-nosotros .page-hero,
  body.page-revistas .page-hero,
  body.page-contacto .page-hero{
    min-height:390px;
  }
  body.page-nosotros .page-hero .container,
  body.page-revistas .page-hero .container,
  body.page-contacto .page-hero .container{
    padding-right:0;
  }
  body.page-nosotros .page-hero{
    background:
      linear-gradient(90deg,rgba(255,255,255,.98),rgba(255,255,255,.80)),
      url("https://images.unsplash.com/photo-1495446815901-a7297e633e8d?auto=format&fit=crop&w=1200&q=82") center/cover no-repeat;
  }
  body.page-revistas .page-hero{
    background:
      linear-gradient(90deg,rgba(255,255,255,.98),rgba(255,255,255,.80)),
      url("https://images.unsplash.com/photo-1456324504439-367cee3b3c32?auto=format&fit=crop&w=1200&q=82") center/cover no-repeat;
  }
  body.page-contacto .page-hero{
    background:
      linear-gradient(90deg,rgba(255,255,255,.98),rgba(255,255,255,.80)),
      url("https://images.unsplash.com/photo-1497215728101-856f4ea42174?auto=format&fit=crop&w=1200&q=82") center/cover no-repeat;
  }
}

/* WordPress template page hero photography */
body.page-template-default .page-hero{}
body.page-id-0{}
body.page .page-hero{}

/* Templates are identified by body class via slug classes added by WP */
body.page-nosotros .page-hero, body.page-template-page-nosotros .page-hero{
 background:linear-gradient(90deg,rgba(255,255,255,.99) 0%,rgba(255,255,255,.96) 39%,rgba(244,251,250,.78) 56%,rgba(234,248,247,.18) 75%),url("../images/portada-nosotros.jpg") 70% center/cover no-repeat;
}

/* RIICHS v1.1 — portadas internas seguras por ruta */
body.riichs-nosotros .page-hero,body.riichs-revistas .page-hero,body.riichs-contacto .page-hero{
 min-height:430px;padding:76px 0;position:relative;display:flex;align-items:center;overflow:hidden}
body.riichs-nosotros .page-hero .container,body.riichs-revistas .page-hero .container,body.riichs-contacto .page-hero .container{position:relative;z-index:3;padding-right:42%}
body.riichs-nosotros .page-hero{background:linear-gradient(90deg,rgba(255,255,255,.99) 0%,rgba(255,255,255,.96) 39%,rgba(244,251,250,.78) 56%,rgba(234,248,247,.18) 75%),url("../images/portada-nosotros.jpg") 70% center/cover no-repeat!important}
body.riichs-revistas .page-hero{background:linear-gradient(90deg,rgba(255,255,255,.99) 0%,rgba(255,255,255,.96) 38%,rgba(240,250,249,.76) 56%,rgba(223,244,242,.18) 76%),none 72% center/cover no-repeat!important}
body.riichs-contacto .page-hero{background:linear-gradient(90deg,rgba(255,255,255,.99) 0%,rgba(255,255,255,.96) 39%,rgba(244,251,250,.76) 57%,rgba(226,245,243,.16) 77%),url("../images/portada-contacto.jpg") 72% center/cover no-repeat!important}
body.riichs-nosotros .page-hero::before,body.riichs-nosotros .page-hero::after,body.riichs-revistas .page-hero::before,body.riichs-revistas .page-hero::after,body.riichs-contacto .page-hero::before,body.riichs-contacto .page-hero::after{display:none!important}
@media(max-width:680px){body.riichs-nosotros .page-hero .container,body.riichs-revistas .page-hero .container,body.riichs-contacto .page-hero .container{padding-right:0}}

/* =========================================================
   RIICHS 1.2 — RESTAURA EXACTAMENTE LAS PORTADAS INTERNAS
   APROBADAS EN LA ÚLTIMA VERSIÓN HTML.
   ========================================================= */
.page-hero.hero-nosotros,
.page-hero.hero-revistas,
.page-hero.hero-contacto{
  min-height:430px !important;
  padding:76px 0 !important;
  position:relative;
  display:flex;
  align-items:center;
  overflow:hidden;
  border-bottom:1px solid rgba(7,54,66,.08);
}
.page-hero.hero-nosotros .container,
.page-hero.hero-revistas .container,
.page-hero.hero-contacto .container{
  position:relative;
  z-index:3;
  padding-right:42%;
}
.page-hero.hero-nosotros{
  background:
    linear-gradient(90deg,
      rgba(255,255,255,.99) 0%,
      rgba(255,255,255,.96) 39%,
      rgba(244,251,250,.78) 56%,
      rgba(234,248,247,.18) 75%,
      rgba(234,248,247,.05) 100%),
    url("../images/portada-nosotros.jpg")
    70% center/cover no-repeat !important;
}
.page-hero.hero-revistas{
  background:
    linear-gradient(90deg,
      rgba(255,255,255,.99) 0%,
      rgba(255,255,255,.96) 38%,
      rgba(240,250,249,.76) 56%,
      rgba(223,244,242,.18) 76%,
      rgba(223,244,242,.04) 100%),
    none
    72% center/cover no-repeat !important;
}
.page-hero.hero-contacto{
  background:
    linear-gradient(90deg,
      rgba(255,255,255,.99) 0%,
      rgba(255,255,255,.96) 39%,
      rgba(244,251,250,.76) 57%,
      rgba(226,245,243,.16) 77%,
      rgba(226,245,243,.03) 100%),
    url("../images/portada-contacto.jpg")
    72% center/cover no-repeat !important;
}
.page-hero.hero-nosotros::before,.page-hero.hero-nosotros::after,
.page-hero.hero-revistas::before,.page-hero.hero-revistas::after,
.page-hero.hero-contacto::before,.page-hero.hero-contacto::after{
  display:none !important;
}
@media(max-width:680px){
  .page-hero.hero-nosotros,
  .page-hero.hero-revistas,
  .page-hero.hero-contacto{min-height:390px !important}
  .page-hero.hero-nosotros .container,
  .page-hero.hero-revistas .container,
  .page-hero.hero-contacto .container{padding-right:0}
}

/* RIICHS v1.3 — imágenes locales definitivas */
.page-hero.hero-nosotros{background:linear-gradient(90deg,rgba(255,255,255,.99) 0%,rgba(255,255,255,.96) 39%,rgba(244,251,250,.70) 56%,rgba(234,248,247,.12) 75%,rgba(234,248,247,.03) 100%),url("../images/portada-nosotros.jpg") 70% center/cover no-repeat!important}
.page-hero.hero-revistas{background:linear-gradient(90deg,rgba(255,255,255,.99) 0%,rgba(255,255,255,.96) 38%,rgba(240,250,249,.70) 56%,rgba(223,244,242,.12) 76%,rgba(223,244,242,.03) 100%),none 72% center/cover no-repeat!important}
.page-hero.hero-contacto{background:linear-gradient(90deg,rgba(255,255,255,.99) 0%,rgba(255,255,255,.96) 39%,rgba(244,251,250,.70) 57%,rgba(226,245,243,.10) 77%,rgba(226,245,243,.02) 100%),url("../images/portada-contacto.jpg") 72% center/cover no-repeat!important}
