/* ============================================================
   TALLER EMPRENDIMIENTO SENIOR - Isma Teijón
   Sistema de diseño corporativo premium
   Paleta: Azul marino oscuro, azul claro, dorado, blanco cálido
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* Variables de diseño */
:root {
  --navy:        #1a3a52;
  --navy-light:  #234b6a;
  --blue:        #3a7bd5;
  --blue-light:  #5a9fe0;
  --blue-pale:   #ddeaf8;
  --gold:        #c9a84c;
  --gold-light:  #e8c96e;
  --cream:       #f9f8f4;
  --cream-dark:  #f0ede4;
  --white:       #ffffff;
  --text-dark:   #1a2e3d;
  --text-mid:    #4a6070;
  --text-light:  #8aa0b0;
  --border:      #dde6ef;
  --shadow-sm:   0 2px 8px rgba(26,58,82,0.08);
  --shadow-md:   0 6px 24px rgba(26,58,82,0.12);
  --shadow-lg:   0 16px 48px rgba(26,58,82,0.16);
  --radius:      12px;
  --radius-lg:   20px;
  --font-sans:   'Montserrat', -apple-system, sans-serif;
  --font-serif:  'Playfair Display', Georgia, serif;
  --transition:  all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Tipografía ── */
h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; font-family: var(--font-sans); }
p  { font-size: 1rem; color: var(--text-mid); }

/* ── HEADER / NAV ── */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--navy);
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
}
.logo-sub {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: var(--gold-light);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
}
.header-badge {
  background: rgba(201,168,76,0.2);
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3em 0.9em;
  border-radius: 20px;
  white-space: nowrap;
}

/* ── HERO ── */
.hero {
  background: var(--navy);
  background-image:
    radial-gradient(ellipse at 80% 0%, rgba(58,123,213,0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 100%, rgba(201,168,76,0.12) 0%, transparent 50%);
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--blue-light), var(--gold));
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.35);
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.45em 1.2em;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.hero h1 em {
  color: var(--gold-light);
  font-style: italic;
}
.hero-desc {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}
.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
}
.hero-meta-item .dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

/* ── SECCIÓN GENÉRICA ── */
section { padding: 4rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.5rem;
}
.section-title {
  margin-bottom: 0.75rem;
}
.section-desc {
  font-size: 1.05rem;
  max-width: 600px;
  color: var(--text-mid);
  margin-bottom: 3rem;
}
.divider {
  width: 48px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 1rem 0 2rem;
}

/* ── TARJETAS DE HERRAMIENTA ── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.tool-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.tool-card.card-1::before { background: linear-gradient(90deg, var(--blue), var(--blue-light)); }
.tool-card.card-2::before { background: linear-gradient(90deg, var(--navy), var(--blue)); }
.tool-card.card-3::before { background: linear-gradient(90deg, var(--gold), var(--gold-light)); }

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.tool-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.tool-icon.icon-1 { background: var(--blue-pale); color: var(--blue); }
.tool-icon.icon-2 { background: rgba(26,58,82,0.08); color: var(--navy); }
.tool-icon.icon-3 { background: rgba(201,168,76,0.12); color: var(--gold); }

.tool-number {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
}
.tool-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--navy);
  margin: 0;
}
.tool-desc {
  color: var(--text-mid);
  font-size: 0.93rem;
  line-height: 1.6;
  flex: 1;
}
.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3em 0.8em;
  border-radius: 20px;
  letter-spacing: 0.04em;
}
.tag-blue  { background: var(--blue-pale); color: var(--blue); }
.tag-navy  { background: rgba(26,58,82,0.08); color: var(--navy-light); }
.tag-gold  { background: rgba(201,168,76,0.12); color: #8a6a20; }
.tag-green { background: rgba(34,139,80,0.1); color: #1a6b3a; }

/* ── BOTONES ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75em 1.6em;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover { background: var(--navy); transform: translateY(-1px); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: #0f2535; transform: translateY(-1px); }

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--blue);
  color: var(--blue);
}
.btn-outline:hover { background: var(--blue); color: var(--white); }

.btn-ghost {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover { background: rgba(255,255,255,0.2); }

.btn-lg { padding: 0.9em 2em; font-size: 1rem; border-radius: 10px; }
.btn-full { width: 100%; justify-content: center; }

/* ── FORMULARIOS ── */
.form-group {
  margin-bottom: 1.25rem;
}
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
.label-hint {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-light);
  margin-top: 0.15rem;
}
input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.7em 1em;
  transition: var(--transition);
  outline: none;
  resize: vertical;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(58,123,213,0.12);
}
input::placeholder, textarea::placeholder { color: var(--text-light); }

/* ── RADIO/CHECKBOX CUSTOM ── */
.radio-group, .check-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.radio-option, .check-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}
.radio-option:hover, .check-option:hover {
  border-color: var(--blue);
  background: var(--blue-pale);
}
.radio-option.selected, .check-option.selected {
  border-color: var(--blue);
  background: var(--blue-pale);
}
.radio-option input, .check-option input { display: none; }
.radio-custom, .check-custom {
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.check-custom { border-radius: 5px; }
.radio-option.selected .radio-custom,
.check-option.selected .check-custom {
  border-color: var(--blue);
  background: var(--blue);
}
.radio-custom::after {
  content: '';
  width: 8px; height: 8px;
  background: white;
  border-radius: 50%;
  opacity: 0;
  transition: var(--transition);
}
.radio-option.selected .radio-custom::after { opacity: 1; }
.check-custom::after {
  content: '✓';
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0;
  transition: var(--transition);
}
.check-option.selected .check-custom::after { opacity: 1; }
.option-text { font-size: 0.9rem; color: var(--text-dark); line-height: 1.4; }
.option-sub  { font-size: 0.78rem; color: var(--text-light); margin-top: 0.15rem; }

/* ── STEPPER ── */
.stepper {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  min-width: 80px;
  position: relative;
}
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 16px;
  left: calc(50% + 16px);
  right: calc(-50% + 16px);
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.step.done:not(:last-child)::after,
.step.active:not(:last-child)::after {
  background: var(--blue);
}
.step-circle {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-light);
  position: relative;
  z-index: 1;
  transition: var(--transition);
}
.step.done .step-circle  { background: var(--blue); border-color: var(--blue); color: white; }
.step.active .step-circle { background: var(--white); border-color: var(--blue); color: var(--blue); box-shadow: 0 0 0 4px rgba(58,123,213,0.12); }
.step-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  text-align: center;
}
.step.active .step-label { color: var(--blue); }
.step.done  .step-label  { color: var(--text-mid); }

/* ── PROGRESS BAR ── */
.progress-bar-wrap {
  background: var(--border);
  height: 5px;
  border-radius: 10px;
  margin-bottom: 2rem;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  border-radius: 10px;
  transition: width 0.5s ease;
}

/* ── RESULTADO / RESULTADO CARD ── */
.result-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  border: 1px solid var(--border);
}
.result-header {
  background: var(--navy);
  color: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}
.result-header::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 80px;
  background: rgba(201,168,76,0.15);
}
.result-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3em 0.9em;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}
.result-title {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}
.result-sub {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}
.result-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.result-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.result-section h4 {
  color: var(--navy);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.result-section h4 .icon { font-size: 1rem; }
.result-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.result-list li {
  font-size: 0.9rem;
  color: var(--text-mid);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.result-list li::before {
  content: '→';
  color: var(--blue);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05em;
}

/* ── ALERT / INFO BOX ── */
.info-box {
  background: var(--blue-pale);
  border-left: 4px solid var(--blue);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.info-box p { color: var(--navy); font-size: 0.9rem; margin: 0; }

.warning-box {
  background: rgba(201,168,76,0.1);
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.warning-box p { color: #6b4e1a; font-size: 0.9rem; margin: 0; }

/* ── FOOTER ── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 2.5rem 2rem;
  font-size: 0.85rem;
}
.site-footer strong { color: var(--gold-light); font-weight: 600; }
.site-footer a { color: var(--gold-light); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ── PÁGINA INTERIOR ── */
.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page-content {
  flex: 1;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
  padding: 3rem 2rem;
}
.page-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--blue);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 2rem;
  transition: var(--transition);
}
.page-back:hover { gap: 0.75rem; }

.page-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.page-header .tool-icon-lg {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}
.page-header .tool-icon-lg.icon-1 { background: var(--blue-pale); }
.page-header .tool-icon-lg.icon-2 { background: rgba(26,58,82,0.08); }
.page-header .tool-icon-lg.icon-3 { background: rgba(201,168,76,0.12); }

/* ── UTILITY ── */
.hidden      { display: none !important; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex-gap { display: flex; gap: 1rem; flex-wrap: wrap; }
.flex-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero { padding: 3.5rem 1.25rem 3rem; }
  section { padding: 3rem 1.25rem; }
  .page-content { padding: 2rem 1.25rem; }
  .tools-grid { grid-template-columns: 1fr; }
  .stepper { gap: 0; }
  .step-label { font-size: 0.6rem; }
  .result-card { padding: 1.5rem; }
}
@media (max-width: 480px) {
  .header-inner { height: 60px; }
  .header-badge { display: none; }
  h1 { font-size: 1.75rem; }
  .btn-lg { padding: 0.8em 1.5em; font-size: 0.95rem; }
}

/* ── ANIMACIONES ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up {
  animation: fadeUp 0.5s ease both;
}
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }

/* ── ONE PAGE CANVAS ── */
.canvas-grid {
  display: grid;
  gap: 1rem;
}
.canvas-block {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: var(--transition);
}
.canvas-block:hover { border-color: var(--blue); }
.canvas-block.active { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(58,123,213,0.1); }
.canvas-block-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}
.canvas-block-num {
  width: 24px; height: 24px;
  background: var(--navy);
  color: white;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.canvas-block-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.canvas-block textarea {
  min-height: 70px;
  font-size: 0.88rem;
}

/* ── SCORE BAR ── */
.score-bar-wrap { margin-top: 0.5rem; }
.score-bar-label { font-size: 0.75rem; color: var(--text-light); margin-bottom: 0.25rem; display: flex; justify-content: space-between; }
.score-bar-bg { background: var(--border); height: 8px; border-radius: 10px; overflow: hidden; }
.score-bar-fill { height: 100%; border-radius: 10px; transition: width 1s ease; }

/* ── PRINT ── */
@media print {
  .site-header, .site-footer, .page-back, .btn, .stepper, .progress-bar-wrap { display: none !important; }
  body { background: white; }
  .page-content { max-width: 100%; padding: 0; }
  .canvas-block { break-inside: avoid; border: 1px solid #ccc; }
}
