/* Páginas del sitio: estilo base del marco "Fronteras" + elementos que se agregan desde el panel (.pg-*). */

/* ---------- Base del marco Fronteras (antes estaba dentro de cada página) ---------- */
.intro-wrapper { padding: 140px var(--pad) 60px var(--pad); background: var(--blue); color: #fff; }
.intro-wrapper h1 { color: var(--yellow) !important; font-size: clamp(36px, 5vw, 64px); line-height: 1.1; margin-bottom: 30px; letter-spacing: -0.03em; }
.intro-wrapper h2 { color: var(--yellow) !important; font-size: clamp(28px, 4vw, 42px); line-height: 1.2; margin-bottom: 20px; }
.intro-wrapper p { color: #ffffffd2 !important; font-size: 16px; line-height: 1.8; margin-bottom: 20px; }
.clone-main { padding: 60px var(--pad) 60px var(--pad); background: var(--cream); color: var(--ink); }
.clone-section { max-width: 1200px; margin: 0 auto 80px auto; }
.clone-section h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.2; margin: 60px 0 24px 0; color: var(--blue); border-bottom: 2px solid #ddd; padding-bottom: 12px; }
.clone-section h3 { font-size: 24px; color: var(--blue); margin-top: 40px; margin-bottom: 16px; }
.clone-section p { font-size: 16px; line-height: 1.8; margin-bottom: 20px; color: #435069; }
.full-img { width: 100%; height: auto; border-radius: 12px; margin-top: 30px; }
.photo-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 30px; }
.photo-gallery img { width: 100%; height: auto; object-fit: contain; max-height: 200px; padding: 20px; background: #fff; border-radius: 12px; margin-bottom: 20px; }
.intro-wrapper .lead { font-size: 19px !important; line-height: 1.7 !important; color: #fff !important; }
.mayo-banner { display: block; width: 100%; height: auto; margin: 10px 0 34px; border-radius: 14px; background: #f1f1f1; }
.clone-section h4 { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: #345c8c; margin: 26px 0 10px; }
.mayo-gallery { display: grid; align-items: start; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 34px 0 18px; }
.mayo-gallery img { width: 100%; height: auto; border-radius: 12px; background: #fff; }
.mayo-logos { margin-top: 50px; }
.mayo-logos img { width: 100%; height: auto; border-radius: 12px; background: #fff; }
@media (max-width: 620px) { .mayo-gallery { grid-template-columns: 1fr; } }

/* ---------- Elementos del panel ---------- */
.pg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 15px 28px; border: 0; border-radius: 999px;
  background: #345c8c; color: #fff !important; font: 700 14px/1.2 "Poppins", sans-serif; letter-spacing: .04em; text-decoration: none; cursor: pointer;
  box-shadow: 0 12px 30px #345c8c38; transition: transform .3s, background .3s, color .3s, box-shadow .3s;
}
.pg-btn:hover { transform: translateY(-3px); background: #f2cc87; color: #183c64 !important; }
.pg-btn--outline { background: transparent; color: #345c8c !important; box-shadow: inset 0 0 0 2px #345c8c; }
.pg-btn--outline:hover { background: #345c8c; color: #fff !important; }
.pg-btn--light { background: #fff4de; color: #183c64 !important; box-shadow: 0 12px 30px #0000001f; }
.pg-btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 22px 0; }
.pg-center { text-align: center; justify-content: center; }
.pg-right { text-align: right; justify-content: flex-end; }

.pg-section { padding: clamp(54px, 7vw, 100px) var(--pad, clamp(22px, 7vw, 112px)); color: #435069; }
.pg-section > .pg-wrap { max-width: 1120px; margin: 0 auto; }
.pg-section h2 { margin: 0 0 22px; font-size: clamp(28px, 4vw, 44px); line-height: 1.15; letter-spacing: -.03em; color: #345c8c; border: 0; padding: 0; }
.pg-section h3 { margin: 30px 0 12px; font-size: clamp(20px, 2.4vw, 26px); color: #345c8c; }
.pg-section p { margin: 0 0 18px; font-size: 16px; line-height: 1.8; color: #435069; }
.pg-section a:not(.pg-btn) { color: #345c8c; }
.pg-bg-cream { background: #fff9f0; }
.pg-bg-white { background: #fff; }
.pg-bg-soft { background: linear-gradient(135deg, #f4f8fa, #e6f1f4); }
.pg-bg-blue { background: linear-gradient(135deg, #3b6595, #5782af); }
.pg-bg-blue h2, .pg-bg-blue h3 { color: #fff4de; }
.pg-bg-blue p, .pg-bg-blue li { color: #fffffff0; }
.pg-bg-blue a:not(.pg-btn) { color: #fff4de; }
.pg-pad-s { padding-top: 30px; padding-bottom: 30px; }
.pg-pad-l { padding-top: clamp(80px, 10vw, 150px); padding-bottom: clamp(80px, 10vw, 150px); }
.pg-narrow > .pg-wrap { max-width: 760px; }
.pg-wide > .pg-wrap { max-width: 1320px; }
/* Dentro de una columna de lectura (marco Fronteras) la sección se muestra como un panel. */
.clone-section .pg-section { margin: 34px 0; padding: clamp(26px, 4vw, 48px); border-radius: 28px; }
.clone-section .pg-section.pg-bg-cream { background: #fff; box-shadow: 0 14px 40px #345c8c14; }

.pg-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 60px); align-items: center; margin: 30px 0; }
.pg-cols--reverse > :first-child { order: 2; }
.pg-cols img { width: 100%; height: auto; border-radius: 18px; }
@media (max-width: 760px) { .pg-cols { grid-template-columns: 1fr; } .pg-cols--reverse > :first-child { order: 0; } }

.pg-figure { margin: 30px 0; }
.pg-figure img { display: block; width: 100%; height: auto; border-radius: 16px; }
.pg-figure figcaption { margin-top: 10px; font-size: 13px; color: #6c7a90; }

.pg-gallery { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; margin: 30px 0; }
.pg-gallery--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pg-gallery img { display: block; width: 100%; height: auto; border-radius: 14px; background: #fff; }
@media (max-width: 900px) { .pg-gallery--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pg-gallery, .pg-gallery--3 { grid-template-columns: 1fr; } }

.pg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin: 30px 0; }
.pg-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; background: #fff; box-shadow: 0 14px 40px #345c8c1f; transition: transform .3s; }
.pg-card:hover { transform: translateY(-5px); }
.pg-card img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.pg-card-body { display: flex; flex: 1; flex-direction: column; padding: 22px 24px 26px; }
.pg-card-body h3 { margin: 0 0 8px !important; font-size: 21px !important; color: #345c8c; }
.pg-card-body p { margin: 0 0 16px !important; font-size: 15px !important; line-height: 1.6 !important; }
.pg-card-body .pg-btn { margin-top: auto; align-self: flex-start; padding: 12px 22px; font-size: 13px; }

.pg-quote { margin: 34px 0; padding: 8px 0 8px 26px; border-left: 5px solid #f2cc87; font-size: clamp(20px, 2.4vw, 28px); font-weight: 500; line-height: 1.45; color: #183c64; }
.pg-quote p { margin: 0 !important; font-size: inherit !important; line-height: inherit !important; color: inherit !important; }
.pg-quote cite { display: block; margin-top: 12px; font-size: 13px; font-style: normal; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #6c7a90; }
.pg-bg-blue .pg-quote, .pg-cta .pg-quote { color: #fff; }

.pg-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 30px 0; }
.pg-stat { padding: 24px; border-radius: 20px; background: #fff; box-shadow: 0 10px 30px #345c8c14; }
.pg-stat b { display: block; margin-bottom: 6px; font-size: clamp(34px, 4.6vw, 52px); line-height: 1; letter-spacing: -.04em; color: #345c8c; }
.pg-stat span { font-size: 14px; line-height: 1.5; color: #435069; }
@media (max-width: 700px) { .pg-stats { grid-template-columns: 1fr; } }

.pg-cta { margin: 40px 0; padding: clamp(30px, 5vw, 60px); border-radius: 28px; background: linear-gradient(135deg, #3b6595, #5782af); color: #fff; text-align: center; }
.pg-cta h2 { margin: 0 0 14px !important; border: 0 !important; padding: 0 !important; color: #fff4de !important; font-size: clamp(26px, 3.6vw, 40px) !important; }
.pg-cta p { max-width: 640px; margin: 0 auto 22px !important; color: #fffffff0 !important; }

.pg-list { margin: 0 0 26px; padding: 0; list-style: none; display: grid; gap: 10px; }
.pg-list li { position: relative; padding: 14px 18px 14px 44px; border-radius: 14px; background: #fff; color: #435069; font-size: 15px; line-height: 1.5; box-shadow: 0 8px 22px #345c8c14; }
.pg-list li:before { content: ""; position: absolute; left: 18px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: #f2cc87; box-shadow: 0 0 0 4px #f2cc8740; }

.pg-video { position: relative; aspect-ratio: 16 / 9; margin: 30px 0; overflow: hidden; border-radius: 18px; background: #0b1c30; }
.pg-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.pg-divider { width: 96px; height: 3px; margin: 42px 0; border: 0; border-radius: 3px; background: linear-gradient(90deg, #e6bd72, #9ecedc); }
.pg-spacer { height: clamp(28px, 5vw, 64px); }

.pg-logo-link { display: block; width: fit-content; max-width: 100%; }
.pg-logo-link img { display: block; width: 100%; max-width: 400px; height: auto; margin: 30px 0 18px; }
.pg-logos img { display: block; width: 100%; height: auto; border-radius: 12px; background: #fff; }

/* Elementos dentro del encabezado azul (fondo oscuro). */
.intro-wrapper .pg-figure, .intro-wrapper .pg-gallery, .intro-wrapper .pg-cols, .intro-wrapper .pg-video, .intro-wrapper .pg-btn-row, .intro-wrapper .pg-quote, .intro-wrapper .pg-list, .intro-wrapper .pg-stats { margin-top: 26px; margin-bottom: 8px; }
.intro-wrapper .pg-figure img, .intro-wrapper .pg-gallery img, .intro-wrapper .pg-cols img { box-shadow: 0 18px 50px #0000004d; }
.intro-wrapper .pg-figure figcaption { color: #ffffffb8; }
.intro-wrapper .pg-quote, .intro-wrapper .pg-quote p, .intro-wrapper .pg-quote cite { color: #fff !important; }
.intro-wrapper .pg-quote cite { color: #fff4de !important; }
.intro-wrapper .pg-list li { color: #435069; }
.intro-wrapper .pg-list li, .intro-wrapper .pg-stat { color: #435069; }
.intro-wrapper .pg-cols h2, .intro-wrapper .pg-cols h3 { color: #fff4de !important; }
.intro-wrapper .pg-btn:hover { color: #183c64 !important; }

/* Adaptación a celulares y tabletas de todos los elementos. */
.pg-figure img, .pg-gallery img, .pg-cols img, .pg-card img, .pg-logos img, .pg-logo-link img { max-width: 100%; height: auto; }
.pg-card img { height: auto; }
@media (max-width: 700px) {
  .pg-btn-row { flex-direction: column; align-items: stretch; }
  .pg-btn-row .pg-btn { width: 100%; }
  .pg-cta { padding: 28px 20px; border-radius: 22px; }
  .pg-section { padding-left: 22px; padding-right: 22px; }
  .pg-quote { padding-left: 18px; }
  .pg-cols { gap: 22px; }
  .clone-section .pg-section { padding: 26px 20px; }
  .pg-video { border-radius: 14px; }
}
