@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-pure: #ffffff;
  --bg-block: #f8fafc;
  --bg-block-alt: #f1f5f9;
  
  /* Palette */
  --accent-mint: #00df89;
  --accent-mint-bright: #00ff9d;
  --accent-mint-light: rgba(0, 223, 137, 0.08);
  --accent-mint-light-hover: rgba(0, 223, 137, 0.15);
  --accent-mint-muted: rgba(0, 223, 137, 0.25);
  --accent-dark: #064e3b;
  --accent-dark-hover: #04382a;
  --accent-dark-light: #0d5e49;
  --accent-dark-rgb: 6, 78, 59;
  
  /* Typography Colors */
  --text-title: #064e3b;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-white: #ffffff;
  
  /* Fonts & Animations */
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --border-radius: 16px;
  --border-radius-sm: 8px;
  --border-radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(6, 78, 59, 0.04);
  --shadow-md: 0 12px 24px rgba(6, 78, 59, 0.06);
  --shadow-lg: 0 20px 40px rgba(6, 78, 59, 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-pure);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Base Styles & Utility Classes */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

section {
  width: 100%;
  position: relative;
  padding: 6rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Subtle Geometric Pattern for Hero Section */
.pattern-bg {
  background-image: 
    radial-gradient(var(--accent-mint-light) 2px, transparent 2px), 
    radial-gradient(var(--accent-mint-light) 2px, var(--bg-pure) 2px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  position: relative;
}

.pattern-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 100%);
  z-index: 1;
}

/* Header */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-logo img {
  height: 50px;
  object-fit: contain;
}

.header-badge {
  background-color: var(--accent-dark);
  color: var(--accent-mint);
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--accent-mint-muted);
  box-shadow: var(--shadow-sm);
}

/* 1. Hero Section */
.hero-section {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-top: 8rem;
  padding-bottom: 5rem;
  border-bottom: 1px solid var(--bg-block-alt);
}

.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-pretitle {
  color: var(--accent-mint);
  background-color: var(--accent-mint-light);
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-block;
  margin-bottom: 2rem;
  border: 1px solid rgba(0, 223, 137, 0.2);
  animation: pulse-border 2s infinite;
}

.hero-title {
  font-size: 4rem;
  color: var(--text-title);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-weight: 800;
}

.hero-title span {
  position: relative;
  display: inline-block;
}

.hero-title span::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 100%;
  height: 8px;
  background-color: var(--accent-mint);
  z-index: -1;
  border-radius: 4px;
  opacity: 0.8;
}

.hero-subtitle {
  font-size: 1.6rem;
  color: var(--text-body);
  max-width: 800px;
  margin: 0 auto 3rem auto;
  font-weight: 400;
  line-height: 1.5;
}

.hero-accent-lines {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 2rem;
}

.hero-accent-lines span {
  display: block;
  height: 5px;
  border-radius: 3px;
  background-color: var(--accent-mint);
}

.hero-accent-lines span:nth-child(1) { width: 40px; }
.hero-accent-lines span:nth-child(2) { width: 80px; background-color: var(--accent-dark); }
.hero-accent-lines span:nth-child(3) { width: 40px; }

/* 2. Identidad y Visión Section */
.vision-section {
  background-color: var(--bg-block);
  border-bottom: 1px solid var(--bg-block-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-pretitle {
  color: var(--accent-dark);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  color: var(--text-title);
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--accent-mint);
  border-radius: 2px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.vision-card {
  background: var(--bg-pure);
  border-radius: var(--border-radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
  border-top: 5px solid var(--accent-mint);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.vision-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-mint-light) 0%, rgba(255,255,255,0) 100%);
  opacity: 0;
  transition: var(--transition);
  z-index: 1;
}

.vision-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--accent-dark);
}

.vision-card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--accent-mint-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent-dark);
  font-size: 1.5rem;
  position: relative;
  z-index: 2;
  transition: var(--transition);
}

.vision-card:hover .card-icon {
  background-color: var(--accent-dark);
  color: var(--accent-mint);
}

.card-title {
  font-size: 1.35rem;
  color: var(--text-title);
  margin-bottom: 1rem;
  font-weight: 700;
  position: relative;
  z-index: 2;
}

.card-description {
  font-size: 1.05rem;
  color: var(--text-body);
  position: relative;
  z-index: 2;
}

/* 3. Protocolo de Requerimientos */
.protocol-section {
  background-color: var(--bg-pure);
  border-bottom: 1px solid var(--bg-block-alt);
}

.protocol-box {
  background-color: var(--bg-block);
  border-radius: var(--border-radius-lg);
  padding: 4rem;
  box-shadow: var(--shadow-md);
  border: 1px solid #edf2f7;
}

.protocol-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.protocol-title-group {
  max-width: 700px;
}

.protocol-stats {
  background: var(--accent-dark);
  color: var(--text-white);
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  min-width: 220px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 223, 137, 0.2);
}

.stats-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-mint);
  line-height: 1;
}

.stats-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-top: 0.25rem;
}

.progress-container {
  width: 100%;
  margin-top: 1rem;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background-color: var(--accent-mint);
  border-radius: 4px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.requirements-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.req-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background-color: var(--bg-pure);
  border-radius: var(--border-radius);
  padding: 1.75rem 2rem;
  border: 2px solid #e2e8f0;
  cursor: pointer;
  transition: var(--transition);
}

.req-item:hover {
  border-color: var(--accent-mint);
  background-color: var(--accent-mint-light);
  transform: translateX(5px);
}

.req-checkbox-wrapper {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  margin-top: 2px;
}

.req-checkbox-wrapper input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.custom-checkbox {
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  background-color: var(--bg-pure);
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.req-item:hover .custom-checkbox {
  border-color: var(--accent-mint);
}

.req-checkbox-wrapper input[type="checkbox"]:checked + .custom-checkbox {
  background-color: var(--accent-mint);
  border-color: var(--accent-mint);
  box-shadow: 0 0 10px rgba(0, 223, 137, 0.4);
}

.custom-checkbox svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent-dark);
  stroke-width: 3px;
  fill: none;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  transition: var(--transition);
}

.req-checkbox-wrapper input[type="checkbox"]:checked + .custom-checkbox svg {
  stroke-dashoffset: 0;
}

.req-content {
  flex-grow: 1;
}

.req-text {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-body);
  transition: var(--transition-fast);
}

.req-checkbox-wrapper input[type="checkbox"]:checked ~ .req-content .req-text {
  text-decoration: line-through;
  color: var(--text-muted);
}

.req-item.checked-item {
  border-color: rgba(0, 223, 137, 0.4);
  background-color: rgba(0, 223, 137, 0.02);
}

/* 4. Matriz de Frecuencias */
.matrix-section {
  background-color: var(--bg-block);
  border-bottom: 1px solid var(--bg-block-alt);
}

.matrix-card {
  background: var(--bg-pure);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid #edf2f7;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.matrix-table th {
  background-color: var(--accent-dark);
  color: var(--text-white);
  padding: 1.5rem 2rem;
  font-weight: 600;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.matrix-table td {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
  font-size: 1.2rem;
}

.matrix-table tr:last-child td {
  border-bottom: none;
}

.matrix-table tr {
  transition: var(--transition-fast);
}

.matrix-table tr:hover {
  background-color: var(--bg-block);
}

.discipline-cell {
  font-weight: 700;
  color: var(--text-title);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.discipline-icon {
  width: 40px;
  height: 40px;
  background-color: var(--accent-mint-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
  font-size: 1.1rem;
}

.controls-cell {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.input-num-wrapper {
  display: flex;
  align-items: center;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--bg-pure);
  transition: var(--transition-fast);
}

.input-num-wrapper:focus-within {
  border-color: var(--accent-mint);
  box-shadow: 0 0 0 3px var(--accent-mint-light);
}

.btn-qty {
  background: var(--bg-block);
  border: none;
  width: 38px;
  height: 38px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-body);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.btn-qty:hover {
  background-color: var(--accent-mint-light);
  color: var(--accent-dark);
}

.input-number {
  width: 50px;
  height: 38px;
  border: none;
  text-align: center;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-dark);
  -moz-appearance: textfield;
}

.input-number::-webkit-outer-spin-button,
.input-number::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.input-number:focus {
  outline: none;
}

.select-wrapper {
  position: relative;
  display: inline-block;
}

.select-time {
  padding: 0.5rem 2.5rem 0.5rem 1.2rem;
  height: 42px;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  background-color: var(--bg-pure);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: var(--transition-fast);
}

.select-time:focus {
  outline: none;
  border-color: var(--accent-mint);
  box-shadow: 0 0 0 3px var(--accent-mint-light);
}

.select-wrapper::after {
  content: '▼';
  font-size: 0.7rem;
  color: var(--text-muted);
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.matrix-footer {
  padding: 2.5rem;
  background-color: var(--bg-block);
  border-top: 1px solid #edf2f7;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.info-box {
  background-color: #e6fcf3;
  border-left: 5px solid var(--accent-mint);
  border-radius: 8px;
  padding: 1.25rem 1.75rem;
  flex: 1;
  min-width: 300px;
}

.info-text {
  font-size: 1.1rem;
  color: var(--accent-dark);
  font-weight: 500;
  line-height: 1.5;
}

.btn-save {
  background-color: var(--accent-mint);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 1.2rem;
  padding: 1.2rem 2.5rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 223, 137, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-save:hover {
  background-color: var(--accent-mint-bright);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 223, 137, 0.4);
}

.btn-save:active {
  transform: translateY(-1px);
}

/* 5. Programa de Atención Integral */
.flowchart-section {
  background-color: var(--bg-pure);
  border-bottom: 1px solid var(--bg-block-alt);
}

.flow-container {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  margin-top: 3rem;
  position: relative;
  gap: 1rem;
}

.flow-step-card {
  background: var(--bg-block);
  border-radius: var(--border-radius);
  padding: 2.5rem 1.75rem;
  flex: 1;
  text-align: center;
  position: relative;
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flow-step-card:hover {
  background-color: var(--bg-pure);
  border-color: var(--accent-mint);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.step-badge {
  background-color: var(--accent-dark);
  color: var(--accent-mint);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.flow-step-card:hover .step-badge {
  background-color: var(--accent-mint);
  color: var(--accent-dark);
  transform: scale(1.1);
}

.step-title {
  font-size: 1.3rem;
  color: var(--text-title);
  margin-bottom: 1rem;
  font-weight: 700;
}

.step-desc {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.5;
}

.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-mint);
  font-size: 2.5rem;
  width: 50px;
  animation: float-arrow 2s infinite ease-in-out;
  flex-shrink: 0;
}

.flow-arrow:nth-child(even) {
  animation-delay: 0.5s;
}

/* 6. Compromiso de Crecimiento */
.growth-section {
  background-color: #022c22; /* High impact deep bottle green */
  color: var(--text-white);
  padding: 7rem 2rem;
  overflow: hidden;
  position: relative;
}

.growth-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 10% 20%, rgba(0, 223, 137, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 223, 137, 0.1) 0%, transparent 50%);
  z-index: 1;
}

.growth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.growth-info {
  max-width: 600px;
}

.growth-badge {
  background-color: rgba(0, 223, 137, 0.15);
  color: var(--accent-mint);
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 223, 137, 0.3);
}

.growth-title {
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text-white);
}

.growth-title span {
  color: var(--accent-mint);
}

.growth-description {
  font-size: 1.25rem;
  line-height: 1.6;
  color: #a7f3d0;
  margin-bottom: 2rem;
}

.growth-bullets {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.growth-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 1.15rem;
  line-height: 1.5;
}

.growth-bullet-icon {
  color: var(--accent-mint);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* WhatsApp Chat Mockup Styles (Purely Informational) */
.growth-chat-mockup {
  background-color: #0b141a; /* WhatsApp dark mode chat background */
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 460px;
  position: relative;
  width: 100%;
}

.growth-chat-mockup .chat-header {
  background-color: #202c33;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.growth-chat-mockup .chat-avatar {
  background-color: #25d366; /* WhatsApp Green */
  color: var(--text-white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.growth-chat-mockup .chat-avatar svg {
  width: 22px;
  height: 22px;
}

.growth-chat-mockup .chat-status {
  display: flex;
  flex-direction: column;
}

.growth-chat-mockup .chat-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e9edef;
  line-height: 1.2;
}

.growth-chat-mockup .chat-online {
  font-size: 0.8rem;
  color: #8696a0;
  font-weight: 400;
}

.chat-messages-container {
  flex-grow: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background-color: #0b141a;
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 0),
    radial-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 0);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
}

.chat-msg {
  max-width: 85%;
  padding: 0.8rem 1.1rem;
  border-radius: 12px;
  position: relative;
  font-size: 1rem;
  line-height: 1.45;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.chat-msg-professional {
  background-color: #202c33; /* Dark gray WhatsApp bubble */
  color: #e9edef;
  align-self: flex-start;
  border-top-left-radius: 0;
}

.chat-msg-coordinator {
  background-color: #005c4b; /* Dark green WhatsApp bubble */
  color: #e9edef;
  align-self: flex-end;
  border-top-right-radius: 0;
}

.chat-msg-sender {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--accent-mint);
  letter-spacing: 0.02em;
}

.chat-msg-coordinator .chat-msg-sender {
  color: var(--accent-mint-bright);
}

.chat-msg-text {
  word-break: break-word;
}

.chat-msg-time {
  font-size: 0.75rem;
  color: #8696a0;
  text-align: right;
  margin-top: 0.35rem;
}

.chat-input-bar {
  background-color: #202c33;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-input-placeholder {
  color: #8696a0;
  font-size: 1rem;
  font-weight: 400;
}

.chat-send-icon {
  color: #8696a0;
  font-size: 1.2rem;
  cursor: default;
}

/* 7. Footer / Conclusión */
.footer-section {
  background-color: var(--bg-pure);
  padding: 5rem 2rem;
  border-top: 1px solid var(--bg-block-alt);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-logo {
  height: 60px;
  object-fit: contain;
}

.footer-phrase {
  font-size: 1.8rem;
  color: var(--text-title);
  font-weight: 700;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.4;
}

.footer-phrase span {
  color: var(--accent-mint);
}

.footer-copyright {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Notifications (Toast) */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.toast {
  background-color: var(--accent-dark);
  color: var(--text-white);
  padding: 1.25rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--accent-mint);
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 320px;
  max-width: 450px;
  font-size: 1.05rem;
  font-weight: 500;
  animation: slide-in-right 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.toast-icon {
  color: var(--accent-mint);
  font-size: 1.5rem;
}

.toast-close {
  margin-left: auto;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.toast-close:hover {
  color: var(--text-white);
}

/* Animations */
@keyframes pulse-border {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 223, 137, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 223, 137, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 223, 137, 0);
  }
}

@keyframes float-arrow {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(6px);
  }
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-out {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Responsive & Projection Mode (Fullscreen adjustments) */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 3.2rem;
  }
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .flow-container {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .flow-arrow {
    transform: rotate(90deg);
    animation: float-arrow-vertical 2s infinite ease-in-out;
  }
  .growth-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@keyframes float-arrow-vertical {
  0%, 100% {
    transform: rotate(90deg) translateX(0);
  }
  50% {
    transform: rotate(90deg) translateX(6px);
  }
}

@media (max-width: 768px) {
  section {
    padding: 4rem 1rem;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1.25rem;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .protocol-box {
    padding: 2rem 1.25rem;
  }
  .protocol-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .protocol-stats {
    width: 100%;
    min-width: 0;
  }
  .req-item {
    padding: 1.25rem 1rem;
    gap: 1rem;
  }
  .req-text {
    font-size: 1.05rem;
  }
  
  /* Matrix Table Mobile Stacking */
  .matrix-table, 
  .matrix-table tbody, 
  .matrix-table tr, 
  .matrix-table td {
    display: block;
    width: 100%;
  }
  
  .matrix-table thead {
    display: none;
  }
  
  .matrix-table tr {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
  }
  
  .matrix-table tr:last-child {
    border-bottom: none;
  }
  
  .matrix-table td {
    padding: 0.4rem 0;
    border: none;
  }
  
  .matrix-table tr:hover {
    background-color: transparent;
  }
  
  .discipline-cell {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.5rem;
  }
  
  .controls-cell {
    justify-content: flex-start;
    gap: 0.75rem;
    flex-wrap: wrap;
  }
  
  .input-num-wrapper, .select-time {
    height: 38px;
  }
  
  .select-time {
    padding: 0.4rem 2rem 0.4rem 0.8rem;
    font-size: 0.95rem;
  }
  
  .matrix-footer {
    padding: 1.5rem;
    flex-direction: column;
    align-items: stretch;
  }
  
  .info-box {
    padding: 1rem;
  }
  
  .btn-save {
    width: 100%;
    justify-content: center;
    padding: 1rem;
    font-size: 1.1rem;
  }
}
