/* Public Pages CSS - BoraBailar */

:root {
  --primary-color: #C41E3A;
  --primary-dark: #8b1528;
  --text-dark: #1F2937;
  --text-light: #6B7280;
  --bg-light: #F3F4F6;
  --bg-white: #FFFFFF;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 0;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}
a:hover {
  color: var(--primary-dark);
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.py-5 { padding-top: 4rem; padding-bottom: 4rem; }
.bg-light { background-color: var(--bg-light); }
.text-muted { color: var(--text-light); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border: none;
}
.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
}
.btn-primary:hover {
  background-color: var(--primary-dark);
  color: #fff;
}
.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}
.btn-outline:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* Header */
.public-header {
  background-color: var(--bg-white);
  border-bottom: 1px solid #E5E7EB;
  position: sticky;
  top: 0;
  z-index: 50;
}
.public-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}
.public-header .logo img {
  height: 40px;
  width: auto;
}
.public-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.public-nav a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
}
.public-nav a:hover {
  color: var(--primary-color);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .public-nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid #E5E7EB;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  }
  .public-nav.active {
    display: flex;
  }
}

/* Hero Section */
.hero {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(to bottom, #fff, var(--bg-light));
}
.hero h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 24px;
}
.hero p {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 40px auto;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-alert {
  display: inline-block;
  background-color: #FEF2F2;
  color: #991B1B;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 32px;
}

/* Features/Cards Section */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.card {
  background: var(--bg-white);
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
.card-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 16px;
}
.card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 0;
}

/* Flow/Steps */
.steps-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
.steps-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 24px;
}
.steps-list .step-number {
  background-color: var(--primary-color);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 16px;
  flex-shrink: 0;
}
.steps-list .step-text {
  font-size: 1.1rem;
  padding-top: 4px;
}

/* Visual Flow Diagram */
.flow-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}
.flow-box {
  background: white;
  border: 2px solid var(--primary-color);
  padding: 16px 24px;
  border-radius: 8px;
  font-weight: 600;
  width: 100%;
  max-width: 400px;
  text-align: center;
}
.flow-arrow {
  color: var(--text-light);
  font-size: 1.5rem;
  transform: rotate(90deg); /* Point down on mobile */
}

@media (min-width: 768px) {
  .flow-diagram {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }
  .flow-box {
    width: auto;
  }
  .flow-arrow {
    transform: none; /* Point right on desktop */
  }
}

/* Status List */
.status-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 600px;
  margin: 32px auto 0 auto;
  text-align: left;
}
.status-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
}
.status-icon {
  color: #059669; /* Green success */
}
.status-icon.pending {
  color: #D97706; /* Amber pending */
}


/* Footer */
.public-footer {
  background-color: var(--text-dark);
  color: white;
  padding: 60px 0 24px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.1rem;
}
.footer-col p {
  color: #9CA3AF;
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li {
  margin-bottom: 12px;
}
.footer-col ul a {
  color: #9CA3AF;
  font-size: 0.9rem;
}
.footer-col ul a:hover {
  color: white;
}
.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 24px;
  text-align: center;
  color: #9CA3AF;
  font-size: 0.85rem;
}

/* Contact Form Placeholder */
.contact-form-box {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  box-sizing: border-box;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

/* Legal Pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1);
}
.legal-content h2 {
  margin-top: 32px;
  margin-bottom: 16px;
  font-size: 1.5rem;
}
.legal-content p, .legal-content ul {
  margin-bottom: 16px;
  color: #4B5563;
}
.legal-content ul {
  padding-left: 24px;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}
.faq-item {
  margin-bottom: 24px;
  background: white;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
}
.faq-item h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--primary-color);
}
.faq-item p {
  margin: 0;
  color: var(--text-light);
}

/* --- Phase 2: Professional Redesign Styles --- */
.hero {
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(196, 30, 58, 0.08) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  z-index: 0;
}
.hero-split {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: left;
  position: relative;
  z-index: 1;
}
@media (min-width: 992px) {
  .hero-split {
    flex-direction: row;
    justify-content: space-between;
  }
  .hero-text {
    flex: 1;
    padding-right: 40px;
  }
  .hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
  }
  .hero {
    text-align: left;
  }
  .hero-buttons {
    justify-content: flex-start;
  }
}
.hero-text h1 { margin-bottom: 8px; font-size: 2.5rem; }
.hero-text h2 { margin-bottom: 24px; font-size: 1.5rem; color: var(--primary-color); }
.hero-text p { margin-bottom: 32px; font-size: 1.2rem; }

/* Phone Mockup Frame */
.phone-mockup {
  box-sizing: border-box;
  width: min(290px, 100%);
  aspect-ratio: 290 / 610;
  height: auto;
  background-color: #000;
  border: 12px solid #1f2937;
  border-radius: 40px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3), inset 0 0 0 2px #374151;
  overflow: hidden;
  margin: 0 auto;
  transform: translateY(0);
  transition: transform 0.5s ease;
}
.phone-mockup:hover {
  transform: translateY(-8px);
}
@media (prefers-reduced-motion: reduce) {
  .phone-mockup {
    transition: none;
  }
  .phone-mockup:hover {
    transform: none;
  }
  .event-card {
    transition: none;
  }
  .event-card:hover {
    transform: none;
  }
}
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 26px;
  background-color: #1f2937;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  z-index: 10;
}

/* Event Cards */
.event-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  transition: transform 0.2s;
  text-align: left;
}
.event-card:hover {
  transform: translateY(-5px);
}
.event-image {
  height: 220px;
  background-color: #e5e7eb;
  position: relative;
}
.event-image-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.event-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 2rem;
}
.event-details {
  padding: 24px 20px;
}
.event-date {
  color: var(--primary-color);
  font-weight: bold;
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.event-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}
.event-location {
  color: var(--text-light);
  font-size: 0.95rem;
}


/* Steps */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-top: 40px;
}
.process-step {
  text-align: center;
}
.process-icon {
  width: 64px;
  height: 64px;
  background: var(--bg-white);
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 16px auto;
  font-weight: bold;
}

/* Two Sides */
.two-sides-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 40px;
}
@media (min-width: 768px) {
  .two-sides-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.side-box {
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
.side-box h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 24px;
}
.side-box ul {
  list-style: none;
  padding: 0;
  text-align: left;
}
.side-box li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.side-box li i {
  color: var(--primary-color);
}

.section-subtitle { max-width: 700px; margin: 16px auto; font-size: 1.1rem; color: var(--text-light); }
.text-primary { color: var(--primary-color) !important; }
.side-list { text-align: left; list-style: none; padding: 0; }
.text-left { text-align: left !important; }
.card-horizontal { display: flex; align-items: flex-start; gap: 16px; }
.card-icon-sm { font-size: 1.5rem; margin-top: 4px; }
.card-title-sm { font-size: 1.1rem; margin-bottom: 4px; }
.card-text-sm { font-size: 0.95rem; color: var(--text-light); }
.bg-dark { background-color: var(--text-dark) !important; }
.text-white { color: #fff !important; }
.cta-title { color: white; font-size: 2.5rem; margin-bottom: 16px; }
.cta-subtitle { max-width: 600px; margin: 0 auto 32px auto; color: #9CA3AF; font-size: 1.1rem; }
.btn-outline-white { background: transparent; color: white; border: 2px solid white; }
.btn-outline-white:hover { background: white; color: var(--text-dark); }
