/* Click Mi Barrio Landing Page Styles */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;600;700&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-green: #22c55e;
  --primary-orange: #ea580c;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --paper-bg: linear-gradient(135deg, #FEF5E7 0%, #F5E6C8 100%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Nav */
header.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo img {
  height: 50px;
  width: auto;
  border-radius: 8px;
}

.site-logo span {
  font-family: 'Caveat', cursive;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-orange);
}

.btn-pitch {
  background: var(--text-dark);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-pitch:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
  padding: 80px 0;
  background: radial-gradient(circle at 80% 20%, rgba(34, 197, 94, 0.05), transparent 40%),
              radial-gradient(circle at 10% 80%, rgba(234, 88, 12, 0.05), transparent 40%);
  border-bottom: 1px solid #e2e8f0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-ctas {
    justify-content: center;
  }
}

.hero-tag {
  display: inline-block;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--primary-orange);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
}

.btn-primary {
  background: var(--primary-orange);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.3);
  transition: all 0.2s;
}

.btn-primary:hover {
  background: #ea580c;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.4);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-dark);
  border: 2px solid #cbd5e1;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  transform: translateY(-2px);
}

.hero-image-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
  border: 1px solid #cbd5e1;
}

/* Problem vs Solution */
.problem-solution {
  padding: 80px 0;
  background: #ffffff;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px auto;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
}

.p-s-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

@media (max-width: 768px) {
  .p-s-grid {
    grid-template-columns: 1fr;
  }
}

.card-p-s {
  padding: 32px;
  border-radius: 16px;
  border: 1px solid #cbd5e1;
}

.card-p-s.problem {
  background: #fef2f2;
  border-color: #fee2e2;
}

.card-p-s.solution {
  background: #f0fdf4;
  border-color: #dcfce7;
}

.card-p-s h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.card-p-s.problem h3 {
  color: #991b1b;
}

.card-p-s.solution h3 {
  color: #166534;
}

.card-p-s ul {
  list-style: none;
}

.card-p-s li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.card-p-s.problem li::before {
  content: '❌';
  position: absolute;
  left: 0;
}

.card-p-s.solution li::before {
  content: '✅';
  position: absolute;
  left: 0;
}

/* Widescreen Board Live Demo Container */
.live-demo-section {
  padding: 80px 0;
  background: #f1f5f9;
  border-top: 1px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
}

/* Copy of Widescreen Noticeboard Styles */
.board-frame-outer {
  background: #ffffff;
  padding: 24px;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12), inset 0 0 2px rgba(15, 23, 42, 0.1);
  border: 14px solid var(--primary-green);
  position: relative;
  margin-top: 30px;
}

.board-frame-outer::before {
  content: '';
  position: absolute;
  top: -18px;
  left: -18px;
  width: 36px;
  height: 36px;
  background: radial-gradient(circle at 30% 30%, #ff8b72, var(--primary-orange));
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25), inset -1px -1px 3px rgba(0,0,0,0.2);
  z-index: 10;
}

.board-frame-outer::after {
  content: '';
  position: absolute;
  bottom: -18px;
  right: -18px;
  width: 36px;
  height: 36px;
  background: radial-gradient(circle at 30% 30%, #ff8b72, var(--primary-orange));
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25), inset -1px -1px 3px rgba(0,0,0,0.2);
  z-index: 10;
}

.board-frame-inner {
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #cbd5e1;
}

.board-header {
  text-align: center;
  margin-bottom: 30px;
}

.board-logo-img {
  max-width: 200px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.board-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 500;
}

.board-select-filter {
  margin-top: 10px;
  padding: 6px 12px;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dark);
  outline: none;
  cursor: pointer;
}

.board-grid-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* Polaroid Card Copy */
.board-polaroid {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.02);
  padding: 12px 12px 18px 12px;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.board-polaroid:hover {
  transform: scale(1.03) rotate(0deg) !important;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.15);
  z-index: 10;
}

/* Pushpin style */
.board-polaroid.pushpin::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: radial-gradient(circle at 30% 30%, #FB923C, #EA580C);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3), inset -1px -1px 2px rgba(0,0,0,0.2);
  z-index: 20;
}

.board-polaroid.pushpin::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 6px;
  background: #6B7280;
  z-index: 19;
}

.board-polaroid img.photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border: 1px solid #f1f5f9;
}

.board-polaroid .title {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
}

.board-polaroid .desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
  height: 40px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.board-polaroid .footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f1f5f9;
  padding-top: 8px;
}

.board-polaroid .footer .cat {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--primary-green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.board-polaroid .footer .hood {
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* Status Sashes */
.board-sash {
  position: absolute;
  top: 15px;
  right: -15px;
  background: var(--primary-orange);
  color: white;
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 14px;
  transform: rotate(45deg);
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  z-index: 10;
  width: 75px;
  text-align: center;
}

.board-sash.reserved { background: #3b82f6; }
.board-sash.found { background: #10b981; }
.board-sash.sold { background: #f59e0b; }
.polaroid-faded { filter: grayscale(0.4) opacity(0.8); }

/* Modal Copy */
.board-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.board-modal-card {
  background: #ffffff;
  border-radius: 16px;
  width: 760px;
  max-width: 90%;
  height: 480px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.3);
  position: relative;
  overflow: hidden;
  display: flex;
}

@media (max-width: 640px) {
  .board-modal-card {
    flex-direction: column;
    height: 80vh;
    overflow-y: auto;
  }
}

.board-modal-left {
  width: 45%;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  background-image: 
    repeating-linear-gradient(0deg, transparent, transparent 31px, rgba(161, 98, 7, 0.05) 31px, rgba(161, 98, 7, 0.05) 32px),
    linear-gradient(90deg, rgba(254, 245, 231, 0.95) 0%, rgba(253, 237, 211, 0.95) 100%);
}

@media (max-width: 640px) {
  .board-modal-left { width: 100%; }
}

.board-modal-img-container {
  width: 100%;
  height: 220px;
  position: relative;
  overflow: hidden;
}

.board-modal-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.board-modal-details {
  padding: 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.board-modal-details .cat {
  font-size: 0.65rem;
  color: var(--primary-green);
  font-weight: 800;
  text-transform: uppercase;
}

.board-modal-details h3 {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
}

.board-modal-details p {
  font-size: 0.8rem;
  color: #475569;
}

.board-modal-right {
  width: 55%;
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 12px;
}

@media (max-width: 640px) {
  .board-modal-right { width: 100%; }
}

#board-modal-map {
  width: 100%;
  height: 180px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
}

.board-modal-qr-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px;
}

.board-smart-tag {
  background: linear-gradient(135deg, #FEF5E7 0%, #F5E6C8 100%);
  border: 2px dashed #A16207;
  border-radius: 6px;
  padding: 10px 4px 4px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin-top: 4px;
}

.board-smart-tag::before {
  content: 'SMART TAG';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: #A16207;
  color: white;
  font-size: 6px;
  padding: 1px 4px;
  border-radius: 2px;
  font-weight: 700;
}

.board-smart-tag img {
  width: 64px;
  height: 64px;
}

.board-smart-tag .tag-footer {
  font-size: 0.45rem;
  font-weight: 800;
  color: #A16207;
  text-transform: uppercase;
}

/* Close Button */
.btn-close-demo-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-muted);
}

.btn-close-demo-modal:hover {
  background: #e2e8f0;
}

/* Feature Showcase */
.feature-showcase {
  padding: 80px 0;
  background: #ffffff;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 768px) {
  .showcase-grid {
    grid-template-columns: 1fr;
  }
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-item {
  display: flex;
  gap: 16px;
}

.feature-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.feature-text h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Live phone simulator mockup styles */
.interactive-phone-mockup {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-frame-container {
  width: 320px;
  height: 650px;
  background: #1e293b;
  border-radius: 40px;
  border: 12px solid #0f172a;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.phone-notch {
  width: 140px;
  height: 20px;
  background: #0f172a;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.phone-simulator-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #ffffff;
}

/* Pitch Highlights */
.pitch-highlights {
  padding: 80px 0;
  background: var(--text-dark);
  color: #ffffff;
}

.pitch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 768px) {
  .pitch-grid {
    grid-template-columns: 1fr;
  }
}

.pitch-card {
  background: #1e293b;
  border: 1px solid #334155;
  padding: 32px;
  border-radius: 16px;
}

.pitch-card .icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.pitch-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.pitch-card p {
  font-size: 0.9rem;
  color: #94a3b8;
}

/* Call to Action Footer */
.cta-footer {
  padding: 80px 0;
  text-align: center;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.05) 0%, transparent 70%);
}

.cta-footer h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-footer p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px auto;
}

.footer-nav {
  margin-top: 50px;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid #e2e8f0;
  padding-top: 24px;
}
