/* ============================================================
   patricioguzman.cl — Cabecera, menú responsivo y pie
   Paleta de marca: navy del logo + azul y morado del hero.
   ============================================================ */
:root{
  --navy:#1D3A65; --azul:#2E6BFF; --morado:#7A3FF2;
  --tint:#EEF3FF; --tinta:#1B2733; --gris:#5B6B7B;
  --borde:#E5E8F0; --pie:#0F1B33;
  --fuente:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --ancho:1200px; --barra:72px;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
/* Pie pegajoso: el footer se va al fondo aunque la página tenga poco contenido */
body{font-family:var(--fuente);font-size:16px;line-height:1.6;color:var(--tinta);background:#fff;
     min-height:100vh;display:flex;flex-direction:column}
.contenido{flex:1 0 auto}
img{max-width:100%;height:auto;display:block}
a:focus-visible,button:focus-visible{outline:3px solid var(--azul);outline-offset:2px;border-radius:6px}

.acento-top{height:3px;background:linear-gradient(90deg,var(--azul),var(--morado))}

.barra{position:sticky;top:0;z-index:1000;background:#fff;border-bottom:1px solid var(--borde);box-shadow:0 1px 10px rgba(15,27,51,.06)}
.barra__interior{max-width:var(--ancho);margin:0 auto;min-height:var(--barra);padding:0 20px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.marca img{height:42px;width:auto}

/* Hamburguesa: pegada a la derecha en móvil; reset de apariencia para iOS Safari */
.hamburguesa{display:none;-webkit-appearance:none;appearance:none;margin-left:auto;
  flex-direction:column;justify-content:center;gap:5px;width:48px;height:48px;background:transparent;border:0;cursor:pointer}
.hamburguesa span{display:block;width:26px;height:3px;background:var(--navy);border-radius:3px;transition:transform .25s,opacity .25s}
.hamburguesa[aria-expanded="true"] span:nth-child(1){transform:translateY(8px) rotate(45deg)}
.hamburguesa[aria-expanded="true"] span:nth-child(2){opacity:0}
.hamburguesa[aria-expanded="true"] span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}

.menu,.submenu,.submenu-n3{list-style:none}
.menu__enlace{font:inherit;font-weight:600;color:var(--navy);text-decoration:none;background:transparent;border:0;cursor:pointer;display:flex;align-items:center;gap:6px}

/* ===== ESCRITORIO (>=1024px) ===== */
@media(min-width:1024px){
  .hamburguesa{display:none}
  .menu{display:flex;gap:2px;align-items:center}
  .menu>li{position:relative}
  .menu__enlace{padding:12px 14px;border-radius:8px}
  .menu>li>.menu__enlace:hover,.menu>li:hover>.menu__enlace,.menu>li:focus-within>.menu__enlace{background:var(--tint);color:var(--azul)}
  .menu>li.tiene-submenu>.menu__enlace::after{content:"\25BE";font-size:.62em;margin-left:2px}

  .submenu{position:absolute;top:100%;left:0;min-width:230px;background:#fff;border:1px solid var(--borde);border-radius:10px;box-shadow:0 14px 34px rgba(15,27,51,.14);padding:6px;opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .16s,transform .16s,visibility .16s}
  .menu>li:hover>.submenu,.menu>li:focus-within>.submenu{opacity:1;visibility:visible;transform:translateY(0)}
  .submenu::before{content:"";position:absolute;top:-12px;left:0;right:0;height:14px} /* puente invisible */
  .submenu li{position:relative}
  .submenu .menu__enlace{width:100%;padding:10px 12px;border-radius:7px;font-weight:500;white-space:nowrap}
  .submenu .menu__enlace:hover,.submenu li:hover>.menu__enlace,.submenu li:focus-within>.menu__enlace{background:var(--tint);color:var(--azul)}
  .submenu .tiene-submenu>.menu__enlace::after{content:"\25B8";margin-left:auto;padding-left:14px;font-size:.8em}

  .submenu-n3{position:absolute;top:-7px;left:100%;min-width:200px;background:#fff;border:1px solid var(--borde);border-radius:10px;box-shadow:0 14px 34px rgba(15,27,51,.14);padding:6px;opacity:0;visibility:hidden;transform:translateX(8px);transition:opacity .16s,transform .16s,visibility .16s}
  .submenu>li:hover>.submenu-n3,.submenu>li:focus-within>.submenu-n3{opacity:1;visibility:visible;transform:translateX(0)}
  .submenu-n3::before{content:"";position:absolute;top:0;bottom:0;left:-14px;width:16px} /* puente lateral */
  .submenu-n3 .menu__enlace{width:100%;padding:9px 12px;border-radius:7px;font-weight:500}
  .submenu-n3 .menu__enlace:hover{background:var(--tint);color:var(--azul)}
}

/* ===== TABLET Y MÓVIL (<=1023px) ===== */
@media(max-width:1023px){
  .hamburguesa{display:flex}
  .menu{display:none;position:absolute;top:var(--barra);left:0;right:0;background:#fff;border-top:1px solid var(--borde);box-shadow:0 14px 26px rgba(15,27,51,.10);max-height:calc(100vh - var(--barra));overflow-y:auto;padding:4px 0 22px}
  .menu.abierto{display:block}
  .menu li{border-bottom:1px solid #f0f2f7}
  .menu__enlace{width:100%;justify-content:space-between;min-height:54px;padding:0 20px}
  .tiene-submenu>.menu__enlace::after{content:"\25BE";font-size:.8em;transition:transform .2s}
  .tiene-submenu.abierto>.menu__enlace::after{transform:rotate(180deg)}
  .submenu,.submenu-n3{display:none;background:#f7f9fd}
  .tiene-submenu.abierto>.submenu,.tiene-submenu.abierto>.submenu-n3{display:block}
  .submenu .menu__enlace{padding-left:36px}
  .submenu-n3{background:#eef2f9}
  .submenu-n3 .menu__enlace{padding-left:54px}
}

/* ===== FOOTER COMPACTO ===== */
.pie{background:var(--pie);color:rgba(255,255,255,.82);flex-shrink:0}
.pie__interior{max-width:var(--ancho);margin:0 auto;padding:24px 20px;display:flex;flex-wrap:wrap;gap:18px 28px;align-items:center;justify-content:space-between}
.pie__marca{display:flex;align-items:center;gap:12px}
.pie__marca img{height:38px;width:auto}
.pie__marca b{color:#fff;font-size:.98rem;display:block;line-height:1.2}
.pie__marca small{font-size:.82rem;color:rgba(255,255,255,.7)}
.pie__nav{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:.92rem}
.pie__cont{display:flex;flex-wrap:wrap;gap:4px 18px;font-size:.9rem}
.pie a{color:rgba(255,255,255,.82);text-decoration:none}
.pie a:hover{color:#fff}
.pie__redes{display:flex;gap:10px}
.pie__redes a{width:38px;height:38px;border:1px solid rgba(255,255,255,.22);border-radius:50%;display:flex;align-items:center;justify-content:center}
.pie__redes a:hover{border-color:var(--azul)}
.pie__legal{border-top:1px solid rgba(255,255,255,.12);padding:12px 20px;display:flex;flex-wrap:wrap;gap:6px 16px;justify-content:center;font-size:.82rem}

.whatsapp{position:fixed;right:18px;bottom:18px;width:56px;height:56px;background:#25D366;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 14px rgba(0,0,0,.25);z-index:1100}
.whatsapp svg{width:30px;height:30px;fill:#fff}

@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}

/* ===== HEROE PORTADA ===== */
.pg-hero{position:relative;overflow:hidden;
  background:radial-gradient(120% 90% at 88% 0%, rgba(46,107,255,.06), transparent 60%), #f6f8fc;}
.pg-hero__inner{max-width:1180px;margin:0 auto;
  padding:clamp(40px,7vw,92px) 6vw clamp(48px,7vw,96px);
  display:grid;grid-template-columns:1fr;gap:clamp(36px,5vw,64px);align-items:center;}
.pg-hero__eyebrow{margin:0 0 18px;font-family:"Fraunces",Georgia,serif;
  font-size:14px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;
  color:#2E6BFF;display:inline-flex;align-items:center;gap:10px;}
.pg-hero__eyebrow::before{content:"";width:30px;height:2px;border-radius:2px;
  background:linear-gradient(90deg,#2E6BFF,#7A3FF2);}
.pg-hero__title{font-family:"Fraunces",Georgia,serif;font-weight:600;
  font-size:clamp(2.4rem,5.4vw,4.1rem);line-height:1.06;letter-spacing:normal;
  color:#1D3A65;margin:0 0 22px;}
.pg-hero__lead{font-family:"Inter",system-ui,sans-serif;
  font-size:clamp(1.05rem,1.6vw,1.25rem);line-height:1.6;color:#5A6B82;
  max-width:34ch;margin:0 0 34px;}
.pg-hero__lead strong{color:#15243d;font-weight:600;}
.pg-hero__actions{display:flex;flex-wrap:wrap;gap:14px;margin-bottom:38px;}
.pg-btn{display:inline-flex;align-items:center;justify-content:center;min-height:52px;
  padding:0 26px;border-radius:12px;font-family:"Inter",system-ui,sans-serif;
  font-size:1rem;font-weight:600;text-decoration:none;
  transition:transform .15s ease, box-shadow .2s ease, background .2s ease;}
.pg-btn--primary{color:#fff;background:#1D3A65;box-shadow:0 10px 24px -12px rgba(29,58,101,.65);}
.pg-btn--primary:hover{background:#16314f;transform:translateY(-1px);}
.pg-btn--ghost{color:#1D3A65;background:#fff;border:1.5px solid #e6ebf3;}
.pg-btn--ghost:hover{border-color:#2E6BFF;color:#2E6BFF;transform:translateY(-1px);}
.pg-btn:focus-visible{outline:3px solid #7A3FF2;outline-offset:3px;}
.pg-hero__stats{list-style:none;margin:0;padding:26px 0 0;border-top:1px solid #e6ebf3;
  display:flex;flex-wrap:wrap;gap:28px 40px;font-family:"Inter",system-ui,sans-serif;}
.pg-hero__stats li{font-size:.95rem;color:#5A6B82;line-height:1.3;}
.pg-hero__stats span{display:block;font-family:"Fraunces",Georgia,serif;font-weight:600;
  font-size:1.7rem;color:#1D3A65;letter-spacing:normal;}
.pg-hero__figure{margin:0;justify-self:center;width:100%;max-width:400px;}
.pg-hero__portrait{position:relative;aspect-ratio:1080/1350;width:100%;
  border-radius:200px 200px 18px 18px;overflow:hidden;
  box-shadow:0 30px 60px -28px rgba(21,36,61,.55);outline:1px solid rgba(29,58,101,.10);}
.pg-hero__slide{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  display:block;opacity:0;transition:opacity .9s ease;z-index:1;}
.pg-hero__slide.is-active{opacity:1;}
.pg-hero__slide:nth-child(1){object-position:50% 22%;}  /* estudiante */
.pg-hero__slide:nth-child(2){object-position:50% 38%;}  /* sede */
.pg-hero__portrait::before{content:"";position:absolute;inset:0;border-radius:inherit;padding:3px;z-index:2;
  background:linear-gradient(140deg,#2E6BFF,#7A3FF2);
  -webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor;mask-composite:exclude;opacity:.9;pointer-events:none;}
.pg-hero__figure figcaption{margin-top:16px;text-align:center;font-size:.85rem;color:#5A6B82;
  font-family:"Inter",system-ui,sans-serif;}
@media (min-width:880px){
  .pg-hero__inner{grid-template-columns:1.15fr .85fr;}
  .pg-hero__figure{justify-self:end;max-width:430px;}
}
@keyframes pgSubir{from{opacity:0;transform:translateY(14px);}to{opacity:1;transform:none;}}
.pg-hero__content>*{animation:pgSubir .6s ease both;}
.pg-hero__content>*:nth-child(2){animation-delay:.06s;}
.pg-hero__content>*:nth-child(3){animation-delay:.12s;}
.pg-hero__content>*:nth-child(4){animation-delay:.18s;}
.pg-hero__content>*:nth-child(5){animation-delay:.24s;}
.pg-hero__figure{animation:pgSubir .7s ease .1s both;}
@media (prefers-reduced-motion:reduce){
  .pg-hero__content>*,.pg-hero__figure{animation:none;} .pg-btn{transition:none;}
  .pg-hero__slide{transition:none;}
}

/* ===== Paginas legales (Privacidad, Terminos, Cookies) ===== */
.pg-legal{background:#fff;color:#1f2733;}
.pg-legal__wrap{max-width:820px;margin:0 auto;padding:48px 20px 72px;}
.pg-legal__crumbs{font-size:14px;color:#5b6b86;margin-bottom:24px;}
.pg-legal__crumbs a{color:#2E6BFF;text-decoration:none;}
.pg-legal__crumbs a:hover{text-decoration:underline;}
.pg-legal h1{font-family:'Source Serif 4',Georgia,serif;color:#1D3A65;font-size:34px;line-height:1.2;margin:0 0 8px;}
.pg-legal__updated{color:#5b6b86;font-size:15px;margin:0 0 32px;}
.pg-legal h2{font-family:'Source Serif 4',Georgia,serif;color:#1D3A65;font-size:22px;margin:36px 0 12px;}
.pg-legal p,.pg-legal li{font-size:16px;line-height:1.7;}
.pg-legal ul,.pg-legal ol{padding-left:22px;margin:0 0 16px;}
.pg-legal li{margin-bottom:6px;}
.pg-legal a{color:#2E6BFF;}
.pg-legal strong{color:#1D3A65;}
@media(max-width:560px){.pg-legal__wrap{padding:32px 16px 56px;}.pg-legal h1{font-size:28px;}}
