/* ============ RESET / BASE ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: #1a1a1a;
  background: white;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
:root {
  --accent: #20B8A8;
  --accent-light: #5BCDC0;
  --accent-bg: #E0F6F2;
  --text: #1a1a1a;
  --text-dim: #5a5a5a;
  --border: #e8e8e4;
  --bg-light: #fafafa;
  --bg-dark: #1a1a1a;
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  color: var(--text);
}
.nav-logo img { height: 32px; width: auto; display: block; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links .nav-cta {
  background: var(--accent);
  color: white;
  padding: 9px 18px;
  border-radius: 22px;
  font-weight: 600;
}
.nav-links .nav-cta:hover { background: #168F82; color: white; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: space-around;
  padding: 7px 4px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: white;
  background: #0a0a0a;
}
.hero-img {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.92;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(105deg, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.55) 50%, rgba(10,10,10,0.30) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 80px 32px;
  width: 100%;
}
.hero-label {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-light);
  font-weight: 700;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  max-width: 820px;
}
.hero-sub {
  font-size: clamp(16px, 1.6vw, 21px);
  color: rgba(255,255,255,0.82);
  max-width: 700px;
  line-height: 1.55;
  margin-bottom: 42px;
  font-weight: 400;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: white;
  color: var(--text);
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: all 0.25s;
}
.hero-cta:hover { background: var(--accent); color: white; transform: translateY(-1px); }
.hero-cta svg { transition: transform 0.25s; }
.hero-cta:hover svg { transform: translateY(3px); }

/* ============ SECTIONS ============ */
.section { padding: 96px 0; }
.section-light { background: white; }
.section-dark { background: var(--bg-dark); color: white; }
.section-head { margin-bottom: 52px; max-width: 920px; }
.section-label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}
.section-dark .section-label { color: var(--accent-light); }
.section-head h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 600;
  letter-spacing: -0.8px;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.55;
  max-width: 720px;
}
.section-dark .section-desc { color: rgba(255,255,255,0.7); }

/* ============ SISTEMA ============ */
.intro-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: start;
}
.intro-text p { font-size: 16px; line-height: 1.7; color: var(--text); margin-bottom: 18px; }
.intro-text .lead { font-size: 19px; font-weight: 500; color: var(--text); line-height: 1.55; }
.aplicaciones-box {
  background: var(--accent-bg);
  border-left: 3px solid var(--accent);
  padding: 28px 30px;
  border-radius: 0 4px 4px 0;
}
.apl-title {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 16px;
}
.apl-list { list-style: none; }
.apl-list li {
  font-size: 14.5px;
  line-height: 1.5;
  padding: 8px 0 8px 18px;
  position: relative;
  border-top: 1px solid rgba(32,184,168,0.12);
}
.apl-list li:first-child { border-top: none; }
.apl-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

/* ============ TIPOLOGÍAS ============ */
.tipo-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.tipo-tab {
  background: white;
  border: 1px solid var(--border);
  padding: 16px 24px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: inherit;
  min-width: 160px;
}
.tipo-tab .tt-area {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.tipo-tab .tt-name {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}
.tipo-tab:hover { border-color: var(--accent); }
.tipo-tab.active {
  background: var(--accent);
  border-color: var(--accent);
}
.tipo-tab.active .tt-area,
.tipo-tab.active .tt-name { color: white; }
.tipo-panel { display: none; }
.tipo-panel.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.tipo-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
}
.tipo-plano {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 460px;
}
.tipo-plano img { max-height: 420px; width: auto; }
.tipo-cap {
  position: absolute;
  bottom: 12px;
  left: 18px;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}
.tipo-imgs {
  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 12px;
}
.tipo-img {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-light);
  cursor: pointer;
  transition: transform 0.2s;
}
.tipo-img:hover { transform: scale(1.02); }
.tipo-img img { width: 100%; height: 100%; object-fit: cover; }
.tipo-img span {
  position: absolute;
  bottom: 8px;
  left: 10px;
  background: rgba(0,0,0,0.72);
  color: white;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 2px;
}
.tipo-programa {
  background: var(--bg-light);
  border-radius: 4px;
  padding: 16px 22px;
  font-size: 14px;
  color: var(--text-dim);
}
.tipo-programa strong {
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 11px;
  margin-right: 14px;
  font-weight: 700;
}

/* ============ FICHA TÉCNICA ============ */
.ficha-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
}
.ficha-axono {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px;
}
.ficha-axono svg { width: 100%; height: auto; }
.ficha-legend { display: flex; flex-direction: column; gap: 4px; }
.ficha-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.ficha-item:last-child { border-bottom: none; }
.ficha-num {
  flex: 0 0 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ficha-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.ficha-text p { font-size: 13.5px; color: var(--text-dim); line-height: 1.5; }
.ficha-footnote {
  margin-top: 32px;
  font-size: 12px;
  color: var(--text-dim);
  font-style: italic;
  padding: 16px 20px;
  background: var(--bg-light);
  border-radius: 4px;
  line-height: 1.55;
}
.ficha-footnote strong { color: var(--text); font-style: normal; font-weight: 600; }

/* ============ COMPARATIVA ============ */
.comp-table-wrap { overflow-x: auto; margin-bottom: 18px; }
.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  overflow: hidden;
}
.comp-table th, .comp-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.comp-table thead th {
  background: rgba(255,255,255,0.06);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  vertical-align: top;
}
.comp-table th.highlight { background: var(--accent); color: white; }
.comp-table td.metric { font-weight: 600; color: rgba(255,255,255,0.92); font-size: 13px; }
.comp-table td { color: rgba(255,255,255,0.72); }
.comp-table td.highlight {
  background: rgba(32,184,168,0.25);
  color: white;
  font-weight: 600;
}
.comp-foot {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  font-style: italic;
  line-height: 1.5;
}

/* ============ ATRIBUTOS ============ */
.atrib-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.atrib-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 22px 20px;
  transition: all 0.2s;
}
.atrib-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}
.atrib-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}
.atrib-card h4 {
  font-size: 15.5px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.25;
}
.atrib-card ul { list-style: none; }
.atrib-card li {
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.45;
  padding: 4px 0 4px 12px;
  position: relative;
}
.atrib-card li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
  font-size: 16px;
  line-height: 1;
  top: 4px;
}

/* ============ CRONOGRAMA ============ */
.crono-list {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-bottom: 36px;
  position: relative;
}
.crono-list::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent) 10%, var(--accent) 90%, transparent);
  z-index: 0;
}
.crono-item {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 60px;
}
.crono-item::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  background: white;
  border: 3px solid var(--accent);
  border-radius: 50%;
  z-index: 2;
}
.crono-day {
  font-size: 10.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 6px;
}
.crono-item h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.25;
}
.crono-item p {
  font-size: 11.5px;
  color: var(--text-dim);
  line-height: 1.45;
}
.crono-strip {
  background: var(--accent);
  color: white;
  padding: 22px 32px;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.crono-strip span {
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.92;
}
.crono-strip strong {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

/* ============ CIERRE / CTA ============ */
.section-cta {
  background: linear-gradient(135deg, var(--bg-dark), #2a3a4a);
  color: white;
  padding: 112px 0;
}
.cta-content { max-width: 820px; }
.cta-label {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-light);
  font-weight: 700;
  margin-bottom: 18px;
}
.section-cta h2 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.05;
  margin-bottom: 26px;
}
.section-cta h2 span { color: var(--accent-light); }
.cta-text {
  font-size: 17px;
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
  margin-bottom: 38px;
}
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 16px 30px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: all 0.25s;
}
.btn-primary { background: white; color: var(--text); }
.btn-primary:hover { background: var(--accent-light); color: white; }
.btn-secondary { background: transparent; color: rgba(255,255,255,0.85); border: 1px solid rgba(255,255,255,0.25); }
.btn-secondary:hover { border-color: white; color: white; }

/* ============ FOOTER ============ */
.footer {
  background: #0f0f0f;
  color: rgba(255,255,255,0.55);
  padding: 56px 0 28px;
  font-size: 13px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand {
  display: flex;
  align-items: center;
}
.footer-brand img {
  height: 40px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.footer-info { text-align: right; line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.4);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: white;
    padding: 20px 32px;
    border-bottom: 1px solid var(--border);
    gap: 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-links .nav-cta { align-self: flex-start; padding: 10px 20px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .hero { min-height: 78vh; }
  .hero-content { padding: 60px 32px; }
  .intro-grid, .tipo-grid, .ficha-grid { grid-template-columns: 1fr; gap: 28px; }
  .tipo-plano { min-height: 280px; padding: 18px; }
  .tipo-plano img { max-height: 240px; }
  .tipo-imgs {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr;
    gap: 8px;
    height: 160px;
  }
  .atrib-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .crono-list { grid-template-columns: 1fr; gap: 14px; }
  .crono-list::before { display: none; }
  .crono-item { padding-top: 0; padding-left: 28px; text-align: left; }
  .crono-item::before { top: 4px; left: 0; transform: none; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
  .footer-info { text-align: left; }
  .comp-table { font-size: 11.5px; }
  .comp-table th, .comp-table td { padding: 10px 12px; }
  .ficha-axono { padding: 18px; }
}

@media (max-width: 640px) {
  .container, .hero-content, .nav-inner { padding-left: 20px; padding-right: 20px; }
  .section { padding: 56px 0; }
  .atrib-grid { grid-template-columns: 1fr; }
  .crono-strip { flex-direction: column; gap: 10px; align-items: flex-start; padding: 18px 22px; }
  .crono-strip strong { font-size: 26px; }
  .tipo-tab { min-width: auto; flex: 1; padding: 14px 14px; }
  .tipo-tab .tt-area { font-size: 18px; }
  .tipo-tab .tt-name { font-size: 11px; }
  .tipo-imgs {
    grid-template-columns: 1fr;
    grid-template-rows: 160px 160px 160px;
    height: auto;
    gap: 10px;
  }
  .tipo-programa { font-size: 12.5px; padding: 14px 18px; }
  .tipo-programa strong { display: block; margin-bottom: 4px; }
  .hero { min-height: 70vh; }
  .hero h1 { font-size: 36px !important; line-height: 1.1; }
  .hero-sub { font-size: 15px; margin-bottom: 32px; }
  .hero-cta { padding: 14px 22px; font-size: 13px; }
  .section-head h2 { font-size: 26px; }
  .cta-actions { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; text-align: center; }
  .nav-logo img { height: 28px; }
  .footer-info { text-align: left; }
  .ficha-item { padding: 12px 0; }
  .ficha-num { flex: 0 0 26px; height: 26px; font-size: 12px; }
  .ficha-name { font-size: 14px; }
  .ficha-text p { font-size: 12.5px; }
}

/* ============ FADE-IN ON SCROLL ============ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
