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

:root {
  --navy: #062f3b;
  --navy-2: #082431;
  --green: #08753e;
  --green-dark: #04552d;
  --gold: #d7a62b;
  --gold-light: #f4d98b;
  --cream: #fbfaf6;
  --text: #17242a;
  --muted: #5f6b70;
  --line: #e5e7e5;
  --white: #fff;
  --shadow: 0 18px 45px rgba(6, 47, 59, .12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--cream);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(6,47,59,.08);
  backdrop-filter: blur(14px);
}
.nav-wrap { min-height: 78px; display:flex; align-items:center; justify-content:space-between; gap:25px; }
.brand { display:flex; align-items:center; gap:12px; min-width:260px; }
.brand img { width:48px; height:48px; object-fit:contain; }
.brand strong { display:block; color:var(--navy); letter-spacing:.04em; }
.brand small { display:block; color:var(--muted); font-size:.68rem; line-height:1.2; max-width:260px; }
.main-nav { display:flex; align-items:center; gap:24px; font-size:.9rem; font-weight:600; }
.main-nav a:hover { color:var(--green); }
.nav-cta { background:var(--navy); color:#fff !important; padding:11px 17px; border-radius:999px; }
.nav-toggle { display:none; border:0; background:none; font-size:1.6rem; color:var(--navy); }

/* Hero V1.1: composición independiente para escritorio y móvil */
.hero {
  position: relative;
  min-height: 510px;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}
.hero-image {
  position: absolute;
  inset: 0 0 0 46%;
  background: url('../img/hero-perucidpe-clean.jpg') center center / cover no-repeat;
}
.hero-content {
  position: relative;
  z-index: 2;
  min-height: 510px;
  display: flex;
  align-items: stretch;
}
.hero-copy {
  width: 49%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px 30px 70px 0;
  position: relative;
}
.hero-copy::after { display:none; }
.eyebrow { margin:0 0 10px; font-size:.76rem; font-weight:800; letter-spacing:.18em; color:var(--gold-light); position:relative; z-index:2; }
.eyebrow.dark { color:var(--green); }
h1,h2,h3 { margin:0 0 16px; line-height:1.15; }
h1,h2 { font-family:"Libre Baskerville", Georgia, serif; }
h1 { font-size:clamp(2.3rem, 4.3vw, 4.25rem); }
.hero h1 { color:#fff; max-width:650px; position:relative; z-index:2; }
.hero-lead { font-size:1.08rem; max-width:570px; color:rgba(255,255,255,.88); position:relative; z-index:2; }
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:30px; position:relative; z-index:2; }
.btn { display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:0 20px; border-radius:999px; font-weight:700; transition:.2s ease; }
.btn:hover { transform:translateY(-2px); }
.btn-primary { background:var(--gold); color:var(--navy); }
.btn-outline { border:1px solid rgba(255,255,255,.7); color:#fff; background:rgba(255,255,255,.05); }
.btn-gold { background:var(--gold); color:var(--navy); margin-top:12px; }

.section { padding:90px 0; }
.intro { background:#fff; }
.intro-grid, .contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:70px; align-items:start; }
.intro-text { color:var(--muted); font-size:1.04rem; }
.section-heading { max-width:760px; margin-bottom:38px; }
.section-heading > p:last-child { color:var(--muted); }
.cards { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.card { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:34px; box-shadow:0 8px 25px rgba(6,47,59,.05); }
.card:hover { transform:translateY(-4px); box-shadow:var(--shadow); transition:.2s ease; }
.card .icon { width:46px; height:46px; display:grid; place-items:center; border-radius:14px; background:rgba(8,117,62,.1); color:var(--green); font-weight:800; margin-bottom:24px; }
.card h3 { color:var(--navy); font-size:1.25rem; }
.card p { color:var(--muted); margin:0; }

.moodle { background:var(--navy); color:#fff; }
.moodle-grid { display:grid; grid-template-columns:1.1fr .9fr; gap:55px; align-items:center; }
.moodle-visual { border-radius:var(--radius); overflow:hidden; box-shadow:0 20px 50px rgba(0,0,0,.28); }
.moodle-copy .eyebrow { color:var(--gold-light); }
.moodle-copy h2 { color:#fff; }
.moodle-copy p { color:rgba(255,255,255,.78); }
.moodle-copy .btn-gold { margin-top:16px; }

.future { background:#f1f3f0; }
.future-panel { display:grid; grid-template-columns:1.2fr .8fr; gap:45px; padding:45px; border-radius:28px; background:linear-gradient(135deg,#fff,#eef4ef); border:1px solid #dfe8e1; }
.future-panel p { color:var(--muted); }
.future-list { display:grid; grid-template-columns:1fr 1fr; gap:12px; align-content:center; }
.future-list span { padding:15px 18px; background:#fff; border:1px solid var(--line); border-radius:14px; font-weight:600; color:var(--navy); }

.contact { background:#fff; }
.contact-box { border-left:4px solid var(--gold); padding:8px 0 8px 28px; display:grid; gap:4px; }
.contact-box a { color:var(--green); font-weight:700; margin-bottom:12px; }
.contact-label { font-size:.72rem; text-transform:uppercase; letter-spacing:.12em; color:var(--muted); font-weight:800; }

.site-footer { background:#041f29; color:#fff; padding:35px 0; }
.footer-grid { display:grid; grid-template-columns:1.4fr .8fr .6fr; gap:30px; align-items:center; }
.footer-grid p { color:rgba(255,255,255,.65); margin:5px 0 0; font-size:.85rem; }
.footer-links { display:flex; gap:18px; flex-wrap:wrap; font-size:.85rem; color:rgba(255,255,255,.8); }
.footer-copy { text-align:right; color:rgba(255,255,255,.55); font-size:.8rem; }

@media (max-width: 900px) {
  .main-nav { gap:14px; font-size:.82rem; }
  .cards, .moodle-grid, .future-panel { grid-template-columns:1fr; }
  .intro-grid, .contact-grid { grid-template-columns:1fr; gap:25px; }
  .moodle-visual { order:2; }
  .footer-grid { grid-template-columns:1fr; }
  .footer-copy { text-align:left; }
}
@media (max-width: 700px) {
  .nav-wrap { min-height:68px; }
  .nav-toggle { display:block; }
  .main-nav {
    display:none; position:absolute; top:68px; left:0; right:0;
    padding:18px 20px; background:#fff; border-bottom:1px solid var(--line);
    flex-direction:column; align-items:stretch;
  }
  .main-nav.open { display:flex; }
  .main-nav a { padding:10px 4px; }
  .nav-cta { text-align:center; }
  .brand small { display:none; }
  .hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
  }
  .hero-image {
    position: relative;
    inset: auto;
    width: 100%;
    height: 270px;
    order: 2;
    background-position: center center;
  }
  .hero-content {
    min-height: auto;
    display: block;
    order: 1;
  }
  .hero-copy {
    width: 100%;
    max-width: none;
    padding: 54px 0 58px;
  }
  .hero-copy::after { display:none; }
  .hero h1 { max-width: 560px; font-size: clamp(2.05rem, 9vw, 3.05rem); }
  .hero-lead { max-width: 560px; font-size: 1rem; }
  .hero-actions { margin-top: 24px; }
  .section { padding:65px 0; }
  .future-panel { padding:30px; }
  .future-list { grid-template-columns:1fr; }
}

.page-hero { background:var(--navy); color:#fff; padding:70px 0 75px; }
.page-hero h1 { color:#fff; max-width:800px; font-size:clamp(2.2rem,5vw,4rem); }
.page-lead { max-width:760px; color:rgba(255,255,255,.82); font-size:1.08rem; }
.breadcrumbs { display:flex; gap:10px; align-items:center; margin-bottom:30px; font-size:.82rem; color:rgba(255,255,255,.65); }
.breadcrumbs a { color:var(--gold-light); font-weight:700; }
