/* ============================================================
   BAAL STUDIO
   ABOUT.CSS — ESTILOS ESPECÍFICOS PARA LA PÁGINA "SOBRE MÍ"
   ============================================================ */

/* ============================================================
   1. ENCABEZADO ESPECÍFICO (HEADER)
   ============================================================ */
.about-header {
  background-color: #111111 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================================
   2. HERO Y PORTAFOLIO PRINCIPAL
   ============================================================ */
.about-page-hero {
  background: #111111;
  color: #ffffff;
  padding: 160px 0 var(--section-space) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.portfolio-column-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  width: 100%;
  margin: 0 auto;
}

.portfolio-viewer-card {
  background: #181818;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 380px;
  box-sizing: border-box;
  margin: 0 auto;
}

.portfolio-viewer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.portfolio-counter {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.05em;
}

.portfolio-zoom-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.portfolio-zoom-btn svg {
  display: block !important;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  overflow: visible;
}

.portfolio-zoom-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}

.portfolio-stage {
  position: relative;
  width: 100%;
  height: 280px;
  background: #181818;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.portfolio-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.portfolio-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
}

.portfolio-nav-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 5px 18px;
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.portfolio-nav-btn:hover {
  background: #ffffff;
  color: #111111;
  border-color: #ffffff;
}

/* Subtítulos y Desplegable de Artículos */
.portfolio-subtitle-container {
  text-align: center;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.portfolio-main-title-label {
  font-family: var(--font-title);
  font-size: 14px;
  color: var(--accent, #a28b6d);
  letter-spacing: 0.12em;
  font-weight: 400;
  text-transform: uppercase;
  display: block;
}

.portfolio-main-title-en {
  font-family: var(--font-body);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
}

.articles-dropdown-container {
  margin-top: 6px;
  position: relative;
}

.articles-toggle-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-body);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  padding: 5px;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.articles-toggle-btn:hover {
  color: #ffffff;
}

.toggle-btn-text {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}

.toggle-btn-en {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 300;
}

.dropdown-arrow {
  display: inline-block;
  font-size: 10px;
  transition: transform 0.3s ease;
}

.articles-dropdown-content {
  display: none;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
  background: #181818;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px;
  border-radius: 4px;
}

.articles-dropdown-content.active {
  display: flex;
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.articles-dropdown-content a {
  color: var(--accent, #a28b6d);
  font-family: var(--font-body);
  font-size: 14px;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: opacity 0.2s, color 0.2s;
  text-align: center;
}

.articles-dropdown-content a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ============================================================
   3. MODAL DE ZOOM Y LIGHTBOX
   ============================================================ */
.portfolio-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.portfolio-modal.active {
  display: flex;
}

.portfolio-modal-content-box {
  width: 90vw;
  height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-modal-content-box img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transform-origin: 0 0;
  cursor: grab;
  will-change: transform;
  backface-visibility: hidden;
}

.portfolio-modal-content-box img.grabbing {
  cursor: grabbing !important;
}

.portfolio-modal-close {
  position: absolute;
  z-index: 10011;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.portfolio-modal-close:hover {
  opacity: 1;
}

/* Flechas Laterales del Modal de Zoom */
.portfolio-modal-nav {
  position: absolute;
  z-index: 10010;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(17, 17, 17, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 20px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.portfolio-modal-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
}

.portfolio-modal-nav.left {
  left: 24px;
}

.portfolio-modal-nav.right {
  right: 24px;
}

/* ============================================================
   4. CONTENIDO, BIOGRAFÍA Y ESTADÍSTICAS
   ============================================================ */
.about-page-hero .section-kicker,
.about-background-section .section-kicker,
.tools-section .section-kicker {
  font-family: var(--font-title);
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.about-page-hero .section-kicker {
  color: #ffffff;
}

.about-page-hero .section-kicker-en {
  color: rgba(255, 255, 255, 0.45);
}

.about-hero-content {
  margin: 0;
  padding: 0;
}

.about-hero-content .bilingual-copy {
  max-width: 100%;
  margin-top: 25px;
}

.about-hero-content .bilingual-copy p {
  font-family: var(--font-body);
  color: rgba(255, 255, 255, 0.90);
  font-size: 13px;
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 0;
}

.about-hero-content .bilingual-copy p.english-copy {
  color: rgba(255, 255, 255, 0.40);
  font-size: 10px;
  margin-top: 6px;
}

.about-hero-content .copy-separator {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 20px 0;
}

.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0;
}

.expertise-tag {
  font-family: var(--font-body);
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-weight: 500;
}

.expertise-tag span {
  color: rgba(255, 255, 255, 0.45);
  margin-left: 6px;
  font-weight: 400;
}

.about-hero-content .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 35px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.about-hero-content .stat-item strong {
  font-family: var(--font-body);
  font-size: 38px;
  font-weight: 300;
  color: #ffffff;
  line-height: 1;
}

.about-hero-content .stat-item span {
  font-family: var(--font-body);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
}

.about-hero-content .stat-item small {
  font-family: var(--font-body);
  font-size: 7.5px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
}

/* ============================================================
   5. SECCIÓN DE FORMACIÓN / BACKGROUND
   ============================================================ */
.about-background-section {
  background: #ffffff;
  padding: var(--section-space) 0;
  color: var(--black);
}

.about-background-section .bilingual-copy {
  max-width: 100%;
}

.about-background-section .bilingual-copy p {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.75;
  color: #222222;
  font-weight: 300;
  margin: 0;
}

.about-background-section .bilingual-copy p.english-copy {
  color: var(--gray);
  font-size: 10px;
  line-height: 1.65;
  margin-top: 6px;
}

.about-background-section .copy-separator {
  height: 1px;
  background: var(--light-gray);
  margin: 24px 0;
}

/* ============================================================
   6. SECCIÓN DE HERRAMIENTAS Y SOFTWARE (TOOLS)
   ============================================================ */
.tools-section {
  background: var(--bg);
  padding: var(--section-space) 0;
  border-top: 1px solid var(--light-gray);
}

.tools-section .section-kicker {
  color: var(--black);
}

.tools-section .section-kicker-en {
  color: var(--gray);
}

.tools-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
}

.tool-group {
  background: #eeece6;
  border: 1px solid var(--light-gray);
  padding: 35px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.tool-group:hover {
  border-color: var(--accent);
}

.tool-group-header {
  border-bottom: 1px solid var(--light-gray);
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.tool-group h3 {
  font-family: var(--font-title);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 6px 0;
  color: var(--black);
}

.tool-group .tool-group-en {
  font-family: var(--font-body);
  font-size: 9px;
  color: var(--gray);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  display: block;
}

.tool-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-group li {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--black);
  padding: 8px 14px;
  background: #e9e7e2;
  border: 1px solid var(--light-gray);
  font-weight: 400;
}

/* ============================================================
   7. SELECTOR DE IDIOMAS Y TRADUCCIÓN GLOBAL
   ============================================================ */
.baal-language-selector {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 99999;
  font-family: var(--font-body, Inter, sans-serif);
}

.baal-language-selector,
.baal-language-selector * {
  box-sizing: border-box;
}

.baal-lang-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 130px;
  padding: 10px 16px;
  background: rgba(24, 24, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 3px;
  color: #ffffff;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.baal-lang-current:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(24, 24, 24, 0.98);
}

.baal-lang-current svg {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.7);
  transition: transform 0.2s ease;
}

.baal-language-selector.is-open .baal-lang-current svg {
  transform: rotate(180deg);
}

.baal-lang-dropdown {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 100000;
  display: none;
  flex-direction: column;
  width: 160px;
  max-height: min(65vh, 420px);
  overflow-y: auto;
  padding: 6px 0;
  background: rgba(24, 24, 24, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 3px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
}

.baal-language-selector.is-open .baal-lang-dropdown {
  display: flex;
}

.baal-lang-dropdown a {
  display: block;
  padding: 9px 16px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.baal-lang-dropdown a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

/* Ocultar elementos nativos de Google Translate */
#google_translate_element,
.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-te-spinner-pos {
  display: none !important;
  visibility: hidden !important;
}

html, body {
  top: 0 !important;
  background-color: #111111 !important;
}

footer, .site-footer, #footer {
  background-color: #111111 !important;
}

/* ============================================================
   8. ESTILOS RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .tools-category-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .about-hero-content .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 15px;
  }

  /* Contenedor modal adaptado a la altura real del viewport móvil (evita recortes inferiores) */
  .portfolio-modal {
    height: 100dvh;
    height: 100vh;
  }

  #portfolio-modal-content-box {
    width: calc(100vw - 16px) !important;
    height: calc(100dvh - 80px) !important;
    max-width: none !important;
    max-height: none !important;
  }

  /* Posicionamiento correcto de las flechas en los márgenes laterales en móvil */
  .portfolio-modal-nav.left {
    left: 12px !important;
  }

  .portfolio-modal-nav.right {
    right: 12px !important;
  }
}

/* ============================================================
   COMPARTIR EN REDES SOCIALES
   ============================================================ */

.baal-share-selector {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  font-family: var(--font-body, Inter, sans-serif);
}

.baal-share-selector,
.baal-share-selector * {
  box-sizing: border-box;
}

.baal-share-btn-current {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 130px;
  padding: 10px 16px;
  background: rgba(24, 24, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 3px;
  color: #ffffff;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: background 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}

.baal-share-btn-current:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(24, 24, 24, 0.98);
  color: #ffffff;
}

.baal-share-btn-current svg {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.7);
}
