/*
  Estilos propios del portafolio.
*/

:root {
  --accent: #64ffda;
  --accent-rgb: 100, 255, 218;
  --bs-link-color: #64ffda;
  --bs-link-hover-color: #99ffe6;
  --portfolio-surface: rgba(127, 127, 127, 0.08);
  --portfolio-border: rgba(127, 127, 127, 0.18);
}

[data-bs-theme="light"] {
  --accent: #0e7c6b;
  --accent-rgb: 14, 124, 107;
  --bs-link-color: #0e7c6b;
  --bs-link-hover-color: #0a5c50;
  --portfolio-surface: rgba(127, 127, 127, 0.06);
  --portfolio-border: rgba(127, 127, 127, 0.15);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
}

section[id] {
  scroll-margin-top: 5rem;
}

a {
  text-underline-offset: 0.2em;
}

.text-balance {
  text-wrap: balance;
}

.py-lg-6 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.logo {
  width: 50px;
}

.caps {
  width: 100%;
}
/* Skip link */
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2000;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--accent);
  color: white;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Hero */
.hero-section {
  background:
    radial-gradient(circle at 85% 10%, rgba(100, 255, 218, 0.14), transparent 32rem),
    var(--bs-body-bg);
}

/* Secciones */
.section-block {
  border-top: 1px solid var(--portfolio-border);
}

.eyebrow {
  margin-bottom: 0.5rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* Links profesionales */
.professional-links a {
  font-weight: 600;
}

/* Cards */
.project-card,
.card,
.contact-panel {
  background: var(--bs-body-bg);
}

.contact-panel {
  border: 1px solid var(--portfolio-border);
}

/* Visual de proyectos */
.project-visual {
  min-height: 22rem;
  background:
    linear-gradient(145deg, rgba(100, 255, 218, 0.18), rgba(111, 66, 193, 0.12)),
    var(--portfolio-surface);
}

.project-visual-alt {
  background:
    linear-gradient(145deg, rgba(25, 135, 84, 0.18), rgba(100, 255, 218, 0.12)),
    var(--portfolio-surface);
}

.project-visual-alt2 {
  background:
    linear-gradient(145deg, rgba(13, 202, 240, 0.18), rgba(111, 66, 193, 0.12)),
    var(--portfolio-surface);
}

/* Mock window */
.mock-window {
  max-width: 44rem;
  overflow: hidden;
  border: 1px solid var(--portfolio-border);
  border-radius: 1rem;
  background: var(--bs-body-bg);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.12);
}

.mock-window-bar {
  display: flex;
  gap: 0.45rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--portfolio-border);
  background: var(--portfolio-surface);
}

.mock-window-bar span {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--bs-secondary);
  opacity: 0.55;
}

.mock-window-body {
  padding: 1.25rem;
}

.mock-ticket {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--portfolio-border);
}

.mock-ticket:last-child {
  border-bottom: 0;
}

/* Project points */
.project-points {
  padding-left: 1.25rem;
}

.project-points li + li {
  margin-top: 0.4rem;
}

/* Timeline */
.timeline li {
  position: relative;
  padding: 0 0 1.4rem 1.5rem;
  border-left: 2px solid var(--portfolio-border);
}

.timeline li::before {
  position: absolute;
  top: 0.25rem;
  left: -0.42rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline strong,
.timeline span {
  display: block;
}

.timeline span {
  margin-top: 0.2rem;
  color: var(--bs-secondary-color);
}

/* Contact panel */
.contact-panel {
  background:
    linear-gradient(135deg, rgba(100, 255, 218, 0.1), transparent 60%),
    var(--bs-body-bg);
}

/* Responsive */
@media (max-width: 575.98px) {
  .project-visual {
    min-height: auto;
  }

  .mock-ticket {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Print */
@media print {
  .no-print,
  header,
  footer {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  a {
    color: inherit;
    text-decoration: none;
  }
}

/* Texto accent */
.text-accent {
  color: var(--accent) !important;
}

/* Botones accent (outline teal) */
.btn-accent {
  color: var(--accent);
  border-color: var(--accent);
}

.btn-accent:hover,
.btn-accent:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

/* Botón toggle de tema: circular */
#themeToggle {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Icono del toggle de tema */
#themeIcon {
  font-size: 1.1rem;
  line-height: 1;
}

/* Luna (tema oscuro) y sol (tema claro) */
#themeToggle .bi-moon-stars {
  color: #e9ecef;
}

#themeToggle .bi-sun {
  color: #ffc107;
}
