/* ═══════════════════════════════════════════════════════════
   Mis XV — Estilos principales
   ═══════════════════════════════════════════════════════════ */

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --radius: 0.625rem;

  /* Paleta */
  --background:        #f9f5ef;
  --foreground:        #3a2a1a;
  --card:              #fdfaf6;
  --card-foreground:   #3a2a1a;
  --primary:           #7a3d2a;
  --primary-foreground:#fdfaf6;
  --muted:             #f0e9de;
  --muted-foreground:  #7c6a55;
  --border:            #e5d9c9;
  --gold:              #c9a84c;
  --gold-light:        #e2c97e;
  --gold-dark:         #a07830;
  --rose:              #c2726a;
  --cream:             #f9f5ef;

  /* Fuentes */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Espaciados */
  --sp-xs: 0.5rem;
  --sp-sm: 1rem;
  --sp-md: 1.5rem;
  --sp-lg: 3rem;
  --sp-xl: 6rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.25;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--foreground);
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
}

/* ── Utilidades ────────────────────────────────────────────── */
.text-muted   { color: var(--muted-foreground); }
.text-sm      { font-size: 0.875rem; }
.text-center  { text-align: center; }

.mt-xs  { margin-top: var(--sp-xs); }
.mt-sm  { margin-top: var(--sp-sm); }
.mt-md  { margin-top: var(--sp-md); }
.mt-lg  { margin-top: var(--sp-lg); }

.p-lg   { padding: 2rem; }

.text-gradient-gold {
  background: linear-gradient(135deg, var(--gold), var(--rose));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-muted { background-color: var(--muted); }

/* ── Layout ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section-pad {
  padding-block: 6rem;
  padding-inline: 1.5rem;
}

.section-subtitle {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--muted-foreground);
  max-width: 640px;
  margin-inline: auto;
  line-height: 1.7;
}

/* ── Botones ───────────────────────────────────────────────── */
.btn-gold,
.btn-outline,
.btn-dark {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: calc(var(--radius) + 4px);
  padding: 0.65rem 1.25rem;
  transition: opacity 0.2s, background-color 0.2s;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 0.9375rem;
}

.btn-full {
  display: block;
  width: 100%;
  margin-top: 2rem;
  padding: 0.85rem 1rem;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--rose));
  color: #fff;
  box-shadow: 0 4px 20px rgba(192, 116, 80, 0.25);
}
.btn-gold:hover { opacity: 0.88; }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

.btn-dark {
  background: var(--foreground);
  color: var(--background);
}
.btn-dark:hover { opacity: 0.85; }

/* ── Navbar ────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(249, 245, 239, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  padding-block: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}
.nav-links a:hover { color: var(--foreground); }

@media (max-width: 640px) {
  .nav-links { display: none; }
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #1e1008;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(30, 16, 8, 0.70) 0%,
    rgba(50, 25, 12, 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding-inline: 1.5rem;
  text-align: center;
  color: #fff;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(201, 168, 76, 0.85);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.hero-subtitle {
  margin-top: 1.5rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.82);
  max-width: 640px;
  margin-inline: auto;
  line-height: 1.7;
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* ── Cards de ventajas ─────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  text-align: left;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: 0 4px 20px rgba(122, 61, 42, 0.07);
}

.feature-icon {
  font-size: 2.5rem;
}

.card h3 {
  margin-top: 1rem;
}

.card p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ── iPhone Mockups ────────────────────────────────────────── */
.mockups-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 3rem;
}

.iphone-mockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.iphone-frame {
  position: relative;
  width: 260px;
  height: 530px;
  border-radius: 3rem;
  border: 6px solid rgba(58, 42, 26, 0.8);
  background: rgba(58, 42, 26, 0.9);
  padding: 0.5rem;
  box-shadow: 0 20px 60px -15px rgba(122, 61, 42, 0.3);
}

.iphone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 7rem;
  height: 1.5rem;
  background: rgba(58, 42, 26, 0.8);
  border-radius: 0 0 1rem 1rem;
  z-index: 10;
}

.iphone-screen {
  width: 100%;
  height: 100%;
  border-radius: 2.4rem;
  overflow: hidden;
  background: var(--card);
}

.iphone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mockup-label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--foreground);
}

/* ── Pricing ───────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: start;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: calc(var(--radius) + 8px);
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(122, 61, 42, 0.07);
  transition: transform 0.3s;
}
.pricing-card:hover { transform: translateY(-6px); }

.pricing-popular {
  background: linear-gradient(135deg, var(--gold), var(--rose));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 20px 60px -15px rgba(122, 61, 42, 0.25);
  transform: scale(1.04);
}
.pricing-popular:hover { transform: scale(1.04) translateY(-6px); }
.pricing-popular h3,
.pricing-popular .price-amount,
.pricing-popular .price-currency,
.pricing-popular .pricing-features li {
  color: #fff;
}

.popular-badge {
  position: absolute;
  top: -0.9rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--foreground);
  color: var(--background);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-top: 1rem;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--foreground);
}

.price-currency {
  font-size: 0.875rem;
  opacity: 0.75;
}

.pricing-features {
  margin-top: 2rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--foreground);
}

.pricing-features svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* ── CTA box ───────────────────────────────────────────────── */
.cta-box {
  background: linear-gradient(135deg, var(--gold), var(--rose));
  border-radius: calc(var(--radius) + 12px);
  padding: clamp(3rem, 6vw, 4rem);
  text-align: center;
  box-shadow: 0 20px 60px -15px rgba(122, 61, 42, 0.2);
  max-width: 760px;
  margin-inline: auto;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
}

.cta-subtitle {
  margin-top: 1rem;
  color: rgba(255,255,255,0.82);
  max-width: 520px;
  margin-inline: auto;
  line-height: 1.7;
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 3rem;
  padding-inline: 1.5rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.footer-links a:hover { color: var(--foreground); }

/* ── Responsive extras ─────────────────────────────────────── */
@media (max-width: 768px) {
  .pricing-popular { transform: none; }
  .pricing-popular:hover { transform: translateY(-6px); }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .cards-grid { grid-template-columns: 1fr; }
}
