:root{--bg:#061017;--ink:#f2efe9;--muted:#c1ced0;--border:#425764;--panel:#10232d;--red:#cc1118;--red-light:#ed323a;--gold:#dfd0bc}
html{scroll-behavior:smooth}
body{background:linear-gradient(#07111a,#071923 950px,#041016);color:var(--ink);min-height:100vh}
body,button,input,select,textarea{font-family:Georgia,"Times New Roman",serif}
button,input,select,textarea{letter-spacing:normal}
button{background:linear-gradient(180deg,#c92222,#89080a);border:1px solid #a6292c}
button:hover{filter:brightness(1.1)}
:focus-visible{outline:3px solid #f2bd70;outline-offset:3px}
.wrap{max-width:1530px}
.atlas-masthead{position:relative;height:270px;overflow:hidden;background:#071924;display:flex;align-items:center;justify-content:center;border-bottom:1px solid #58646a;isolation:isolate}
.atlas-masthead__photo{position:absolute;inset:0;background:linear-gradient(90deg,#01080f33,#03121e60 45%,#071a1ea8),url('https://commons.wikimedia.org/wiki/Special:FilePath/Cortijo_Jurado_(cropped).jpg?width=1440') center 38%/cover no-repeat;filter:brightness(.53) saturate(.64) sepia(.12) hue-rotate(148deg);z-index:-3}
.atlas-masthead::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#02090d91,transparent 40%,#0817208e),radial-gradient(ellipse at 53% 70%,#06101922,#0009 73%);z-index:-2}
.atlas-masthead::after{content:"";position:absolute;inset:0;opacity:.58;background-image:radial-gradient(1px 1px at 10% 18%,white 99%,transparent),radial-gradient(1px 1px at 76% 22%,white 99%,transparent),radial-gradient(1px 1px at 32% 43%,white 99%,transparent),radial-gradient(1px 1px at 95% 54%,white 99%,transparent);pointer-events:none}
.atlas-masthead__moon{position:absolute;right:9%;top:18px;width:165px;height:165px;border-radius:50%;background:radial-gradient(circle at 36% 25%,#fff 0%,#d5e8ee 39%,#86a7b4 80%,#6e919e 100%);box-shadow:0 0 20px 2px #c6ebfa8c,0 0 70px 20px #98b4b74d;opacity:.85;z-index:-1}
.atlas-masthead__moon:before{content:"";position:absolute;inset:8%;border-radius:50%;opacity:.33;background:radial-gradient(circle at 30% 50%,#7997a0 4%,transparent 10%),radial-gradient(circle at 65% 37%,#7a949c 7%,transparent 13%),radial-gradient(circle at 58% 75%,#809ca5 10%,transparent 15%),radial-gradient(circle at 25% 24%,#829aa4 5%,transparent 12%)}
.atlas-masthead__identity{display:flex;flex-direction:column;align-items:center;max-width:85vw;color:#f9e4c8;text-decoration:none;text-shadow:0 2px 10px #000;gap:2px}
.atlas-masthead__identity img{width:min(530px,70vw);height:198px;max-height:198px;object-fit:contain;filter:drop-shadow(0px 5px 7px #0009)}
.atlas-masthead__identity span{display:flex;justify-content:center;align-items:center;font-family:Georgia,serif;font-size:clamp(10px,1.4vw,17px);letter-spacing:clamp(.11em,.32vw,.36em);white-space:nowrap;text-transform:uppercase}
.atlas-masthead__identity i{font-style:normal;margin:0 .7em;color:#e7c8a6}
.top{background:#03090dbd;backdrop-filter:blur(12px);border-bottom:1px solid #46525c;box-shadow:0 3px 20px #0008}
.nav{max-width:1530px;min-height:62px;gap:16px}
.nav .brand img{height:55px;width:auto;max-width:165px}
.nav .mainNav{gap:8px}
.nav .mainNav a{font-size:14px;font-family:Georgia,serif;font-weight:700;color:#f2ede9;padding:16px 13px 15px;white-space:nowrap;display:inline-flex;align-items:center;gap:9px}
.nav .mainNav a svg{width:20px;height:20px;flex-shrink:0}
.nav .mainNav a[aria-current=page]{border-color:#ce1c26}
.nav .userbar{gap:8px}
.nav .userbar #sessionName{display:none}
.nav .userbar button{font-size:13px;font-weight:600;padding:10px 14px;border-radius:12px}
.nav .userbar #loginOpen{background:#081219;border:1px solid #839197}
.nav .userbar #logout{background:#5c1518}
main.wrap{max-width:none;padding:0}
.route{padding:0 0 48px}
.route:not(#inicio){max-width:1450px;margin:0 auto;padding:38px 28px 60px}
.route#inicio{max-width:100%;padding:0 0 60px}
.route:not(#inicio)>h1{border-left:5px solid #dc161e;padding-left:18px;margin-bottom:12px}
.route:not(#inicio)>.routeLead{margin-left:24px}
#inicio>.routeHead,#inicio>.homeTiles,#inicio>.discoveryTiles{max-width:1475px;margin-left:auto;margin-right:auto}
#inicio>.routeHead{padding-left:30px;padding-right:30px;margin-top:21px}
#inicio>.routeHead h2{font-family:Georgia,serif;font-size:35px}
#inicio>.routeHead h2:before{content:"";display:inline-block;background:#e42325;width:6px;height:29px;margin-right:16px;vertical-align:-4px;border-radius:1px}
#inicio>.routeHead a{color:#f23b3c;font-family:Georgia,serif;text-decoration:none}
#inicio>.routeHead:has(+.homeTiles){display:none}
#inicio>.homeTiles{padding:0 25px;grid-template-columns:repeat(6,minmax(0,1fr));gap:11px;margin-top:8px;margin-bottom:29px}
#inicio .homeTile{min-height:106px;position:relative;overflow:hidden;border:1px solid #657078;border-radius:8px;box-shadow:inset 0 0 15px #0005,0 3px 18px #0007;color:#fcf6ee;font-family:Georgia,serif;font-weight:700;font-size:15px;padding:18px 11px;align-items:flex-end;gap:8px;background-image:linear-gradient(180deg,#07121b30,#000e19e6),var(--tile-photo);background-color:#112836;background-position:center;background-size:cover}
#inicio .homeTile:before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#081e2c0d,#01101bd1);pointer-events:none}
#inicio .homeTile b,#inicio .homeTile span{position:relative;z-index:2;line-height:1.16}
#inicio .homeTile b{font-size:15px}
#inicio .homeTile span{color:#fff;font-size:25px;text-shadow:0 3px 8px #000}
#inicio .homeTile:hover{transform:translateY(-3px);border-color:#cb4e48}
#inicio .homeTile:nth-child(1){--tile-photo:url('https://commons.wikimedia.org/wiki/Special:FilePath/Caudilla_(22398594412)_(cropped).jpg?width=400')}
#inicio .homeTile:nth-child(2){--tile-photo:url('https://commons.wikimedia.org/wiki/Special:FilePath/Cortijo_Jurado_(cropped).jpg?width=400')}
#inicio .homeTile:nth-child(3){--tile-photo:url('https://commons.wikimedia.org/wiki/Special:FilePath/Ochate.JPG?width=400')}
#inicio .homeTile:nth-child(4){--tile-photo:url('https://commons.wikimedia.org/wiki/Special:FilePath/Cerro_del_Hierro_-_Sevilla_(Andaluc%C3%ADa).jpg?width=400')}
#inicio .homeTile:nth-child(5){--tile-photo:url('https://commons.wikimedia.org/wiki/Special:FilePath/La_Mussara_ruins.jpg?width=400')}
#inicio .homeTile:nth-child(6){--tile-photo:url('https://commons.wikimedia.org/wiki/Special:FilePath/Monasterio_de_Rioseco.jpg?width=400')}
#inicio .discoveryTiles{padding:0 25px;gap:14px}
#inicio .discoveryTile{border:1px solid #72838e;overflow:hidden;border-radius:9px;transition:transform .2s,box-shadow .2s}
#inicio .discoveryTile:hover{transform:translateY(-3px);box-shadow:0 10px 32px #0008}
#inicio .discoveryTile img{height:177px;object-fit:cover}
#inicio .discoveryTile strong{font-size:20px}
#inicio .discoveryTile small{font-family:Arial,sans-serif;font-size:12px}
#inicio .atlas-home-hero{border:0;border-radius:0;box-shadow:none;margin:0;padding:0!important;display:block;position:relative;min-height:352px;width:100%;overflow:hidden;background:#051620;isolation:isolate;text-align:left}
#inicio .atlas-home-hero::before{display:none}
#inicio .atlas-home-hero::after{display:none}
.atlas-home-hero__sky{position:absolute;inset:0;background-image:linear-gradient(90deg,#021017f2 2%,#051927c4 39%,#07233738 78%),linear-gradient(0deg,#041620bb,transparent 55%),url('https://commons.wikimedia.org/wiki/Special:FilePath/Cortijo_Jurado_(cropped).jpg?width=1400');background-size:cover;background-position:center 48%;filter:brightness(.62) saturate(.75);z-index:-2}
.atlas-home-hero__moon{width:136px;height:136px;position:absolute;right:14%;top:23px;border-radius:50%;background:radial-gradient(circle at 31% 30%,#f7ffff,#bfdae8 53%,#7394a2);box-shadow:0 0 25px 6px #bfe4f086,0 0 80px 19px #bdd9e632;z-index:-1;opacity:.83}
.atlas-home-hero__inner{max-width:1500px;margin:0 auto;padding:30px 68px 25px!important;display:flex;flex-direction:column;justify-content:flex-end;min-height:350px}
.atlas-home-hero__copy{max-width:700px}
#inicio .atlas-home-hero h1{font-family:Georgia,serif;font-size:clamp(32px,4.2vw,58px);line-height:.95;letter-spacing:-.025em;color:#f0e3d2;margin:0 0 14px;max-width:520px;font-weight:700;text-shadow:0 3px 10px #000}
#inicio .atlas-home-hero h1:before{content:"";width:6px;position:absolute;height:100px;margin-left:-26px;background:#d00d13;border-radius:2px}
#inicio .atlas-home-hero p{font-size:clamp(13px,1.2vw,18px);color:#f0eeeb;margin:7px 0 12px;line-height:1.2;text-shadow:0 2px 7px #000}
.atlas-home-search{width:min(565px,100%);border-radius:30px;background:#f3f5f6;box-shadow:0 5px 30px #0008;display:flex;align-items:center;padding:3px 4px;gap:5px}
.atlas-home-search .atlas-search-glyph{font-size:27px;color:#172934;line-height:1;padding:0 8px;font-family:Arial,sans-serif}
.atlas-home-search input{background:transparent;border:0;color:#24343d;font-family:Georgia,serif;font-size:14px;min-width:0;outline:none;flex:1}
.atlas-home-search input::placeholder{color:#5c646a}
.atlas-home-search button{border-radius:30px;min-width:100px;min-height:39px;padding:7px 18px;font-family:Georgia,serif;font-weight:700;box-shadow:inset 0 2px 1px #ffffff45}
.atlas-home-hero__stats{width:min(1190px,98%);background:rgba(3,16,24,.86);border:1px solid #355561;border-radius:12px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:8px 0;margin:18px auto -4px;backdrop-filter:blur(6px)}
.atlas-stat{display:flex;justify-content:center;align-items:center;gap:15px;border-right:1px solid #56707a}
.atlas-stat:last-child{border-right:0}
.atlas-stat>span{font:38px Georgia,serif;color:#f0f8f7}
.atlas-stat>div{display:flex;flex-direction:column;justify-content:center}
.atlas-stat b{color:#ef2025;font-size:21px;font-family:Georgia,serif}
.atlas-stat small{font:14px Georgia,serif;color:#fff}
#inicio .heroPhotoCredit{display:none}
#inicio .stats{display:none}
#inicio .heroBrand{display:none}
#inicio .routeTitle{display:none}
#inicio .homeTiles,#inicio .discoveryTiles{scroll-margin-top:80px}
#lugares .listPanel,#mapa .mapPanel{background:#091e28}
#lugares .cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:none;height:auto;overflow:visible}
#lugares .place{margin:0}
#lugares .placeTitle{color:#f0dfcc}
#lugares .place .placeThumb{height:210px}
#lugares .listPanel .panelHead{font-size:19px}
#lugares .buttons button,#lugares .buttons a{background:#13323e}
#lugares .visit.yes{background:#126038}
#lugares .toolbar input,#lugares .toolbar select{font-family:Arial,sans-serif}
footer{max-width:1450px;margin:40px auto 0;padding:20px 25px;border-color:#40535d}
footer .footerCredits{font-family:Arial,sans-serif}
#authDialog{width:min(530px,94vw)}
#authDialog h2,#recoveryDialog h2{font-family:Georgia,serif}
#authDialog .modal{padding:27px}
#forgotAtlasLink{color:#f4cabd}
@media(max-width:1360px){.nav{gap:8px}.nav .mainNav{gap:2px}.nav .mainNav a{padding:14px 9px;font-size:12px}.nav .mainNav a svg{width:18px;height:18px}#inicio>.homeTiles{gap:7px}#inicio .homeTile{padding:14px 9px}}
@media(max-width:1020px){.atlas-masthead{height:245px}.nav .mainNav{order:3;justify-content:center;width:100%;gap:4px}.nav{padding-bottom:8px}.atlas-home-hero__inner{padding:45px 35px 25px!important}.atlas-home-hero__moon{right:10%;opacity:.65}#inicio>.homeTiles{grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}#inicio .homeTile{min-height:120px}#inicio .discoveryTiles{grid-template-columns:repeat(2,minmax(0,1fr))}#lugares .cards{grid-template-columns:1fr}}
@media(max-width:640px){.atlas-masthead{height:183px}.atlas-masthead__identity img{height:142px;width:min(340px,75vw)}.atlas-masthead__identity span{letter-spacing:.1em;font-size:8px}.atlas-masthead__moon{width:90px;height:90px;right:7%;top:18px}.nav .brand img{max-width:130px;height:45px}.nav .mainNav{justify-content:space-between;gap:0}.nav .mainNav a{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:10px;padding:8px 4px}.nav .mainNav a svg{width:17px;height:17px}.nav .userbar{gap:4px}.nav .userbar button{font-size:11px;padding:8px 9px}.atlas-home-hero__inner{padding:40px 22px 18px!important;min-height:410px;justify-content:flex-end}.atlas-home-hero__moon{right:8%;width:86px;height:86px}.atlas-home-hero__copy{max-width:100%}#inicio .atlas-home-hero h1{font-size:37px;padding-left:18px;margin-left:0}#inicio .atlas-home-hero h1:before{margin-left:-19px;height:77px}#inicio .atlas-home-hero p{padding-left:19px;font-size:13px}.atlas-home-search input{font-size:12px;padding:8px 0}.atlas-home-search button{min-width:78px;font-size:13px}.atlas-home-hero__stats{grid-template-columns:repeat(2,1fr);gap:8px;padding:12px 0}.atlas-stat{border:0;gap:7px}.atlas-stat>span{font-size:25px}.atlas-stat b{font-size:15px}.atlas-stat small{font-size:11px}#inicio>.homeTiles{grid-template-columns:repeat(2,minmax(0,1fr));padding:0 13px}#inicio .homeTile{min-height:105px}#inicio .homeTile b{font-size:14px}#inicio>.routeHead{padding:0 15px}#inicio>.routeHead h2{font-size:24px}#inicio>.routeHead h2:before{height:24px}#inicio .discoveryTiles{padding:0 13px;gap:8px}#inicio .discoveryTile img{height:100px}#inicio .discoveryTile strong{font-size:15px}.route:not(#inicio){padding:24px 13px 43px}#lugares .placeThumb{height:180px}footer{padding:15px}}
/* Explicitly override older prototype dimensions to match the supplied visual reference. */
#inicio .atlas-home-hero{min-height:345px!important;height:auto!important;margin:0!important;padding:0!important}
#inicio .atlas-home-hero__inner{min-height:345px!important;padding:19px 68px 11px!important}
#inicio .atlas-home-hero__stats{margin:12px auto 0}
.top .nav{min-height:62px!important;padding-top:0!important;padding-bottom:0!important}
@media(max-width:1020px){#inicio .atlas-home-hero__inner{padding:35px 35px 17px!important}}
@media(max-width:640px){
 #inicio .atlas-home-hero{min-height:420px!important}
 #inicio .atlas-home-hero__inner{min-height:420px!important;padding:35px 22px 18px!important}
}
