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

:root {
  --marron-oscuro: #3E2723;
  --caramelo: #6D4C41;
  --crema: #FFFDF5;
  --rosa-pastel: #F4C2C2;
  --rojo-fresa: #E34234;
  --vainilla: #FFF3B0;
  --blanco: #FFFFFF;
  --texto-oscuro: #2D1B14;
  --gris-claro: #F5F0EB;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--crema);
  color: var(--texto-oscuro);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(62, 39, 35, 0.97);
  backdrop-filter: blur(10px);
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.navbar .logo img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
}

.navbar .logo span {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blanco);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--vainilla);
}

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

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--blanco);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 1.5rem 2.5rem;
  background: linear-gradient(160deg, var(--crema) 0%, #FFF5F0 40%, var(--rosa-pastel) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(244,194,194,0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,243,176,0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  max-width: 1100px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1;
  min-width: 280px;
}

.hero-logo {
  width: 100px;
  height: 100px;
  border-radius: 22px;
  margin-bottom: 1.2rem;
  box-shadow: 0 8px 30px rgba(62,39,35,0.15);
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--marron-oscuro);
  line-height: 1.1;
  margin-bottom: 0.6rem;
}

.hero-text .app-name {
  display: block;
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--caramelo);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.hero-text p {
  font-size: 1.05rem;
  color: var(--caramelo);
  margin-bottom: 2rem;
  max-width: 500px;
  line-height: 1.7;
}

.btn-google-play {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--marron-oscuro);
  color: var(--blanco);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(62,39,35,0.3);
}

.btn-google-play:hover {
  background: var(--caramelo);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(62,39,35,0.4);
}

.btn-google-play i {
  font-size: 1.3rem;
}

.hero-image {
  flex: 0 0 300px;
  text-align: center;
}

.hero-image img {
  width: 100%;
  max-width: 280px;
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(62,39,35,0.2);
  transform: rotate(2deg);
  transition: transform 0.4s ease;
}

.hero-image img:hover {
  transform: rotate(0deg) scale(1.02);
}

/* ===== SECTION GENERAL ===== */
.section {
  padding: 3.5rem 1.5rem;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--marron-oscuro);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--caramelo);
  font-size: 0.9rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

/* ===== SCREENSHOTS ===== */
.screenshots {
  background: var(--blanco);
  padding-bottom: 8rem;
}

.screenshots-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
}

.screenshot-card {
  background: var(--gris-claro);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  flex: 0 0 auto;
  width: 185px;
  touch-action: manipulation;
  cursor: pointer;
}

.screenshot-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.img-wrapper {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
}

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

.img-wrapper .overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(62, 39, 35, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.img-wrapper .overlay span {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  word-break: break-word;
}

.screenshot-card.show-desc .overlay {
  opacity: 1;
}

.screenshot-card .label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3.2rem;
  padding: 0.5rem 0.6rem;
  background: var(--blanco);
}

.screenshot-card .label span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--marron-oscuro);
  line-height: 1.3;
  text-align: center;
}

/* ===== FEATURES ===== */
.features {
  background: var(--crema);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--blanco);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(0,0,0,0.03);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(62,39,35,0.08);
}

.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.8rem;
}

.feature-icon.pink {
  background: rgba(244,194,194,0.3);
  color: var(--rojo-fresa);
}

.feature-icon.yellow {
  background: rgba(255,243,176,0.4);
  color: #C79500;
}

.feature-icon.green {
  background: rgba(191,252,198,0.4);
  color: #3A8C4A;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--marron-oscuro);
  margin-bottom: 0.6rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
}

/* ===== CTA ===== */
.cta {
  background: linear-gradient(160deg, var(--marron-oscuro) 0%, var(--caramelo) 100%);
  text-align: center;
  padding: 4rem 1.5rem;
}

.cta h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--blanco);
  margin-bottom: 0.8rem;
}

.cta p {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.cta .btn-google-play {
  background: var(--blanco);
  color: var(--marron-oscuro);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.cta .btn-google-play:hover {
  background: var(--vainilla);
  color: var(--marron-oscuro);
}

/* ===== FOOTER ===== */
.footer {
  background: #1A0F0C;
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 1.5rem 1.5rem;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.footer-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-logo span {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blanco);
}

.footer p {
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.footer a {
  color: var(--rosa-pastel);
  text-decoration: none;
  transition: color 0.3s;
}

.footer a:hover {
  color: var(--vainilla);
  text-decoration: underline;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1.2rem 0 1.8rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.85rem;
}

.footer-divider {
  width: 60px;
  height: 2px;
  background: rgba(255,255,255,0.15);
  margin: 1.5rem auto;
  border-radius: 2px;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--marron-oscuro);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0.8rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-content {
    flex-direction: column-reverse;
    gap: 2rem;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-text .app-name {
    font-size: 1.3rem;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-image {
    flex: none;
    width: 220px;
  }

  .hero-image img {
    max-width: 220px;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .screenshot-card {
    width: 155px;
  }

  .img-wrapper {
    height: 320px;
  }

  .screenshot-card .label {
    height: 2.8rem;
  }

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

  .cta h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .screenshot-card {
    width: 145px;
  }

  .img-wrapper {
    height: 290px;
  }
}
