/* Estilos inspirados en Brittany Chiang y temas de VS Code */


.root-fix-placeholder {
}
/* Paleta 1: Azul/Verde (actual) */
:root,
.palette-1 {
  --dark-navy: #020c1b;
  --navy: #0a192f;
  --light-navy: #112240;
  --lightest-navy: #233554;
  --navy-shadow: rgba(2, 12, 27, 0.7);
  --dark-slate: #495670;
  --slate: #8892b0;
  --light-slate: #a8b2d1;
  --lightest-slate: #ccd6f6;
  --white: #e6f1ff;
  --green: #64ffda;
  --green-tint: rgba(100, 255, 218, 0.1);
  --pink: #f57dff;
  --blue: #57cbff;
  --font-sans: 'Inter', 'San Francisco', 'SF Pro Text', -apple-system, system-ui, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
  --fz-xxs: 12px;
  --fz-xs: 13px;
  --fz-sm: 14px;
  --fz-md: 16px;
  --fz-lg: 18px;
  --fz-xl: 20px;
  --fz-xxl: 22px;
  --fz-heading: 32px;
  --border-radius: 4px;
  --nav-height: 100px;
  --nav-scroll-height: 70px;
  --tab-height: 42px;
  --tab-width: 120px;
  --easing: cubic-bezier(0.645, 0.045, 0.355, 1);
  --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
  --hamburger-width: 30px;
  --ham-before: top 0.1s ease-in 0.25s, opacity 0.1s ease-in;
  --ham-before-active: top 0.1s ease-out, opacity 0.1s ease-out 0.12s;
  --ham-after: bottom 0.1s ease-in 0.25s, transform 0.22s cubic-bezier(0.55, 0.055, 0.675, 0.19);
  --ham-after-active: bottom 0.1s ease-out, transform 0.22s cubic-bezier(0.215, 0.61, 0.355, 1) 0.12s;
}

/* Paleta 2: Tonos tierra */
.palette-2 {
  --dark-navy: #3e2723;
  --navy: #5d4037;
  --light-navy: #8d6e63;
  --lightest-navy: #a1887f;
  --navy-shadow: rgba(62, 39, 35, 0.7);
  --dark-slate: #bcaaa4;
  --slate: #d7ccc8;
  --light-slate: #ffe0b2;
  --lightest-slate: #fff8e1;
  --white: #fffde7;
  --green: #ff7043;
  --green-tint: rgba(255, 112, 67, 0.1);
  --pink: #ffab91;
  --blue: #ffb300;
}

/* Paleta 3: Pastel */
.palette-3 {
  --dark-navy: #b39ddb;
  --navy: #9575cd;
  --light-navy: #ce93d8;
  --lightest-navy: #f8bbd0;
  --navy-shadow: rgba(179, 157, 219, 0.7);
  --dark-slate: #80cbc4;
  --slate: #b2dfdb;
  --light-slate: #b3e5fc;
  --lightest-slate: #e1bee7;
  --white: #fce4ec;
  --green: #ffd54f;
  --green-tint: rgba(255, 213, 79, 0.1);
  --pink: #f8bbd0;
  --blue: #81d4fa;
}

/* Iconos de selección de paleta */
.palette-selector {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.palette-icon {
  cursor: pointer;
  font-size: 1.5rem;
  border: 2px solid transparent;
  border-radius: 50%;
  padding: 6px;
  transition: border 0.2s;
  background: var(--lightest-navy);
  color: var(--green);
}
.palette-icon.selected {
  border: 2px solid var(--green);
  background: var(--navy);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--navy);
  color: var(--slate);
  font-family: var(--font-sans);
  line-height: 1.3;
  transition: background-color 0.5s, color 0.5s;
}

.fade-in {
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.sidebar {
  background: var(--lightest-navy);
  color: var(--slate);
}

.sidebar h1 {
  color: var(--green);
}

.sidebar p {
  color: var(--light-slate);
}

.sidebar a {
  color: var(--blue);
}

.theme-toggle {
  background: var(--light-slate);
  color: var(--navy);
}

.main-content {
  background: var(--navy);
  color: var(--slate);
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }
.delay-5 { animation-delay: 1s; }
.delay-6 { animation-delay: 1.2s; }

main {
  padding: 0 150px;
}

section {
  padding: 100px 0;
  max-width: 1000px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

h3 {
  font-size: 22px;
}

h1, h2, h3 {
  color: var(--lightest-slate);
  font-weight: 600;
}

h2 {
  font-size: var(--fz-heading);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

h2::after {
  content: "";
  display: block;
  position: relative;
  top: -5px;
  width: 300px;
  height: 1px;
  margin-left: 20px;
  background-color: var(--lightest-navy);
}


/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  z-index: 11;
  width: 100%;
  padding: 0 50px;
  height: var(--nav-height);
  background-color: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin: 0 15px;
  font-size: var(--fz-xs);
  counter-increment: item 1;
}

.nav-links a {
  color: var(--lightest-slate);
  text-decoration: none;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green);
}

.nav-links a::before {
  content: "0" counter(item) ".";
  margin-right: 5px;
  color: var(--green);
  text-align: right;
}

/* Hero Section */
#hero {
  padding-top: var(--nav-height);
}

#hero h1 {
  font-size: var(--fz-sm);
  color: var(--green);
  font-family: var(--font-mono);
  margin: 0 0 30px 4px;
}

#hero h2 {
  font-size: 80px;
  line-height: 1.1;
  margin: 0;
}

#hero h3 {
  font-size: 80px;
  line-height: 1.1;
  color: var(--slate);
}

#hero p {
  margin: 20px 0 0;
  max-width: 540px;
}

/* About Section */
#about .inner {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 50px;
}

/* Experience Section */
#experience .inner {
  display: flex;
}

#experience .tab-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: var(--tab-width);
}

#experience .tab-button {
  background-color: transparent;
  border: 0;
  border-left: 2px solid var(--lightest-navy);
  color: var(--slate);
  cursor: pointer;
  width: 100%;
  height: var(--tab-height);
  text-align: left;
  padding: 0 20px;
  font-family: var(--font-mono);
  font-size: var(--fz-xs);
}

#experience .tab-button:hover,
#experience .tab-button.active {
  background-color: var(--light-navy);
  color: var(--green);
}

#experience .tab-content {
  padding: 10px 5px;
  margin-left: 20px;
}

#experience .tab-pane {
  display: none;
}

#experience .tab-pane.active {
  display: block;
}

#experience h3 {
  font-size: var(--fz-xxl);
  margin-bottom: 5px;
}

#experience .company {
  color: var(--green);
}

#experience .range {
  font-family: var(--font-mono);
  font-size: var(--fz-xs);
  margin-bottom: 25px;
}

#experience ul {
  list-style: none;
  padding: 0;
}

#experience li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--green);
}

#experience li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}

/* Technologies Section */
#technologies ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 200px));
    gap: 0px 10px;
    padding: 0px;
    margin: 20px 0px 0px;
    overflow: hidden;
    list-style: none;
}

#technologies li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 20px;
    font-family: var(--font-mono);
    font-size: var(--fz-xs);
}

#technologies li::before {
    content: "▹";
    position: absolute;
    left: 0px;
    color: var(--green);
    font-size: var(--fz-sm);
    line-height: 12px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px;
  font-family: var(--font-mono);
  font-size: var(--fz-xs);
  color: var(--light-slate);
}

.footer a {
  color: var(--lightest-slate);
  text-decoration: none;
}
.footer a:hover {
    color: var(--green);
}

/* Print styles */
@media print {
  .sidebar, .theme-toggle, .palette-selector, #print-cv { display: none !important; }
  body { background: #fff; color: #000; }
  .main-content { background: #fff; color: #000; }
  a { color: #000; text-decoration: none; }
  section { padding: 24px 0; opacity: 1 !important; transform: none !important; }
  h2::after { display: none; }
}

/* Focus mode */
.focus-mode .sidebar,
.focus-mode #projects,
.focus-mode #certifications,
.focus-mode #technologies {
  display: none !important;
}
.focus-mode main { padding: 0 24px; }
.focus-mode #experience { padding-top: 24px; }
