/* ============================================================
   NICOLE FRIEDERICHS — AIR PURIFIER PORTFOLIO (MODIFIED)
   style.css - Header y Folders restaurados
   ============================================================ */

/* ---- RESET & BASE ----------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Variables de tu diseño original restauradas */
  --cream:        #f5f0e8;
  --dark-nav:     #4a5d6d; /* Tu color slate original */
  --dark-footer:  #6b7d8e; /* Tu slate-footer */
  --text:         #2c2c2c;
  --text-light:   #666;
  --white:        #ffffff;
  --border-r:     18px;    /* Tu radio original */
  --font-body:    'DM Sans', sans-serif;
  --font-display: 'DM Serif Display', serif; /* Tu tipografía para títulos */
  --shadow:       0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.13);

  /* Colores de las secciones internas (protegidos del archivo final) */
  --pink:         #e4b2b7;
  --lavender:     #bcadda;
  --mint:         #9ec5c0;
  --sage:         #7aaa8a;
  --steel:        #7a9fb5;
  --stat-bg:      #b0b8c4;
  --user-blue:    #3a506b;
  --bubble-blue:  #5a7fa0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--text);
  min-height: 100vh;
  font-size: 16px; /* Ajustado según tu CSS original */
  line-height: 1.65;
}

ul { padding-left: 1.2rem; }
li { margin-bottom: 2px; }
a { text-decoration: none; color: inherit; }
p { margin-bottom: 0.75rem; }

/* ---- NAVBAR (Restaurado a tu diseño sticky) --------------- */
/* ---- NAVBAR (Restaurado a tu diseño sticky y tu HTML exacto) --------------- */
nav {
  background: var(--dark-nav);
  border-radius: 50px;
  margin: 16px auto;
  max-width: 1100px;
  width: calc(100% - 48px); 
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 12px;
  z-index: 100;
  box-shadow: var(--shadow);
}

.nav-logo {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--cream);
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Estilo para los enlaces de navegación */
.nav-icons a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* Estilo para la "N" estilizada */
.nav-n {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--cream);
  font-size: 1.15rem;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.nav-icons a:hover .nav-n { 
  opacity: 1; 
}

/* Estilo para los íconos SVG (Home y Menú) */
.nav-icons svg { 
  fill: var(--cream); 
  width: 20px; 
  height: 20px; 
  cursor: pointer; 
  opacity: 0.9; 
  transition: opacity 0.2s;
}
.nav-icons a:hover svg { 
  opacity: 1; 
}

/* ---- HERO -------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Basado en tu estructura */
  align-items: start;
  max-width: 1100px;
  width: 95%;
  margin: 28px auto 0;
  padding: 0 24px;
  gap: 28px;
}

.hero-text { flex: 1; }
.hero-label {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 2px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: 2.55rem;
  font-weight: 400;
  color: var(--steel); /* Mantiene el color del tema final */
  margin-bottom: 8px;
  line-height: 1.15;
}
.hero-desc {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 320px;
}

.hero-image {
  flex: 0 0 auto;
  width: 100%;
}
.hero-image img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  background: #ddd;
  min-height: 200px;
}

/* ---- FOLDER TABS (Restaurado a tu diseño) ----------------- */
.folder-tabs {
  display: flex;
  gap: 4px;
  max-width: 1100px;
  width: 100%;
  margin: 32px auto -1px; /* -1px para sobreponerse al panel */
  padding: 0 24px;
  align-items: flex-end;
  position: relative;
  z-index: 10;
}

.tab {
  flex: 1;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 16px 12px;
  border-radius: 12px 12px 0 0;
  transition: all 0.2s;
  color: var(--white);
  position: relative;
  z-index: 1;
  text-align: center;
}

.tab:hover { filter: brightness(1.05); }
.tab.active {
  padding-top: 16px;
  padding-bottom: 14px;
  filter: brightness(1);
  z-index: 11;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
}

/* Colores de pestañas del diseño final */
.tab--data     { background: #d4757e; }
.tab--concept  { background: #9e8fc0; }
.tab--filters  { background: #7aafa8; }
.tab--timeline { background: #5e9470; }
.tab--materials{ background: #5c8aa0; }

.tab--data.active     { background: var(--pink); }
.tab--concept.active  { background: var(--lavender); }
.tab--filters.active  { background: var(--mint); }
.tab--timeline.active { background: var(--sage); }
.tab--materials.active{ background: var(--steel); }

/* ---- FOLDER WRAPPER --------------------------------------- */
.folder-wrapper {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto 70px;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ---- FOLDER SECTIONS (Paneles) ---------------------------- */
.folder-section {
  display: none;
  border-radius: 0 0 var(--border-r) var(--border-r);
  padding: 36px 32px; /* Espaciado restaurado */
  animation: sectionFadeIn 0.35s ease;
}
.folder-section.active { display: block; }

@keyframes sectionFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Backgrounds de los paneles del diseño final */
.folder--data     { background: var(--pink); }
.folder--concept  { background: var(--lavender); }
.folder--filters  { background: var(--mint); }
.folder--timeline { background: var(--sage); }
.folder--materials{ background: var(--steel); }

/* ---- FOLDER CARD (white inner card restaurada) ----------- */
.folder-card {
  background: var(--white);
  border-radius: var(--border-r);
  padding: 40px 42px; /* Padding interior de tu diseño */
  margin: 0;
  box-shadow: var(--shadow-lg); /* Sombra intensa de tu diseño */
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
  margin-bottom: 24px;
  color: var(--text);
}

/* ---- STAT BOXES & DATA GRID (Intactos) ------------------- */
.stat-box {
  display: block;
  background: var(--stat-bg);
  color: var(--white);
  border-radius: 14px;
  padding: 16px 22px;
  margin: 14px 0;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.5;
  transition: transform 0.18s, filter 0.18s, box-shadow 0.18s;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.stat-box:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 6px 18px rgba(0,0,0,0.14);
}
.stat-box strong { color: var(--white); }

.data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 24px 0;
}
.factors-col { font-size: 0.88rem; }
.factors-col ul { margin-top: 6px; }

/* ---- BUBBLE CHART (Intacto) ------------------------------ */
.pollutants-col { position: relative; }
.bubble-chart {
  position: relative;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bubble {
  position: absolute;
  background: var(--bubble-blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.3;
  padding: 8px;
}
.bubble--center      { width: 110px; height: 110px; font-size: 0.78rem; font-weight: 600; top: 50%; left: 50%; transform: translate(-50%,-50%); background: #4a6f8a; z-index: 2; }
.bubble--top-left    { width: 88px; height: 88px; top: 10%; left: 10%; }
.bubble--mid-right   { width: 80px; height: 80px; top: 35%; left: 65%; }
.bubble--far-right   { width: 80px; height: 80px; top: 5%;  left: 70%; }
.bubble--left        { width: 80px; height: 80px; top: 60%; left: 5%; }
.bubble--bottom-mid  { width: 80px; height: 80px; top: 68%; left: 38%; }
.bubble--bottom-right{ width: 80px; height: 80px; top: 55%; left: 68%; }

/* ---- USER SECTION (Intacto) ------------------------------ */
.user-section {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
  align-items: start;
}
.user-figure { padding-top: 8px; }
.user-box {
  background: var(--user-blue);
  color: white;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.85rem;
  line-height: 1.5;
}
.user-label {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
  text-align: center;
}
.effects-col { font-size: 0.88rem; }
.effects-col ul { margin-top: 6px; }

/* ---- SPIRAL INTRO (Intacto) ------------------------------ */
.spiral-intro {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.spiral-bar {
  width: 4px;
  min-height: 60px;
  background: var(--lavender);
  border-radius: 4px;
  flex-shrink: 0;
}

/* ---- CONCEPT TWO-COL (Intacto) --------------------------- */
.concept-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.spiral-img {
  width: 100%;
  border-radius: 10px;
  object-fit: contain;
  background: #f0ede8;
  min-height: 200px;
}

/* ---- RISK TABLE (Intacto) -------------------------------- */
.risk-table-wrapper { overflow-x: auto; margin: 12px 0 24px; }
.risk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
}
.risk-table th {
  background: var(--lavender);
  color: white;
  padding: 9px 12px;
  text-align: left;
  font-weight: 600;
}
.risk-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #e8e4f0;
  vertical-align: top;
}
.risk-table tr:nth-child(even) td { background: #f7f5fc; }

/* ---- SPIRAL PHASES (Intacto) ----------------------------- */
.phases-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 28px 0 16px;
}
.phases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.phase-card {
  background: white;
  border: 1.5px solid #e0dced;
  border-radius: 16px;
  padding: 18px 14px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.phase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-color: var(--lavender);
}
.phase-icon { font-size: 1.6rem; margin-bottom: 4px; }
.phase-num  { font-size: 1.3rem; font-weight: 700; color: #999; }
.phase-name { font-weight: 600; font-size: 0.88rem; line-height: 1.3; }
.phase-card ul { padding-left: 1rem; margin-top: 4px; }
.phase-card li { font-size: 0.78rem; color: var(--text-light); }

/* ---- GANTT CHART (Intacto) ------------------------------- */
.gantt-wrapper {
  font-size: 0.78rem;
  margin-top: 10px;
}
.gantt-months {
  display: flex;
  margin-left: 80px;
  margin-bottom: 4px;
}
.gantt-month {
  flex: 1;
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--dark-nav);
  color: white;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;
  margin-right: 4px;
}
.gantt-weeks {
  display: flex;
  margin-left: 80px;
  margin-bottom: 6px;
  gap: 4px;
}
.gantt-weeks span {
  flex: 1;
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-light);
}
.gantt-rows { display: flex; flex-direction: column; gap: 8px; }
.gantt-row  { display: flex; align-items: flex-start; gap: 8px; min-height: 60px; }
.gantt-label {
  width: 72px;
  font-weight: 600;
  font-size: 0.78rem;
  padding-top: 4px;
  flex-shrink: 0;
}
.gantt-bar-area {
  flex: 1;
  position: relative;
  height: 56px;
  background: #f5f3f8;
  border-radius: 6px;
  overflow: hidden;
}
.gbar {
  position: absolute;
  height: 24px;
  top: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-size: 0.68rem;
  color: rgba(0,0,0,0.65);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
}

/* ---- FILTERS SECTION (Intacto) --------------------------- */
.filters-image-wrap { margin-top: 20px; border-radius: 14px; overflow: hidden; }
.filters-img {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 14px;
  min-height: 360px;
  background: #dde8e6;
}

/* ---- TIMELINE SECTION (Intacto) -------------------------- */
.timeline-subtitle { color: var(--text-light); margin-bottom: 6px; }
.timeline-divider  { border: none; border-top: 1.5px solid #bbb; margin: 10px 0 0; }
.timeline-path-wrapper {
  position: relative;
  width: 100%;
  min-height: 700px;
  margin-top: 10px;
}
.timeline-svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.milestone-circle {
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: none;
  background: white;
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 3;
}
.milestone-circle:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(0,0,0,0.2);
}
.milestone-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: #e8e8e8;
}
.milestone--1 { top: 2%;   right: 12%; }
.milestone--2 { top: 24%;  right: 4%; }
.milestone--3 { top: 48%;  left: 24%; }
.milestone--4 { top: 68%;  left: 8%; }

.timeline-final-img {
  position: absolute;
  bottom: 2%;
  right: 8%;
  width: 280px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}
.timeline-final-img img {
  width: 100%;
  display: block;
  min-height: 180px;
  object-fit: cover;
  background: #c8c8c8;
}

/* ---- MATERIALS SECTION (Intacto) ------------------------- */
.materials-image-wrap { margin-top: 20px; border-radius: 14px; overflow: hidden; }
.materials-img {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 14px;
  min-height: 380px;
  background: #d4d8d0;
}

/* ---- FOOTER (Alineado con tu paleta original) ------------ */
.site-footer {
  background: var(--dark-footer);
  padding: 40px 0 32px;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  gap: 40px;
}
.footer-left, .footer-right { color: white; text-align: center; }
.site-footer h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.footer-btn {
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.35);
  color: white;
  padding: 9px 28px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s;
}
.footer-btn:hover { background: rgba(255,255,255,0.28); }
.insta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 500;
}

/* ============================================================
   RESPONSIVE (Modificado para abarcar ambos diseños)
   ============================================================ */
@media (max-width: 680px) {
  .navbar { margin: 10px 14px; padding: 8px 16px; }
  .nav-logo { font-size: 0.95rem; }

  .hero { grid-template-columns: 1fr; padding: 24px 16px 16px; gap: 20px; }
  .hero-image { width: 100%; }
  .hero-title { font-size: 2rem; }

  .folder-tabs { padding: 0 14px; flex-wrap: wrap; gap: 4px; }
  .tab { font-size: 0.6rem; padding: 8px 4px 10px; }

  .folder-wrapper { padding: 0 14px; }
  .folder-section { padding: 24px 20px; }
  .folder-card { padding: 26px 20px 32px; }

  .data-grid { grid-template-columns: 1fr; }
  .bubble-chart { height: 220px; }
  .bubble--center { width: 80px; height: 80px; font-size: 0.65rem; }
  .bubble { width: 64px; height: 64px; font-size: 0.6rem; }

  .user-section { grid-template-columns: 1fr; gap: 14px; }
  .user-figure { display: none; }

  .concept-two-col { grid-template-columns: 1fr; }
  .phases-grid { grid-template-columns: 1fr 1fr; }

  .milestone-circle { width: 80px; height: 80px; }
  .timeline-final-img { width: 180px; }

  .site-footer { flex-direction: column; align-items: center; gap: 24px; padding: 32px 0 24px; }
}

@media (max-width: 420px) {
  .phases-grid { grid-template-columns: 1fr; }
  .tab { font-size: 0.5rem; }
}