:root{font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;color:#f8fbff;background:#08122a}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0}.wrap{max-width:1200px;margin:auto;padding:0 24px}button,a{touch-action:manipulation}button{cursor:pointer;border:0;border-radius:9px;padding:11px 16px;font-weight:800;background:#1858ff;color:#08122a}a{color:inherit;text-decoration:none}.top{position:absolute;top:0;left:0;right:0;z-index:3;background:linear-gradient(#071025cc,#07102500)}.bar{height:88px;display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{display:flex;align-items:center;gap:13px;font-size:21px;font-weight:900;letter-spacing:.08em}.brand img{width:43px;height:56px;object-fit:contain}.brand b{color:#c8d9ff}.brand small{display:block;font-size:9px;color:#e0e5f0;letter-spacing:.23em;margin-top:3px}.bar button{background:#ffffff22;color:#fff;border:1px solid #ffffff55}.hero{position:relative;min-height:690px;height:min(82vh,850px);background:#0a1730;overflow:hidden}.hero-image{position:absolute;inset:0;background:url('equipo.jpg') center 43%/cover no-repeat}.hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,#06122be8 0%,#07152a9c 40%,#08152b28 80%),linear-gradient(0deg,#08122a 0%,transparent 45%,#06122a33 100%)}.hero-inner{position:relative;z-index:1;height:100%;display:flex;align-items:center;justify-content:space-between}.hero-copy{padding-top:75px;max-width:650px}.eyebrow,.section-tag{color:#8fb6ff;letter-spacing:.19em;font-size:12px;font-weight:900}.hero-crest{height:105px;max-width:100px;object-fit:contain;margin:26px 0 12px}.hero h1{font-size:clamp(48px,7vw,98px);line-height:.98;margin:0;letter-spacing:-.055em;font-weight:950;text-shadow:0 4px 20px #0006}.hero h1 span{color:#fff}.hero h1 strong{display:block;color:#4b8aff;font-size:.73em;letter-spacing:.025em;margin-top:12px}.hero p{font-size:clamp(16px,2vw,22px);color:#e7eaf0;margin:25px 0 32px}.hero-cta{display:inline-block;background:#1858ff;padding:15px 24px;border-radius:8px;color:#06132b;font-weight:900}.hero-sign{position:absolute;bottom:50px;right:28px;width:200px;opacity:.9}main{padding-top:65px!important;padding-bottom:100px!important;min-height:440px}.heading h2{font-size:clamp(30px,4vw,50px);margin:12px 0 6px;letter-spacing:-.04em}.heading p{color:#b6c3d9;margin:0 0 26px}.tools{display:flex;gap:12px;justify-content:space-between;margin:20px 0 30px}.tools input{width:min(100%,400px);border:1px solid #3b4b67;border-radius:10px;padding:13px 16px;background:#101f3b;color:#fff;font-size:15px}.tools input::placeholder{color:#9aa8bd}#back{background:transparent;color:#8fb6ff;padding:0 0 16px}#message{color:#b9c6da;margin:22px 0}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.tile{background:#111f39;border:1px solid #263955;border-radius:15px;overflow:hidden;box-shadow:0 10px 30px #0003;transition:transform .2s,border-color .2s}.tile:hover{transform:translateY(-4px);border-color:#4b8aff}.cover{aspect-ratio:16/10;background:linear-gradient(140deg,#0d2b76,#153a8a 55%,#1858ff);display:flex;align-items:center;justify-content:center;font-size:64px;position:relative;overflow:hidden}.cover:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#08122a77,transparent 60%);pointer-events:none}.cover img{width:100%;height:100%;object-fit:cover}.album .cover{background-image:linear-gradient(#0c245a55,#06122b99),url('equipo.jpg');background-size:cover;background-position:center}.album .cover:before{content:'⚽';font-size:54px;text-shadow:0 3px 15px #0008}.tilebody{padding:20px}.tile h3{font-size:20px;margin:0 0 13px;overflow-wrap:anywhere}.actions{display:flex;gap:9px;flex-wrap:wrap}.actions button{padding:10px 13px;font-size:13px}.actions button:first-child{background:#1858ff}.actions button:last-child{background:#263a5d;color:#fff}.photo{cursor:pointer}.photo .cover{aspect-ratio:4/3;background:#162a4e}.photo .cover img{object-fit:cover}.photo .tilebody{padding:12px 15px}.photo h3{font-size:12px;color:#d2dced;font-weight:500;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}footer{border-top:1px solid #273650;background:#060f20}.footer{min-height:110px;display:flex;align-items:center;gap:15px;flex-wrap:wrap;color:#a8b7cf;font-size:13px}.footer img{height:55px}.footer span:last-child{margin-left:auto}.viewer{position:fixed;inset:0;background:#020713f7;z-index:20;display:flex;align-items:center;justify-content:space-between;padding:18px}.viewer[hidden],[hidden]{display:none!important}.viewer-image{position:relative;display:flex;align-items:center;justify-content:center;max-width:calc(100vw - 165px);max-height:84vh}.viewer-image #big{max-width:100%;max-height:84vh;object-fit:contain;display:block}.viewer-image .watermark{position:absolute;right:3%;bottom:3%;width:25%;max-width:230px;opacity:.75;pointer-events:none}.viewer button{color:#fff;background:#ffffff24;z-index:2}.viewer #close{position:absolute;right:18px;top:18px}.viewerbar{position:absolute;bottom:20px;left:0;right:0;display:flex;gap:25px;justify-content:center;align-items:center;color:#fff}.viewerbar a{background:#1858ff;color:#07132c;padding:10px 14px;border-radius:7px;font-weight:800}@media(max-width:800px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{height:660px;min-height:620px}.hero-image{background-position:58% center}.hero-shade{background:linear-gradient(0deg,#08122a 0%,#08122ab8 25%,#08122a22 90%),linear-gradient(90deg,#08122a88,transparent)}.hero-inner{align-items:flex-end;padding-bottom:80px}.hero-copy{padding-top:0}.hero-crest{height:80px;margin:15px 0}.hero-sign{right:18px;bottom:18px;width:135px}.hero h1{font-size:clamp(44px,8vw,75px)}}@media(max-width:550px){.wrap{padding:0 16px}.bar{height:72px}.brand{font-size:16px}.brand img{width:33px;height:45px}.bar button{padding:9px;font-size:12px}.hero{height:670px;min-height:580px}.hero-image{background-position:55% center}.hero-inner{padding-bottom:94px}.hero h1{font-size:48px}.hero p{font-size:16px;max-width:290px}.hero-sign{width:115px}.grid{gap:11px}.tilebody{padding:12px}.tile h3{font-size:15px}.actions{flex-direction:column}.actions button{font-size:12px}.photo .tilebody{padding:8px}.photo h3{font-size:11px}.viewer{padding:4px}.viewer-image{max-width:calc(100vw - 75px)}.viewer button{padding:8px}.viewerbar{bottom:12px;font-size:12px;gap:12px}main{padding-top:45px!important}}
/* V2: identidad azul y blanco; título del club en una línea */
.hero-copy{max-width:1000px;width:100%}
.hero .team-title{font-size:clamp(32px,5.7vw,86px);white-space:nowrap;letter-spacing:-.045em;line-height:1.1}
.team-category{display:inline-block;margin-top:16px;padding:10px 28px;background:linear-gradient(110deg,#0739d5,#135dff);color:#fff;font-size:clamp(20px,3vw,39px);font-weight:900;letter-spacing:.12em;transform:skew(-9deg)}
.hero-crest{height:105px;max-width:115px;filter:drop-shadow(0 5px 12px #0007)}
.hero-cta,.actions button:first-child,.viewerbar a{color:white}
.album .cover{background-image:linear-gradient(#08225555,#041634aa),url('equipo.jpg')}
@media(max-width:550px){.hero .team-title{font-size:clamp(26px,7vw,44px)}.team-category{font-size:23px;padding:8px 15px}}

/* Portadas automáticas por partido: sin balones ni imagen repetida */
.album .cover{background:#122749!important;background-image:none!important;color:#e8efff;font-size:clamp(17px,2.2vw,26px);font-weight:800;text-align:center;padding:18px;overflow:hidden}
.album .cover:before{content:none!important;display:none!important}
.album .cover.has-photo{padding:0}
.album .cover.has-photo img{display:block;width:100%;height:100%;object-fit:cover}

/* Portadas sin balones: regla definitiva */
.album .cover::before,.album .cover::after{content:none!important;display:none!important}
.album .cover.has-photo{background:#122749!important;padding:0!important}
.album .cover.has-photo img{display:block;width:100%;height:100%;object-fit:cover}
.brand img,.hero-crest,.footer img{background:transparent!important;border:0!important;box-shadow:none!important}
img[src*="firma.png"] {
    filter: brightness(0) invert(1);
    opacity: 0.95;
}