:root{--wine:#800000;--gold:#ffd700;--ink:#242020}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:100px}body{margin:0;background:#f6f5f3;color:var(--ink);font:16px/1.6 Arial,Helvetica,sans-serif}a{color:inherit}button,input{font:inherit}button,a,input{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #d6a500;outline-offset:4px}[hidden]{display:none!important}.site-header{background:var(--wine);color:white;border-bottom:5px solid var(--gold)}.header-inner{max-width:1300px;padding:12px 32px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:28px}.logo img{height:100px;width:150px;object-fit:contain}.site-header nav{display:flex;align-items:center;gap:28px;font-size:14px;font-weight:700}.site-header a{text-decoration:none}.site-header nav>a:hover{color:var(--gold)}.gold-button,.site-header nav>a.gold-button{background:linear-gradient(#ffe148,#dfb724);color:#271b00;padding:13px 22px;border-radius:5px;box-shadow:0 3px 10px #0003}.hero{background:linear-gradient(90deg,#100101df,#1e00006b 60%,#18000015),url('assets/img/portada.webp') center right/cover;min-height:590px;color:white;display:flex;align-items:center}.hero-inner{width:100%;max-width:1280px;margin:auto;padding:60px 40px}.hero-kicker{letter-spacing:3px;font-size:12px;font-weight:800;color:var(--gold)}.hero h1{font-size:clamp(36px,4.8vw,67px);line-height:1.1;font-weight:900;font-style:italic;margin:20px 0;text-shadow:2px 4px 10px #0008;letter-spacing:-1.4px}.hero p{font-size:18px;line-height:1.7;color:#f8efee}.hero-access{display:inline-flex;flex-direction:column;padding:20px 36px;margin-top:14px;gap:3px;text-decoration:none;text-align:center;background:linear-gradient(#ffe442,#e6b800);color:#211600;border-radius:5px;box-shadow:0 10px 30px #0004;border:1px solid #d4a915}.hero-access strong{font-size:24px;font-weight:900}.hero-access span{font-size:14px}.features{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;padding:30px 24px;background:white;border-bottom:1px solid #e6e1df}.features>div{text-align:center;font-size:12px;line-height:1.5;display:flex;align-items:center;flex-direction:column;gap:10px}.features span{width:50px;height:50px;border:2px solid var(--gold);border-radius:50%;color:var(--wine);font-size:28px;display:grid;place-items:center}.catalogue-section{max-width:1260px;margin:auto;padding:76px 32px}.section-heading{text-align:center}.eyebrow{font-size:11px;font-weight:800;letter-spacing:2px;color:var(--wine)}.section-heading h2{font-size:clamp(28px,3vw,40px);line-height:1.2;margin:12px 0 14px;text-transform:uppercase;font-weight:900}.section-heading h3{color:var(--wine);font-size:20px;letter-spacing:2px;margin:12px 0 38px}.section-heading h3:after{content:'';display:block;width:90px;height:5px;background:var(--gold);margin:18px auto}.search-wrap{max-width:520px;margin:0 auto 36px}.search-wrap input{width:100%;border:1px solid #d7d0cc;padding:15px 20px;border-radius:8px;background:white;box-shadow:0 3px 10px #30101006}.catalogue-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}.catalogue-card{background:white;border-radius:10px;overflow:hidden;border-bottom:6px solid var(--wine);box-shadow:0 8px 22px #22000012;display:flex;flex-direction:column;transition:transform .2s}.catalogue-card:hover{transform:translateY(-5px)}.catalogue-card>img{width:100%;height:220px;object-fit:cover}.card-body{padding:25px;display:flex;flex:1;flex-direction:column;align-items:stretch}.card-body h3{font-size:21px;line-height:1.3;margin:6px 0 24px;font-weight:900}.card-hours{margin-top:auto;border-top:1px solid #eee;padding-top:18px;font-size:12px;font-weight:700}.button{display:inline-block;text-align:center;background:var(--wine);color:white;text-decoration:none;font-weight:700;padding:13px 18px;border-radius:6px;border:0;cursor:pointer}.button:hover{background:#610000}.about{background:white;padding:64px max(32px,calc((100vw - 1196px)/2));display:grid;grid-template-columns:1fr 1fr;gap:70px;border-top:1px solid #e6e1df}.about h2{font-size:32px;line-height:1.2}.about p{color:#655a56}.about .eyebrow{color:var(--wine)}.about-steps{padding:10px 0}.about-steps p{border-bottom:1px solid #e8e1df;padding:12px 0}.about-steps b{color:var(--wine);margin-right:15px}footer{padding:40px 24px;background:#650000;color:#fff;text-align:center;font-size:13px}footer img{width:115px;height:85px;object-fit:contain}footer small{color:#e6c6c6;display:block}footer>a{display:block;margin-top:12px;color:var(--gold)}#mobileMenuButton{display:none}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(max-width:900px){.site-header nav{gap:15px;font-size:12px}.catalogue-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.logo img{height:80px;width:115px}.about{gap:35px}}@media(max-width:640px){.header-inner{padding:10px 20px;flex-wrap:wrap;gap:8px}.logo img{height:65px;width:96px}.site-header nav{display:none;flex-direction:column;width:100%;align-items:stretch;padding:12px 0;gap:16px}.site-header nav.open{display:flex}#mobileMenuButton{display:block;background:transparent;color:var(--gold);border:1px solid #ffd70060;font-size:25px;border-radius:5px;padding:4px 10px}.hero{min-height:510px;background-position:65% center}.hero-inner{padding:48px 24px}.hero h1{font-size:39px}.hero p{font-size:16px}.hero-access{padding:18px 20px}.hero-access strong{font-size:21px}.features{grid-template-columns:1fr 1fr;gap:24px;padding:26px 12px}.catalogue-section{padding:46px 20px}.section-heading h3{font-size:16px;letter-spacing:1px}.catalogue-grid{grid-template-columns:1fr}.catalogue-card>img{height:220px}.about{grid-template-columns:1fr;padding:40px 24px;gap:16px}.about h2{font-size:29px}}

/* Portada principal en teléfono: solo afecta a index.html y no al aula. */
@media (max-width: 640px) {
  .site-header { position: relative; z-index: 20; }
  .header-inner { min-height: 78px; padding: 9px 18px; gap: 12px; flex-wrap: nowrap; }
  .logo { display: flex; align-items: center; }
  .logo img { width: 100px; height: 59px; object-fit: contain; }
  #mobileMenuButton {
    width: 46px; height: 46px; padding: 0; display: grid;
    place-items: center; border-radius: 10px; font-size: 29px;
    line-height: 1; flex-shrink: 0;
  }
  .site-header nav.open {
    position: absolute; top: 100%; left: 0; right: 0;
    z-index: 21; display: flex; width: 100%; margin: 0;
    padding: 18px 22px 22px; background: #800000;
    box-shadow: 0 15px 24px #18000055;
  }
  .hero {
    display: block; min-height: 0; background-color: #320306;
    background-image:
      linear-gradient(180deg, rgba(18,0,2,0.01) 0%, rgba(18,0,2,0.06) 27%, rgba(42,0,4,0.48) 43%, #390608 57%, #310307 100%),
      url('assets/img/portada.webp');
    background-size: 100% 100%, auto 345px;
    background-position: center center, 70% top;
    background-repeat: no-repeat;
  }
  .hero-inner {
    max-width: 440px; margin: 0 auto; padding: 285px 21px 30px;
    text-align: left;
  }
  .hero-kicker {
    display: block; font-size: 10px; line-height: 1.4;
    font-weight: 800; letter-spacing: 1.6px;
  }
  .hero h1 {
    font-size: clamp(26px, 7.3vw, 34px);
    line-height: 1.08; letter-spacing: -0.75px;
    margin: 11px 0 11px; text-shadow: 0 2px 9px #0007;
  }
  .hero p {
    margin: 0; color: #fff4f1; font-size: 14px;
    line-height: 1.55;
  }
  .hero-access {
    display: flex; width: 100%; min-height: 65px;
    justify-content: center; align-items: center;
    margin-top: 18px; padding: 12px 14px; gap: 0;
    border-radius: 11px; box-shadow: 0 5px 16px #0005;
  }
  .hero-access strong { font-size: clamp(16px, 4.3vw, 19px); line-height: 1.25; }
  .hero-access span { font-size: 12px; line-height: 1.5; }
}
