/*
Theme Name: Alamedinos Portal
Theme URI: https://alamedinos.com/
Author: OpenAI
Author URI: https://openai.com/
Description: Tema institucional para la comunidad de egresados de la Escuela Pedro Molina. Diseñado para WordPress sin Elementor y compatible con el editor de bloques.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: alamedinos
*/

:root {
  --alm-blue: #1c355e;
  --alm-gold: #c9a227;
  --alm-white: #ffffff;
  --alm-light: #f4f4f4;
  --alm-text: #333333;
  --alm-muted: #6b7280;
  --alm-border: #e5e7eb;
  --alm-container: 1180px;
  --alm-radius: 16px;
  --alm-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--alm-text);
  background: var(--alm-white);
  font-family: "Libre Baskerville", Georgia, serif;
  line-height: 1.75;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--alm-blue); text-decoration: none; }
a:hover { color: var(--alm-gold); }
p { margin: 0 0 1.1rem; }
h1, h2, h3, h4, h5, h6,
.site-title,
.main-navigation,
.button,
.wp-block-button__link {
  font-family: "Montserrat", Arial, sans-serif;
}
h1, h2, h3, h4, h5, h6 {
  color: var(--alm-blue);
  line-height: 1.2;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2.2rem, 4vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

.site-container,
.container {
  width: min(calc(100% - 2rem), var(--alm-container));
  margin: 0 auto;
}

.topbar {
  background: var(--alm-blue);
  color: rgba(255,255,255,.88);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: .9rem;
}
.topbar-inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.topbar .social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.topbar a { color: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--alm-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 86px;
}
.branding {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.custom-logo-link img { max-height: 68px; width: auto; }
.site-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--alm-blue);
  margin: 0;
}
.site-description {
  margin: .2rem 0 0;
  color: var(--alm-muted);
  font-size: .92rem;
  line-height: 1.45;
}

.main-navigation ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.main-navigation a {
  display: inline-block;
  color: var(--alm-blue);
  font-weight: 600;
  padding: .35rem 0;
}
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  color: var(--alm-gold);
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: center;
  color: #fff;
  background:
    linear-gradient(rgba(28,53,94,.72), rgba(28,53,94,.82)),
    url('https://images.unsplash.com/photo-1524995997946-a1c2e315a42f?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
}
.hero.small-hero { min-height: 46vh; }
.hero-content {
  width: min(calc(100% - 2rem), 900px);
  text-align: center;
  padding: 4rem 0;
}
.hero h1,
.hero h2,
.hero p { color: #fff; }
.hero p { font-size: 1.12rem; max-width: 820px; margin: 0 auto 1.5rem; }
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.button,
.wp-block-button__link,
input[type="submit"],
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .8rem 1.25rem;
  border-radius: 999px;
  border: 2px solid var(--alm-blue);
  background: var(--alm-blue);
  color: #fff;
  font-weight: 700;
  transition: .25s ease;
  cursor: pointer;
}
.button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button:hover {
  background: var(--alm-gold);
  border-color: var(--alm-gold);
  color: #fff;
}
.button.secondary {
  background: transparent;
  border-color: rgba(255,255,255,.75);
}
.button.secondary:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
}

.section {
  padding: 5rem 0;
}
.section.alt { background: var(--alm-light); }
.section.dark {
  background: var(--alm-blue);
  color: #fff;
}
.section.dark h2,
.section.dark h3,
.section.dark p,
.section.dark li { color: #fff; }
.section-header {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
}
.lead {
  font-size: 1.12rem;
  color: var(--alm-muted);
}
.section.dark .lead { color: rgba(255,255,255,.88); }

.grid {
  display: grid;
  gap: 1.5rem;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.card {
  background: #fff;
  border: 1px solid var(--alm-border);
  border-radius: var(--alm-radius);
  padding: 1.75rem;
  box-shadow: var(--alm-shadow);
}
.card h3 { margin-bottom: .75rem; }
.card-icon {
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(201,162,39,.14);
  color: var(--alm-blue);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.page-card { background: #fff; border-radius: var(--alm-radius); padding: 2rem; box-shadow: var(--alm-shadow); }

.quote-band {
  border-left: 4px solid var(--alm-gold);
  padding: 1.5rem 1.5rem 1.5rem 1.25rem;
  background: rgba(255,255,255,.08);
  border-radius: 0 var(--alm-radius) var(--alm-radius) 0;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2rem;
  align-items: center;
}
.media-box {
  min-height: 380px;
  border-radius: var(--alm-radius);
  overflow: hidden;
  background:
    linear-gradient(rgba(28,53,94,.2), rgba(28,53,94,.15)),
    url('https://images.unsplash.com/photo-1503676260728-1c00da094a0b?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
  box-shadow: var(--alm-shadow);
}

.social-grid a,
.contact-links a {
  display: block;
  padding: 1rem 1.1rem;
  border: 1px solid var(--alm-border);
  border-radius: 14px;
  background: #fff;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 600;
}
.social-grid a:hover,
.contact-links a:hover {
  border-color: var(--alm-gold);
  transform: translateY(-2px);
}

.site-main {
  min-height: 50vh;
}
.entry-content ul,
.entry-content ol { padding-left: 1.2rem; }
.entry-content > *:where(:not(.alignfull)) {
  width: min(calc(100% - 2rem), 900px);
  margin-left: auto;
  margin-right: auto;
}
.entry-content > .alignwide {
  width: min(calc(100% - 2rem), 1180px);
}
.entry-content > .alignfull { width: 100%; }

.site-footer {
  background: var(--alm-blue);
  color: rgba(255,255,255,.92);
  margin-top: 4rem;
}
.footer-main {
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr .8fr .9fr;
  gap: 2rem;
}
.site-footer h3,
.site-footer h4,
.site-footer a,
.site-footer p,
.site-footer li { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1rem 0 1.4rem;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: .9rem;
}

.page-hero {
  background:
    linear-gradient(rgba(28,53,94,.75), rgba(28,53,94,.86)),
    url('https://images.unsplash.com/photo-1521587760476-6c12a4b040da?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
}

.meta-list {
  display: grid;
  gap: .9rem;
  padding: 0;
  list-style: none;
}
.meta-list li {
  background: #fff;
  border: 1px solid var(--alm-border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-3,
  .grid-2,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0;
  }
  .main-navigation ul { gap: .8rem 1rem; }
}

@media (max-width: 640px) {
  .topbar-inner { flex-direction: column; justify-content: center; padding: .5rem 0; }
  .grid-4 { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .button,
  .wp-block-button__link { width: 100%; }
}
