/* ===== Gerardo Peralta · estilos ===== */
:root {
	--navy: #16236B;
	--navy-2: #0E1750;
	--blue: #2C47C4;
	--sky: #7FA0F0;
	--ice: #E6ECFA;
	--g9: #2E3238;
	--g6: #5E646D;
	--g4: #9AA0A8;
	--g2: #DADDE2;
	--g1: #F2F3F5;
	--white: #fff;
	--radius: 10px;
	--wrap: 1180px;
	--font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: clip; }
body { margin: 0; font-family: var(--font); color: var(--g9); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; color: var(--g9); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.gp-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ===== Header ===== */
.gp-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; }
.gp-header.is-scrolled { background: rgba(14, 23, 80, .96); box-shadow: 0 4px 20px rgba(0,0,0,.18); backdrop-filter: blur(8px); }
.gp-header__in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.gp-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.gp-brand__mark { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 2px solid var(--sky); border-radius: 6px; font-weight: 800; font-size: .95rem; letter-spacing: .02em; color: var(--white); }
.gp-brand__name { font-weight: 600; font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; }
.gp-nav { display: flex; align-items: center; gap: 28px; }
.gp-nav a { color: rgba(255,255,255,.85); text-decoration: none; font-size: .9rem; font-weight: 500; transition: color .2s; }
.gp-nav a:hover { color: var(--white); }
.gp-nav__cta { padding: 9px 18px; border: 1.5px solid var(--sky); border-radius: 999px; color: var(--white) !important; }
.gp-nav__cta:hover { background: var(--blue); border-color: var(--blue); }
.gp-nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.gp-nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--white); transition: transform .3s, opacity .3s; }

/* ===== Botones ===== */
.gp-btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; transition: transform .2s, background .2s, color .2s; }
.gp-btn:hover { transform: translateY(-2px); }
.gp-btn--light { background: var(--white); color: var(--navy); }
.gp-btn--light:hover { background: var(--sky); }
.gp-btn--ghost { border: 1.5px solid rgba(255,255,255,.6); color: var(--white); }
.gp-btn--ghost:hover { background: rgba(255,255,255,.12); }

/* ===== Hero ===== */
.gp-hero { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 100vh; background: var(--navy); }
.gp-hero__text { display: flex; align-items: center; position: relative; overflow: hidden; }
.gp-hero__text::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border: 1px solid rgba(127,160,240,.18); border-radius: 50%; }
.gp-hero__wrap { padding-top: 110px; padding-bottom: 80px; max-width: 620px; margin-left: auto; margin-right: 0; padding-right: 56px; position: relative; z-index: 1; }
.gp-kicker { display: flex; align-items: center; gap: 12px; color: var(--sky); font-size: .8rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; margin-bottom: 22px; }
.gp-flag { width: 30px; height: 4px; background: linear-gradient(90deg, #0b7a3e 0 33%, #fff 33% 66%, #c8102e 66%); border-radius: 2px; }
.gp-hero__title { color: var(--white); font-size: clamp(3rem, 7vw, 5.6rem); font-weight: 300; letter-spacing: -.02em; line-height: .98; text-transform: uppercase; }
.gp-hero__title strong { font-weight: 800; }
.gp-hero__lead { color: rgba(255,255,255,.8); font-size: 1.08rem; max-width: 460px; margin: 26px 0 34px; }
.gp-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.gp-hero__media { position: relative; overflow: hidden; }
.gp-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 25%; }
.gp-hero__media::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy) 0, rgba(22,35,107,0) 12%); z-index: 1; }

/* ===== Cifras ===== */
.gp-cifras { background: var(--navy-2); color: var(--white); }
.gp-cifras__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.gp-cifra { padding: 38px 24px; border-left: 1px solid rgba(255,255,255,.1); }
.gp-cifra:first-child { border-left: 0; padding-left: 0; }
.gp-cifra__valor { display: block; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; line-height: 1; }
.gp-cifra__texto { display: block; margin-top: 10px; color: var(--sky); font-size: .78rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }

/* ===== Secciones ===== */
.gp-section { padding: clamp(72px, 10vw, 120px) 0; }
.gp-section--gris { background: var(--g1); }
.gp-section--navy { background: var(--navy); }
.gp-section--navy h2 { color: var(--white); }
.gp-label { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: var(--blue); font-size: .78rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; }
.gp-label::before { content: ""; width: 26px; height: 3px; background: currentColor; border-radius: 2px; }
.gp-label--light { color: var(--sky); }
.gp-head { margin-bottom: 48px; }
.gp-head--center { text-align: center; }
.gp-head--center .gp-label { justify-content: center; }

/* ===== Perfil ===== */
.gp-perfil { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.gp-perfil__media { position: relative; }
.gp-perfil__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.gp-perfil__text h2 { margin-bottom: 22px; }
.gp-perfil__text p { color: var(--g6); font-size: 1.02rem; }
.gp-disciplinas { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 12px; }
.gp-disciplinas li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; align-items: baseline; padding: 16px 20px; background: var(--ice); border-radius: 8px; border-left: 4px solid var(--blue); }
.gp-disciplinas strong { color: var(--navy); font-weight: 700; }
.gp-disciplinas span { color: var(--g6); font-size: .92rem; }

/* ===== Trayectoria ===== */
.gp-tabs { display: inline-flex; gap: 6px; padding: 6px; background: var(--white); border-radius: 999px; box-shadow: 0 2px 10px rgba(22,35,107,.06); margin-bottom: 36px; }
.gp-tab { border: 0; background: none; font-family: inherit; font-size: 1rem; font-weight: 600; color: var(--g6); padding: 10px 26px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.gp-tab.is-active { background: var(--navy); color: var(--white); }
.js .gp-panel { display: none; }
.js .gp-panel.is-active { display: block; animation: gp-fade .45s ease; }
.gp-panel + .gp-panel { margin-top: 48px; }
.js .gp-panel + .gp-panel { margin-top: 0; }
.gp-panel__head { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; margin-bottom: 28px; }
.gp-panel__anio { font-size: clamp(3rem, 6vw, 4.6rem); font-weight: 800; color: var(--blue); line-height: 1; letter-spacing: -.03em; }
.gp-panel__head h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 6px; }
.gp-panel__head p { color: var(--g6); margin: 0; max-width: 560px; }
.gp-panel__nums { display: flex; gap: 22px; color: var(--g6); font-size: .85rem; }
.gp-panel__nums strong { display: block; font-size: 1.8rem; color: var(--navy); line-height: 1; }
.gp-panel__grid { display: grid; grid-template-columns: 1fr 1.15fr .9fr; gap: 18px; }
.gp-card { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: 0 2px 14px rgba(22,35,107,.05); }
.gp-card h4 { font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--blue); margin-bottom: 18px; }
.gp-card--dark { background: var(--navy); }
.gp-card--dark h4 { color: var(--sky); }
.gp-res, .gp-list { list-style: none; margin: 0; padding: 0; }
.gp-res li { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.75); font-size: .88rem; }
.gp-res li:first-child { border-top: 0; padding-top: 0; }
.gp-res__big { font-size: 1.7rem; font-weight: 800; color: var(--white); line-height: 1; }
.gp-res strong, .gp-list strong { display: block; font-weight: 600; }
.gp-res strong { color: var(--white); }
.gp-list li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--g2); font-size: .86rem; color: var(--g6); }
.gp-list li:first-child { border-top: 0; padding-top: 0; }
.gp-list strong { color: var(--g9); }
.gp-list__n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; background: var(--ice); color: var(--navy); font-weight: 700; font-size: .85rem; }
.gp-list--plain li { grid-template-columns: 1fr; padding-left: 16px; position: relative; }
.gp-list--plain li::before { content: ""; position: absolute; left: 0; top: 19px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.gp-list--plain li:first-child::before { top: 8px; }

/* ===== Foto de temporada ===== */
.gp-panel__foto { position: relative; margin: 0 0 18px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 21 / 8; background: var(--g2); }
.gp-panel__foto img { width: 100%; height: 100%; object-fit: cover; }
.gp-panel__foto figcaption { position: absolute; left: 0; bottom: 0; padding: 40px 22px 16px; width: 100%; background: linear-gradient(0deg, rgba(14,23,80,.8), rgba(14,23,80,0)); color: var(--white); font-size: .82rem; font-weight: 500; letter-spacing: .04em; }

/* ===== Destacados ===== */
.gp-dest { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gp-dest__item { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; background: var(--navy-2); }
.gp-dest__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gp-dest__item:hover img { transform: scale(1.04); }
.gp-dest__item figcaption { position: absolute; inset: auto 0 0; padding: 80px 24px 24px; background: linear-gradient(0deg, rgba(14,23,80,.96) 30%, rgba(14,23,80,0)); color: rgba(255,255,255,.8); font-size: .88rem; }
.gp-dest__item figcaption strong { display: block; color: var(--white); font-size: 1.05rem; margin-bottom: 4px; }
.gp-dest__big { display: block; font-size: 2.3rem; font-weight: 800; color: var(--sky); line-height: 1; margin-bottom: 10px; }

/* ===== Galería ===== */
.gp-gal { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 14px; }
.gp-gal__item { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--g2); }
.gp-gal__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gp-gal__item:nth-child(4) { grid-column: span 2; }
.gp-gal__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gp-gal__item:hover img { transform: scale(1.05); }
.gp-gal__item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(0deg, rgba(14,23,80,.85), rgba(14,23,80,0)); color: var(--white); font-size: .82rem; font-weight: 500; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.gp-gal__item:hover span, .gp-gal__item:focus span { opacity: 1; transform: none; }

/* ===== Aliados ===== */
.gp-aliados { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 620px; margin: 0 auto; }
.gp-aliado { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 140px; padding: 24px; background: var(--navy); border-radius: var(--radius); color: var(--white); text-align: center; }
.gp-aliado--logo img { max-width: 200px; width: 80%; }
.gp-aliado__word { font-size: 2rem; font-weight: 800; letter-spacing: .06em; font-style: italic; line-height: 1; }
.gp-aliado small { margin-top: 8px; color: var(--sky); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; }

/* ===== Contacto ===== */
.gp-contacto { position: relative; padding: clamp(90px, 12vw, 150px) 0; background: var(--navy-2); color: var(--white); overflow: hidden; text-align: center; }
.gp-contacto__bg { position: absolute; inset: 0; background-size: cover; background-position: center 40%; opacity: .22; filter: grayscale(.4); }
.gp-contacto__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,23,80,.6), rgba(14,23,80,.95)); }
.gp-contacto__in { position: relative; max-width: 760px; }
.gp-contacto .gp-label { justify-content: center; }
.gp-contacto h2 { color: var(--white); margin-bottom: 18px; }
.gp-contacto p { color: rgba(255,255,255,.8); font-size: 1.05rem; }
.gp-contacto__ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.gp-redes { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 26px; margin: 34px 0 0; padding: 0; }
.gp-redes a { color: var(--sky); text-decoration: none; font-weight: 500; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.gp-redes a:hover { color: var(--white); }

/* ===== Footer ===== */
.gp-footer { background: #090F38; color: rgba(255,255,255,.6); font-size: .85rem; }
.gp-footer__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 26px; padding-bottom: 26px; }
.gp-footer p { margin: 0; }
.gp-footer__top { display: inline-block; padding: 12px 4px; color: var(--sky); text-decoration: none; }

/* ===== Lightbox ===== */
.gp-lightbox { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; background: rgba(9,15,56,.94); }
.gp-lightbox[hidden] { display: none; }
.gp-lightbox img { max-width: min(1100px, 100%); max-height: 80vh; object-fit: contain; border-radius: 6px; }
.gp-lightbox__cap { color: var(--white); margin-top: 16px; font-size: .9rem; }
.gp-lightbox__close { position: absolute; top: 18px; right: 24px; background: none; border: 0; color: var(--white); font-size: 2.4rem; line-height: 1; cursor: pointer; }

/* ===== Animación ===== */
@keyframes gp-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.js .gp-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .gp-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .gp-reveal { opacity: 1; transform: none; transition: none; }
	.js .gp-panel.is-active { animation: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
	.gp-dest { grid-template-columns: 1fr 1fr; }
	.gp-panel__grid { grid-template-columns: 1fr 1fr; }
	.gp-panel__grid .gp-card--dark { grid-column: span 2; }
	.gp-gal { grid-template-columns: repeat(3, 1fr); }
	.gp-gal__item:nth-child(4) { grid-column: span 1; }
}
@media (max-width: 860px) {
	.gp-nav-toggle { display: block; }
	.gp-nav { position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 24px; background: var(--navy-2); transform: translateY(-120%); transition: transform .35s ease; }
	.gp-nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
	.gp-nav__cta { margin-top: 14px; text-align: center; border-bottom: 1.5px solid var(--sky) !important; }
	.gp-header.nav-open .gp-nav { transform: none; }
	.gp-header.nav-open { background: var(--navy-2); }
	.gp-header.nav-open .gp-nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.gp-header.nav-open .gp-nav-toggle span:nth-child(2) { opacity: 0; }
	.gp-header.nav-open .gp-nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

	.gp-hero { grid-template-columns: 1fr; min-height: auto; }
	.gp-hero__media { order: -1; height: 72vh; min-height: 420px; }
	.gp-hero__media::before { background: linear-gradient(0deg, var(--navy) 0, rgba(22,35,107,0) 40%); }
	.gp-hero__text { overflow: visible; z-index: 2; }
	.gp-hero__text::after { display: none; }
	.gp-hero__wrap { padding: 0 24px 64px; margin: -90px 0 0; max-width: none; }
	.gp-cifras__grid { grid-template-columns: 1fr 1fr; }
	.gp-cifra { padding: 28px 18px; border-top: 1px solid rgba(255,255,255,.1); }
	.gp-cifra:nth-child(odd) { border-left: 0; padding-left: 0; }
	.gp-cifra:nth-child(-n+2) { border-top: 0; }
	.gp-perfil { grid-template-columns: 1fr; }
	.gp-perfil__media { max-width: 420px; }
	.gp-panel__head { grid-template-columns: 1fr; gap: 12px; }
	.gp-dest__item { aspect-ratio: 4 / 5; }
	.gp-panel__foto { aspect-ratio: 16 / 9; }
	.gp-hero__media img { object-position: 82% 20%; }
	.gp-aliados { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.gp-wrap { padding: 0 16px; }
	.gp-brand__name { font-size: .82rem; letter-spacing: .1em; }
	.gp-panel__grid { grid-template-columns: 1fr; }
	.gp-panel__grid .gp-card--dark { grid-column: auto; }
	.gp-dest { grid-template-columns: 1fr; }
	.gp-disciplinas li { grid-template-columns: 1fr; gap: 4px; }
	.gp-tab { padding: 10px 18px; }
	.gp-gal { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; gap: 10px; }
	.gp-gal__item:nth-child(1), .gp-gal__item:last-child { grid-column: span 2; }
	.gp-gal__item span { opacity: 1; transform: none; }
	.gp-footer__in { flex-direction: column; text-align: center; }
	.gp-hero__wrap { padding: 0 16px 56px; }
}
