





/* === Theme (edit these vars to tweak the look) === */
:root{
  /* Tema oscuro (por defecto) */
  --bg: #121114;
  --panel: #19181d;
  --card: #1f1e24;
  --text: #eae7e2;
  --muted: #b9b3ac;
  --accent: #ff866e;     /* salmón */
  --accent-2: #ffc2b3;   /* salmón claro */
  --line: rgba(255,255,255,.09);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.28);
  --maxw: 1100px;
  --sidebar: 260px;
  --rightbar: 300px;
  --fade-ms: 220ms;
}

/*-------------------------------------------------------------------------------------------------------*/

/* Tema claro */
body.theme-light{
  --bg: #f6f4ef;         /* blanco cálido */
  --panel: #ffffff;
  --card: #ffffff;
  --text: #2b2a28;       /* negro cálido */
  --muted: #6f6a60;
  --accent: #b9931a;     /* dorado */
  --accent-2: #e2c673;   /* dorado claro */
  --line: rgba(0,0,0,.10);
  --shadow: 0 8px 24px rgba(0,0,0,.08);
}

/*-------------------------------------------------------------------------------------------------------*/
.accent {
  color: var(--accent);
  font-style: italic;
}
/*-------------------------------------------------------------------------------------------------------*/


/* Reset & base */
*{ box-sizing: border-box }
html, body{ height:100% }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 120% -10%, rgba(255,134,110,.17), transparent 60%),
    radial-gradient(1000px 500px at -10% 0%, rgba(255,194,179,.14), transparent 50%),
    var(--bg);
  transition: background-color var(--fade-ms) ease,
              color var(--fade-ms) ease,
              background var(--fade-ms) ease;
}



/*-------------------------------------------------------------------------------------------------------*/

/*Estilo de foto para mi foto de perfil de dionisio*/

/* Imagen de portada cuadrada con marco negro */
.profile-img{
  width: 250px !important;
  height: 250px !important;
  max-width: none !important;     /* anula el img{ max-width:100% } global */
  object-fit: cover;
  border: 4px solid #000;
  border-radius: 0px;              /* opcional */
  box-shadow: 0 4px 14px rgba(0,0,0,.5);
  margin-bottom: 10px;
}

/* Colocación a la derecha con separación del texto */
.profile-img.right{
  float: right;
  margin-left: 20px;
}

/* Evita que el siguiente título se meta bajo el float */
.section-title{ clear: both; }


/*-------------------------------------------------------------------------------------------------------*/

.cita {
  border-left: 4px solid var(--accent-2);
  padding: 0.8rem 1.5rem;
  margin: 1.5rem 0;
  margin-left: 2.5rem;
  font-style: italic;
  color: var(--text);
  background: rgba(0,0,0,0.05);
  max-width: calc(100% - 320px); /* resta el ancho aprox. de la imagen + margen */
}


/*-------------------------------------------------------------------------------------------------------*/



a{ color: var(--accent); text-decoration: none }
a:hover{ color: var(--accent-2) }
img{ max-width:100%; display:block }

/* Layout */
.page{
  display: grid;
  grid-template-columns: var(--sidebar) 1fr var(--rightbar);
  min-height: 100vh;
}

/* Left sidebar like TurnTrout */
.aside{
  position: sticky; top:0; align-self: start;
  height: 100vh;
  padding: 28px 18px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0) 30%), var(--panel);
}
.brand{
  display:flex; flex-direction:column; gap:8px; align-items:flex-start;
  margin-bottom: 18px;
}
.brand .mark{
  width: 84px; height:84px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent), transparent 60%), #26222c;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.brand .title{ font-weight:800; font-size: 1.4rem; letter-spacing:.3px }
.brand .subtitle{ color: var(--muted); font-size: .95rem }

.nav{
  display:flex; flex-direction:column; gap:10px; margin-top: 8px;
}
.nav a{
  padding: 8px 10px; border-radius: 10px; color: var(--text);
  border:1px solid transparent;
}
.nav a:hover{ background: rgba(255,255,255,.03); border-color: var(--line) }

.search{
  display:flex; gap:8px; margin-top: 14px;
}
.search input{
  flex:1;
  background:#141317; border:1px solid var(--line); border-radius: 10px; padding:8px 10px; color:var(--text);
}

/* Top bar with dropdown (Camelot-style) */
.topbar{
  grid-column: 1 / -1;
  display:flex; align-items:center; justify-content:flex-end;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(0,0,0,.2);
  border-bottom: 1px solid var(--line);
  position: sticky; top:0; z-index: 50;
  backdrop-filter: blur(6px);
}
.topbar .pill{
  padding:8px 12px; border:1px solid var(--line); border-radius:999px; color:var(--muted);
}
.menu-wrap{ position: relative }
.menu-btn{
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color:#1b1a1a; border:0; border-radius: 999px; font-weight:800; padding:10px 14px; cursor:pointer;
}
.dropdown{
  position:absolute; right:0; top: calc(100% + 8px);
  background: var(--panel); border:1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  min-width: 220px; padding: 10px; display:none;
}
.dropdown.open{ display:block }
.dropdown a{
  display:block; padding: 10px 10px; color: var(--text); border-radius: 8px;
}
.dropdown a:hover{ background: rgba(255,255,255,.03) }





/* Main content */
main{
  padding: 34px 26px 60px;
  max-width: var(--maxw);
  grid-column: 2;        /* ⬅ pone el main en la columna central del grid */
  justify-self: start;   /* ⬅ por defecto, pegado a la izquierda */
}

/* Cuando el check "Centrar" está activo */
body.centered main{
  justify-self: center;  /* centra el main dentro de su columna */
  max-width: 960px;      /* opcional: hazlo más estrecho para mejor lectura */
}


/*Texto de entrada*/

main .eyebrow{ color: var(--muted); font-size:.9rem }
h1{ font-size: clamp(1.8rem, 2.4vw, 2.6rem); line-height:1.2; margin:.2rem 0 1rem }
.lead{ color: var(--muted); max-width: 100ch; }
.dropcap:first-letter{
  float:left; font-size: 3.2em; line-height: .9; padding-right: .18em; color: var(--accent-2);
}
.section-title{ margin-top: 2.2rem; border-bottom:1px solid var(--line); padding-bottom:.4rem }



/* Right column (info boxes) */
.rightbar{
  padding: 28px 18px; border-left: 1px solid var(--line);
}
.box{
  background: var(--card);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px; margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.box h4{ margin:.2rem 0 .6rem }
.mini{ color: var(--muted); font-size:.95rem }
.tag{ display:inline-block; padding:4px 8px; border:1px solid var(--line); border-radius:999px; margin:2px 4px 0 0; color: var(--muted) }

/* Cards for projects page */
.cards{ display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:14px }
.card{
  background: var(--card); border:1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow);
}
.card h3{ margin:.2rem 0 .4rem }
.badge{ display:inline-block; background: rgba(255,134,110,.12); color: var(--accent-2); border:1px solid var(--line); padding:3px 8px; border-radius:999px; font-size:.85rem }

/* Tier list */
.tier-banner{
  margin: 30px 0 14px;
  background: linear-gradient(135deg, rgba(255,194,179,.2), rgba(255,134,110,.14));
  border:1px solid var(--line);
  border-left: 4px solid var(--accent);
  padding: 10px 14px; border-radius: 10px; font-weight:800; letter-spacing:.5px;
}
.tier-grid{ display:grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap:14px }
.tier-card{
  background: var(--card); border:1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow);
}
.tier-card .shot{
  aspect-ratio: 3/4; background:#2a2830;
  background-size: cover; background-position: center;
}
.tier-card a{ display:block; padding:8px 10px; color: var(--text) }
.tier-card .label{ display:inline-block; font-size:.8rem; color: var(--muted); margin-top:4px }

/* Footer */
footer{ grid-column: 1 / -1; text-align:center; color: var(--muted); border-top:1px solid var(--line); padding: 20px 10px }

/* Responsive */
@media (max-width: 1200px){
  .page{ grid-template-columns: var(--sidebar) 1fr; }
  .rightbar{ display:none }
}
@media (max-width: 800px){
  :root{ --sidebar: 210px }
}
@media (max-width: 640px){
  .page{ grid-template-columns: 1fr; }
  .aside{ position: relative; height:auto }
  .cards{ grid-template-columns: 1fr }
  .tier-grid{ grid-template-columns: repeat(2, minmax(0,1fr)) }
}
