/* ============================================================
   14,6 — Design System & Landing Page Styles
   Mobile-first • Pastel Premium • Sistema 14,6 (WhatsApp CTA)
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
/* Loaded via <link> in index.html for non-render-blocking performance */

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  /* Brand palette */
  --clr-primary: #825e41;
  /* medium brown   */
  --clr-primary-dk: #800020;
  /* burgundy       */
  --clr-accent: #dfc2aa;
  /* light tan      */
  --clr-accent-warm: #dfc2aa;
  /* light tan      */
  --clr-sage: #825e41;
  /* medium brown   */
  --clr-cream: #e7ded1;
  /* off-white bg   */
  --clr-white: #ffffff;
  --clr-dark: #5c3717;
  /* dark brown text*/
  --clr-muted: #825e41;
  /* medium brown   */
  --clr-light-grey: rgba(223, 194, 170, 0.3);
  /* subtle bg */

  /* WhatsApp brand */
  --clr-whatsapp: #25d366;
  --clr-whatsapp-dk: #1ebe57;

  /* Gradients */
  --grad-hero: linear-gradient(135deg, #e7ded1 0%, rgba(223, 194, 170, 0.4) 50%, #e7ded1 100%);
  --grad-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.2));
  --grad-cta: linear-gradient(135deg, var(--clr-whatsapp), #20c35a);
  --grad-card: linear-gradient(160deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.3));

  /* Typography */
  --ff-heading: 'Playfair Display', Georgia, serif;
  --ff-body: 'Outfit', system-ui, sans-serif;

  /* Sizes (fluid) */
  --fs-hero: clamp(2.2rem, 6vw, 4.2rem);
  --fs-h2: clamp(1.6rem, 4vw, 2.6rem);
  --fs-h3: clamp(1.1rem, 2.5vw, 1.4rem);
  --fs-body: clamp(0.95rem, 1.8vw, 1.1rem);
  --fs-small: clamp(0.8rem, 1.5vw, 0.9rem);

  /* Spacing */
  --sp-xs: 0.5rem;
  --sp-sm: 1rem;
  --sp-md: 1.5rem;
  --sp-lg: 2.5rem;
  --sp-xl: 4rem;
  --sp-2xl: 6rem;

  /* Radii */
  --radius-sm: 0.75rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-pill: 50rem;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(45, 34, 53, 0.06);
  --shadow-md: 0 4px 20px rgba(45, 34, 53, 0.08);
  --shadow-lg: 0 8px 40px rgba(45, 34, 53, 0.12);
  --shadow-glow: 0 0 30px rgba(128, 0, 32, 0.3);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.4s;
}

@tailwind base;
@tailwind components;
@tailwind utilities;

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  color: var(--clr-dark);
  background-color: var(--clr-cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

/* ── Utility ──────────────────────────────────────────────── */
.container {
  width: min(92%, 1200px);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  font-family: var(--ff-body);
  font-size: var(--fs-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--clr-primary-dk);
  margin-bottom: var(--sp-sm);
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 2px;
  background: var(--clr-primary);
  border-radius: 1px;
}

.section-title {
  font-family: var(--ff-heading);
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--clr-dark);
  line-height: 1.2;
  margin-bottom: var(--sp-sm);
}

.section-subtitle {
  font-size: var(--fs-body);
  color: var(--clr-muted);
  max-width: 560px;
  line-height: 1.6;
}

/* ── Animated Background Blobs ────────────────────────────── */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
  animation: blobFloat 12s ease-in-out infinite alternate;
}

.blob--1 {
  width: 300px;
  height: 300px;
  background: var(--clr-primary);
  top: -80px;
  right: -60px;
  animation-delay: 0s;
}

.blob--2 {
  width: 250px;
  height: 250px;
  background: var(--clr-accent);
  bottom: -60px;
  left: -40px;
  animation-delay: -4s;
}

.blob--3 {
  width: 200px;
  height: 200px;
  background: var(--clr-accent-warm);
  top: 40%;
  left: 50%;
  animation-delay: -8s;
}

@keyframes blobFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(30px, -20px) scale(1.1);
  }

  100% {
    transform: translate(-20px, 30px) scale(0.95);
  }
}

/* ── Header / Navbar ──────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--sp-sm) 0;
  transition: background var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out),
    padding var(--duration) var(--ease-out);
}

.header.scrolled {
  background: rgba(253, 246, 240, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  padding: 0.6rem 0;
}

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

.logo {
  font-family: var(--ff-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--clr-dark);
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--clr-primary-dk);
}

.nav-links {
  display: none;
  gap: var(--sp-md);
}

.nav-links a {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--clr-muted);
  transition: color 0.3s var(--ease-out);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-primary);
  border-radius: 1px;
  transition: width 0.3s var(--ease-out);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: none;
}

/* ── Mobile Menu Toggle ───────────────────────────────────── */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-dark);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Mobile Nav Drawer ────────────────────────────────────── */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  height: 100dvh;
  background: rgba(253, 246, 240, 0.97);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 999;
  padding: 6rem var(--sp-lg) var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  transition: right 0.4s var(--ease-out);
  box-shadow: -10px 0 40px rgba(45, 34, 53, 0.1);
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--clr-dark);
  padding: var(--sp-xs) 0;
  border-bottom: 1px solid var(--clr-light-grey);
  transition: color 0.3s, padding-left 0.3s var(--ease-out);
}

.mobile-nav a:hover {
  color: var(--clr-primary-dk);
  padding-left: var(--sp-xs);
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45, 34, 53, 0.3);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}

.mobile-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ── Hero Section ─────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 7rem 0 var(--sp-2xl);
  background: var(--grad-hero);
  overflow: hidden;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--sp-lg);
  align-items: center;
}

.hero-content {
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--clr-primary-dk);
  margin-bottom: var(--sp-md);
  border: 1px solid rgba(128, 0, 32, 0.3);
  animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--clr-whatsapp);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.5);
  }
}

.hero h1 {
  font-family: var(--ff-heading);
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.15;
  color: var(--clr-dark);
  margin-bottom: var(--sp-sm);
  animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
}

.hero h1 .highlight {
  position: relative;
  color: var(--clr-primary-dk);
  display: inline-block;
}

.hero h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 8px;
  background: var(--clr-accent);
  opacity: 0.4;
  border-radius: 4px;
  z-index: -1;
}

.hero-description {
  font-size: var(--fs-body);
  color: var(--clr-muted);
  max-width: 500px;
  margin: 0 auto var(--sp-md);
  line-height: 1.7;
  animation: fadeInUp 0.8s var(--ease-out) 0.6s both;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  align-items: center;
  animation: fadeInUp 0.8s var(--ease-out) 0.8s both;
}

.hero-image-wrapper {
  display: flex;
  justify-content: center;
  animation: fadeInUp 0.8s var(--ease-out) 0.6s both;
}

.hero-image {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  object-fit: cover;
  aspect-ratio: 4/5;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-pill);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
}

.btn-whatsapp {
  background: var(--grad-cta);
  color: var(--clr-white);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.45);
}

.btn-whatsapp:active {
  transform: translateY(0);
}

.btn-whatsapp svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn-outline {
  background: transparent;
  color: var(--clr-dark);
  border: 2px solid var(--clr-light-grey);
}

.btn-outline:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary-dk);
  background: rgba(128, 0, 32, 0.08);
}

/* ── Trust Bar ────────────────────────────────────────────── */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-md);
  margin-top: var(--sp-lg);
  animation: fadeInUp 0.8s var(--ease-out) 1s both;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  font-size: var(--fs-small);
  color: var(--clr-muted);
}

.trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--clr-primary-dk);
  flex-shrink: 0;
}

/* ── Sections Common ──────────────────────────────────────── */
.section {
  padding: var(--sp-2xl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--sp-xl);
}

.section-header .section-subtitle {
  margin-inline: auto;
}

/* ── Categories Grid ──────────────────────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-md);
}

.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  group: card;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

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

.category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(92, 55, 23, 0.85) 0%,
      rgba(92, 55, 23, 0.3) 50%,
      transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-md);
  transition: background 0.4s var(--ease-out);
}

.category-card:hover .category-card__overlay {
  background: linear-gradient(to top,
      rgba(92, 55, 23, 0.9) 0%,
      rgba(92, 55, 23, 0.4) 50%,
      transparent 100%);
}

.category-card__tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-white);
  margin-bottom: var(--sp-xs);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.category-card__title {
  font-family: var(--ff-heading);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: 0.3rem;
}

.category-card__desc {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  margin-bottom: var(--sp-sm);
}

.category-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--clr-whatsapp);
  transform: translateY(8px);
  opacity: 0;
  transition: all 0.4s var(--ease-out);
}

.category-card__cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease-out);
}

.category-card:hover .category-card__cta {
  transform: translateY(0);
  opacity: 1;
}

.category-card:hover .category-card__cta svg {
  transform: translateX(4px);
}

.fab-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 60px;
  height: 60px;
  background: var(--grad-cta);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 900;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.fab-whatsapp::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
  z-index: -1;
  opacity: 0.4;
  pointer-events: none;
  animation: fabPulse 2.5s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.fab-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.fab-whatsapp svg {
  width: 28px;
  height: 28px;
  fill: white;
}

.fab-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--clr-white);
  color: var(--clr-dark);
  font-size: var(--fs-small);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}

.fab-whatsapp:hover .fab-tooltip {
  opacity: 1;
}

@keyframes fabPulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--clr-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: var(--sp-xl) 0 var(--sp-md);
}

.footer-content {
  display: grid;
  gap: var(--sp-lg);
  margin-bottom: var(--sp-lg);
}

.footer-brand .logo {
  color: var(--clr-white);
  margin-bottom: var(--sp-sm);
}

.footer-brand .logo span {
  color: var(--clr-white);
}

.footer-brand p {
  font-size: var(--fs-small);
  line-height: 1.6;
  max-width: 320px;
}

.footer-links h4 {
  font-family: var(--ff-body);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--clr-white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-sm);
}

.footer-links a {
  display: block;
  font-size: var(--fs-small);
  padding: 0.3rem 0;
  transition: color 0.3s, padding-left 0.3s var(--ease-out);
}

.footer-links a:hover {
  color: var(--clr-accent);
  padding-left: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--sp-md);
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  align-items: center;
  text-align: center;
  font-size: var(--fs-small);
}

.footer-social {
  display: flex;
  gap: var(--sp-sm);
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  transition: background 0.3s, transform 0.3s var(--ease-out);
}

.footer-social a:hover {
  background: var(--clr-primary-dk);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 16px;
  height: 16px;
  fill: rgba(255, 255, 255, 0.7);
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll-triggered animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

.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;
}

/* ── Responsive ───────────────────────────────────────────── */

/* ≥ 480px — small phones landscape */
@media (min-width: 480px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ≥ 768px — tablets */
@media (min-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-xl);
  }

  .hero-content {
    text-align: left;
  }

  .hero-description {
    margin-left: 0;
  }

  .hero-cta-group {
    flex-direction: row;
    justify-content: flex-start;
  }

  .trust-bar {
    justify-content: flex-start;
  }

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

  /* Featured card — spans two columns */
  .category-card--featured {
    grid-column: 1 / -1;
    aspect-ratio: 16/7;
  }


  .footer-content {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ≥ 1024px — desktop */
@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }

  .nav-cta {
    display: inline-flex;
  }

  .menu-toggle {
    display: none;
  }

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

  .category-card--featured {
    grid-column: 1 / -1;
    aspect-ratio: 21/9;
  }
}
