/* ============================================
   SOMOS PERÚ — Landing Page Styles
   Mobile-First | Responsive | Accessible
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --red: #D91E36;
  --red-hover: #B8162D;
  --red-light: rgba(217,30,54,0.1);
  --navy: #0B1D3A;
  --navy-light: #132B52;
  --white: #FFFFFF;
  --off-white: #F7F8FA;
  --gray-100: #E8EBF0;
  --gray-300: #B0B8C9;
  --gray-600: #5A6578;
  --gray-800: #2C3444;
  --shadow-sm: 0 2px 8px rgba(11,29,58,0.08);
  --shadow-md: 0 4px 20px rgba(11,29,58,0.12);
  --shadow-lg: 0 8px 40px rgba(11,29,58,0.18);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 50px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', 'Montserrat', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; font-family: inherit; }

/* --- Utility --- */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* =======================
   HEADER / NAV
   ======================= */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 0;
}
.header__logo { display: flex; align-items: center; gap: 0.6rem; }
.header__logo img { width: 38px; height: 38px; object-fit: contain; }
.header__logo-text {
  font-family: var(--font-heading); font-weight: 800;
  font-size: 1.1rem; color: var(--navy);
}
.header__logo-text span { color: var(--red); }

/* Desktop Nav */
.nav__list { display: none; gap: 2rem; align-items: center; }
.nav__link {
  font-family: var(--font-heading); font-weight: 600; font-size: 0.88rem;
  color: var(--navy); letter-spacing: 0.5px; text-transform: uppercase;
  position: relative; padding: 0.3rem 0; transition: color var(--transition);
}
.nav__link::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2.5px;
  background: var(--red); border-radius: 2px; transition: width var(--transition);
}
.nav__link:hover { color: var(--red); }
.nav__link:hover::after { width: 100%; }
.nav__cta {
  background: var(--red); color: var(--white); padding: 0.6rem 1.4rem;
  border-radius: var(--radius-lg); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.5px; transition: background var(--transition), transform var(--transition);
}
.nav__cta:hover { background: var(--red-hover); transform: translateY(-2px); }

/* Hamburger */
.hamburger {
  display: flex; flex-direction: column; gap: 5px;
  background: none; padding: 0.3rem; z-index: 1100;
}
.hamburger span {
  display: block; width: 26px; height: 3px; background: var(--navy);
  border-radius: 3px; transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-6px); }

/* Mobile Menu */
.mobile-menu {
  position: fixed; top: 0; right: -100%; width: 75%; max-width: 320px;
  height: 100vh; background: var(--white); z-index: 1050;
  padding: 5rem 2rem 2rem; transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
  box-shadow: var(--shadow-lg);
}
.mobile-menu.open { right: 0; }
.mobile-menu__list { display: flex; flex-direction: column; gap: 1.5rem; }
.mobile-menu__link {
  font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem;
  color: var(--navy); padding: 0.5rem 0; border-bottom: 1px solid var(--gray-100);
  transition: color var(--transition);
}
.mobile-menu__link:hover { color: var(--red); }
.mobile-menu__cta {
  display: inline-block; margin-top: 1rem; background: var(--red);
  color: var(--white); padding: 0.9rem 2rem; border-radius: var(--radius-lg);
  font-family: var(--font-heading); font-weight: 700; text-align: center;
  transition: background var(--transition);
}
.mobile-menu__cta:hover { background: var(--red-hover); }
.overlay {
  position: fixed; inset: 0; background: rgba(11,29,58,0.4);
  z-index: 1040; opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.overlay.active { opacity: 1; pointer-events: all; }

/* =======================
   HERO
   ======================= */
.hero {
  padding: 7rem 0 3rem; background: linear-gradient(170deg, var(--off-white) 0%, var(--white) 100%);
  position: relative; overflow: hidden; min-height: 90vh; display: flex; align-items: center;
}
.hero::before {
  content:''; position:absolute; top:-60px; right:-80px;
  width:300px; height:300px; background: var(--red-light);
  border-radius:50%; filter:blur(80px); z-index:0;
}
.hero__inner { display: flex; flex-direction: column; gap: 2rem; position: relative; z-index: 1; }
.hero__content { order: 2; text-align: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--red-light); color: var(--red); padding: 0.4rem 1rem;
  border-radius: var(--radius-lg); font-family: var(--font-heading);
  font-weight: 700; font-size: 0.78rem; letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero__badge svg { width: 14px; height: 14px; fill: var(--red); }
.hero__title {
  font-family: var(--font-heading); font-weight: 900; font-size: clamp(1.8rem,5vw,3.2rem);
  line-height: 1.15; color: var(--navy); margin-bottom: 1rem;
}
.hero__title em { font-style: normal; color: var(--red); }
.hero__subtitle {
  font-size: 1rem; color: var(--gray-600); max-width: 540px;
  margin: 0 auto 1.8rem; line-height: 1.8;
}
.hero__actions { display: flex; flex-direction: column; gap: 1rem; align-items: center; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--red); color: var(--white); padding: 1rem 2.2rem;
  border-radius: var(--radius-lg); font-family: var(--font-heading);
  font-weight: 800; font-size: 1rem; letter-spacing: 0.5px;
  box-shadow: 0 4px 20px rgba(217,30,54,0.35);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
  background: var(--red-hover); transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(217,30,54,0.4);
}
.btn-primary svg { width: 18px; height: 18px; fill: var(--white); }
.btn-secondary {
  font-family: var(--font-heading); font-weight: 700; font-size: 0.92rem;
  color: var(--red); display: inline-flex; align-items: center; gap: 0.4rem;
  transition: gap var(--transition);
}
.btn-secondary:hover { gap: 0.8rem; }
.hero__image { order: 1; text-align: center; }
.hero__image img {
  width: 85%; max-width: 380px; margin: 0 auto;
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* =======================
   STATS BAR
   ======================= */
.stats {
  background: var(--navy); padding: 2.5rem 0; position: relative;
}
.stats__inner {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem; text-align: center;
}
.stat__item { color: var(--white); }
.stat__number {
  font-family: var(--font-heading); font-weight: 900; font-size: 2rem;
  color: var(--white); display: block;
}
.stat__number span { color: var(--red); }
.stat__label { font-size: 0.85rem; color: var(--gray-300); margin-top: 0.2rem; }

/* =======================
   PROPOSALS
   ======================= */
.proposals { padding: 4rem 0; background: var(--white); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-tag {
  display: inline-block; background: var(--red-light); color: var(--red);
  padding: 0.35rem 1rem; border-radius: var(--radius-lg);
  font-family: var(--font-heading); font-weight: 700;
  font-size: 0.75rem; letter-spacing: 1.2px; text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.section-title {
  font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(1.5rem,3.5vw,2.2rem); color: var(--navy); margin-bottom: 0.6rem;
}
.section-desc { color: var(--gray-600); max-width: 550px; margin: 0 auto; }
.proposals__grid {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
.proposal-card {
  background: var(--off-white); border-radius: var(--radius-md);
  padding: 2rem 1.5rem; border: 1px solid var(--gray-100);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative; overflow: hidden;
}
.proposal-card::before {
  content:''; position:absolute; top:0; left:0; width:4px; height:100%;
  background: var(--red); transform: scaleY(0); transform-origin: bottom;
  transition: transform var(--transition);
}
.proposal-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.proposal-card:hover::before { transform: scaleY(1); }
.proposal-card__icon {
  width: 52px; height: 52px; background: var(--red-light);
  border-radius: var(--radius-sm); display: flex; align-items: center;
  justify-content: center; margin-bottom: 1.2rem;
}
.proposal-card__icon svg { width: 26px; height: 26px; fill: var(--red); }
.proposal-card__title {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 1.1rem; color: var(--navy); margin-bottom: 0.5rem;
}
.proposal-card__text { font-size: 0.92rem; color: var(--gray-600); line-height: 1.7; }

/* =======================
   CANDIDATE / ABOUT
   ======================= */
.candidate {
  padding: 4rem 0; background: var(--off-white);
  position: relative; overflow: hidden;
}
.candidate__inner { display: flex; flex-direction: column; gap: 2rem; }
.candidate__img img {
  width: 100%; max-width: 420px; margin: 0 auto;
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
}
.candidate__info { text-align: center; }
.candidate__name {
  font-family: var(--font-heading); font-weight: 900;
  font-size: 1.6rem; color: var(--navy); margin-bottom: 0.3rem;
}
.candidate__role {
  font-family: var(--font-heading); font-weight: 600;
  font-size: 0.9rem; color: var(--red); text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 1rem;
}
.candidate__desc { color: var(--gray-600); margin-bottom: 1.5rem; max-width: 520px; margin-left: auto; margin-right: auto; }
.candidate__values { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.value-tag {
  background: var(--white); border: 1px solid var(--gray-100);
  padding: 0.4rem 1rem; border-radius: var(--radius-lg);
  font-size: 0.82rem; font-weight: 600; color: var(--navy);
}

/* =======================
   CTA BANNER
   ======================= */
.cta-banner {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--red) 0%, #B8162D 100%);
  text-align: center; color: var(--white); position: relative; overflow: hidden;
}
.cta-banner::after {
  content:''; position:absolute; bottom:-40px; left:50%; transform:translateX(-50%);
  width:200px; height:200px; background:rgba(255,255,255,0.06);
  border-radius:50%;
}
.cta-banner__title {
  font-family: var(--font-heading); font-weight: 900;
  font-size: clamp(1.5rem,4vw,2.4rem); margin-bottom: 0.8rem; position: relative; z-index: 1;
}
.cta-banner__text { max-width: 500px; margin: 0 auto 1.5rem; opacity: 0.9; position: relative; z-index: 1; }
.btn-white {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--white); color: var(--red); padding: 1rem 2.2rem;
  border-radius: var(--radius-lg); font-family: var(--font-heading);
  font-weight: 800; font-size: 1rem; position: relative; z-index: 1;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.2); }

/* =======================
   FOOTER
   ======================= */
.footer { background: var(--navy); padding: 3rem 0 1.5rem; color: var(--white); }
.footer__inner {
  display: grid; grid-template-columns: 1fr; gap: 2rem; text-align: center;
}
.footer__brand-text { font-size: 0.88rem; color: var(--gray-300); margin-top: 0.8rem; line-height: 1.6; }
.footer__heading {
  font-family: var(--font-heading); font-weight: 700; font-size: 0.95rem;
  margin-bottom: 0.8rem; color: var(--white);
}
.footer__links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__link { color: var(--gray-300); font-size: 0.88rem; transition: color var(--transition); }
.footer__link:hover { color: var(--red); }
.footer__social { display: flex; gap: 0.8rem; justify-content: center; }
.footer__social-link {
  width: 40px; height: 40px; background: var(--navy-light);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), transform var(--transition);
}
.footer__social-link:hover { background: var(--red); transform: translateY(-3px); }
.footer__social-link svg { width: 18px; height: 18px; fill: var(--white); }
.footer__contact-item { color: var(--gray-300); font-size: 0.88rem; margin-bottom: 0.4rem; }
.footer__bottom {
  text-align: center; padding-top: 1.5rem; margin-top: 2rem;
  border-top: 1px solid var(--navy-light); font-size: 0.8rem; color: var(--gray-300);
}

/* =======================
   ANIMATIONS — Fade-in on scroll
   ======================= */
.fade-in {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* =======================
   RESPONSIVE — Tablet (768px)
   ======================= */
@media (min-width: 768px) {
  .stats__inner { grid-template-columns: repeat(3, 1fr); }
  .proposals__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: repeat(3, 1fr); text-align: left; }
  .footer__social { justify-content: flex-start; }
  .hero__image img { max-width: 440px; }
  .candidate__inner { flex-direction: row; align-items: center; }
  .candidate__img { flex: 0 0 45%; }
  .candidate__info { text-align: left; flex: 1; }
  .candidate__values { justify-content: flex-start; }
  .candidate__desc { margin-left: 0; }
}

/* =======================
   RESPONSIVE — Desktop (1024px)
   ======================= */
@media (min-width: 1024px) {
  .hamburger { display: none; }
  .nav__list { display: flex; }
  .hero__inner { flex-direction: row; align-items: center; min-height: 80vh; }
  .hero__content { order: 1; flex: 1; text-align: left; padding-right: 3rem; }
  .hero__subtitle { margin-left: 0; }
  .hero__actions { flex-direction: row; }
  .hero__image { order: 2; flex: 0 0 50%; }
  .hero__image img { width: 100%; max-width: 520px; margin: 0; }
  .proposals__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__inner { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .stats__inner { grid-template-columns: repeat(4, 1fr); }
}
