/* ─────────────────────────────────────────────────────────────
   PTL Core · Reset + tipografía + secciones + cards + botones + animaciones
   Requiere: ptl-tokens.css cargado antes.
   Build: 2026-04-16-ptl-core-v1
   ───────────────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--ptl-font);
  background: var(--ptl-bg);
  color: var(--ptl-text);
  overflow-x: hidden;
  line-height: var(--ptl-leading);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: var(--ptl-font-base);
  text-rendering: optimizeLegibility;
}

img, svg, video, canvas { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }

::selection { background: var(--ptl-orange-ghost); color: var(--ptl-text); }

/* ─── Decoration blobs (bg ambiental sutil) ─── */
.blob-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.blob-bg::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -300px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.07) 0%, transparent 70%);
  border-radius: 50%;
}
.blob-bg::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.05) 0%, transparent 70%);
  border-radius: 50%;
}
.blob-mid {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* ─── Secciones base ─── */
section { position: relative; z-index: var(--ptl-z-content); }

.section-inner {
  max-width: var(--ptl-max);
  margin: 0 auto;
  padding: 0 var(--ptl-pad-x);
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--ptl-orange);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--ptl-text);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--ptl-muted);
  max-width: 560px;
  line-height: 1.7;
}

.section-header-center {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header-center .section-sub { margin: 0 auto; }
.section-header-center .section-eyebrow { justify-content: center; }

/* ─── Hero genérico ─── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.40) 60%, rgba(0, 0, 0, 0.65) 100%);
}

/* ─── Hero · Interior variant ──────────────────────────────
   Para páginas no-home (contact, about, investors, etc.).
   Fondo claro, altura reducida, texto oscuro, sin overlay. */
.hero--interior {
  height: auto;
  min-height: 0;
  padding: calc(var(--ptl-nav-h) + 5rem) 0 4rem;
  background: var(--ptl-surface);
  border-bottom: none;
}
.hero.hero--interior .hero-bg,
.hero.hero--interior .hero-bg::after { display: none; }
.hero.hero--interior .hero-content { padding-top: 0; }
.hero.hero--interior h1 {
  color: var(--ptl-text);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 1rem;
  max-width: none;
}
.hero.hero--interior h1 strong {
  font-weight: 900;
  color: var(--ptl-text);
}
.hero.hero--interior .hero-eyebrow {
  color: var(--ptl-orange);
  margin-bottom: 1rem;
}
.hero.hero--interior .hero-sub {
  color: var(--ptl-text-2);
  max-width: 640px;
}
.hero-content {
  position: relative;
  z-index: var(--ptl-z-content);
  max-width: var(--ptl-max);
  margin: 0 auto;
  padding: 0 var(--ptl-pad-x);
  padding-top: var(--ptl-nav-h);
  width: 100%;
}
.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--ptl-orange);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.5rem;
}
.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--ptl-orange);
  border-radius: 50%;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -1.5px;
  color: #fff;
  max-width: 780px;
  margin-bottom: 1.5rem;
}
.hero h1 strong {
  font-weight: 800;
  color: #fff;
}
.hero-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--ptl-z-content);
}
.hero-stats-inner {
  max-width: var(--ptl-max);
  margin: 0 auto;
  padding: 0 var(--ptl-pad-x) 2.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-stat {
  padding: 1.5rem 1rem 0;
  text-align: center;
}
.hero-stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1;
}
.hero-stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
  font-weight: 500;
}

/* ─── Botones ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 26px;
  border-radius: var(--ptl-r-pill);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--ptl-t-fast);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-orange {
  background: var(--ptl-orange);
  color: #fff;
  border-color: var(--ptl-orange);
}
.btn-orange:hover {
  background: var(--ptl-orange-hover);
  border-color: var(--ptl-orange-hover);
}
.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}
.btn-dark {
  background: var(--ptl-text);
  color: #fff;
  border-color: var(--ptl-text);
}
.btn-dark:hover {
  background: #333;
  border-color: #333;
}
.btn-outline-dark {
  background: transparent;
  color: var(--ptl-text);
  border-color: rgba(0, 0, 0, 0.25);
}
.btn-outline-dark:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.4);
}
.btn-ghost {
  background: transparent;
  color: var(--ptl-orange);
  border-color: transparent;
  padding: 13px 18px;
}
.btn-ghost:hover {
  background: var(--ptl-orange-ghost);
}

.badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: var(--ptl-r-badge);
  background: var(--ptl-orange-ghost);
  color: var(--ptl-orange);
  text-transform: uppercase;
  display: inline-block;
}

/* ─── Grids de sección ─── */
.eco-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.bento-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.bento-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.bento-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.ent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.sol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.bench-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-bottom: 2rem; }
.sectors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.deploy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.lifestyle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.hw-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
.patent-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 700px; margin: 2rem auto 0; }

/* ─── Cards genéricas ─── */
.eco-card, .ent-card, .hw-card {
  background: var(--ptl-surface-alt);
  border-radius: var(--ptl-rl);
  padding: 2rem;
  border: 1px solid var(--ptl-border);
  transition: box-shadow var(--ptl-t-base), transform var(--ptl-t-base);
  position: relative;
  overflow: hidden;
}
.eco-card:hover, .ent-card:hover, .hw-card:hover {
  box-shadow: var(--ptl-shadow-hover);
  transform: translateY(-3px);
}

.eco-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
}
.eco-card.cyan::before { background: var(--ptl-cyan); }
.eco-card.orange::before { background: var(--ptl-orange); }
.eco-card.purple::before { background: var(--ptl-purple); }
.eco-card.green::before { background: var(--ptl-green); }
.eco-card.blue::before { background: var(--ptl-blue); }

.eco-icon { width: 64px; height: 64px; object-fit: contain; margin-bottom: 1.25rem; }
.eco-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ptl-text);
  margin-bottom: 0.6rem;
  letter-spacing: -0.2px;
}
.eco-card p {
  font-size: 14px;
  color: var(--ptl-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.eco-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--ptl-orange);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--ptl-t-fast);
}
.eco-link:hover { gap: 8px; }

.bento-card, .sol-card, .sector-card, .deploy-step {
  background: var(--ptl-surface-alt);
  border-radius: var(--ptl-r);
  padding: 1.75rem;
  border: 1px solid var(--ptl-border);
  transition: box-shadow var(--ptl-t-base), transform var(--ptl-t-base);
}
.bento-card:hover, .sol-card:hover, .sector-card:hover, .deploy-step:hover {
  box-shadow: var(--ptl-shadow-hover);
  transform: translateY(-2px);
}
.bento-icon, .ent-icon, .sol-icon, .sector-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin-bottom: 1rem;
}
.sector-icon { margin: 0 auto 1rem; display: block; }
.sector-card { text-align: center; }

.bento-card h4, .sol-card h4, .sector-card h4, .deploy-step h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ptl-text);
  margin-bottom: 0.4rem;
}
.bento-card p, .sol-card p, .sector-card p, .deploy-step p {
  font-size: 13px;
  color: var(--ptl-muted);
  line-height: 1.6;
}

.ent-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ptl-text);
  margin-bottom: 0.6rem;
}
.ent-card p {
  font-size: 13px;
  color: var(--ptl-muted);
  line-height: 1.7;
}

/* ─── Benchmarks ─── */
.bench-card {
  background: var(--ptl-surface-alt);
  border-radius: var(--ptl-rl);
  padding: 2rem 1.75rem;
  border: 1px solid var(--ptl-border);
  text-align: center;
  border-top: 4px solid transparent;
  transition: box-shadow var(--ptl-t-base), transform var(--ptl-t-base);
}
.bench-card:hover {
  box-shadow: var(--ptl-shadow-hover);
  transform: translateY(-2px);
}
.bench-card.b-cyan { border-top-color: var(--ptl-cyan); }
.bench-card.b-green { border-top-color: var(--ptl-green); }
.bench-card.b-orange { border-top-color: var(--ptl-orange); }
.bench-card.b-purple { border-top-color: var(--ptl-purple); }
.bench-card.b-blue { border-top-color: var(--ptl-blue); }
.bench-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--ptl-text);
  letter-spacing: -1px;
  line-height: 1;
}
.bench-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ptl-muted);
  margin-top: 0.4rem;
}
.bench-sub {
  font-size: 12px;
  color: var(--ptl-orange);
  font-weight: 600;
  margin-top: 0.3rem;
}
.bench-meta {
  text-align: center;
  color: var(--ptl-muted);
  font-size: 13px;
  margin-bottom: 1.5rem;
}
.bench-cta { text-align: center; }

/* ─── Solution quote ─── */
.solution-body {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
  color: var(--ptl-text-2);
  line-height: 1.8;
  font-size: 1rem;
}
.solution-quote {
  text-align: center;
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 300;
  letter-spacing: -0.5px;
  color: var(--ptl-text);
  margin-bottom: 3.5rem;
  line-height: 1.3;
}

/* ─── Lifestyle tiles (imagen + overlay + texto) ─── */
.life-tile {
  position: relative;
  border-radius: var(--ptl-rl);
  overflow: hidden;
  min-height: 340px;
  cursor: pointer;
}
.life-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.life-tile:hover img { transform: scale(1.03); }
.life-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, transparent 55%);
  pointer-events: none;
}
.life-tile-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  z-index: var(--ptl-z-content);
}
.life-tile-text h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
  line-height: 1.3;
  margin-bottom: 0.35rem;
}
.life-tile-text p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

/* ─── Lake full-width (cinematográfico) ─── */
.lake-section {
  position: relative;
  height: 400px;
  overflow: hidden;
}
.lake-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lake-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.55));
  display: flex;
  align-items: center;
  justify-content: center;
}
.lake-text {
  color: #fff;
  font-size: clamp(1.3rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  text-align: center;
  max-width: 600px;
  padding: 0 var(--ptl-pad-x);
}

/* ─── Hardware specs card ─── */
.hw-tops {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--ptl-text);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.hw-tops span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ptl-muted);
}
.hw-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ptl-text);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.hw-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}
.hw-features li {
  font-size: 13px;
  color: var(--ptl-text-2);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.5;
}
.hw-features li::before {
  content: '✓';
  color: var(--ptl-green);
  font-weight: 700;
  flex-shrink: 0;
}
.hw-img {
  display: block;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  border-radius: var(--ptl-r);
  box-shadow: var(--ptl-shadow-hero);
}

/* ─── Patents ─── */
.patent-num {
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--ptl-text);
  letter-spacing: -2px;
  line-height: 1;
}
.patent-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ptl-muted);
  margin-top: 0.3rem;
}
.patent-sub {
  max-width: 500px;
  margin: 2rem auto 0;
  color: var(--ptl-muted);
  font-size: 0.95rem;
  text-align: center;
}

/* ─── Deploy steps ─── */
.step-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ptl-orange);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 0.75rem;
  opacity: 0.8;
}

/* ─── CTA section ─── */
.cta-inner { text-align: center; }
.cta-inner h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--ptl-text);
  margin-bottom: 1rem;
}
.cta-inner p {
  color: var(--ptl-muted);
  margin-bottom: 2rem;
  font-size: 1rem;
}
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.btn-text {
  font-size: 13px;
  color: var(--ptl-muted);
}
.btn-text a {
  color: var(--ptl-orange);
  text-decoration: none;
  font-weight: 600;
}
.btn-text a:hover { text-decoration: underline; }

/* ─── Padding patrones estándar de sección ─── */
.section-pad-y { padding: 5rem 0; }
.section-surface { background: var(--ptl-surface); }
.section-cta-bg {
  background: linear-gradient(
    135deg,
    rgba(249, 115, 22, 0.07) 0%,
    rgba(147, 51, 234, 0.05) 50%,
    rgba(59, 130, 246, 0.06) 100%
  );
}

/* ─── Animaciones (IntersectionObserver en ptl-anim.js) ─── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--ptl-t-slow) var(--ptl-ease), transform var(--ptl-t-slow) var(--ptl-ease);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up.delay-1 { transition-delay: 0.08s; }
.fade-up.delay-2 { transition-delay: 0.16s; }
.fade-up.delay-3 { transition-delay: 0.24s; }
.fade-up.delay-4 { transition-delay: 0.32s; }
.fade-up.delay-5 { transition-delay: 0.40s; }

/* Respetar prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .fade-up, .life-tile img, .eco-card, .ent-card, .hw-card,
  .bento-card, .sol-card, .sector-card, .deploy-step, .bench-card {
    transition: none !important;
  }
  .fade-up { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ─── Responsive breakpoints ─── */
@media (max-width: 1024px) {
  .eco-grid,
  .bento-4,
  .ent-grid,
  .sol-grid,
  .bench-grid,
  .sectors-grid,
  .deploy-grid,
  .hero-stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section-inner,
  .hero-content,
  .hero-stats-inner {
    padding-left: var(--ptl-pad-x-mobile);
    padding-right: var(--ptl-pad-x-mobile);
  }
  .lake-text { padding: 0 var(--ptl-pad-x-mobile); }
  .lifestyle-grid,
  .hw-grid {
    grid-template-columns: 1fr;
  }
  .section-pad-y { padding: 3.5rem 0; }
  .hero { min-height: 540px; }
  .lake-section { height: 320px; }
  .life-tile { min-height: 280px; }
}

@media (max-width: 600px) {
  .eco-grid,
  .bento-4,
  .bento-3,
  .bento-2,
  .ent-grid,
  .sol-grid,
  .deploy-grid {
    grid-template-columns: 1fr;
  }
  .bench-grid,
  .sectors-grid,
  .hero-stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .patent-nums { grid-template-columns: repeat(3, 1fr); }
  .patent-num { font-size: 3rem; letter-spacing: -1px; }
  .hero { min-height: 560px; }
  .hero h1 { letter-spacing: -1px; }
}

/* ─── Small phones (≤480px) ─── */
@media (max-width: 480px) {
  .bench-grid,
  .sectors-grid,
  .hero-stats-inner {
    grid-template-columns: 1fr;
  }
  .patent-nums {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .section-eyebrow,
  .hero-eyebrow {
    font-size: 12px;
  }
  .hero-stat-label,
  .bench-label,
  .bench-sub {
    font-size: 13px;
  }
  .badge {
    font-size: 11px;
    padding: 4px 10px;
  }
  .section-pad-y {
    padding: 2.5rem 0;
  }
  .hero {
    min-height: 480px;
  }
  .lake-section {
    height: 280px;
  }
  .life-tile {
    min-height: 260px;
  }
  .section-inner,
  .hero-content,
  .hero-stats-inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
