/* ================================================================
   VOLLEYGROUND  /  HOME V2
   HTML semántico, CSS puro, responsive. Bordes <= 4 px.
   Personaliza primero los colores y las fuentes de :root.
   ================================================================ */
:root {
  --navy: #0b1d4d;
  --navy-dark: #06152e;
  --navy-soft: #17365b;
  --red: #c50027;
  --red-dark: #a82d46;
  --white: #fff;
  --paper: #f6f7fa;
  --paper-warm: #f3f4f6;
  --ink: #121e32;
  --muted: #617086;
  --line: #dfe4ed;
  --radius: 3px;
  --shadow: 0 9px 27px rgb(8 25 51 / 10%);
  --max-width: 1240px;
  --display: 'Barlow Condensed', Impact, 'Arial Narrow', sans-serif;
  --text: 'Inter', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--paper); font-family: var(--text); color: var(--ink); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
button, input { font: inherit; }
button { cursor: pointer; }
.container { width: min(calc(100% - 64px), var(--max-width)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1000; top: -100px; left: 20px; padding: 12px 18px; background: var(--white); color: var(--ink); }
.skip-link:focus { top: 20px; }
.accent-bar { display: inline-block; background: var(--red); width: 9px; height: 19px; transform: skew(-24deg); margin-right: 11px; flex: none; }
.accent-light { background: var(--white); }
.eyebrow { display: flex; align-items: center; margin: 0 0 14px; font: 800 15px/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.eyebrow-light { color: #cbd6e6; }

/* HEADER */
.site-header { position: relative; z-index: 50; background: var(--white); box-shadow: 0 3px 15px rgb(3 20 46 / 7%); }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; min-height: 91px; }
.brand { display: flex; flex: none; align-items: center; width: min(330px, 42vw); }
.brand img { display: block; width: 100%; height: auto; }
.brand__tagline {
    display: block;
    margin-left: 15px;
    padding-left: 15px;
    border-left: 1px solid #CBD5E1;

    font-size: 12px;
    font-weight: 600;
    font-style: italic;
    color: #64748B;
    letter-spacing: 0.5px;
}
.main-nav { display: flex; align-items: stretch; justify-content: flex-end; align-self: stretch; gap: clamp(20px, 3.6vw, 56px); }
.main-nav a { position: relative; display: inline-flex; align-items: center; padding: 12px 0; font: 800 21px/1 var(--display); text-transform: uppercase; letter-spacing: .015em; transition: color .2s ease; }
.main-nav a:hover { color: var(--red-dark); }
.main-nav a::after { position: absolute; bottom: 23px; left: 0; width: 0; height: 3px; background: var(--red); content: ''; transition: width .2s ease; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { width: 100%; }
.menu-toggle { display: none; }

/* HERO */
.hero { isolation: isolate; position: relative; overflow: hidden; display: flex; align-items: center; min-height: clamp(530px, 48vw, 690px); background: var(--navy-dark); color: var(--white); padding: 92px 0 130px; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgb(5 17 41 / 97%) 0%, rgb(7 26 58 / 91%) 31%, rgb(7 23 51 / 54%) 56%, rgb(5 18 40 / 6%) 100%), url('../assets/images/hero.webp') center 45% / cover no-repeat; }
.hero::before { content: ''; position: absolute; z-index: -1; top: -135px; left: -95px; width: 460px; height: 460px; background: url('../assets/images/pattern-volleyball.svg') center/440px no-repeat; opacity: .09; transform: rotate(-20deg); pointer-events: none; }
.hero-content { position: relative; z-index: 3; }
.hero h1 { font: 900 clamp(65px, 7.1vw, 108px)/.9 var(--display); letter-spacing: -.012em; text-transform: uppercase; max-width: 760px; margin: 0 0 25px; text-shadow: 0 3px 16px rgb(0 0 0 / 14%); }
.hero h1 span { display: block; color: #f3697e; }
.hero-lead { max-width: 520px; margin: 0 0 31px; color: #e6ecf5; font-size: 17px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 14px; min-height: 50px; padding: 13px 23px; border: 1px solid transparent; border-radius: var(--radius); font: 800 19px/1.1 var(--display); text-transform: uppercase; letter-spacing: .015em; box-shadow: 0 4px 15px rgb(0 0 0 / 13%); transition: background .2s ease, transform .2s ease, color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: var(--white); background: var(--red); }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { color: var(--white); border-color: #d8e2ed; background: rgb(5 15 33 / 17%); }
.btn-outline:hover { background: rgb(255 255 255 / 13%); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: #e8edf5; }
.hero-red-slice { position: absolute; bottom: 0; right: 0; width: 64%; height: 118px; z-index: 1; background: var(--red); clip-path: polygon(0 100%,100% 4%,100% 100%); }
.hero-cut { position: absolute; bottom: -1px; inset-inline: 0; height: 84px; z-index: 2; background: var(--paper); clip-path: polygon(0 34%,17% 76%,43% 44%,65% 71%,90% 64%,100% 13%,100% 100%,0 100%); }

/* SHARED SECTIONS */
.section { position: relative; padding: 77px 0; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 28px; }
.section-header h2, .positions-panel h2, .about-panel h2, .newsletter-section h2 { margin: 0; color: var(--navy); font: 900 clamp(39px, 4.4vw, 59px)/.95 var(--display); text-transform: uppercase; }
.section-header h2 em, .positions-panel h2 em { font-style: normal; color: var(--red); }
.section-note { color: var(--muted); font-size: 14px; margin: 0 0 4px; line-height: 1.5; }
.section-pattern { isolation: isolate; }
.section-pattern::before { position: absolute; z-index: -1; inset: 0; content: ''; background: url('../assets/images/pattern-hex.svg') left top / 155px auto repeat; opacity: .055; pointer-events: none; }

/* NEWS / ARTICLES */
#articulos { padding-top: 59px; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.news-card { background: var(--white); border: 1px solid #e3e8f0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 14px 27px rgb(8 25 51 / 16%); }
.news-image { position: relative; height: clamp(175px, 17vw, 226px); overflow: hidden; background: var(--navy-soft); }
.news-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.news-card:hover .news-image img { transform: scale(1.035); }
.category { position: absolute; bottom: 0; left: 0; padding: 8px 17px; color: var(--white); background: var(--red); font: 800 17px/1 var(--display); }
.category-navy { background: var(--navy); }
.news-body { padding: 24px 22px 28px; min-height: 216px; }
.meta { margin: 0 0 9px; font-size: 10px; font-weight: 700; letter-spacing: .11em; color: #697993; }
.news-body h3 { font: 800 27px/1.04 var(--display); color: var(--navy); margin: 0 0 13px; }
.news-body > p:last-child { color: var(--muted); line-height: 1.6; font-size: 13px; margin: 0; }

/* COURSES */
.courses-section { background: #fff; border-top: 1px solid var(--line); padding: 74px 0 85px; }
.course-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.course-card { isolation: isolate; position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 284px; overflow: hidden; padding: 21px 22px 18px; background: linear-gradient(145deg, #081d3c, #183b66); color: var(--white); border-radius: var(--radius); border-bottom: 5px solid var(--red); box-shadow: 0 7px 18px rgb(10 29 61 / 14%); }
.course-card::before { position: absolute; content: ''; z-index: -1; inset: 0; background: url('../assets/images/pattern-hex.svg') center/140px auto repeat; opacity: .09; filter: brightness(1.9); }
.course-number { font: 700 11px/1 var(--text); letter-spacing: .13em; color: #c9d8ea; }
.course-card svg { width: 66px; height: 66px; fill: none; stroke: #e2ebf6; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; margin: 13px 0; }
.course-card h3 { margin: 0 0 2px; font: 900 33px/1 var(--display); }
.course-card p { margin: 0 0 17px; line-height: 1.5; font-size: 12px; color: #d9e3ef; }
.course-status { align-self: flex-start; padding-top: 8px; border-top: 1px solid rgb(255 255 255 / 25%); font: 700 10px/1.4 var(--text); letter-spacing: .08em; color: #f0bbc6; text-transform: uppercase; }

/* CLUBS / MADRID */
.clubs-banner { isolation: isolate; position: relative; overflow: hidden; display: flex; align-items: center; min-height: 374px; background: linear-gradient(100deg, #a12d49, #bb405c 58%, #7d1535); color: var(--white); }
.clubs-banner::before { position: absolute; z-index: -2; inset: 0; content: ''; background: radial-gradient(circle at 81% 26%, rgb(255 255 255 / 12%) 0, transparent 28%), linear-gradient(80deg, rgb(95 7 36 / 23%), transparent 75%); }
.clubs-watermark { position: absolute; z-index: -1; width: 460px; height: 460px; right: 9%; top: -64px; background: url('../assets/images/pattern-volleyball.svg') center/contain no-repeat; opacity: .17; transform: rotate(-21deg); }
.clubs-content { position: relative; z-index: 2; padding-block: 62px 76px; }
.clubs-content h2 { font: 900 clamp(49px, 5.2vw, 78px)/.91 var(--display); margin: 0 0 18px; max-width: 690px; }
.clubs-content h2 span { display: block; }
.clubs-content > p:not(.eyebrow):not(.clubs-disclaimer) { max-width: 530px; font-size: 16px; line-height: 1.7; margin: 0 0 24px; }
.clubs-content .clubs-disclaimer { font: 600 11px/1.5 var(--text); opacity: .8; margin: 18px 0 0; }
.clubs-angle { position: absolute; z-index: 1; inset: 0 0 0 auto; width: 13%; background: #f6f7fa; clip-path: polygon(100% 0,100% 100%,0 100%); }
.clubs-angle::before { content: ''; position: absolute; height: 100%; width: 13px; background: #fff; left: 50%; transform: skew(-16deg); }

/* POSITIONS AND ABOUT: SIDE BY SIDE */
.discovery-section { background: #f4f6f9; padding: 78px 0 86px; }
.dual-grid { display: grid; grid-template-columns: 1.13fr 1fr; gap: 24px; align-items: stretch; }
.positions-panel, .about-panel { position: relative; padding: clamp(25px, 3.4vw, 48px); border-radius: var(--radius); min-height: 540px; overflow: hidden; }
.positions-panel { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.positions-panel::before { content: ''; position: absolute; right: -62px; top: -40px; width: 280px; height: 280px; background: url('../assets/images/pattern-hex.svg') center/155px repeat; opacity: .06; pointer-events: none; }
.positions-panel h2 { max-width: 430px; }
.panel-lead { font-size: 14px; line-height: 1.75; color: var(--muted); max-width: 520px; margin: 16px 0 27px; }
.positions-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.positions-list li { display: grid; grid-template-columns: 35px 1fr 30px; align-items: center; gap: 13px; min-height: 50px; border-bottom: 1px solid var(--line); }
.positions-list li span:first-child { color: var(--red); font: 800 13px var(--display); }
.positions-list li strong { font: 800 21px/1.05 var(--display); text-transform: uppercase; color: var(--navy); }
.positions-list li span:last-child { text-align: right; color: #8191a5; font-size: 19px; }
.about-panel { isolation: isolate; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; background: linear-gradient(140deg, #071a36, #113465); color: var(--white); }
.about-mark { position: absolute; width: 500px; height: 500px; right: -250px; top: -90px; z-index: -1; background: url('../assets/images/pattern-volleyball.svg') center/contain no-repeat; opacity: .11; transform: rotate(12deg); }
.about-panel h2 { color: var(--white); max-width: 550px; font-size: clamp(39px, 4.2vw, 61px); }
.about-panel h2 span { color: #f2768b; }
.about-panel p:not(.eyebrow) { line-height: 1.75; font-size: 14px; color: #d8e2ef; max-width: 485px; margin: 20px 0 0; }
.about-panel p:not(.eyebrow) + p { margin-top: 10px; }
.about-link { display: inline-flex; align-items: center; gap: 20px; margin-top: 32px; color: var(--white); border-bottom: 3px solid var(--red); padding-bottom: 8px; font: 800 20px/1 var(--display); text-transform: uppercase; }
.about-link:hover { color: #f2a5b3; }

/* NEWSLETTER */
.newsletter-section { isolation: isolate; position: relative; overflow: hidden; padding: 66px 0 72px; color: var(--white); background: #0b1d4d; }
.newsletter-section::before { position: absolute; content: ''; z-index: -1; width: 390px; height: 390px; top: -135px; right: 0; background: url('../assets/images/pattern-volleyball.svg') center/contain no-repeat; opacity: .085; transform: rotate(14deg); }
.newsletter-grid { display: grid; grid-template-columns: 1fr .86fr; align-items: center; gap: 50px; }
.newsletter-section h2 { color: var(--white); max-width: 650px; font-size: clamp(42px, 4.1vw, 60px); }
.newsletter-section h2 span { color: #f17a91; }
.newsletter-grid > div:first-child > p:last-child { max-width: 570px; font-size: 14px; color: #dbe5f1; line-height: 1.7; margin-bottom: 0; }
.newsletter-box { padding: 29px; border: 1px solid rgb(255 255 255 / 22%); background: rgb(255 255 255 / 5%); border-radius: var(--radius); }
.newsletter-box label { display: block; font: 800 25px/1 var(--display); text-transform: uppercase; margin-bottom: 16px; }
.newsletter-fields { display: flex; gap: 7px; }
.newsletter-fields input { min-width: 0; flex: 1; height: 48px; border: 1px solid #dce3ed; border-radius: var(--radius); background: #eef2f7; padding: 0 13px; font-size: 13px; color: var(--ink); }
.newsletter-fields button { flex: none; border: 0; border-radius: var(--radius); padding: 0 17px; background: #b64a60; color: var(--white); text-transform: uppercase; font: 800 17px/1 var(--display); }
.newsletter-fields button:disabled, .newsletter-fields input:disabled { cursor: not-allowed; }
.newsletter-box > p { color: #b7c8de; line-height: 1.55; font-size: 11px; margin: 14px 0 0; }

/* FOOTER */
.site-footer { color: #c7d3e3; background: #061327; }
.footer-top { display: grid; grid-template-columns: 1.65fr repeat(3, .72fr); gap: 40px; padding: 65px 0 55px; }
.footer-name { font: 900 45px/1 var(--display); color: var(--white); margin: 0 0 4px; }
.footer-name span { color: var(--red); }
.footer-tagline { font: 700 12px/1.4 var(--text); letter-spacing: .14em; color: #f49bae; margin: 0 0 23px; }
.footer-brand > p:last-child { max-width: 300px; font-size: 13px; line-height: 1.7; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-column h2 { font: 800 18px/1.2 var(--display); color: var(--white); margin: 0 0 12px; letter-spacing: .03em; }
.footer-column a, .footer-column span { color: #b7c6d9; font-size: 13px; line-height: 1.5; }
.footer-column a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--red); }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; border-top: 1px solid #28364b; padding: 20px 0 25px; }
.footer-bottom p { margin: 0; font-size: 11px; color: #8799b1; }

/* GENERIC COMING-SOON PAGES (Galería / Clubes) */
.stub-return { font: 800 20px/1 var(--display); text-transform: uppercase; color: var(--navy); white-space: nowrap; }
.stub-return:hover { color: var(--red); }
.stub-page { background: var(--paper); min-height: 62vh; position: relative; display: flex; align-items: center; }
.stub-page::before { content: ''; position: absolute; inset: 0; background: url('../assets/images/pattern-hex.svg') center/155px repeat; opacity: .06; }
.stub-page .container { position: relative; padding-block: 110px; }
.stub-page h1 { margin: 0 0 16px; max-width: 900px; color: var(--navy); font: 900 clamp(60px, 8vw, 108px)/.92 var(--display); text-transform: uppercase; }
.stub-page p:not(.eyebrow) { max-width: 570px; line-height: 1.7; color: var(--muted); margin-bottom: 25px; }

/* RESPONSIVE */
@media (max-width: 1060px) {
  .brand { width: 275px; }
  .header-inner { gap: 20px; }
  .main-nav { gap: 25px; }
  .main-nav a { font-size: 19px; }
  .news-body { min-height: 230px; }
  .newsletter-grid { gap: 25px; }
  .newsletter-fields { flex-wrap: wrap; }
  .newsletter-fields input, .newsletter-fields button { width: 100%; flex-basis: 100%; height: 46px; }
}
@media (max-width: 860px) {
  .container { width: min(calc(100% - 42px), var(--max-width)); }
  .header-inner { min-height: 77px; }
  .brand { width: min(285px, 65vw); }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; align-items: center; width: 45px; height: 42px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
  .menu-toggle span { display: block; width: 21px; height: 2px; background: var(--navy); transition: transform .2s ease, opacity .2s ease; }
  .menu-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); box-shadow: 0 12px 15px rgb(8 25 51 / 12%); padding: 13px 22px 22px; flex-direction: column; gap: 2px; }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .hero { min-height: 580px; padding: 70px 0 110px; }
  .hero h1 { font-size: clamp(58px, 9vw, 84px); max-width: 630px; }
  .hero-bg { background-position: 62% center; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-card:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: .9fr 1fr; }
  .news-card:last-child .news-image { height: 100%; min-height: 220px; }
  .news-body { min-height: 190px; }
  .course-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dual-grid { grid-template-columns: 1fr; }
  .positions-panel, .about-panel { min-height: auto; }
  .about-panel { padding-block: 50px; }
  .newsletter-grid { grid-template-columns: 1fr; }
  .newsletter-fields { flex-wrap: nowrap; }
  .newsletter-fields input { flex-basis: auto; width: auto; }
  .newsletter-fields button { flex-basis: auto; width: auto; }
  .footer-top { grid-template-columns: repeat(3,1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .container { width: min(calc(100% - 34px), var(--max-width)); }
  .header-inner { min-height: 70px; }
  .brand { width: min(240px, 68vw); }
  .hero { min-height: 590px; padding-top: 76px; padding-bottom: 116px; }
  .hero-bg { background: linear-gradient(90deg, rgb(4 14 33 / 95%) 0%, rgb(5 17 38 / 84%) 51%, rgb(5 17 38 / 48%) 100%), url('../assets/images/hero.webp') 64% center/cover no-repeat; }
  .hero h1 { font-size: clamp(56px, 12vw, 78px); max-width: 100%; }
  .hero h1 span { display: block; }
  .hero-lead { font-size: 14px; max-width: 95%; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-actions .btn { width: 100%; max-width: 310px; }
  .hero-red-slice { width: 78%; height: 76px; }
  .hero-cut { height: 58px; }
  .section { padding-block: 53px; }
  #articulos { padding-top: 45px; }
  .section-header { display: block; margin-bottom: 23px; }
  .section-header h2 { font-size: clamp(38px, 9vw, 49px); }
  .section-note { margin-top: 10px; }
  .news-grid { grid-template-columns: 1fr; gap: 16px; }
  .news-card:last-child { display: block; grid-column: auto; }
  .news-image, .news-card:last-child .news-image { height: 210px; min-height: 0; }
  .news-body { min-height: 0; padding: 19px 20px 22px; }
  .course-grid { gap: 10px; }
  .course-card { min-height: 240px; padding: 16px 14px; }
  .course-card svg { width: 48px; height: 48px; }
  .course-card h3 { font-size: 29px; }
  .course-card p { font-size: 11px; }
  .clubs-content { padding-block: 55px 65px; }
  .clubs-content h2 { font-size: clamp(52px, 10.5vw, 75px); }
  .clubs-content > p:not(.eyebrow):not(.clubs-disclaimer) { font-size: 14px; max-width: 89%; }
  .clubs-angle { width: 9%; }
  .positions-panel, .about-panel { padding: 26px 21px; }
  .positions-panel h2, .about-panel h2 { font-size: 45px; }
  .newsletter-section { padding-block: 53px; }
  .newsletter-section h2 { font-size: 44px; }
  .newsletter-box { padding: 20px; }
  .newsletter-fields { flex-wrap: wrap; }
  .newsletter-fields input, .newsletter-fields button { width: 100%; flex-basis: 100%; }
  .footer-top { grid-template-columns: repeat(2,1fr); gap: 30px 17px; padding: 50px 0; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 9px; }
  
/* ========== IDENTIDAD DE CABECERA ========== */

.site-header .brand {
    display: flex;
    align-items: center;
    gap: 15px;
    width: auto;
    max-width: 100%;
    text-decoration: none;
    flex-shrink: 1;
}

.site-header .brand__logo {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
    flex-shrink: 1;
    object-fit: contain;
}

.brand__tagline {
    display: block;
    padding-left: 15px;
    border-left: 1px solid #CBD5E1;

    color: #0B1D4D;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px;
    font-weight: 700;
    font-style: italic;
    line-height: 1.25;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* MÓVIL */

@media (max-width: 768px) {
    .site-header .brand__logo {
        width: 180px;
    }

    .brand__tagline {
        display: none;
    }
}

}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
