/* El Don de las Lanas - style.css */
/* Superficie: Decide/Learn (landing informativa) */

/* ============================================
   FONTS
   ============================================ */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('fonts/bricolage-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  /* Colores de marca */
  --color-magenta: #C8189A;
  --color-magenta-hover: #E91E9C;
  --color-cream: #FDF0E0;
  --color-cream-dark: #F5E6D3;
  --color-ink: #2a1626;
  --color-ink-muted: #5a4654;
  
  /* Surfaces */
  --surface-bg: var(--color-cream);
  --surface-card: #fff;
  --surface-accent: var(--color-magenta);
  
  /* Typography */
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: 'Bricolage Grotesque', system-ui, sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  
  /* Layout */
  --max-width: 1200px;
  --header-height: 72px;
  
  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(42, 22, 38, 0.08);
  --shadow-md: 0 4px 16px rgba(42, 22, 38, 0.12);
  --shadow-lg: 0 8px 32px rgba(42, 22, 38, 0.16);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--surface-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-ink);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

p {
  max-width: 65ch;
}

.text-muted {
  color: var(--color-ink-muted);
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-2xl) 0;
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-3xl) 0;
  }
}

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

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header p {
  margin: 0 auto;
  color: var(--color-ink-muted);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  min-height: 48px;
  min-width: 48px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-magenta);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--color-magenta-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--surface-card);
  color: var(--color-magenta);
  border: 2px solid var(--color-magenta);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--color-magenta);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--color-ink);
}

.btn-ghost:hover,
.btn-ghost:focus {
  background: var(--color-cream-dark);
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--surface-bg);
  border-bottom: 1px solid var(--color-cream-dark);
  z-index: 100;
  transition: box-shadow var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.header-logo {
  height: 44px;
  width: auto;
}

.header-nav {
  display: none;
  gap: var(--space-xs);
}

@media (min-width: 768px) {
  .header-nav {
    display: flex;
  }
}

.nav-link {
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.nav-link:hover,
.nav-link:focus {
  background: var(--color-cream-dark);
}

.header-cta {
  display: none;
}

@media (min-width: 768px) {
  .header-cta {
    display: flex;
  }
}

/* Mobile menu button */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
}

.menu-toggle:hover {
  background: var(--color-cream-dark);
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile nav */
.mobile-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--surface-bg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transform: translateX(100%);
  transition: transform var(--transition-base);
  z-index: 99;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav .nav-link {
  font-size: 1.125rem;
  padding: var(--space-sm);
}

.mobile-nav .btn {
  margin-top: var(--space-md);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-height) + var(--space-xl)) var(--space-md) var(--space-xl);
  position: relative;
  overflow: hidden;
}

/* Textura sutil de tejido SOLO en hero */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30h60M30 0v60' stroke='%23C8189A' stroke-width='0.5' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero-logo {
  width: 200px;
  height: auto;
  margin: 0 auto var(--space-lg);
}

@media (min-width: 768px) {
  .hero-logo {
    width: 280px;
  }
}

.hero h1 {
  margin-bottom: var(--space-sm);
}

.hero-tagline {
  font-size: 1.125rem;
  color: var(--color-ink-muted);
  margin-bottom: var(--space-lg);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  background: var(--surface-card);
}

.about-content {
  display: grid;
  gap: var(--space-lg);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  margin: 0 auto;
  font-size: 1.0625rem;
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
  }
}

.product-card {
  background: var(--surface-card);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  border: 1px solid var(--color-cream-dark);
  transition: all var(--transition-base);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-magenta);
}

.product-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-cream);
  border-radius: var(--radius-full);
}

.product-icon svg {
  width: 32px;
  height: 32px;
  color: var(--color-magenta);
}

.product-card h3 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.product-card p {
  font-size: 0.875rem;
  color: var(--color-ink-muted);
}

/* ============================================
   LIVES SECTION
   ============================================ */
.lives {
  background: var(--color-magenta);
  color: #fff;
}

.lives h2 {
  color: #fff;
}

.lives-content {
  display: grid;
  gap: var(--space-lg);
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.lives-schedule {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

@media (min-width: 480px) {
  .lives-schedule {
    flex-direction: row;
    justify-content: center;
  }
}

.live-item {
  background: rgba(255, 255, 255, 0.15);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  flex: 1;
}

.live-item strong {
  display: block;
  font-size: 1.125rem;
  margin-bottom: var(--space-xs);
}

.live-item span {
  opacity: 0.9;
}

.lives .btn {
  background: #fff;
  color: var(--color-magenta);
}

.lives .btn:hover {
  background: var(--color-cream);
  transform: translateY(-2px);
}

/* ============================================
   LOCATION SECTION
   ============================================ */
.location {
  background: var(--surface-card);
}

.location-content {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .location-content {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.location-map {
  aspect-ratio: 4/3;
  background: var(--color-cream);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.location-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-ink-muted);
}

.location-map-placeholder svg {
  width: 48px;
  height: 48px;
  color: var(--color-magenta);
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.location-info h3 {
  margin-bottom: var(--space-xs);
}

.location-address {
  font-size: 1.0625rem;
  line-height: 1.7;
}

.location-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

/* Feria section */
.feria-info {
  background: var(--color-cream);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-top: var(--space-sm);
}

.feria-info h4 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.feria-info p {
  font-size: 0.9375rem;
  color: var(--color-ink-muted);
}

/* ============================================
   SCHEDULE SECTION
   ============================================ */
.schedule-table {
  max-width: 500px;
  margin: 0 auto;
  background: var(--surface-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-cream-dark);
}

.schedule-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--color-cream-dark);
}

.schedule-row:last-child {
  border-bottom: none;
}

.schedule-row.closed {
  color: var(--color-ink-muted);
}

.schedule-day {
  font-weight: 600;
}

.schedule-time {
  text-align: right;
}

/* ============================================
   SOCIAL SECTION
   ============================================ */
.social {
  background: var(--surface-card);
}

.social-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  max-width: 600px;
  margin: 0 auto;
}

@media (min-width: 480px) {
  .social-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.social-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-cream);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-cream-dark);
  transition: all var(--transition-base);
  min-height: 80px;
}

.social-card:hover {
  border-color: var(--color-magenta);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.social-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-card);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.social-icon svg {
  width: 24px;
  height: 24px;
}

.social-icon.instagram svg {
  color: #E4405F;
}

.social-icon.tiktok svg {
  color: #000;
}

.social-info {
  flex: 1;
  min-width: 0;
}

.social-name {
  font-weight: 600;
  font-size: 0.9375rem;
}

.social-followers {
  font-size: 0.875rem;
  color: var(--color-ink-muted);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-ink);
  color: #fff;
  padding: var(--space-2xl) 0 var(--space-lg);
}

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

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  height: 60px;
  width: auto;
  margin-bottom: var(--space-sm);
  filter: brightness(0) invert(1);
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
}

.footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: var(--space-sm);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
  padding: var(--space-xs) 0;
}

.footer-link:hover {
  color: #fff;
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  margin-bottom: var(--space-xs);
}

.footer-contact a {
  color: #fff;
}

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

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

.footer-legal {
  display: flex;
  gap: var(--space-md);
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: #fff;
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-md);
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 90;
  transition: all var(--transition-base);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  color: #fff;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
:focus-visible {
  outline: 2px solid var(--color-magenta);
  outline-offset: 2px;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
