/* ============================================
   INEEDAWEBSITE.STORE - Design System
   White + Café + Verde | Mobile-First
   ============================================ */

/* === CUSTOM FONTS === */
@font-face {
  font-family: 'Chunky Playful';
  src: url('../fonts/Chunky Playful.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Project Note';
  src: url('../fonts/Project Note.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Slow Home';
  src: url('../fonts/Slow Home.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}

/* === VARIABLES === */
:root {
  --white: #ffffff;
  --white-warm: #fdfcfa;
  --white-off: #f7f5f2;
  --cafe: #8B6F47;
  --cafe-light: #C4A882;
  --cafe-dark: #5C4A2F;
  --verde: #6B9E6B;
  --verde-light: #A8CFA8;
  --verde-dark: #4A7A4A;
  --negro: #2A2A2A;
  --gris: #6B6B6B;
  --gris-light: #A0A0A0;
  --gris-border: #E8E4DF;
  --whatsapp: var(--verde);

  --font-display: 'Chunky Playful', 'Georgia', serif;
  --font-accent: 'Slow Home', 'Segoe UI', sans-serif;
  --font-body: 'Project Note', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.08);
  --shadow-xl: 0 16px 60px rgba(0,0,0,0.1);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes wave {
  0% { transform: translateX(0) translateZ(0) scaleY(1); }
  50% { transform: translateX(-25%) translateZ(0) scaleY(0.55); }
  100% { transform: translateX(-50%) translateZ(0) scaleY(1); }
}
@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* === RESET === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-family: var(--font-system);
  font-size: 16px;
  color: var(--negro);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}
*:focus-visible {
  outline: 2px solid var(--verde);
  outline-offset: 2px;
}

/* === CONTAINER === */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gris-border);
  padding: 0.75rem 0;
  transition: var(--transition);
}
.navbar.scrolled {
  box-shadow: var(--shadow-md);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--cafe-dark);
  letter-spacing: 0.5px;
}
.navbar-brand span {
  color: var(--verde);
}
.navbar-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.navbar-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gris);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
  transition: var(--transition);
}
.navbar-links a:hover {
  color: var(--cafe);
  background: var(--white-off);
}
.navbar-links .btn-nav-cta {
  background: var(--cafe);
  color: white;
  font-weight: 600;
}
.navbar-links .btn-nav-cta:hover {
  background: var(--cafe-dark);
  color: white;
}

/* Mobile menu */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--negro);
}
@media (max-width: 768px) {
  .navbar-toggle { display: block; }
  .navbar-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--gris-border);
    box-shadow: var(--shadow-md);
  }
  .navbar-links.open { display: flex; }
  .navbar-links a { padding: 0.75rem 1rem; width: 100%; text-align: center; }
}

/* === HERO === */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.25rem 4rem;
  position: relative;
  overflow: hidden;
  background: var(--white);
}
.hero-bg-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  z-index: 1;
}
.hero-bg-wave svg {
  display: block;
  width: 100%;
  height: auto;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}
.hero-badge {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 0.85rem;
  color: var(--cafe);
  background: rgba(139,111,71,0.08);
  border: 1px solid rgba(139,111,71,0.15);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 8vw, 3.8rem);
  font-weight: 700;
  color: var(--cafe-dark);
  line-height: 1.15;
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease both;
}
.hero h1 .accent {
  color: var(--verde);
}
.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 3vw, 1.2rem);
  color: var(--gris);
  margin-bottom: 2rem;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease 0.15s both;
}
.hero-cta-group {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.3s both;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-system);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.btn svg { flex-shrink: 0; }
.btn-primary {
  background: var(--cafe);
  color: white;
  box-shadow: 0 4px 16px rgba(139,111,71,0.2);
}
.btn-primary:hover {
  background: var(--cafe-dark);
  box-shadow: 0 8px 24px rgba(139,111,71,0.3);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--white);
  color: var(--cafe-dark);
  border: 1.5px solid var(--gris-border);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  border-color: var(--cafe-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-whatsapp {
  background: var(--whatsapp);
  color: white;
  box-shadow: 0 4px 16px rgba(37,211,102,0.2);
}
.btn-whatsapp:hover {
  background: #1fb855;
  box-shadow: 0 8px 24px rgba(37,211,102,0.3);
  transform: translateY(-1px);
}
.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}
.btn:active { transform: scale(0.98); }

/* === SECTIONS === */
.section {
  padding: 5rem 0;
  position: relative;
}
.section-alt {
  background: var(--white-off);
}
.section-wave-top {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  z-index: 1;
  line-height: 0;
}
.section-wave-bottom {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  z-index: 1;
  line-height: 0;
}
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  color: var(--cafe-dark);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.section-header p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--gris);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .section { padding: 3rem 0; }
}

/* === CARDS === */
.card {
  background: var(--white);
  border: 1px solid var(--gris-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--cafe-light);
  transform: translateY(-2px);
}
.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--cafe-light), var(--verde-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: white;
}
.card h3 {
  font-family: var(--font-accent);
  font-size: 1.15rem;
  color: var(--cafe-dark);
  margin-bottom: 0.5rem;
}
.card p {
  font-size: 0.9rem;
  color: var(--gris);
  line-height: 1.6;
}

/* === GRID === */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid { gap: 2rem; }
}

/* === iPHONE MOCKUP === */
.mockup-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 900px) {
  .mockup-showcase { grid-template-columns: auto 1fr; gap: 4rem; }
}
.iphone-mockup {
  position: relative;
  width: 260px;
  height: 520px;
  background: #1a1a1a;
  border-radius: 36px;
  padding: 10px;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,0,0,0.1);
  margin: 0 auto;
  animation: float 4s ease-in-out infinite;
}
.iphone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 24px;
  background: #1a1a1a;
  border-radius: 0 0 16px 16px;
  z-index: 10;
}
.iphone-screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: white;
}
.iphone-screen iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.mockup-label {
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--gris-light);
  font-family: var(--font-body);
}

/* === PRICING === */
.pricing-card {
  background: var(--white);
  border: 1.5px solid var(--gris-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
}
.pricing-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}
.pricing-card.featured {
  border-color: var(--cafe);
  box-shadow: var(--shadow-lg);
}
.pricing-card.featured::before {
  content: 'Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cafe);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-radius: var(--radius-full);
}
.pricing-card h3 {
  font-family: var(--font-accent);
  font-size: 1.2rem;
  color: var(--cafe-dark);
  margin-bottom: 0.75rem;
}
.pricing-price {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--verde-dark);
  margin-bottom: 0.25rem;
}
.pricing-price small {
  font-size: 0.85rem;
  color: var(--gris);
  font-family: var(--font-system);
  font-weight: 400;
}
.pricing-note {
  font-size: 0.8rem;
  color: var(--gris-light);
  margin-bottom: 1.5rem;
}
.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
}
.pricing-features li {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--gris);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.pricing-features li:last-child { border: none; }
.pricing-features li svg {
  color: var(--verde);
  flex-shrink: 0;
}

/* === PROCESS / TIMELINE === */
.process-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem 0;
}
.process-number {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--cafe), var(--verde));
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.process-content h3 {
  font-family: var(--font-accent);
  font-size: 1.05rem;
  color: var(--cafe-dark);
  margin-bottom: 0.25rem;
}
.process-content p {
  font-size: 0.9rem;
  color: var(--gris);
  line-height: 1.5;
}

/* === FOOTER === */
.footer {
  background: var(--white-off);
  border-top: 1px solid var(--gris-border);
  padding: 3rem 0 2rem;
  text-align: center;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--cafe-dark);
  margin-bottom: 0.5rem;
}
.footer-tagline {
  font-family: var(--font-body);
  color: var(--gris);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.footer-social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--gris-border);
  border-radius: var(--radius-full);
  color: var(--gris);
  transition: var(--transition);
}
.footer-social a:hover {
  background: var(--cafe);
  color: white;
  border-color: var(--cafe);
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--gris);
  font-weight: 500;
}
.footer-links a:hover { color: var(--cafe); }
.footer-copy {
  font-size: 0.8rem;
  color: var(--gris-light);
}

/* === UTILITIES === */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mb-sm { margin-bottom: 0.5rem; }
.mb-md { margin-bottom: 1rem; }
.mb-lg { margin-bottom: 1.5rem; }
.mb-xl { margin-bottom: 2.5rem; }
.mt-md { margin-top: 1rem; }
.mt-lg { margin-top: 1.5rem; }
.mt-xl { margin-top: 2.5rem; }
.text-muted { color: var(--gris); }
.text-sm { font-size: 0.85rem; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-sm { gap: 0.5rem; }
.gap-md { gap: 1rem; }

/* === WHATSAPP FLOAT === */
.float-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  background: var(--whatsapp);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  z-index: 999;
  transition: var(--transition);
}
.float-whatsapp:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Portfolio Divider */
.portfolio-divider {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gris-border), transparent);
  margin: 3rem auto;
  width: 80%;
  opacity: 0.7;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(253, 252, 250, 0.95); /* beige with opacity */
  backdrop-filter: blur(5px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.lightbox.active .lightbox-img {
  transform: scale(1);
}
.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  border: none;
  color: var(--cafe-dark);
  cursor: pointer;
  z-index: 10001;
  padding: 0.5rem;
  transition: transform 0.2s ease, background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 1);
}
.hover-zoom {
  transition: transform 0.3s ease;
}
.hover-zoom:hover {
  transform: scale(1.03);
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-left, .reveal-right {
    opacity: 1;
    transform: none;
  }
}

/* === LANGUAGE SWITCHER === */
.lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 0.5rem;
}
.lang-btn {
  background: none;
  border: 1px solid var(--gris-border);
  border-radius: var(--radius-full);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gris);
  transition: var(--transition);
}
.lang-btn:hover, .lang-switcher.open .lang-btn {
  background: var(--white-off);
  color: var(--cafe-dark);
  border-color: var(--cafe-light);
}
.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: white;
  border: 1px solid var(--gris-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 150px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  z-index: 1000;
}
.lang-switcher.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-dropdown a {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--gris);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
}
.lang-dropdown a:hover {
  background: var(--white-off);
  color: var(--cafe-dark);
}
.lang-dropdown a.active {
  font-weight: 600;
  color: var(--cafe-dark);
}

/* === PAGE TRANSITION === */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--white-off);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-transition.active {
  transform: translateY(0);
}
.page-transition.fade-out {
  transform: translateY(-100%);
}
.page-transition-logo {
  opacity: 0;
  transition: opacity 0.3s ease;
  width: 80px;
  height: 80px;
}
.page-transition.active .page-transition-logo {
  opacity: 1;
  transition-delay: 0.3s;
}
