/* =========================================================
   0) RESET + BASE GLOBAL (aplica a todo el sitio)
   ========================================================= */
:root{
  --bg: #0b0b0d;
  --panel: #141419;
  --panel2:#1b1b22;
  --line: #2a2a33;
  --text: #d9d9df;
  --muted:#a7a7b4;
  --accent:#ff4d8d;
  --accent2:#4e8cff;
  --warn:#ffcc33;
  --shadow: 0 10px 30px rgba(0,0,0,.45);
  --radius: 10px;
  --max: 1200px;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: Arial, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: radial-gradient(1200px 600px at 30% 0%, rgba(255,77,141,.12), transparent 60%),
              radial-gradient(900px 500px at 90% 20%, rgba(78,140,255,.10), transparent 55%),
              var(--bg);
  color: var(--text);
}

a{ color: var(--accent); text-decoration:none; }
a:hover{ text-decoration: underline; }

img{ max-width:100%; display:block; }

.container{
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.btn{
  background: #222;
  border: 1px solid var(--line);
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.btn:hover{ filter: brightness(1.08); }
.btn-accent{
  background: linear-gradient(90deg, rgba(255,77,141,.95), rgba(78,140,255,.85));
  border: 0;
}
.btn-warn{
  background: linear-gradient(90deg, rgba(255,204,51,.95), rgba(255,77,141,.7));
  border: 0;
  color: #111;
  font-weight: 700;
}

.input{
  width: 100%;
  background: #0f0f14;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 8px;
}

/* =========================================================
   1) HEADER / NAV (global)
   ========================================================= */
.top-header{
  background: rgba(10,10,14,.88);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
}

.top-header .inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 16px;
  max-width: var(--max);
  margin: 0 auto;
}

.logo img{ height: 42px; }

.main-nav{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a{
  color:#fff;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 14px;
}
.main-nav a:hover{
  background: rgba(255,255,255,.08);
  text-decoration:none;
}

/* =========================================================
   2) ADS (global)
   ========================================================= */
.ad{
  background: rgba(255,255,255,.03);
  border: 1px dashed rgba(255,255,255,.12);
  border-radius: 8px;
  color: var(--muted);
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.ad-top{
  height: 90px;
  max-width: 980px;
  margin: 14px auto;
}

.ad-square{
  width: 300px;
  height: 250px;
  margin: 0 auto;
}

/* =========================================================
   3) HOME PAGE (/index.html)
   body.page-home ...
   ========================================================= */
.page-home .hero{
  margin: 18px auto 0;
  padding: 18px;
}
.page-home .hero h1{
  margin: 0 0 6px;
  font-size: 22px;
}
.page-home .hero p{
  margin: 0;
  color: var(--muted);
}

.page-home .grid{
  margin: 16px auto 30px;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.page-home .thumb{
  overflow:hidden;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0c0c10;
}
.page-home .thumb img{
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.page-home .thumb .cap{
  padding: 10px;
  font-size: 14px;
  color: var(--text);
}
.page-home .thumb .meta{
  padding: 0 10px 10px;
  color: var(--muted);
  font-size: 12px;
}

/* =========================================================
   4) MODELS LIST (/perfiles.html)
   body.page-models ...
   ========================================================= */
.page-models .models-head{
  margin: 18px auto 0;
  padding: 16px;
}
.page-models .models-head h1{ margin:0 0 6px; }
.page-models .models-head p{ margin:0; color: var(--muted); }

.page-models .models-grid{
  margin: 16px auto 30px;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.page-models .model-card{
  padding: 12px;
}
.page-models .model-card img{
  width:100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.page-models .model-card .name{
  margin: 10px 0 4px;
  font-weight: 700;
}
.page-models .model-card .desc{
  margin:0;
  color: var(--muted);
  font-size: 13px;
}

/* =========================================================
   5) PROFILE PAGE (/p/nombre/)
   body.page-profile ...
   ========================================================= */
.page-profile .profile-wrap{
  margin: 18px auto 30px;
  display:grid;
  grid-template-columns: 340px 1fr;
  gap: 14px;
}

.page-profile .profile-card{
  padding: 14px;
}

.page-profile .profile-photo{
  border-radius: 12px;
  overflow:hidden;
  border: 1px solid var(--line);
  background: #0c0c10;
}
.page-profile .profile-photo img{
  width:100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.page-profile h1{
  margin: 12px 0 6px;
  font-size: 22px;
}
.page-profile .bio{
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.5;
}

.page-profile .links{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.page-profile .links a{
  color:#fff;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 13px;
}
.page-profile .links a:hover{ text-decoration:none; }

.page-profile .profile-videos{
  padding: 14px;
}
.page-profile .profile-videos h2{
  margin: 0 0 10px;
  font-size: 16px;
  color: #fff;
}

.page-profile .video-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.page-profile .video-grid a{
  text-decoration:none;
}
.page-profile .video-grid .thumb img{
  width:100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.page-profile .video-grid .thumb .cap{
  padding: 10px;
}

/* =========================================================
   6) VIDEO PAGE (/v/id/slug/)
   body.page-video ...
   ========================================================= */
.page-video .video-layout{
  max-width: var(--max);
  margin: 0 auto;
  display:grid;
  grid-template-columns: 1fr 340px;
  gap: 14px;
  padding: 0 16px 30px;
}

.page-video h1{
  margin: 10px 0 10px;
  font-size: 22px;
}

.page-video .video-main{
  padding: 14px;
}

.page-video .video-wrapper{
  border-radius: 12px;
  overflow:hidden;
  border: 1px solid var(--line);
  background: #000;
}
.page-video .video-wrapper video{
  width: 100%;
  display:block;
}

.page-video .video-tabs{
  display:flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.page-video .video-tabs button{
  background: #1a1a22;
  border: 1px solid rgba(255,255,255,.10);
  color:#fff;
  padding: 10px 12px;
  border-radius: 8px;
  cursor:pointer;
}
.page-video .video-tabs button:hover{ filter: brightness(1.08); }

.page-video .tab-content{
  margin-top: 12px;
  padding: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
}
.hidden{ display:none; }

.page-video .shots-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.page-video .shots-grid img{
  width:100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background:#0c0c10;
}

.page-video .share-row{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items:center;
}
.page-video .share-row input{
  flex: 1;
  min-width: 240px;
}

.page-video .sidebar{
  padding: 14px;
  height: fit-content;
}
.page-video .sidebar .ad-square{
  margin-top: 6px;
}

/* =========================================================
   7) 404 PAGE
   body.page-404 ...
   ========================================================= */
.page-404 .notfound{
  max-width: 760px;
  margin: 40px auto;
  padding: 18px;
  text-align:center;
}
.page-404 h1{ margin:0 0 8px; }
.page-404 p{ margin:0 0 14px; color: var(--muted); }

/* =========================================================
   8) RESPONSIVE (global)
   ========================================================= */
@media (max-width: 1050px){
  .page-home .grid{ grid-template-columns: repeat(3, 1fr); }
  .page-models .models-grid{ grid-template-columns: repeat(3, 1fr); }
  .page-profile .video-grid{ grid-template-columns: repeat(2, 1fr); }
  .page-video .video-layout{ grid-template-columns: 1fr; }
  .ad-square{ width: 100%; max-width: 300px; }
}

@media (max-width: 720px){
  .page-home .grid{ grid-template-columns: repeat(2, 1fr); }
  .page-models .models-grid{ grid-template-columns: repeat(2, 1fr); }
  .page-profile .profile-wrap{ grid-template-columns: 1fr; }
  .logo img{ height: 38px; }
}
