/* ===== VILLACELI S.L. — Redesign ===== */

/* --- Custom Properties --- */
:root {
  --navy-900: #06122e;
  --navy-800: #0B1F4D;
  --navy-700: #112d6e;
  --blue-500: #2563eb;
  --blue-400: #3b82f6;
  --blue-300: #60a5fa;
  --blue-200: #93c5fd;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;
  --gold-500: #f59e0b;
  --gold-400: #fbbf24;
  --ig-start: #f09433;
  --ig-mid2:  #dc2743;
  --ig-end:   #bc1888;
  --fb-blue:  #1877F2;
  --google-blue: #4285F4;
  --white:    #ffffff;
  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --wa-green: #25D366;
  --wa-dark:  #128C7E;
  --red-500:  #ef4444;

  --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --text-xs:   clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem + 0.6vw, 1.25rem);
  --text-xl:   clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl:  clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
  --text-3xl:  clamp(1.875rem, 1.5rem + 1.8vw, 2.5rem);
  --text-4xl:  clamp(2.25rem, 1.5rem + 3.5vw, 3.5rem);

  --radius-md:  0.5rem;
  --radius-lg:  0.75rem;
  --radius-xl:  1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  --shadow-sm:  0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow-md:  0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg:  0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl:  0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.25);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --container-max: 1100px;
  --header-h: 68px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1,h2,h3,h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
  color: var(--navy-800);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section { padding-block: 5rem; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-500);
  margin-bottom: 1rem;
}

.section-heading {
  font-size: var(--text-3xl);
  margin-bottom: 0.75rem;
}

.section-lead {
  font-size: var(--text-lg);
  color: var(--gray-500);
  max-width: 600px;
  line-height: 1.6;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: transform 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-wa {
  background: var(--wa-green);
  color: var(--white);
  box-shadow: 0 6px 20px -4px rgba(37,211,102,0.4);
}
.btn-wa:hover { box-shadow: 0 10px 28px -4px rgba(37,211,102,0.5); }

.btn-outline {
  background: transparent;
  color: var(--navy-800);
  border: 2px solid var(--gray-300);
}
.btn-outline:hover { border-color: var(--blue-500); color: var(--blue-500); }

/* --- Scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .25s; }
.d4 { transition-delay: .3s; }

/* ===================================
   1. HEADER
   =================================== */
.header {
  position: fixed; top: 0; left: 0; width: 100%;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 1px solid rgba(11,31,77,0.06);
  transition: box-shadow 300ms var(--ease-out);
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header .container {
  display: flex; align-items: center; justify-content: space-between; height: 100%;
}
.logo { display: flex; align-items: center; gap: 0.5rem; }
.logo img { height: 40px; width: auto; }
.logo-text {
  font-family: var(--font-display); font-size: var(--text-xl);
  font-weight: 800; color: var(--navy-800); letter-spacing: -0.02em;
}
.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a {
  font-size: var(--text-sm); font-weight: 500; color: var(--gray-700);
  transition: color 150ms;
}
.nav a:hover { color: var(--blue-500); }
.nav-cta { padding: 0.55rem 1.2rem !important; font-size: var(--text-sm) !important; }

.menu-btn {
  display: none; background: none; border: none; cursor: pointer;
  padding: 0.4rem; flex-direction: column; gap: 5px;
}
.menu-btn span {
  display: block; width: 22px; height: 2px;
  background: var(--navy-800); border-radius: 2px;
  transition: transform 150ms, opacity 150ms;
}
.menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.menu-btn.active span:nth-child(2) { opacity: 0; }
.menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ===================================
   2. HERO  —  "¿Qué es esto?"
   =================================== */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex; align-items: center;
  padding-top: var(--header-h);
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 40%, var(--navy-700) 70%, var(--blue-500) 100%);
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; width: 100%; height: 100px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%23ffffff' d='M0,60L80,55C160,50,320,40,480,45C640,50,800,70,960,72C1120,74,1280,58,1360,50L1440,42L1440,100L0,100Z'/%3E%3C/svg%3E") no-repeat bottom / 100% auto;
  z-index: 2;
}

.hero .container {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center;
  padding-block: 3rem;
}

.hero-content { color: var(--white); }
.hero-title {
  font-size: var(--text-4xl); color: var(--white);
  margin-bottom: 1.25rem; letter-spacing: -0.03em;
}
.hero-title .gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: var(--text-lg); color: rgba(255,255,255,0.82);
  margin-bottom: 2rem; max-width: 480px; line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Hero image */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual img {
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  max-height: 460px; object-fit: cover;
}

.price-tag {
  position: absolute; top: -8px; right: -8px;
  width: 120px; height: 120px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  box-shadow: 0 8px 28px rgba(245,158,11,0.5);
  z-index: 4;
}
.price-tag .amount {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 800;
  color: var(--navy-900); line-height: 1;
}
.price-tag .label {
  font-size: 0.6rem; font-weight: 700;
  color: var(--navy-800); text-transform: uppercase;
  text-align: center; line-height: 1.2; margin-top: 2px;
}

/* ===================================
   3. CÓMO FUNCIONA  —  "¿Cómo lo usa mi cliente?"
   =================================== */
.how { background: var(--white); }
.how-steps {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2.5rem; margin-top: 2.5rem;
  position: relative;
}
.step {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--gray-50);
  box-shadow: var(--shadow-md);
  transition: box-shadow 300ms var(--ease-out);
}
.step:hover { box-shadow: var(--shadow-xl); }
.step-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.step-img img { width: 100%; height: 100%; object-fit: cover; }
.step-num {
  position: absolute; top: 1rem; left: 1rem;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--blue-500), var(--navy-700));
  color: var(--white); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 800;
  box-shadow: var(--shadow-md); z-index: 2;
}
.step-body { padding: 1.5rem; }
.step-body h3 { font-size: var(--text-xl); margin-bottom: 0.4rem; }
.step-body p { font-size: var(--text-sm); color: var(--gray-500); line-height: 1.6; }

/* Arrow between steps (desktop only) */
.how-arrow {
  display: none;
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 52px; height: 52px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  align-items: center; justify-content: center;
  color: var(--blue-500); z-index: 5;
}
@media(min-width:768px) { .how-arrow { display: flex; } }

/* ===================================
   4. MODELOS  —  "¿Qué puedo pedir?"
   =================================== */
.models { background: var(--gray-50); }
.models-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1.5rem; margin-top: 2.5rem;
}
.model {
  background: var(--white);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 2px solid transparent;
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out), border-color 300ms;
}
.model:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.model.g-en:hover, .model.g-es:hover { border-color: var(--google-blue); }
.model.ig:hover { border-color: var(--ig-mid2); }
.model.fb:hover { border-color: var(--fb-blue); }

.model-img { aspect-ratio: 1/1; overflow: hidden; }
.model-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 400ms var(--ease-out);
}
.model:hover .model-img img { transform: scale(1.04); }
.model-info { padding: 1.25rem; text-align: center; }
.model-info h3 { font-size: var(--text-lg); margin-bottom: 0.25rem; }
.model-info p { font-size: var(--text-sm); color: var(--gray-500); }

/* ===================================
   5. NFC vs QR  —  "¿Por qué esto y no un QR?"
   =================================== */
.compare { background: var(--white); }
.compare-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2rem; margin-top: 2.5rem;
}
.compare-col {
  border-radius: var(--radius-xl);
  padding: 2rem;
}
.compare-nfc {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  color: var(--white);
}
.compare-qr {
  background: var(--gray-100);
  color: var(--gray-700);
}
.compare-col h3 {
  font-size: var(--text-xl);
  margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.compare-nfc h3 { color: var(--white); }
.compare-col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.compare-col li {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: var(--text-sm); line-height: 1.5;
}
.compare-col li svg { flex-shrink: 0; margin-top: 2px; }
.compare-nfc li svg { color: var(--gold-400); }
.compare-qr li svg { color: var(--red-500); }

.compare-verdict {
  margin-top: 2rem;
  text-align: center;
  padding: 1.25rem;
  background: var(--blue-50);
  border: 2px solid var(--blue-200);
  border-radius: var(--radius-xl);
}
.compare-verdict p {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--navy-800);
}

/* ===================================
   6. PRECIO  —  "¿Cuánto cuesta?"
   =================================== */
.pricing { background: var(--gray-50); }
.pricing-card {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center;
  margin-top: 2.5rem;
}
.pricing-photo {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.pricing-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.pricing-details { }
.pricing-amount {
  display: flex; align-items: baseline; gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.pricing-amount .big {
  font-family: var(--font-display);
  font-size: clamp(3rem, 2.5rem + 2.5vw, 4.5rem);
  font-weight: 800;
  color: var(--navy-800); line-height: 1;
}
.pricing-amount .per {
  font-size: var(--text-lg);
  color: var(--gray-500); font-weight: 500;
}
.pricing-tagline {
  font-size: var(--text-lg);
  font-weight: 600; color: var(--navy-800);
  margin-bottom: 1.5rem;
}
.pricing-includes {
  display: flex; flex-direction: column; gap: 0.6rem;
  margin-bottom: 2rem;
}
.pricing-includes li {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: var(--text-base); color: var(--gray-700);
}
.pricing-includes li svg { color: var(--wa-green); flex-shrink: 0; }
.pricing-no {
  font-size: var(--text-sm); color: var(--gray-500);
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}
.pricing-no strong { color: var(--gray-700); }

/* ===================================
   7. CONTACTO / CTA  —  "¿Cómo pido la mía?"
   =================================== */
.contact { background: var(--white); }
.contact-card {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700), var(--blue-500));
  border-radius: var(--radius-2xl);
  padding: 3.5rem 2rem;
  text-align: center;
  color: var(--white);
  position: relative; overflow: hidden;
}
.contact-card::before {
  content: '';
  position: absolute; top: -40%; right: -15%;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
  border-radius: 50%;
}
.contact-card h2 {
  color: var(--white); font-size: var(--text-3xl);
  margin-bottom: 0.75rem; position: relative;
}
.contact-card > p {
  font-size: var(--text-lg); color: rgba(255,255,255,0.8);
  max-width: 520px; margin-inline: auto;
  margin-bottom: 2rem; position: relative;
}
.contact-actions {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  justify-content: center; position: relative;
}

.contact-info {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1.5rem; margin-top: 2.5rem;
  text-align: center;
}
.contact-info-item {
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
}
.contact-info-item svg {
  color: var(--blue-500);
  margin-inline: auto; margin-bottom: 0.75rem;
}
.contact-info-item h4 {
  font-size: var(--text-sm); margin-bottom: 0.25rem;
}
.contact-info-item p, .contact-info-item a {
  font-size: var(--text-sm); color: var(--gray-500);
}
.contact-info-item a:hover { color: var(--blue-500); }

/* ===================================
   8. FOOTER
   =================================== */
.footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.6);
  padding: 2rem 0;
  text-align: center;
}
.footer p { font-size: var(--text-xs); }
.footer a { color: rgba(255,255,255,0.6); }
.footer a:hover { color: var(--white); }

/* ===================================
   FLOATING WHATSAPP
   =================================== */
.wa-float {
  position: fixed; bottom: 24px; right: 24px;
  width: 58px; height: 58px;
  background: var(--wa-green); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,0.5);
  z-index: 999;
  transition: transform 150ms var(--ease-out);
  animation: wa-pulse 2s infinite;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 28px; height: 28px; fill: var(--white); }
@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70%  { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* Testimonial placeholder */
.testimonial-placeholder {
  margin-top: 2.5rem;
  padding: 2rem;
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-xl);
  text-align: center;
  color: var(--gray-500);
  font-size: var(--text-sm);
  font-style: italic;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { max-width: 380px; margin-inline: auto; }
  .models-grid { grid-template-columns: repeat(2,1fr); }
  .pricing-card { grid-template-columns: 1fr; }
  .pricing-photo { max-width: 450px; margin-inline: auto; }
  .contact-info { grid-template-columns: 1fr; max-width: 400px; margin-inline: auto; }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .nav {
    display: none; position: absolute;
    top: var(--header-h); left: 0; width: 100%;
    flex-direction: column;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(14px);
    padding: 1.25rem; box-shadow: var(--shadow-lg); gap: 0.75rem;
  }
  .nav.open { display: flex; }
  .menu-btn { display: flex; }
  .how-steps { grid-template-columns: 1fr; }
  .how-arrow { display: none !important; }
  .models-grid { grid-template-columns: 1fr 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .models-grid { grid-template-columns: 1fr; max-width: 320px; margin-inline: auto; }
  .wa-float { width: 50px; height: 50px; bottom: 16px; right: 16px; }
  .wa-float svg { width: 24px; height: 24px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .wa-float { animation: none; }
}
