/* ============================================================
   PROPIEDADES PAGANI GIULIANI — Main CSS
   Replicado del sitio real: paleta rosa/fucsia vibrante
   Optimizado para Cloudflare Pages — HTML/CSS/JS Vanilla
   ============================================================ */

:root {
  /* === Brand Colors (from real site) === */
  --color-primary: #FF0094;
  --color-primary-dark: #D81B60;
  --color-primary-light: #FF3DB5;
  --color-accent: #EA21AD;
  --color-bg-pink: #FF0094;
  --color-bg-dark: #636363;
  --color-bg-white: #FFFFFF;
  --color-bg-off-white: #F8F8F8;
  --color-text-heading: #333333;
  --color-text-body: #111111;
  --color-text-muted: #555555;
  --color-text-light: #999999;
  --color-border: #E7E7E7;
  --color-input-border: #54CEB2;
  --color-badge-rebajado: #DC3545;
  --color-badge-oportunidad: #007BFF;
  --color-success: #00CC00;
  --color-whatsapp: #25D366;
  --color-card-price: #FF0094;

  /* === Typography === */
  --font-heading: 'Oswald', 'Impact', sans-serif;
  --font-body: 'Open Sans', 'Segoe UI', system-ui, sans-serif;
  --font-nav: 'Lato', 'Arial', sans-serif;

  /* === Type Scale === */
  --text-xs: 0.7rem;
  --text-sm: 0.8125rem;
  --text-base: 0.9375rem;
  --text-lg: 1.0625rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-hero: clamp(1.5rem, 4vw, 2.5rem);

  /* === Spacing === */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* === Border Radius: ZERO (sharp corners per brand) === */
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --radius-full: 9999px;

  /* === Shadows === */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.12);
  --shadow-card-hover: 0 4px 16px rgba(0,0,0,0.18);
  --shadow-whatsapp: 0 4px 20px rgba(37,211,102,0.4);

  /* === Transitions === */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;

  /* === Z-Index === */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal: 500;
  --z-toast: 600;

  /* === Layout === */
  --max-width: 1200px;
  --nav-height: 60px;
}

/* === Reset === */
*, *::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: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-body);
  background: var(--color-bg-white);
  -webkit-font-smoothing: antialiased;
}
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-weight: 400; line-height: 1.2; }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* === Skip Link === */
.skip-link {
  position: absolute; top: -100%; left: var(--space-4);
  background: var(--color-primary); color: #fff; padding: var(--space-3) var(--space-6);
  z-index: var(--z-toast); font-size: var(--text-sm); font-weight: 600;
}
.skip-link:focus { top: var(--space-4); }

/* === Container === */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-6); }
.container--narrow { max-width: 960px; }

/* === Typography === */
.heading-xl { font-family: var(--font-heading); font-size: var(--text-hero); font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }
.heading-lg { font-family: var(--font-heading); font-size: var(--text-5xl); font-weight: 600; text-transform: uppercase; }
.heading-md { font-family: var(--font-heading); font-size: var(--text-3xl); font-weight: 600; text-transform: uppercase; }
.heading-sm { font-family: var(--font-heading); font-size: var(--text-2xl); font-weight: 600; text-transform: uppercase; }
.heading-xs { font-family: var(--font-heading); font-size: var(--text-xl); font-weight: 600; text-transform: uppercase; }
.text-muted { color: var(--color-text-muted); }
.text-light { color: var(--color-text-light); }
.text-center { text-align: center; }
.text-white { color: #fff; }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-8); font-size: var(--text-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; border-radius: var(--radius-sm);
  transition: all var(--transition-fast); min-height: 40px; white-space: nowrap;
}
.btn--primary { background: var(--color-primary); color: #fff; border: 2px solid var(--color-primary); }
.btn--primary:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); }
.btn--outline { background: transparent; color: var(--color-primary); border: 2px solid var(--color-primary); }
.btn--outline:hover { background: var(--color-primary); color: #fff; }
.btn--dark { background: var(--color-bg-dark); color: #fff; border: 2px solid var(--color-bg-dark); }
.btn--white { background: #fff; color: var(--color-primary); border: 2px solid #fff; }
.btn--white:hover { background: transparent; color: #fff; }
.btn--lg { padding: var(--space-4) var(--space-10); font-size: var(--text-sm); }
.btn--sm { padding: var(--space-2) var(--space-4); font-size: 0.625rem; }
.btn--full { width: 100%; }

/* === Section === */
.section { padding: var(--space-16) 0; }
.section--pink { background: var(--color-bg-pink); color: #fff; }
.section--dark { background: var(--color-bg-dark); color: #fff; }
.section--gray { background: var(--color-bg-off-white); }

.section-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: var(--space-8);
  position: relative;
  padding-bottom: var(--space-4);
}
.section-title::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 60px; height: 3px; background: var(--color-primary);
}
.section-title--white::after { background: #fff; }
.section-title--center { text-align: center; }
.section-title--center::after { left: 50%; transform: translateX(-50%); }

/* === Grid === */
.grid { display: grid; gap: var(--space-6); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

@media (max-width: 1023px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .section { padding: var(--space-10) 0; }
  .container { padding: 0 var(--space-4); }
}

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