/*
Theme Name: Alejo Reyes Portfolio
Theme URI:https://alejandro.md360.es
Author: Alejandro Reyes
Author URI: https://alejandro.md360.es
Description: Portfolio profesional de Alejandro Reyes - Data Analyst & Web Developer.
Version: 1.0
Text Domain: alejoreyes-portfolio
*/

:root {
  --bg-main: #0A0A0A;
  --bg-card: #151515;
  --primary: #48E5C2;
  --secondary: #FF7B00;
  --text-main: #FFFFFF;
  --text-muted: #A0A0A0;
  --border-soft: #262626;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

/* ===== Layout general ===== */
.site-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: linear-gradient(90deg, rgba(10,10,10,0.95), rgba(10,10,10,0.9));
  border-bottom: 1px solid var(--border-soft);
}

.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-main);
}

.site-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0%, var(--secondary), var(--primary));
  box-shadow: 0 0 18px rgba(72, 229, 194, 0.7);
}

.site-logo-text {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 0.25rem;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.25s ease;
}

.main-nav a:hover {
  color: var(--text-main);
}

.main-nav a:hover::after {
  width: 100%;
}

/* ===== Hero (portada) ===== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
  gap: 3rem;
  padding: 5rem 0 3rem;
  align-items: center;
}

.hero-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(2.3rem, 3.5vw, 3.2rem);
  margin: 0 0 1rem;
}

.hero-gradient {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  color: var(--text-muted);
  max-width: 32rem;
  margin-bottom: 1.75rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #020202;
  box-shadow: 0 0 18px rgba(72, 229, 194, 0.6);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 26px rgba(72, 229, 194, 0.8);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-soft);
  color: var(--text-muted);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--text-main);
}

/* Hero: panel lateral */
.hero-card {
  background: radial-gradient(circle at top left, rgba(72, 229, 194, 0.12), rgba(10, 10, 10, 0.95));
  border-radius: 1.5rem;
  border: 1px solid var(--border-soft);
  padding: 1.75rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.hero-tag {
  display: inline-flex;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.hero-stack {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  font-size: 0.8rem;
}

.hero-stack li {
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  background-color: rgba(21, 21, 21, 0.9);
  border: 1px solid var(--border-soft);
}

/* ===== Secciones genéricas ===== */
.section {
  padding: 3rem 0 1rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.4rem;
  margin: 0;
}

.section-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--secondary);
}

.section-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 26rem;
}

/* ===== Portfolio grid ===== */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background-color: var(--bg-card);
  border-radius: 1.25rem;
  border: 1px solid var(--border-soft);
  padding: 1.25rem 1.4rem;
  position: relative;
  overflow: hidden;
}

.card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.card-title {
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
}

.card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.card-footer {
  font-size: 0.8rem;
  color: var(--primary);
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 1.5rem 0 0.75rem;
  margin-top: 3rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 4rem;
  }

  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .main-nav ul {
    flex-wrap: wrap;
  }
}
/* ==== Efecto typing (texto que se escribe) ==== */
.typing {
  display: inline-block;
  color: var(--primary);
  font-weight: 500;
  border-right: 2px solid var(--secondary);
  white-space: nowrap;
  overflow: hidden;
  animation: blinkCursor 0.8s steps(1) infinite;
}

@keyframes blinkCursor {
  50% {
    border-color: transparent;
  }
}

/* ==== Efecto glow dinámico en el botón ==== */
.btn-glow {
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.btn-glow::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(72,229,194,0.6), transparent 60%);
  transform: rotate(0deg);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.btn-glow:hover::before {
  opacity: 1;
  animation: glowRotate 2s linear infinite;
}

@keyframes glowRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/* Modal PDF */
.pdf-modal {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
}

.pdf-modal-content {
  margin: 5% auto;
  width: 80%;
  height: 80%;
  background: #111;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.pdf-close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 32px;
  cursor: pointer;
  color: var(--text-main);
}

#pdfViewer {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==== Foto del perfil / Sobre mí ==== */

.about-photo {
  text-align: center;
  width: 100%;	
  margin: 1rem ;
}

.about-photo .avatar-img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--primary);
  box-shadow: 0 0 18px rgba(72, 229, 194, 0.4);
  display: inline-block;
  margin: 0 auto;
  background-color: #000; /* Previene bordes blancos del PNG */
}
.card-footer .card-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.card-footer .card-link:hover {
  text-decoration: underline;
  opacity: 0.8;
}
/* ===============================
   GRID DE PORTFOLIO (3 columnas)
   =============================== */

.grid {
    display: grid;
    gap: 2rem;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ===============================
   Tarjetas de proyectos
   =============================== */

.card {
    background: #151515;
    padding: 1.8rem;
    border-radius: 18px;
    border: 1px solid #262626;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.06);
    transition: all .25s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 30px rgba(0, 255, 204, 0.15);
}

.card-label {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    margin-bottom: .4rem;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: .4rem;
}

.card-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: .7rem;
}

.card-footer {
    margin-top: 1rem;
}

.card-footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.card-footer a:hover {
    opacity: .8;
    text-decoration: underline;
}
/* ===== MODAL FULLSCREEN (Andy Data Style) ===== */

.dashboard-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    z-index: 999999;
    justify-content: center;
    align-items: center;
}

.dashboard-modal-content {
    position: relative;
    width: 95%;
    height: 92%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(0,255,204,0.25);
    border: 1px solid rgba(0,255,204,0.3);
}

.dashboard-modal iframe {
    width: 100%;
    height: 100%;
}

.dashboard-close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    color: var(--primary);
    z-index: 999999;
    transition: 0.2s;
}

.dashboard-close:hover {
    color: #fff;
    transform: scale(1.15);
}

