/*
Theme Name: ProTheme
Theme URI: https://yourcompany.com/protheme
Author: Your Company
Author URI: https://yourcompany.com
Description: A professional, modular, multi-variant WordPress theme ready for commercial distribution.
Version: 1.0.0
License: GPLv3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: protheme
Domain Path: /languages
Tags: responsive, custom-colors, custom-logo, custom-menu, block-patterns, translation-ready
*/


:root {
  /* Design tokens will be injected dinámicamente por el Customizer */
  --color-primary: #ff6b00;
  --color-accent: #ff9a40;
  --color-background: #0f0f0f;
  --color-surface: #1a1a1a;
  --color-text: #f0f0f0;
  --color-text-muted: #999;
  --color-border: rgba(255,107,0,0.25);
  --color-border-strong: rgba(255,107,0,0.6);
  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html, body {
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-accent); }
a.btn:hover { color: inherit; }
a.btn--primary, a.btn--primary:hover { color: #000; }
a.btn--outline:hover { color: #000; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── SITE HEADER ──────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(15, 15, 15, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--duration) ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
}

/* Brand */
.header-brand {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}
.header-brand__name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  line-height: 1;
}
.header-brand__meta {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
}
.header-brand:hover .header-brand__name {
  text-shadow: 0 0 10px var(--color-neon-glow);
}

/* Nav links */
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
  align-items: center;
}
.main-nav li { margin: 0; }
.main-nav a {
  display: block;
  padding: 0.4em 0.9em;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
  border-radius: 3px;
  transition: color var(--duration) ease, background var(--duration) ease;
}
.main-nav a:hover {
  color: var(--color-primary);
  background: rgba(255, 107, 0, 0.08);
}
.main-nav a[aria-current="page"],
.main-nav li.current-menu-item > a,
.main-nav li.current_page_item > a {
  color: var(--color-primary);
  background: rgba(255, 107, 0, 0.12);
  border: 1px solid rgba(255, 107, 0, 0.3);
}

/* Header right actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Availability badge */
.header-available {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4ade80;
}
.header-available__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
  animation: dot-pulse-green 1.5s ease-in-out infinite;
}
@keyframes dot-pulse-green {
  0%, 100% { box-shadow: 0 0 4px #4ade80; }
  50%       { box-shadow: 0 0 10px #4ade80, 0 0 20px rgba(74,222,128,0.4); }
}

/* Header theme toggle */
.header-theme-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  border-radius: 2px;
  transition: all var(--duration) ease;
}
.header-theme-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.header-theme-toggle__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 5px var(--color-primary);
}

/* Small button variant */
.btn--sm {
  padding: 0.4em 1em;
  font-size: 0.72rem;
}

/* Light mode header */
html[data-theme="light"] .site-header {
  background: rgba(245, 240, 235, 0.92);
}
html[data-theme="light"] .main-nav a { color: var(--color-text-muted); }

.site-main { padding-top: 0; }
.site-main > *:first-child,
.site-main > .protheme-section-wrapper:first-child > .wp-block-columns:first-child,
.site-main > .protheme-section-wrapper:first-child > *:first-child { margin-top: 0 !important; }

/* Columnas del hero de inicio: foto centrada verticalmente */
.site-main > .protheme-section-wrapper:first-child .wp-block-columns {
  align-items: stretch;
}
.protheme-section-wrapper .wp-block-column:has(.protheme-profile-photo) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.protheme-section-wrapper .wp-block-column:has(.protheme-profile-photo) .protheme-profile-photo {
  margin: auto;
}

/* Header comprimido al hacer scroll */
.site-header.is-scrolled {
  background: rgba(10, 10, 10, 0.97);
}
.site-header.is-scrolled .header-inner { height: 50px; }
.site-footer {
  background: var(--color-surface);
  color: var(--color-text-muted);
  text-align: center;
  padding: 2rem 0 1rem 0;
  margin-top: 4rem;
  border-top: 1px solid var(--color-border);
}

/* HERO SPLIT */
.hero.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  min-height: 60vh;
  background: linear-gradient(120deg, var(--color-background) 80%, var(--color-primary) 100%);
  box-shadow: 0 0 32px 0 var(--color-border-strong);
  border-radius: 1.5rem;
  margin-bottom: 3rem;
  padding: 3rem 2rem;
}
.hero__text h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
  text-shadow: 0 2px 16px var(--color-border-strong);
}
.hero__text p { font-size: 1.3rem; margin-bottom: 2rem; }
.btn {
  display: inline-block;
  padding: 0.75em 2em;
  border-radius: 2em;
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn-primary { background: var(--color-primary); color: #fff; box-shadow: 0 2px 16px var(--color-border-strong); }
.btn-primary:hover { background: var(--color-accent); }
.btn-dark { background: #181818; color: var(--color-primary); border: 1px solid var(--color-primary); }
.btn-dark:hover { background: var(--color-primary); color: #fff; }

.hero__media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.profile-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 32px 0 var(--color-primary);
  border: 4px solid var(--color-surface);
}
.floating-phone {
  width: 120px;
  height: 240px;
  object-fit: cover;
  border-radius: 2rem;
  box-shadow: 0 0 24px 0 var(--color-accent);
  margin-top: -2rem;
}

/* ABOUT MINI */
.about-mini {
  display: grid;
  grid-template-columns: 180px 1fr 2fr;
  gap: 2rem;
  align-items: center;
  background: var(--color-surface);
  border-radius: 1.2rem;
  box-shadow: 0 2px 16px var(--color-border);
  margin-bottom: 3rem;
  padding: 2rem;
}
.about__photo .hex-photo {
  width: 140px;
  height: 140px;
  object-fit: cover;
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0% 50%);
  border: 4px solid var(--color-primary);
  box-shadow: 0 0 16px var(--color-border-strong);
}
.about__stats {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-primary);
}
.about__desc { color: var(--color-text); font-size: 1.1rem; }

/* SKILLS GRID */
.skills-grid {
  background: var(--color-surface2, #242424);
  border-radius: 1.2rem;
  box-shadow: 0 2px 16px var(--color-border);
  margin-bottom: 3rem;
  padding: 2rem;
}
.skills__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.skill-card {
  background: var(--color-surface);
  border-radius: 1rem;
  padding: 1.2rem 1rem 1rem 1rem;
  box-shadow: 0 2px 8px var(--color-border);
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: 1.1rem;
  position: relative;
}
.skill-bar {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  margin-top: 0.7rem;
  box-shadow: 0 1px 4px var(--color-border-strong);
}

/* PROJECTS GALLERY */
.projects-gallery {
  background: var(--color-surface);
  border-radius: 1.2rem;
  box-shadow: 0 2px 16px var(--color-border);
  margin-bottom: 3rem;
  padding: 2rem;
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 1.5rem;
}
.project-card {
  background: var(--color-surface2, #242424);
  border-radius: 1rem;
  box-shadow: 0 2px 8px var(--color-border);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.project-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 4px 24px var(--color-primary);
}
.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.project-info {
  padding: 1rem;
  color: var(--color-text);
}
.badge {
  display: inline-block;
  padding: 0.2em 0.8em;
  border-radius: 1em;
  font-size: 0.9em;
  font-weight: 700;
  margin-bottom: 0.5em;
}
.badge-orange { background: var(--color-primary); color: #fff; }

/* CTA BAND */
.cta-banner {
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 1.2rem;
  box-shadow: 0 2px 16px var(--color-border-strong);
  padding: 2.5rem 2rem;
  text-align: center;
  margin-bottom: 2rem;
}
.cta-content h2 {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 16px var(--color-border-strong);
}
.cta-content .btn-dark { margin-top: 1rem; }

/* Responsive */
@media (max-width: 900px) {
  .hero.split { grid-template-columns: 1fr; text-align: center; }
  .about-mini { grid-template-columns: 1fr; text-align: center; }
  .skills__cards { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .container { padding: 0 0.5rem; }
  .hero__text h1 { font-size: 2rem; }
  .cta-content h2 { font-size: 1.3rem; }
}

/* --- NAVIGATION --- (estilos de layout extendidos) */
.main-nav ul { justify-content: flex-end; }
.main-nav li { margin: 0; }

/* --- BREADCRUMB --- */
.breadcrumb {
  font-size: 0.95em;
  color: var(--color-text-muted);
  margin-bottom: 1.2em;
}

/* --- PAGE HERO --- */
.page-hero {
  background: var(--color-surface);
  border-radius: 1.2rem;
  box-shadow: 0 2px 16px var(--color-border);
  padding: 2.5rem 2rem 2rem 2rem;
  margin-bottom: 2.5rem;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}
.page-hero .subtitle {
  color: var(--color-text-muted);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}
.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  font-weight: 600;
}
.btn-outline:hover, .btn-outline.active {
  background: var(--color-primary);
  color: #fff;
}

/* --- TEAM / ABOUT --- */
.team.surface, .contact-grid.surface {
  background: var(--color-surface);
  border-radius: 1.2rem;
  box-shadow: 0 2px 16px var(--color-border);
  padding: 2.5rem 2rem;
  margin-bottom: 2.5rem;
  display: flex;
  gap: 2.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.team__photo, .contact__form, .contact__info {
  flex: 1 1 300px;
}
.team__photo img, .contact__info .info-card {
  margin: 0 auto;
  display: block;
}
.team__info {
  flex: 2 1 400px;
}
.info-cards {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin: 1.5rem 0 0 0;
  padding: 0;
  list-style: none;
}
.info-cards li {
  background: var(--color-surface2, #242424);
  border-radius: 1em;
  padding: 1em 2em;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

/* --- TIMELINE --- */
.timeline {
  background: var(--color-surface2, #242424);
  border-radius: 1.2rem;
  box-shadow: 0 2px 16px var(--color-border);
  padding: 2.5rem 2rem;
  margin-bottom: 2.5rem;
}
.timeline__columns {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.timeline__work, .timeline__edu {
  flex: 1 1 300px;
}
.timeline h2 {
  color: var(--color-primary);
  font-family: var(--font-heading);
  margin-bottom: 1.5rem;
}
.timeline ul {
  list-style: none;
  padding: 0;
}
.timeline li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 1em;
  color: var(--color-text);
}
.timeline .dot {
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.7em;
  height: 0.7em;
  background: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-primary);
}

/* --- CONTACT FORM --- */
.contact-grid {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.contact__form {
  background: var(--color-surface2, #242424);
  border-radius: 1.2rem;
  box-shadow: 0 2px 16px var(--color-border);
  padding: 2rem 1.5rem;
  min-width: 320px;
}
.contact__form h2 { color: var(--color-primary); font-family: var(--font-heading); }
.form-group {
  margin-bottom: 1.2rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.4em;
  color: var(--color-text-muted);
  font-size: 1em;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.7em 1em;
  border-radius: 0.7em;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 1em;
  font-family: var(--font-body);
  transition: border 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
  border: 1.5px solid var(--color-primary);
  outline: none;
}
.contact__info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 220px;
}
.info-card {
  background: var(--color-surface);
  border-radius: 1em;
  box-shadow: 0 2px 8px var(--color-border);
  padding: 1.2em 1.5em;
  color: var(--color-text);
  text-align: center;
}
.info-card h3 { color: var(--color-primary); font-family: var(--font-heading); margin-bottom: 0.5em; }

/* --- UTILITIES --- */
.surface { background: var(--color-surface); }
.surface2 { background: var(--color-surface2, #242424); }

/* --- GENERAL --- */
.protheme-demo-home, .protheme-demo-about, .protheme-demo-projects, .protheme-demo-contact {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- ANIMACIONES Y MICROINTERACCIONES PREMIUM --- */
.project-card, .skill-card, .info-card, .btn, .cta-banner, .team__photo img, .profile-photo, .floating-phone {
  transition: box-shadow 0.25s cubic-bezier(.4,0,.2,1), transform 0.18s cubic-bezier(.4,0,.2,1), background 0.18s, color 0.18s;
}
.project-card:hover, .skill-card:hover, .info-card:hover {
  box-shadow: 0 8px 32px 0 var(--color-primary), 0 2px 16px 0 var(--color-border-strong);
  transform: translateY(-6px) scale(1.03);
}
.btn:hover, .btn:focus {
  box-shadow: 0 4px 16px var(--color-primary);
  transform: translateY(-2px) scale(1.04);
}
.cta-banner {
  animation: fadeInUp 0.7s cubic-bezier(.4,0,.2,1);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: none; }
}
.protheme-demo-home section, .protheme-demo-about section, .protheme-demo-projects section, .protheme-demo-contact section {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.7s cubic-bezier(.4,0,.2,1) forwards;
  animation-delay: 0.1s;
}
.protheme-demo-home section:nth-child(2) { animation-delay: 0.2s; }
.protheme-demo-home section:nth-child(3) { animation-delay: 0.3s; }
.protheme-demo-home section:nth-child(4) { animation-delay: 0.4s; }
.protheme-demo-home section:nth-child(5) { animation-delay: 0.5s; }

/* --- BORDES Y SOMBRAS MÁS PROFESIONALES --- */
/* Sustituye los border-radius y box-shadow de los bloques principales por valores más sobrios */
.hero.split, .about-mini, .skills-grid, .projects-gallery, .cta-banner, .team.surface, .contact-grid.surface, .timeline, .contact__form, .info-card {
  border-radius: 0.5rem !important;
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.07), 0 1.5px 6px 0 var(--color-border) !important;
}
.skill-card, .project-card {
  border-radius: 0.4rem !important;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.08), 0 1px 4px var(--color-border) !important;
}
.btn, .main-nav a {
  border-radius: 0.7em !important;
}
.profile-photo, .team__photo img {
  border-radius: 1.2rem !important;
}
.floating-phone {
  border-radius: 0.7rem !important;
}

/* =============================================================
   PROTHEME — Neon Forge Design System
   Bloques personalizados: hero, about, skills, projects, contact
   ============================================================= */

/* --- TOKENS -------------------------------------------------- */
:root {
  --bg:             #0f0f0f;
  --surface:        #1a1a1a;
  --surface-2:      #242424;
  --primary:        #ff6b00;
  --primary-light:  #ff9a40;
  --text:           #f0f0f0;
  --text-muted:     #999999;
  --border:         rgba(255,107,0,0.25);
  --radius:         8px;
  --radius-lg:      12px;
  --font-heading:   'Barlow Condensed', sans-serif;
  --font-mono:      'JetBrains Mono', monospace;
  --font-body:      'Outfit', sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

.accent { color: var(--primary); }
.mono   { font-family: var(--font-mono); }

/* --- LAYOUT -------------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section--surface {
  background: var(--surface);
}

.section-label-block {
  display: block;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title-block {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 40px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- BUTTONS ------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn--primary {
  background: var(--primary);
  color: #000;
}
.btn--primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--border);
}
.btn--outline:hover {
  background: var(--border);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 8px 16px;
  font-size: 12px;
}

/* --- BADGES -------------------------------------------------- */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

.badge--orange {
  background: var(--primary);
  color: #000;
}

.badge--outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.15);
}

.badge--dot::before {
  content: '●';
  color: var(--primary);
  margin-right: 4px;
  font-size: 8px;
}
.badge--dot {
  color: var(--text-muted);
  font-size: 11px;
}

/* --- HERO BLOCK --------------------------------------------- */
.hero-full-section {
  display: flex;
  align-items: flex-start;
  padding: 16px 0 48px;
  background: var(--bg);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}

.hero__badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.hero__name {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -1px;
  margin: 0 0 20px;
}

.hero__tagline {
  margin-bottom: 32px;
}

.hero__tagline p {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 14px;
  margin: 4px 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.stats-row {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat__num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.hero-stat__label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.hero__right {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__profile-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
}

.hero__profile-frame::before {
  content: '';
  position: absolute;
  inset: -4px;
  background: linear-gradient(135deg, var(--primary), transparent 60%);
  clip-path: polygon(15% 0%, 100% 0%, 100% 85%, 85% 100%, 0% 100%, 0% 15%);
  animation: border-glow 2.5s ease-in-out infinite;
  z-index: 0;
}

@keyframes border-glow {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 1; box-shadow: 0 0 24px rgba(255, 107, 0, 0.5); }
}

.profile-photo-clip {
  clip-path: polygon(15% 0%, 100% 0%, 100% 85%, 85% 100%, 0% 100%, 0% 15%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  position: relative;
  z-index: 1;
}

.hero__phone {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
}

.hero__phone img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
}

/* --- ABOUT BLOCK -------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.about__photo-col {
  position: sticky;
  top: 40px;
}

.about__photo {
  width: 100%;
  max-width: 340px;
}

.about__bio {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.about__stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.about-stat-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.about-stat-card__num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
}

.about-stat-card__label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 6px;
}

.about__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --- SKILLS BLOCK ------------------------------------------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.skill-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.2s, transform 0.2s;
}

.skill-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.skill-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.skill-card__name {
  font-weight: 700;
  font-size: 15px;
}

.skill-card__percent {
  font-size: 13px;
}

.skill-card__level {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 12px;
}

.skill-bar {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.skill-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 2px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}

/* --- PROJECTS BLOCK ----------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}

.project-card:hover {
  border-color: var(--primary);
  transform: translateY(-6px);
}

.project-card__image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-card__image img {
  transform: scale(1.05);
}

.project-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.project-card__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 8px;
}

.project-card__desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
  margin: 0 0 16px;
}

.project-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}

.project-card__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* --- CONTACT BLOCK ------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 680px;
}

.contact__subtitle {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-detail__icon {
  color: var(--primary);
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.contact-detail__value {
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
}

.contact-detail__value:hover {
  color: var(--primary);
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --- ANIMATIONS --------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: none;
}

/* Stagger for children */
.skills-grid .skill-card:nth-child(1)  { transition-delay: 0.05s; }
.skills-grid .skill-card:nth-child(2)  { transition-delay: 0.1s;  }
.skills-grid .skill-card:nth-child(3)  { transition-delay: 0.15s; }
.skills-grid .skill-card:nth-child(4)  { transition-delay: 0.2s;  }
.skills-grid .skill-card:nth-child(5)  { transition-delay: 0.25s; }
.skills-grid .skill-card:nth-child(6)  { transition-delay: 0.3s;  }
.projects-grid .project-card:nth-child(1) { transition-delay: 0.05s; }
.projects-grid .project-card:nth-child(2) { transition-delay: 0.15s; }
.projects-grid .project-card:nth-child(3) { transition-delay: 0.25s; }

/* Phone float animation */
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.phone-float {
  animation: float 3s ease-in-out infinite;
}

/* --- RESPONSIVE --------------------------------------------- */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero__right {
    display: none;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about__photo-col {
    position: static;
    text-align: center;
  }
  .about__photo {
    max-width: 240px;
  }
}

@media (max-width: 600px) {
  .section { padding: 60px 0; }
  .skills-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .stats-row {
    gap: 20px;
  }
  .about__stats {
    gap: 12px;
  }
}

/* =============================================================
   WIDGETS ATÓMICOS — ProTheme
   ============================================================= */

/* ── Section Header Widget ─── */
.protheme-section-header { margin-bottom: 48px; }
.protheme-section-header .section-label-block { display: block; margin-bottom: 12px; }
.protheme-section-header .section-title-block { margin: 0; }

/* ── Stat Card Widget ─── */
.protheme-stat-card {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid rgba(255,107,0,.2);
  border-radius: 8px;
}
.protheme-stat-card__num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  line-height: 1;
}
.protheme-stat-card--sm .protheme-stat-card__num { font-size: 1.6rem; }
.protheme-stat-card--md .protheme-stat-card__num { font-size: 2.4rem; }
.protheme-stat-card--lg .protheme-stat-card__num { font-size: 3.4rem; }
.protheme-stat-card__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-top: 6px;
}

/* ── Profile Photo Widget ─── */
.protheme-profile-photo {
  display: flex;
  position: relative;
}
.protheme-profile-photo__frame {
  position: relative;
  display: inline-block;
}
.protheme-profile-photo__frame::before {
  content: '';
  position: absolute;
  inset: -4px;
  background: linear-gradient(135deg, var(--primary), transparent 60%);
  clip-path: polygon(15% 0%, 100% 0%, 100% 85%, 85% 100%, 0% 100%, 0% 15%);
  animation: border-glow 2.5s ease-in-out infinite;
  z-index: 0;
}
.protheme-profile-photo .profile-photo-clip {
  clip-path: polygon(15% 0%,100% 0%,100% 85%,85% 100%,0% 100%,0% 15%);
  display: block;
  position: relative;
  z-index: 1;
}

/* ── CTA Group Widget ─── */
.protheme-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 32px;
}

/* ── Timeline Item Widget ─── */
.protheme-timeline-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0 20px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: relative;
}
.protheme-timeline-item:last-child { border-bottom: none; }

.timeline-item__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--primary);
  margin-top: 4px;
  position: relative;
  z-index: 1;
}
.timeline-item__dot--current {
  background: var(--primary);
  box-shadow: 0 0 10px rgba(255,107,0,.5);
}
.timeline-item__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.timeline-item__period {
  font-size: 12px;
  color: var(--primary);
}
.timeline-item__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--text);
}
.timeline-item__company {
  font-size: 13px;
  margin: 0 0 8px;
}
.timeline-item__desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ── Contact Detail Widget ─── */
.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.contact-detail:last-child { border-bottom: none; }
.contact-detail__icon {
  font-size: 18px;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}
.contact-detail__value {
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
}
a.contact-detail__value:hover { color: var(--primary); }

/* ── Section Wrapper (innerBlocks container) ─── */
.section--surface   { background: var(--surface); }
.section--surface-2 { background: var(--surface-2); }
.section--lg        { padding: 140px 0; }
.container--full    { max-width: 100%; }


/* =============================================================
   WIDGET: Page Hero
   ============================================================= */
.protheme-page-hero {
  background: var(--bg);
  padding: 1.5rem 0 2rem;
  border-bottom: 1px solid rgba(255,107,0,.12);
}
.protheme-page-hero__breadcrumb {
  font-size: 11px;
  color: #666;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.protheme-page-hero__breadcrumb a { color: var(--primary); text-decoration: none; }
.protheme-page-hero__breadcrumb .sep { color: rgba(255,107,0,.5); }
.protheme-page-hero__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 0.92;
  color: var(--text);
  margin: 0 0 20px;
}
.protheme-page-hero__subtitle {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  letter-spacing: 0.08em;
  margin: 0;
}

/* =============================================================
   WIDGET: Info Card
   ============================================================= */
.protheme-info-card {
  display: flex;
  flex-direction: column;
  padding: 10px 16px;
  background: var(--surface-2);
  border: 1px solid rgba(255,107,0,.2);
  border-radius: 4px;
  margin-bottom: 8px;
}
.protheme-info-card__key {
  font-size: 10px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 3px;
}
.protheme-info-card__value {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}


/* ================================================================
   THEME VARIANT SYSTEM
   Selector: html[data-variant] + html[data-theme]
   Variants: neon (default) | midnight | dark-matter
   Modes:    dark (default) | light
   ================================================================ */

/* ── Variables base (shorthand aliases usados por todos los bloques) ──*/
:root {
  --primary:    var(--color-primary);
  --accent:     var(--color-accent);
  --bg:         var(--color-background);
  --surface:    var(--color-surface);
  --surface-2:  var(--color-surface-2, #242424);
  --text:       var(--color-text);
  --muted:      var(--color-text-muted);
  --border:     var(--color-border);
  --border-strong: var(--color-border-strong);
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --duration:   0.3s;
}

/* ─────────────────────────────────────────────────────────────────
   NEON FORGE  (dark default — se define en :root ya, solo el light)
   ───────────────────────────────────────────────────────────────── */
html[data-variant="neon"] {
  --color-primary:        #ff6b00;
  --color-accent:         #ff9a40;
  --color-primary-dark:   #cc5500;
  --color-neon-glow:      rgba(255, 107, 0, 0.35);
  --color-background:     #0f0f0f;
  --color-surface:        #1a1a1a;
  --color-surface-2:      #242424;
  --color-text:           #f0f0f0;
  --color-text-muted:     #999999;
  --color-border:         rgba(255,107,0,0.25);
  --color-border-strong:  rgba(255,107,0,0.6);
  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body:    'Outfit', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
  --google-fonts: "https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;700;900&family=JetBrains+Mono:wght@400;500;700&family=Outfit:wght@300;400;500&display=swap";
}
html[data-variant="neon"][data-theme="light"] {
  --color-background:     #f5f0eb;
  --color-surface:        #ffffff;
  --color-surface-2:      #ede8e3;
  --color-text:           #0f0f0f;
  --color-text-muted:     #555555;
  --color-border:         rgba(255,107,0,0.3);
  --color-border-strong:  rgba(255,107,0,0.7);
  --color-neon-glow:      rgba(255,107,0,0.2);
}

/* ─────────────────────────────────────────────────────────────────
   MIDNIGHT CRAFT
   Syne (heading) + DM Sans (body) — sin mono independiente
   Primary: amber #f59e0b | accent-red #ef4444
   ───────────────────────────────────────────────────────────────── */
html[data-variant="midnight"] {
  --color-primary:        #f59e0b;
  --color-accent:         #ef4444;
  --color-primary-dark:   #c2700a;
  --color-accent-mid:     #f97316;
  --color-neon-glow:      rgba(245, 158, 11, 0.3);
  --color-background:     #080c1a;
  --color-surface:        #0f1628;
  --color-surface-2:      #1a2340;
  --color-text:           #f0f4ff;
  --color-text-muted:     #8ba0c4;
  --color-border:         rgba(245, 158, 11, 0.15);
  --color-border-strong:  rgba(245, 158, 11, 0.5);
  --font-heading: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'DM Sans', monospace;
}
html[data-variant="midnight"][data-theme="light"] {
  --color-background:     #f4f6fb;
  --color-surface:        #ffffff;
  --color-surface-2:      #eef1f8;
  --color-text:           #0d1124;
  --color-text-muted:     #4a5578;
  --color-border:         rgba(245, 158, 11, 0.2);
  --color-border-strong:  rgba(245, 158, 11, 0.6);
  --color-primary:        #c2700a;
}

/* ─────────────────────────────────────────────────────────────────
   DARK MATTER
   Syne (heading) + DM Sans (body) + JetBrains Mono (mono)
   Primary: #ff4500 (mars red)
   ───────────────────────────────────────────────────────────────── */
html[data-variant="dark-matter"] {
  --color-primary:        #ff4500;
  --color-accent:         #cc3700;
  --color-primary-dark:   #cc3700;
  --color-neon-glow:      rgba(255, 69, 0, 0.3);
  --color-background:     #000000;
  --color-surface:        #111111;
  --color-surface-2:      #1a1a1a;
  --color-text:           #ffffff;
  --color-text-muted:     #888888;
  --color-border:         #222222;
  --color-border-strong:  #444444;
  --font-heading: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
}
html[data-variant="dark-matter"][data-theme="light"] {
  --color-background:     #f5f5f5;
  --color-surface:        #ffffff;
  --color-surface-2:      #ebebeb;
  --color-text:           #0a0a0a;
  --color-text-muted:     #555555;
  --color-border:         #d0d0d0;
  --color-border-strong:  #aaaaaa;
}

/* ─────────────────────────────────────────────────────────────────
   Sincroniza los alias con las variables de variante activa
   ───────────────────────────────────────────────────────────────── */
html {
  --primary:    var(--color-primary);
  --accent:     var(--color-accent);
  --bg:         var(--color-background);
  --surface:    var(--color-surface);
  --surface-2:  var(--color-surface-2);
  --text:       var(--color-text);
  --muted:      var(--color-text-muted);
  --border:     var(--color-border);
  --border-strong: var(--color-border-strong);
  --neon-glow:  var(--color-neon-glow, rgba(255,107,0,0.35));
  font-family:  var(--font-body);
  background:   var(--color-background);
  color:        var(--color-text);
}

/* ── Light mode: header semi-transparente adaptado ── */
html[data-theme="light"] .site-header {
  background: rgba(245, 240, 235, 0.92);
  border-bottom-color: var(--border);
}
html[data-theme="light"] .main-nav a { color: var(--color-text-muted); }
html[data-theme="light"] .site-footer { background: var(--surface-2); color: var(--muted); }

/* ================================================================
   KEYFRAMES (portados desde appsdeveloper)
   ================================================================ */
@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.15); }
}
@keyframes border-glow {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 1; box-shadow: 0 0 20px rgba(255, 107, 0, 0.4); }
}
@keyframes dot-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 5px var(--primary); }
  50%       { box-shadow: 0 0 12px var(--primary), 0 0 20px var(--neon-glow); }
}
@keyframes dot-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes float-phone {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%       { transform: translateY(-12px) rotate(-3deg); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes skillFill {
  from { width: 0; }
}

/* ================================================================
   SCROLL REVEAL
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ================================================================
   CARD HOVER EFFECTS (card-hover mixin)
   ================================================================ */
.card-hover {
  transition: transform var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out),
              border-color var(--duration) var(--ease-out);
  position: relative;
}
.card-hover::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--duration) var(--ease-out);
  background: radial-gradient(120px circle at var(--mouse-x,50%) var(--mouse-y,50%),
              var(--neon-glow) 0%, transparent 100%);
  pointer-events: none;
}
.card-hover:hover {
  transform: translateY(-2px) scale(1.005);
  border-color: var(--border-strong);
  box-shadow: 0 0 20px var(--neon-glow), inset 0 0 20px rgba(255,107,0,0.03);
}
.card-hover:hover::before { opacity: 1; }

/* ================================================================
   BUTTON HOVER GLOW
   ================================================================ */
.btn--primary,
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
  transition: all var(--duration) var(--ease-out);
}
.btn--primary:hover,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 0 20px var(--neon-glow), 0 0 40px rgba(255,107,0,0.2);
}
.btn--outline,
.wp-block-button.is-style-outline .wp-block-button__link {
  transition: all var(--duration) var(--ease-out);
}
.btn--outline:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--primary);
  color: #000;
  box-shadow: 0 0 14px var(--neon-glow);
}

/* ================================================================
   PHONE FLOAT ANIMATION (hero)
   ================================================================ */
.floating-phone,
.protheme-profile-photo .floating-phone,
.wp-block-image img[class*="phone"] {
  animation: float-phone 4s ease-in-out infinite;
}

/* ================================================================
   PROFILE PHOTO HEX CLIP + BORDER GLOW
   ================================================================ */
.protheme-profile-photo__img {
  clip-path: polygon(15% 0%, 100% 0%, 100% 85%, 85% 100%, 0% 100%, 0% 15%);
  animation: border-glow 2.5s ease-in-out infinite;
}

/* ================================================================
   SKILL BAR ANIMATED FILL
   ================================================================ */
.protheme-skill-bar__fill {
  transition: width 1.2s var(--ease-out);
}
.reveal.visible .protheme-skill-bar__fill {
  animation: skillFill 1.2s var(--ease-out) both;
}

/* ================================================================
   BADGE DOT ANIMATIONS
   ================================================================ */
.protheme-badge--dot::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  box-shadow: 0 0 5px var(--primary);
  animation: dot-pulse 1.5s ease-in-out infinite;
  content: '';
}
.protheme-badge--blink::before {
  animation: dot-blink 1s step-end infinite;
}

/* ================================================================
   SECTION WRAPPER GRADIENT GRID BACKGROUND
   ================================================================ */
.protheme-section-wrapper {
  position: relative;
}
.protheme-section-wrapper[data-bg="default"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--neon-glow) 1px, transparent 1px),
    linear-gradient(90deg, var(--neon-glow) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.04;
  pointer-events: none;
}

/* ================================================================
   TIMELINE DOT GLOW
   ================================================================ */
.protheme-timeline-item__dot {
  box-shadow: 0 0 8px var(--primary);
  animation: dot-pulse 1.5s ease-in-out infinite;
}
.protheme-timeline-item--current .protheme-timeline-item__dot {
  animation: dot-pulse 1.5s ease-in-out infinite, dot-blink 2s step-end infinite;
}

/* ================================================================
   AVAILABILITY STATUS DOT
   ================================================================ */
.protheme-contact-detail--availability .protheme-contact-detail__icon {
  animation: dot-pulse 1.5s ease-in-out infinite;
}

/* ================================================================
   STAT CARD NUMBER GLOW
   ================================================================ */
.protheme-stat-card__number {
  text-shadow: 0 0 20px var(--neon-glow);
  transition: text-shadow var(--duration) var(--ease-out);
}
.protheme-stat-card:hover .protheme-stat-card__number {
  text-shadow: 0 0 30px var(--primary), 0 0 60px var(--neon-glow);
}

/* ================================================================
   SECTION HEADER — LABEL BLINK DOT
   ================================================================ */
.protheme-section-header__label::before {
  content: '// ';
  color: var(--primary);
}

/* ================================================================
   CTA GROUP — BUTTON ENTRANCE STAGGER
   ================================================================ */
.protheme-cta-group .btn:nth-child(2) {
  animation-delay: 0.1s;
}

/* ================================================================
   PAGE HERO — ENTRANCE ANIMATION
   ================================================================ */
.protheme-page-hero__title {
  animation: fadeUp 0.6s var(--ease-out) both;
}
.protheme-page-hero__subtitle {
  animation: fadeUp 0.6s var(--ease-out) 0.15s both;
}
.protheme-page-hero__breadcrumb {
  animation: fadeIn 0.4s ease both;
}

/* ================================================================
   PROJECT CARD HOVER IMAGE ZOOM
   ================================================================ */
.protheme-project-card {
  overflow: hidden;
  transition: transform var(--duration) var(--ease-out),
              border-color var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out);
}
.protheme-project-card:hover {
  transform: translateY(-3px) scale(1.005);
  border-color: var(--border-strong);
  box-shadow: 0 0 24px var(--neon-glow);
}
.protheme-project-card__image img {
  transition: transform 0.5s var(--ease-out);
}
.protheme-project-card:hover .protheme-project-card__image img {
  transform: scale(1.04);
}

/* ================================================================
   INFO CARD HOVER
   ================================================================ */
.protheme-info-card {
  transition: transform var(--duration) var(--ease-out),
              border-color var(--duration) var(--ease-out);
}
.protheme-info-card:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
}

/* ================================================================
   SECTION-WRAPPER ENTRANCE (bloques con .reveal)
   ================================================================ */
.protheme-section-wrapper > * {
  /* Los hijos directos heredan la clase reveal si el PHP la emite */
}

/* ================================================================
   CONTACT FORM
   ================================================================ */
.contact-form-wrap {
  width: 100%;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.cf-row {
  display: flex;
  gap: 1rem;
}

.cf-row--2 > .form-field {
  flex: 1 1 0;
  min-width: 0;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  text-transform: uppercase;
}

.form-field__input {
  width: 100%;
  padding: 0.65em 1em;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.form-field__input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
}

.form-field__input--textarea {
  resize: vertical;
  min-height: 140px;
}

/* Honeypot */
.form-field--hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.cf-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

/* Sending state */
.cf-submit .cf-submit__sending { display: none; }
.cf-submit.is-sending .cf-submit__text    { display: none; }
.cf-submit.is-sending .cf-submit__sending { display: inline; }

/* Feedback */
.cf-feedback {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  min-height: 1.2em;
}

.cf-feedback--ok    { color: #4ade80; }
.cf-feedback--error { color: #f87171; }

@media (max-width: 640px) {
  .cf-row--2 {
    flex-direction: column;
  }
}
