/* ============================================
   Landing Page — Helados del Pueblo
   ============================================ */

/* --- CSS Variables / Design Tokens --- */
:root {
  --color-primary: #e84393;
  --color-primary-dark: #d63384;
  --color-secondary: #fdcb6e;
  --color-secondary-dark: #f0b429;
  --color-accent: #00b894;
  --color-accent-light: #55efc4;
  --color-dark: #2d3436;
  --color-dark-soft: #636e72;
  --color-light: #fefefe;
  --color-light-warm: #fff9f0;
  --color-bg-gradient-start: #ffecd2;
  --color-bg-gradient-end: #fcb69f;
  --color-glass: rgba(255, 255, 255, 0.25);
  --color-glass-border: rgba(255, 255, 255, 0.35);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 10px 40px rgba(232, 67, 147, 0.12);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-full: 50px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --font-body: 'Inter', sans-serif;
  --max-width: 1200px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-dark);
  background: var(--color-light);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navbar (Glassmorphism) --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--color-glass-border);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__brand {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.navbar__brand span {
  -webkit-text-fill-color: var(--color-secondary);
}

.navbar__links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.navbar__links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-dark);
  position: relative;
  padding: 4px 0;
  transition: var(--transition-fast);
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.navbar__links a:hover {
  color: var(--color-primary);
}

.navbar__links a:hover::after {
  width: 100%;
}

.navbar__toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-dark);
  cursor: pointer;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: linear-gradient(160deg, var(--color-light-warm) 0%, #fff5f5 40%, #fef0e6 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(232, 67, 147, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(253, 203, 110, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
}

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

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__content {
  animation: slideInLeft 1s ease-out;
}

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

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: linear-gradient(135deg, rgba(232, 67, 147, 0.1), rgba(253, 203, 110, 0.15));
  border: 1px solid rgba(232, 67, 147, 0.15);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 24px;
}

.hero__title {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  color: var(--color-dark);
}

.hero__title span {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--color-dark-soft);
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.8;
}

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

.hero__image {
  animation: slideInRight 1s ease-out;
  position: relative;
}

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

.hero__image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  box-shadow: 0 4px 20px rgba(232, 67, 147, 0.35);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(232, 67, 147, 0.45);
}

.btn--outline {
  background: transparent;
  color: var(--color-dark);
  border: 2px solid rgba(0, 0, 0, 0.12);
}

.btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-3px);
}

/* --- Section Common --- */
.section {
  padding: 100px 0;
}

.section__header {
  text-align: center;
  margin-bottom: 60px;
}

.section__tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section__title {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section__desc {
  font-size: 1.05rem;
  color: var(--color-dark-soft);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

/* --- About Section --- */
.about {
  background: var(--color-light);
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.about__card {
  text-align: center;
  padding: 44px 32px;
  border-radius: var(--radius-md);
  background: var(--color-light);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.about__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-smooth);
}

.about__card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
  border-color: transparent;
}

.about__card:hover::before {
  transform: scaleX(1);
}

.about__icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  border-radius: var(--radius-sm);
  font-size: 1.6rem;
  transition: var(--transition-smooth);
}

.about__card:nth-child(1) .about__icon {
  background: linear-gradient(135deg, rgba(232, 67, 147, 0.12), rgba(232, 67, 147, 0.05));
  color: var(--color-primary);
}

.about__card:nth-child(2) .about__icon {
  background: linear-gradient(135deg, rgba(253, 203, 110, 0.2), rgba(253, 203, 110, 0.08));
  color: var(--color-secondary-dark);
}

.about__card:nth-child(3) .about__icon {
  background: linear-gradient(135deg, rgba(0, 184, 148, 0.12), rgba(0, 184, 148, 0.05));
  color: var(--color-accent);
}

.about__card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.about__card p {
  font-size: 0.95rem;
  color: var(--color-dark-soft);
  line-height: 1.7;
}

/* --- Products Section --- */
.products {
  background: linear-gradient(180deg, var(--color-light-warm) 0%, var(--color-light) 100%);
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.product-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  position: relative;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.product-card__image {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.product-card:hover .product-card__image img {
  transform: scale(1.08);
}

.product-card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  backdrop-filter: blur(10px);
}

.product-card__badge--pink {
  background: rgba(232, 67, 147, 0.85);
}

.product-card__badge--yellow {
  background: rgba(240, 180, 41, 0.85);
}

.product-card__badge--green {
  background: rgba(0, 184, 148, 0.85);
}

.product-card__content {
  padding: 28px;
}

.product-card__content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.product-card__content p {
  font-size: 0.92rem;
  color: var(--color-dark-soft);
  line-height: 1.7;
}

.product-card__flavors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.flavor-tag {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(232, 67, 147, 0.08);
  color: var(--color-primary);
}

/* --- Coverage Section --- */
.coverage {
  background: var(--color-light);
  overflow: hidden;
}

.coverage__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.coverage__content {
  padding-right: 20px;
}

.coverage__title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.coverage__desc {
  font-size: 1.05rem;
  color: var(--color-dark-soft);
  line-height: 1.8;
  margin-bottom: 32px;
}

.coverage__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.stat-item {
  text-align: center;
  padding: 20px 12px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(232, 67, 147, 0.06), rgba(253, 203, 110, 0.08));
}

.stat-item__number {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item__label {
  font-size: 0.82rem;
  color: var(--color-dark-soft);
  font-weight: 500;
  margin-top: 4px;
}

.coverage__image {
  position: relative;
}

.coverage__image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.coverage__image::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  border: 2px dashed rgba(232, 67, 147, 0.2);
  z-index: -1;
}

/* --- Contact Section --- */
.contact {
  background: linear-gradient(180deg, var(--color-light) 0%, var(--color-light-warm) 100%);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact__info {
  padding-right: 20px;
}

.contact__info-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.contact__info-desc {
  font-size: 1rem;
  color: var(--color-dark-soft);
  line-height: 1.8;
  margin-bottom: 36px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact__detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact__detail-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(232, 67, 147, 0.1), rgba(253, 203, 110, 0.1));
  color: var(--color-primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact__detail-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact__detail-text p {
  font-size: 0.9rem;
  color: var(--color-dark-soft);
}

.contact__form {
  background: white;
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.form__group {
  margin-bottom: 20px;
}

.form__group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-dark);
}

.form__group input,
.form__group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--color-dark);
  transition: var(--transition-fast);
  background: var(--color-light);
}

.form__group input:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(232, 67, 147, 0.1);
}

.form__group textarea {
  min-height: 120px;
  resize: vertical;
}

.form__submit {
  width: 100%;
  padding: 16px;
  margin-top: 8px;
}

/* --- Footer --- */
.footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer__brand p {
  font-size: 0.92rem;
  line-height: 1.8;
  max-width: 320px;
}

.footer__col h4 {
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.82rem;
}

.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__col ul a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition-fast);
}

.footer__col ul a:hover {
  color: var(--color-secondary);
  padding-left: 4px;
}

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.footer__social a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.footer__social a:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-3px);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 0.84rem;
}

/* --- Scroll Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero__title {
    font-size: 2.8rem;
  }

  .section__title {
    font-size: 2.2rem;
  }

  .products__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar__links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    z-index: 999;
  }

  .navbar__links.open {
    display: flex;
  }

  .navbar__links a {
    font-size: 1.3rem;
  }

  .navbar__toggle {
    display: block;
    z-index: 1001;
  }

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

  .hero__title {
    font-size: 2.4rem;
  }

  .hero__subtitle {
    margin: 0 auto 36px;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__image {
    order: -1;
    max-width: 400px;
    margin: 0 auto;
  }

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

  .products__grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .coverage__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .coverage__content {
    padding-right: 0;
  }

  .coverage__stats {
    max-width: 360px;
    margin: 0 auto 32px;
  }

  .coverage__image {
    max-width: 450px;
    margin: 0 auto;
  }

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

  .contact__info {
    text-align: center;
    padding-right: 0;
  }

  .contact__details {
    align-items: center;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__brand p {
    max-width: 100%;
  }

  .footer__social {
    justify-content: center;
  }

  .section__title {
    font-size: 1.9rem;
  }

  .section {
    padding: 70px 0;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 2rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

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