/* ============================================
   NIBLIO — Landing Page Styles
   Color palette inspired by the app:
   - Teal dark:    #2d6a5e / #458e87
   - Beige warm:   #f5efe6
   - Terracotta:   #c0472e / #8b3a2a
   - Text dark:    #1a1a1a
   ============================================ */

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

:root {
  --teal-900: #1a3d38;
  --teal-800: #2d6a5e;
  --teal-600: #458e87;
  --teal-400: #6dbdb5;
  --teal-100: #d1f0ec;
  --terra-700: #8b3a2a;
  --terra-500: #c0472e;
  --terra-300: #e07b66;
  --beige-100: #fdf8f3;
  --beige-200: #f5efe6;
  --beige-300: #ede5d8;
  --beige-400: #d9cdbf;
  --text-900: #1a1a1a;
  --text-700: #3d3d3d;
  --text-500: #6b6b6b;
  --text-300: #9a9a9a;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.18);
  --shadow-xl: 0 40px 100px rgba(0,0,0,0.25);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;
  --radius-pill: 999px;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-900);
  background-color: var(--beige-100);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ===== UTILITY ===== */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  background: var(--teal-100);
  color: var(--teal-800);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-900);
  margin-bottom: 16px;
}

.section-title em {
  font-style: italic;
  color: var(--teal-800);
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-500);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-800);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(45, 106, 94, 0.4);
}

.btn-primary:hover {
  background: var(--teal-900);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(45, 106, 94, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-700);
  font-size: 1rem;
  font-weight: 500;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--beige-400);
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: var(--teal-600);
  color: var(--teal-800);
  transform: translateY(-2px);
}

.btn-outline {
  display: block;
  text-align: center;
  background: transparent;
  color: var(--teal-800);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--teal-600);
  transition: var(--transition);
}

.btn-outline:hover {
  background: var(--teal-800);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-primary-light {
  display: block;
  text-align: center;
  background: var(--white);
  color: var(--teal-800);
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.btn-primary-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(253, 248, 243, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--beige-300);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--teal-800);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-700);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  background: var(--beige-200);
  color: var(--teal-800);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--teal-800);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(45,106,94,0.3);
}

.nav-cta:hover {
  background: var(--teal-900);
  transform: translateY(-1px);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-700);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px;
  background: rgba(253, 248, 243, 0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--beige-300);
}

.nav-mobile-menu.open {
  display: flex;
}

.mobile-nav-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-700);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.mobile-nav-link:hover {
  background: var(--beige-200);
  color: var(--teal-800);
}

.mobile-nav-cta {
  display: block;
  background: var(--teal-800);
  color: var(--white);
  font-weight: 600;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  text-align: center;
  margin-top: 8px;
  transition: var(--transition);
}

/* Language selector styles */
.nav-langs {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: 16px;
  border-left: 1px solid var(--beige-400);
  padding-left: 16px;
}

.nav-langs .lang-link,
.nav-langs .lang-active {
  display: flex;
  align-items: center;
  transition: var(--transition);
  cursor: pointer;
}

.nav-langs .lang-link {
  opacity: 0.55;
}

.nav-langs .lang-link:hover {
  opacity: 1;
  transform: translateY(-1px) scale(1.1);
}

.nav-langs .lang-active {
  opacity: 1;
  transform: scale(1.1);
  box-shadow: 0 0 0 2px var(--teal-800);
  border-radius: 3px;
  padding: 1px;
}

.nav-langs svg,
.mobile-nav-langs svg {
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  display: block;
}

.mobile-nav-langs {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 16px 0;
  margin-top: 16px;
  border-top: 1px solid var(--beige-300);
}

.mobile-nav-langs .lang-link,
.mobile-nav-langs .lang-active {
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.mobile-nav-langs .lang-link {
  opacity: 0.55;
}

.mobile-nav-langs .lang-link:hover {
  opacity: 1;
  transform: scale(1.1);
}

.mobile-nav-langs .lang-active {
  opacity: 1;
  transform: scale(1.1);
  box-shadow: 0 0 0 2px var(--teal-800);
  border-radius: 3px;
  padding: 1px;
}

.mobile-nav-cta:hover {
  background: var(--teal-900);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--beige-100) 0%, var(--beige-200) 50%, #e8f4f2 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
}

.hero-bg-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: orbFloat 8s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--teal-400), transparent);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--terra-300), transparent);
  bottom: -100px;
  left: -100px;
  animation-delay: 3s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--beige-400), transparent);
  top: 30%;
  left: 20%;
  animation-delay: 6s;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 560px;
}

.hero-logo-display {
  margin-bottom: 28px;
  text-align: center;
  animation: logoPop 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.hero-logo-big {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
}

@keyframes logoPop {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text-900);
  margin-bottom: 24px;
  animation: fadeInUp 0.8s 0.1s ease both;
}

.hero-title-accent {
  color: var(--teal-800);
  font-style: italic;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-500);
  line-height: 1.7;
  margin-bottom: 36px;
  animation: fadeInUp 0.8s 0.2s ease both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: fadeInUp 0.8s 0.3s ease both;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  animation: fadeInUp 0.8s 0.4s ease both;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--teal-800);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-300);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--beige-400);
}

/* Phone mockups in hero */
.hero-phones {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 600px;
  animation: fadeInRight 1s 0.2s ease both;
}

.phone-mockup {
  position: absolute;
  width: 240px;
}

.phone-mockup .pixel-phone {
  --phone-radius: 28px;
  --screen-radius: 22px;
  --phone-padding: 6px;
}

.phone-front {
  right: 0;
  bottom: 0;
  z-index: 2;
  animation: phoneFloat 6s ease-in-out infinite;
}

.phone-back {
  left: 0;
  top: 0;
  z-index: 1;
  animation: phoneFloat 6s 2s ease-in-out infinite;
  transform: rotate(-6deg);
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(0deg); }
}

.phone-back {
  animation: phoneFloatBack 6s 2s ease-in-out infinite;
}

@keyframes phoneFloatBack {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-10px) rotate(-6deg); }
}

/* ===== GOOGLE PIXEL 9 MOCKUP SYSTEM ===== */
.pixel-phone {
  --phone-radius: 40px;
  --screen-radius: 32px;
  --phone-padding: 8px;
  position: relative;
  background: #181818; /* Cuerpo oscuro mate */
  border-radius: var(--phone-radius); /* Bordes muy redondeados del Pixel 9 */
  padding: var(--phone-padding); /* Bisel/borde de pantalla fino */
  box-shadow: 
    0 0 0 1px #0e0e0e,
    0 0 0 3px #444, /* Borde de metal */
    var(--shadow-lg);
  display: block;
  width: 100%;
  box-sizing: border-box;
}

/* Speaker superior del Pixel */
.pixel-phone::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 35px;
  height: 2px;
  background: #2a2a2a;
  border-radius: 2px;
  z-index: 15;
}

.pixel-screen {
  position: relative;
  border-radius: var(--screen-radius); /* Redondeado de la pantalla */
  overflow: hidden;
  background: #000;
  display: block;
  z-index: 5;
}

.pixel-screen img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.pixel-camera {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: #080808;
  border-radius: 50%;
  z-index: 10;
  border: 1px solid #1c1c1c;
  box-shadow: inset 0 0 2px rgba(255,255,255,0.4);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInUp 1s 1s ease both;
}

.scroll-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-600);
  animation: scrollBounce 2s ease infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(12px); opacity: 0.3; }
}

/* ===== FEATURES ===== */
.features {
  padding: 120px 0;
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 24px;
}

.feature-card {
  background: var(--beige-100);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, transparent, rgba(69, 142, 135, 0.05));
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal-100);
  box-shadow: var(--shadow-lg);
}

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

.feature-large {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

.feature-large .feature-card-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-large .feature-visual {
  width: 220px;
  flex-shrink: 0;
  align-self: stretch;
  background: var(--beige-200);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  padding-top: 24px;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.feature-large.feature-reverse {
  grid-template-columns: auto 1fr;
}

.feature-large.feature-reverse .feature-visual {
  order: -1;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.feature-large.feature-reverse .feature-card-content {
  order: 1;
}

.feature-phone-img {
  --phone-radius: 20px;
  --screen-radius: 14px;
  --phone-padding: 5px;
  width: 140px;
  transform: translateY(-10px);
  transition: var(--transition);
}

.feature-card:hover .feature-phone-img {
  transform: translateY(-20px);
}

/* Override variables for smaller phone grids */
.feature-multi-phones .pixel-phone {
  --phone-radius: 16px;
  --screen-radius: 11px;
  --phone-padding: 4px;
}

/* Custom Multi-Phone layout for Feature 1 */
.feature-multi-phones {
  position: relative;
  width: 320px !important;
  min-height: 250px;
  align-self: stretch;
  background: var(--beige-200);
  display: flex !important;
  align-items: flex-end;
  justify-content: center;
  overflow: visible !important;
  padding-top: 24px;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.feature-multi-phones .phone-1,
.feature-multi-phones .phone-2,
.feature-multi-phones .phone-3 {
  position: absolute;
  bottom: 12px;
  transition: var(--transition);
}

.feature-multi-phones .phone-1 {
  width: 110px;
  left: 24px;
  transform: rotate(-10deg) translateY(10px);
  z-index: 1;
}

.feature-multi-phones .phone-2 {
  width: 125px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  z-index: 3;
}

.feature-multi-phones .phone-3 {
  width: 110px;
  right: 24px;
  transform: rotate(10deg) translateY(10px);
  z-index: 2;
}

/* Hover effect */
.feature-card:hover .feature-multi-phones .phone-1 {
  transform: rotate(-14deg) translateX(-6px) translateY(5px);
}

.feature-card:hover .feature-multi-phones .phone-2 {
  transform: translateX(-50%) translateY(-10px);
}

.feature-card:hover .feature-multi-phones .phone-3 {
  transform: rotate(14deg) translateX(6px) translateY(5px);
}

.feature-medium {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-small {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-icon-wrap {
  width: 52px;
  height: 52px;
  background: var(--teal-800);
  color: var(--white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(45, 106, 94, 0.3);
}

.feature-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-900);
  line-height: 1.3;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-500);
  line-height: 1.7;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.tag {
  display: inline-block;
  background: var(--white);
  color: var(--teal-800);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--teal-100);
}

/* Phone mini in feature-medium */
.feature-phone-small {
  margin-top: auto;
  display: flex;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--beige-200);
  padding-top: 16px;
}

.feature-phone-small .pixel-phone {
  --phone-radius: 16px;
  --screen-radius: 11px;
  --phone-padding: 4px;
  width: 140px;
  transform: translateY(4px);
  transition: var(--transition);
}

.feature-card:hover .feature-phone-small .pixel-phone {
  transform: translateY(-4px);
}

/* Scan demo */
.feature-scan-demo {
  margin-top: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background: var(--beige-200);
  border-radius: var(--radius-md);
  padding: 24px;
  overflow: hidden;
}

.scan-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal-600), transparent);
  animation: scanMove 2s ease-in-out infinite;
  top: 30px;
}

@keyframes scanMove {
  0% { top: 30%; opacity: 1; }
  80% { top: 70%; opacity: 1; }
  100% { top: 30%; opacity: 0; }
}

.scan-icon {
  position: relative;
  z-index: 1;
}

/* ===== SCREENSHOTS CAROUSEL ===== */
.screenshots {
  padding: 120px 0 80px;
  background: linear-gradient(180deg, var(--white) 0%, var(--beige-100) 100%);
}

.screenshots-scroll-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  margin-top: 48px;
  cursor: grab;
  user-select: none;
  /* hide scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
}

.screenshots-scroll-wrap::-webkit-scrollbar {
  display: none;
}

.screenshots-scroll-wrap:active {
  cursor: grabbing;
}

.screenshots-scroll {
  display: flex;
  gap: 20px;
  padding: 20px 48px 40px;
  /* Don't constrain width — let items dictate it */
  width: max-content;
}

.screenshot-item {
  flex-shrink: 0;
  width: 200px;
  text-align: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  cursor: pointer;
}

.screenshot-item .pixel-phone {
  --phone-radius: 24px;
  --screen-radius: 18px;
  --phone-padding: 6px;
  transition: var(--transition);
}

.screenshot-item:hover .pixel-phone {
  transform: scale(1.03) translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.screenshot-item p {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-300);
  margin-top: 12px;
}

.screenshots-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}


.scroll-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--beige-300);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-700);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.scroll-btn:hover {
  background: var(--teal-800);
  color: var(--white);
  border-color: var(--teal-800);
}

/* ===== HIGHLIGHT SECTION ===== */
.highlight-section {
  padding: 120px 0;
  background: var(--beige-200);
}

.highlight-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.highlight-phone {
  display: flex;
  justify-content: center;
}

.phone-mockup-single {
  width: 280px;
  animation: phoneFloat 6s ease-in-out infinite;
}

/* La pantalla ahora usa el mockup general .pixel-phone */

.highlight-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-900);
  margin-bottom: 20px;
  margin-top: 16px;
}

.highlight-desc {
  font-size: 1.05rem;
  color: var(--text-500);
  line-height: 1.8;
  margin-bottom: 32px;
}

.highlight-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.highlight-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-700);
}

/* ===== DOWNLOAD UNIFIED & PRECIOS ===== */
.download-unified {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.download-unified .section-header {
  margin-bottom: 32px;
}

.download-unified .section-header .section-tag--light {
  background: rgba(255, 255, 255, 0.1);
  color: var(--teal-300);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.download-unified .download-title {
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
}

.download-unified .download-desc {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  line-height: 1.7;
}

.download-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
  max-width: 800px;
}

.download-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  transition: var(--transition);
}

.download-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.download-pill svg {
  flex-shrink: 0;
}

.download-divider {
  width: 100%;
  max-width: 600px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  margin: 48px auto;
}

/* ========== UNIFIED DOWNLOAD & MANIFIESTO ========== */
.download {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--teal-900) 0%, var(--teal-800) 50%, #1a4d46 100%);
  position: relative;
  overflow: hidden;
}

.download-bg-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dl-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.2;
}

.dl-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--teal-400), transparent);
  top: -200px;
  right: -100px;
}

.dl-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--terra-300), transparent);
  bottom: -150px;
  left: -100px;
}

.download-card-unified {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-xl);
}

.download-card-unified::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.015);
  pointer-events: none;
}

/* Columna 1: Descarga y Propuesta de Valor */
.download-col-app {
  display: flex;
  flex-direction: column;
}

.download-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
}

.download-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: 32px;
}

.download-pills {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.download-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.download-pill svg {
  color: var(--teal-300);
  flex-shrink: 0;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.store-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--white);
  color: var(--text-900);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  min-width: 170px;
  text-decoration: none;
}

.store-btn:hover:not(.store-btn-disabled) {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  background: var(--teal-100);
}

.store-btn-disabled {
  opacity: 0.45;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  cursor: not-allowed;
  pointer-events: none;
}

.store-btn-disabled span {
  color: rgba(255, 255, 255, 0.4) !important;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.store-btn-text span {
  font-size: 0.7rem;
  color: var(--text-500);
}

.store-btn-text strong {
  font-size: 0.95rem;
  font-weight: 700;
}

/* Columna 2: Filosofía y Comunidad */
.download-col-philosophy {
  display: flex;
  flex-direction: column;
}

.philosophy-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.philosophy-heart {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.philosophy-main-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.3;
}

.philosophy-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 32px;
}

.philosophy-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.philosophy-subtitle {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--beige-200);
  line-height: 1.4;
}

.philosophy-text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

.philosophy-text strong {
  color: var(--white);
}

.philosophy-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.manifesto-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.manifesto-action-btn.rate-btn {
  background: var(--white);
  color: var(--text-900);
  box-shadow: var(--shadow-md);
}

.manifesto-action-btn.rate-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--teal-100);
  color: var(--teal-900);
}

.manifesto-action-btn.share-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.manifesto-action-btn.share-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.15);
}

/* Mobile responsive for unified card */
@media (max-width: 991px) {
  .download-card-unified {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 40px;
  }
}

@media (max-width: 576px) {
  .download-card-unified {
    padding: 32px 20px;
  }
  
  .download-buttons,
  .philosophy-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .store-btn,
  .manifesto-action-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--text-900);
  color: var(--white);
  padding: 48px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-simplified-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-simplified-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-simplified-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
  text-decoration: none;
}

.footer-simplified-links a:hover {
  color: var(--white);
}

.footer-divider {
  color: rgba(255,255,255,0.25);
  user-select: none;
}

.footer-copyright {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Custom widescreen spanning for Feature 1 and Feature 2 */
@media (min-width: 1025px) {
  #feature-library, #feature-reading {
    grid-column: span 3;
  }
}

/* Custom Two-Phone layout for Feature 2 */
.feature-two-phones .pixel-phone {
  --phone-radius: 16px;
  --screen-radius: 11px;
  --phone-padding: 4px;
}

.feature-two-phones {
  position: relative;
  width: 320px !important;
  min-height: 250px;
  align-self: stretch;
  background: var(--beige-200);
  display: flex !important;
  align-items: flex-end;
  justify-content: center;
  overflow: visible !important;
  padding-top: 24px;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.feature-two-phones .phone-1,
.feature-two-phones .phone-2 {
  position: absolute;
  bottom: 12px;
  transition: var(--transition);
}

.feature-two-phones .phone-1 {
  width: 110px;
  left: 32px;
  transform: rotate(-6deg) translateY(10px);
  z-index: 1;
}

.feature-two-phones .phone-2 {
  width: 115px;
  right: 32px;
  transform: rotate(6deg) translateY(10px);
  z-index: 2;
}

/* Hover effects */
.feature-card:hover .feature-two-phones .phone-1 {
  transform: rotate(-10deg) translateX(-6px) translateY(5px);
}

.feature-card:hover .feature-two-phones .phone-2 {
  transform: rotate(10deg) translateX(6px) translateY(5px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-large {
    grid-column: span 2;
  }

  .feature-medium {
    grid-column: span 1;
  }

  .feature-small {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero-content {
    max-width: 100%;
    order: 1;
  }

  .hero-phones {
    order: 2;
    height: 400px;
  }

  .phone-mockup {
    width: 160px;
  }

  .phone-mockup .pixel-phone {
    --phone-radius: 18px;
    --screen-radius: 13px;
    --phone-padding: 4px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-large {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .feature-large .feature-visual {
    display: flex !important;
    justify-content: center;
    align-items: flex-end;
    width: 100% !important;
    margin: 24px 0 0 0 !important;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg) !important;
    height: 250px;
    background: var(--beige-200);
    overflow: visible !important;
  }

  .feature-large .feature-card-content {
    padding: 32px;
  }

  .feature-large.feature-reverse {
    grid-template-columns: 1fr;
  }

  .highlight-container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .highlight-list {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .download-container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .download-phone {
    display: none;
  }

  .download-buttons {
    justify-content: center;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-links {
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 80px 0 60px;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero-phones {
    height: 300px;
  }

  .phone-mockup {
    width: 130px;
  }

  .phone-mockup .pixel-phone {
    --phone-radius: 16px;
    --screen-radius: 11px;
    --phone-padding: 4px;
  }

  .screenshots-scroll {
    padding: 20px 20px 40px;
  }

  .screenshot-item {
    width: 160px;
  }

  .screenshot-item img {
    width: 160px;
  }
}

/* ===== LIGHTBOX MODAL ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 20, 0.9); /* Un fondo verde oscuro-negro muy elegante */
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.open .lightbox-content {
  transform: scale(1) translateY(0);
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 4px solid rgba(255, 255, 255, 0.05);
}

.lightbox-caption {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 16px;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2010;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: var(--terra-500);
  border-color: var(--terra-500);
  transform: scale(1.1) rotate(90deg);
}

/* Evitar scroll del body cuando está abierto */
body.lightbox-open {
  overflow: hidden;
}

