/*
Theme Name: Maraniello Institucional
Theme URI: https://patriciomaraniello.com.ar/
Description: Tema institucional de Patricio Maraniello, basado en Blocksy.
Author: Sitio Patricio Maraniello
Template: blocksy
Version: 1.0.0
Text Domain: maraniello-institucional
*/

:root {
  --pm-navy: #0c263d;
  --pm-navy-2: #123b5a;
  --pm-blue: #1e638b;
  --pm-burgundy: #7e2735;
  --pm-ink: #14202a;
  --pm-muted: #5f6d78;
  --pm-line: #dbe3e9;
  --pm-paper: #f4f7f9;
  --pm-white: #ffffff;
  --pm-shadow: 0 18px 50px rgba(12, 38, 61, .12);
  --pm-radius: 14px;
  --pm-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--pm-ink);
  background: var(--pm-white);
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
body.admin-bar .pm-header { top: 32px; }
a { color: var(--pm-blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pm-burgundy); }
img { max-width: 100%; height: auto; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus { position: fixed !important; z-index: 99999; top: 12px; left: 12px; width: auto; height: auto; padding: 12px 16px; clip: auto; background: #fff; color: #000; }
.pm-container { width: min(calc(100% - 40px), var(--pm-width)); margin-inline: auto; }
.pm-section { padding: clamp(64px, 8vw, 112px) 0; }
.pm-section--soft { background: var(--pm-paper); }
.pm-section--navy { color: #fff; background: var(--pm-navy); }
.pm-eyebrow { margin: 0 0 12px; color: var(--pm-burgundy); font-size: .79rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.pm-section--navy .pm-eyebrow, .pm-hero .pm-eyebrow { color: #cda6ad; }
.pm-title { max-width: 850px; margin: 0 0 24px; color: var(--pm-navy); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.25rem, 5vw, 4.5rem); line-height: 1.06; letter-spacing: -.035em; }
.pm-section--navy .pm-title { color: #fff; }
.pm-lead { max-width: 760px; margin: 0; color: var(--pm-muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.pm-section--navy .pm-lead { color: #dce7ee; }

.pm-header { position: sticky; z-index: 1000; top: 0; color: #fff; background: rgba(8, 31, 49, .97); border-bottom: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(12px); }
.pm-header__inner { min-height: 82px; display: flex; align-items: center; gap: 34px; }
.pm-brand { flex: 0 0 auto; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; font-weight: 700; line-height: 1.05; text-decoration: none; }
.pm-brand span { display: block; margin-top: 5px; color: #b8cbd7; font-family: "Segoe UI", Arial, sans-serif; font-size: .63rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.pm-nav { margin-left: auto; }
.pm-nav ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.pm-nav li { position: relative; }
.pm-nav a { display: block; padding: 28px 13px; color: #dce7ee; font-size: .87rem; font-weight: 650; line-height: 1.1; text-decoration: none; }
.pm-nav a:hover, .pm-nav .current-menu-item > a, .pm-nav .current-menu-ancestor > a { color: #fff; }
.pm-nav .current-menu-item > a::after, .pm-nav .current-menu-ancestor > a::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 18px; height: 2px; background: #bd7c87; }
.pm-nav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 235px; display: none; padding: 8px; background: #fff; border-radius: 0 0 10px 10px; box-shadow: var(--pm-shadow); }
.pm-nav li:hover > .sub-menu, .pm-nav li:focus-within > .sub-menu { display: block; }
.pm-nav .sub-menu a { padding: 12px 14px; color: var(--pm-ink); }
.pm-header__cta { display: inline-flex; align-items: center; justify-content: center; padding: 11px 17px; color: #fff; background: var(--pm-burgundy); border-radius: 6px; font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-decoration: none; text-transform: uppercase; }
.pm-menu-toggle { display: none; margin-left: auto; padding: 10px; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; font: inherit; }
@media (min-width: 981px) { .pm-nav .pm-nav-contact-item { display: none !important; } }

.pm-hero { position: relative; min-height: min(760px, calc(100vh - 82px)); display: grid; align-items: center; overflow: hidden; color: #fff; background: var(--pm-navy); }
.pm-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,25,40,.97) 0%, rgba(8,31,49,.88) 45%, rgba(8,31,49,.17) 75%, rgba(8,31,49,.05) 100%); }
.pm-hero__photo { position: absolute; inset: 0 0 0 auto; width: 63%; height: 100%; object-fit: cover; object-position: center top; }
.pm-hero__content { position: relative; z-index: 1; width: min(720px, 62%); padding: 96px 0; }
.pm-hero h1 { margin: 0 0 24px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: clamp(4rem, 8vw, 7.5rem); font-weight: 700; line-height: .9; letter-spacing: -.055em; text-wrap: balance; }
.pm-hero__role { max-width: 680px; margin: 0 0 34px; color: #e4edf2; font-size: clamp(1rem, 1.6vw, 1.2rem); font-weight: 600; }
.pm-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pm-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 21px; color: #fff; background: var(--pm-burgundy); border: 2px solid var(--pm-burgundy); border-radius: 6px; font-size: .82rem; font-weight: 800; letter-spacing: .05em; text-decoration: none; text-transform: uppercase; }
.pm-button:hover { color: #fff; background: #681f2b; border-color: #681f2b; }
.pm-button--outline { color: #fff; background: transparent; border-color: rgba(255,255,255,.6); }
.pm-button--outline:hover { background: #fff; border-color: #fff; color: var(--pm-navy); }

.pm-intro { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 8vw, 100px); align-items: start; }
.pm-intro__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; background: var(--pm-line); border: 1px solid var(--pm-line); border-radius: var(--pm-radius); }
.pm-fact { padding: 26px; background: #fff; }
.pm-fact strong { display: block; color: var(--pm-navy); font-family: Georgia, serif; font-size: 2.3rem; line-height: 1; }
.pm-fact span { display: block; margin-top: 9px; color: var(--pm-muted); font-size: .85rem; line-height: 1.35; }
.pm-prose > :first-child { margin-top: 0; }
.pm-prose h2, .pm-prose h3, .pm-prose strong { color: var(--pm-navy); }
.pm-prose h2, .pm-prose h3 { font-family: Georgia, serif; line-height: 1.2; }
.pm-prose h2 { margin-top: 2.2em; font-size: 2rem; }
.pm-prose h3 { margin-top: 1.8em; font-size: 1.45rem; }
.pm-prose p, .pm-prose li { max-width: 800px; }
.pm-prose img.alignright { float: right; margin: 0 0 30px 40px; border-radius: 12px; }

.pm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 42px; }
.pm-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--pm-line); border-radius: var(--pm-radius); box-shadow: 0 10px 28px rgba(12,38,61,.07); }
.pm-card__image { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #dfe7ec; }
.pm-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.pm-card__image--flyer { aspect-ratio: 1; padding: 14px; background: #f5f7f9; }
.pm-card__image--flyer img { object-fit: contain; }
.pm-card:hover .pm-card__image--flyer img { transform: none; }
.pm-card:hover .pm-card__image img { transform: scale(1.025); }
.pm-card__body { padding: 25px; }
.pm-card__meta { margin: 0 0 10px; color: var(--pm-burgundy); font-size: .73rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pm-card h3 { margin: 0 0 12px; color: var(--pm-navy); font-family: Georgia, serif; font-size: 1.43rem; line-height: 1.25; }
.pm-card h3 a { color: inherit; text-decoration: none; }
.pm-card p { margin: 0; color: var(--pm-muted); font-size: .95rem; }
.pm-card__link { display: inline-block; margin-top: 18px; color: var(--pm-blue); font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.pm-activity { padding: 30px; color: #fff; background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.13); border-radius: var(--pm-radius); }
.pm-activity__number { color: #cda6ad; font-family: Georgia, serif; font-size: 2.3rem; }
.pm-activity h3 { margin: 12px 0; color: #fff; font-family: Georgia, serif; font-size: 1.55rem; }
.pm-activity p { margin: 0 0 22px; color: #cddce5; }
.pm-activity a { color: #fff; font-weight: 700; }

.pm-logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 42px; }
.pm-logo-card { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; text-align: center; background: #fff; border: 1px solid var(--pm-line); border-radius: var(--pm-radius); }
.pm-logo-card img { width: 76px; height: 76px; object-fit: contain; }
.pm-logo-card--wide img { width: min(190px, 100%); height: 76px; }
.pm-logo-mark { display: block; width: min(190px, 100%); height: 76px; background: #1d2554; }
.pm-logo-mark--uba { -webkit-mask: url('assets/uba-logo-oficial.png') center / contain no-repeat; mask: url('assets/uba-logo-oficial.png') center / contain no-repeat; }
.pm-logo-card span { color: var(--pm-navy); font-size: .83rem; font-weight: 700; line-height: 1.35; }
.pm-gallery { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 16px; margin-top: 42px; }
.pm-gallery figure { position: relative; min-height: 320px; margin: 0; overflow: hidden; border-radius: var(--pm-radius); background: #dfe7ec; }
.pm-gallery img { width: 100%; height: 100%; object-fit: cover; }
.pm-gallery figcaption { position: absolute; inset: auto 0 0; padding: 34px 20px 17px; color: #fff; background: linear-gradient(transparent, rgba(5,20,32,.88)); font-size: .84rem; font-weight: 600; }

.pm-page-hero { padding: 76px 0 64px; color: #fff; background: linear-gradient(135deg, var(--pm-navy), var(--pm-navy-2)); }
.pm-page-hero h1 { max-width: 900px; margin: 0; color: #fff; font-family: Georgia, serif; font-size: clamp(2.7rem, 6vw, 5rem); line-height: 1.05; letter-spacing: -.035em; }
.pm-page-content { min-height: 50vh; padding: 70px 0 100px; }
.pm-post-list { display: grid; gap: 26px; }
.pm-post-row { display: grid; grid-template-columns: 310px 1fr; gap: 30px; padding-bottom: 26px; border-bottom: 1px solid var(--pm-line); }
.pm-post-row__image { aspect-ratio: 16/10; overflow: hidden; border-radius: 10px; background: var(--pm-paper); }
.pm-post-row__image img { width: 100%; height: 100%; object-fit: cover; }
.pm-post-row h2 { margin: 4px 0 12px; color: var(--pm-navy); font-family: Georgia, serif; font-size: clamp(1.5rem, 3vw, 2.15rem); line-height: 1.2; }
.pm-post-row h2 a { color: inherit; text-decoration: none; }
.pm-pagination { margin-top: 40px; }
.pm-pagination .page-numbers { display: inline-flex; min-width: 40px; min-height: 40px; align-items: center; justify-content: center; margin-right: 6px; padding: 6px 10px; border: 1px solid var(--pm-line); border-radius: 5px; text-decoration: none; }
.pm-pagination .current { color: #fff; background: var(--pm-navy); border-color: var(--pm-navy); }
.pm-contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; }
.pm-contact-panel { padding: 34px; background: var(--pm-paper); border-radius: var(--pm-radius); }
.pm-contact-panel h2 { margin-top: 0; color: var(--pm-navy); font-family: Georgia, serif; }
.pm-contact-panel a { word-break: break-word; }
.pm-contact-page { max-width: 860px; }
.pm-contact-intro { margin-bottom: 38px; }
.pm-contact-intro .pm-title { margin-bottom: 18px; font-size: clamp(2rem, 4vw, 3.6rem); }
.pm-contact-form { position: relative; display: grid; gap: 22px; padding: clamp(26px, 5vw, 48px); background: var(--pm-paper); border: 1px solid var(--pm-line); border-radius: var(--pm-radius); box-shadow: var(--pm-shadow); }
.pm-contact-form label { display: grid; gap: 8px; color: var(--pm-navy); font-size: .9rem; font-weight: 700; }
.pm-contact-form input, .pm-contact-form textarea { width: 100%; padding: 13px 15px; color: var(--pm-ink); background: #fff; border: 1px solid #bcc9d2; border-radius: 7px; font: inherit; line-height: 1.45; transition: border-color .2s, box-shadow .2s; }
.pm-contact-form textarea { resize: vertical; min-height: 170px; }
.pm-contact-form input:focus, .pm-contact-form textarea:focus { outline: none; border-color: var(--pm-blue); box-shadow: 0 0 0 3px rgba(30, 99, 139, .16); }
.pm-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pm-form-footer { display: flex; align-items: center; gap: 22px; }
.pm-form-footer p { max-width: 430px; margin: 0; color: var(--pm-muted); font-size: .8rem; line-height: 1.45; }
.pm-form-honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.pm-form-notice { margin: 0 0 24px; padding: 16px 18px; border-radius: 8px; }
.pm-form-notice--success { color: #174f32; background: #e7f5ed; border: 1px solid #add7be; }
.pm-form-notice--error { color: #7a202e; background: #faeaed; border: 1px solid #e5b6be; }

.pm-footer { color: #c6d4dd; background: #071c2c; }
.pm-footer__grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 60px; padding: 64px 0 45px; }
.pm-footer h2 { margin: 0 0 12px; color: #fff; font-family: Georgia, serif; font-size: 1.5rem; }
.pm-footer h3 { margin: 0 0 14px; color: #fff; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.pm-footer p { margin: 0; color: #9fb4c1; font-size: .9rem; }
.pm-footer ul { margin: 0; padding: 0; list-style: none; }
.pm-footer li + li { margin-top: 7px; }
.pm-footer a { color: #c6d4dd; text-decoration: none; }
.pm-footer a:hover { color: #fff; }
.pm-footer__bottom { padding: 20px 0; border-top: 1px solid rgba(255,255,255,.1); color: #879daa; font-size: .78rem; }

@media (max-width: 980px) {
  .pm-header__cta { display: none; }
  .pm-menu-toggle { display: block; }
  .pm-nav { position: fixed; inset: 82px 0 auto; display: none; max-height: calc(100vh - 82px); overflow: auto; margin: 0; padding: 14px 20px 24px; background: #081f31; border-top: 1px solid rgba(255,255,255,.12); }
  .pm-nav.is-open { display: block; }
  .pm-nav ul { display: block; }
  .pm-nav a { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.09); }
  .pm-nav .current-menu-item > a::after, .pm-nav .current-menu-ancestor > a::after { display: none; }
  .pm-nav .sub-menu { position: static; display: block; padding: 0 0 0 18px; background: transparent; box-shadow: none; }
  .pm-nav .sub-menu a { color: #b9cbd6; }
  .pm-hero__photo { width: 72%; opacity: .72; }
  .pm-hero::before { background: linear-gradient(90deg, rgba(6,25,40,.97), rgba(8,31,49,.7) 70%, rgba(8,31,49,.3)); }
  .pm-hero__content { width: 78%; }
  .pm-intro, .pm-contact-grid { grid-template-columns: 1fr; }
  .pm-grid { grid-template-columns: repeat(2, 1fr); }
  .pm-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .pm-logos { grid-template-columns: repeat(2, 1fr); }
  .pm-gallery { grid-template-columns: 1fr 1fr; }
  .pm-gallery > :first-child { grid-column: 1 / -1; }
  .pm-footer__grid { grid-template-columns: 1fr 1fr; }
  .pm-footer__grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body.admin-bar .pm-header { top: 46px; }
  .pm-container { width: min(calc(100% - 32px), var(--pm-width)); }
  .pm-header__inner { min-height: 72px; }
  .pm-brand { font-size: 1.14rem; }
  .pm-brand span { font-size: .53rem; }
  .pm-nav { top: 72px; }
  .pm-hero { min-height: 690px; align-items: end; }
  .pm-hero__photo { inset: 0 -32% 0 auto; width: 115%; opacity: .58; object-position: center top; }
  .pm-hero::before { background: linear-gradient(180deg, rgba(6,25,40,.28) 0%, rgba(6,25,40,.75) 44%, rgba(6,25,40,.99) 82%); }
  .pm-hero__content { width: 100%; padding: 150px 0 70px; text-align: center; }
  .pm-hero h1 { max-width: 100%; margin-inline: auto; font-size: clamp(3.1rem, 15vw, 4.35rem); line-height: .92; overflow-wrap: normal; word-break: normal; }
  .pm-actions { justify-content: center; }
  .pm-section { padding: 64px 0; }
  .pm-grid, .pm-logos, .pm-gallery, .pm-footer__grid, .pm-post-row { grid-template-columns: 1fr; }
  .pm-grid > :last-child:nth-child(odd), .pm-gallery > :first-child, .pm-footer__grid > :first-child { grid-column: auto; }
  .pm-intro__facts { grid-template-columns: 1fr 1fr; }
  .pm-fact { padding: 19px; }
  .pm-fact strong { font-size: 1.9rem; }
  .pm-gallery figure { min-height: 280px; }
  .pm-post-row { gap: 18px; }
  .pm-prose img.alignright { float: none; display: block; margin: 0 0 28px; }
  .pm-form-row { grid-template-columns: 1fr; }
  .pm-form-footer { align-items: stretch; flex-direction: column; }
  .pm-form-footer .pm-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
