/* ============================================================
   Empresarios PR — Directorio de Empresarios Cristianos
   Design: Faith-meets-modern-startup | Navy + Gold palette
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=Inter:wght@400;500;600;700&display=swap');

/* ── CSS Variables ── */
:root {
  --navy:        #0D1B4B;
  --navy-light:  #162260;
  --gold:        #C9A84C;
  --gold-light:  #E2C06A;
  --gold-pale:   #F5E9C8;
  --white:       #FFFFFF;
  --off-white:   #F8F7F4;
  --text-dark:   #1A1A2E;
  --text-muted:  #6B7280;
  --border:      #E5E7EB;
  --success:     #16A34A;
  --danger:      #DC2626;
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:   0 4px 16px rgba(13,27,75,.12);
  --shadow-lg:   0 12px 40px rgba(13,27,75,.18);
  --transition:  all .22s cubic-bezier(.23,1,.32,1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--off-white);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Typography ── */
h1, h2, h3, .display { font-family: 'Playfair Display', Georgia, serif; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.25rem; font-weight: 700; }
.lead { font-size: 1.125rem; line-height: 1.7; }
.small { font-size: .875rem; }

/* ── Navbar ── */
.ep-navbar {
  background: var(--navy);
  padding: .75rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.ep-navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.ep-navbar-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-decoration: none;
}
.ep-navbar-brand img {
  height: 52px;
  width: 52px;
  object-fit: contain;
  border-radius: 8px;
}
.ep-navbar-brand span { display: none; }
@media (min-width: 480px) { .ep-navbar-brand span { display: inline; } }
.ep-navbar-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.ep-lang-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,.35);
  color: rgba(255,255,255,.8);
  padding: .25rem .65rem;
  border-radius: 4px;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.ep-lang-btn.active,
.ep-lang-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}
.ep-user-greeting {
  color: rgba(255,255,255,.75);
  font-size: .9rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .6rem 1.35rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover { background: var(--navy-light); border-color: var(--navy-light); }
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline-gold:hover { background: var(--gold); color: var(--navy); }
.btn-success {
  background: var(--success);
  color: var(--white);
  border-color: var(--success);
}
.btn-success:hover { filter: brightness(1.1); }
.btn-danger { background: var(--danger); color: var(--white); border-color: var(--danger); }
.btn-secondary {
  background: #E5E7EB;
  color: var(--text-dark);
  border-color: #E5E7EB;
}
.btn-secondary:hover { background: #D1D5DB; }
.btn-sm { padding: .4rem .9rem; font-size: .8rem; }
.btn-lg { padding: .85rem 2rem; font-size: 1.05rem; }
.btn-xl { padding: 1rem 2.5rem; font-size: 1.15rem; border-radius: var(--radius-md); }
.btn-w100 { width: 100%; justify-content: center; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 768px) { .container { padding: 0 2rem; } }

/* ── HERO SECTION ── */
.ep-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}
.ep-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-bg.webp');
  background-size: cover;
  background-position: center 30%;
  opacity: .55;
}
.ep-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13,27,75,.88) 0%,
    rgba(13,27,75,.65) 50%,
    rgba(13,27,75,.40) 100%
  );
}
.ep-hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 4rem 0 5rem;
}
.ep-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(201,168,76,.18);
  border: 1px solid rgba(201,168,76,.45);
  color: var(--gold-light);
  padding: .35rem 1rem;
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.ep-hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.ep-hero h1 em {
  color: var(--gold-light);
  font-style: normal;
  display: block;
}
.ep-hero .lead {
  color: rgba(255,255,255,.82);
  margin-bottom: 2.25rem;
  max-width: 560px;
}
.ep-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.ep-hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3.5rem;
  flex-wrap: wrap;
}
.ep-hero-stat-item { text-align: left; }
.ep-hero-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
}
.ep-hero-stat-label {
  font-size: .8rem;
  color: rgba(255,255,255,.65);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: .2rem;
}

/* ── HOW IT WORKS ── */
.ep-how {
  background: var(--white);
  padding: 5rem 0;
}
.ep-section-tag {
  display: inline-block;
  background: var(--gold-pale);
  color: var(--navy);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.ep-section-title { color: var(--navy); margin-bottom: .75rem; }
.ep-section-sub { color: var(--text-muted); max-width: 540px; }
.ep-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.ep-step-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--off-white);
  transition: var(--transition);
}
.ep-step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.ep-step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.ep-step-card h3 { color: var(--navy); margin-bottom: .5rem; }
.ep-step-card p { color: var(--text-muted); font-size: .9rem; }

/* ── CATEGORIES PREVIEW ── */
.ep-categories {
  background: var(--off-white);
  padding: 5rem 0;
}
.ep-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.ep-cat-pill {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem .75rem;
  text-align: center;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  transition: var(--transition);
  cursor: default;
}
.ep-cat-pill:hover {
  background: var(--navy);
  color: var(--gold);
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.ep-cat-icon { font-size: 1.5rem; margin-bottom: .4rem; }

/* ── CTA BANNER ── */
.ep-cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ep-cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201,168,76,.15) 0%, transparent 70%);
}
.ep-cta-banner h2 { color: var(--white); position: relative; margin-bottom: 1rem; }
.ep-cta-banner p { color: rgba(255,255,255,.75); max-width: 520px; margin: 0 auto 2rem; position: relative; }
.ep-cta-banner .btn { position: relative; }

/* ── DIRECTORY LISTING ── */
.ep-directory {
  padding: 4rem 0;
}
.ep-directory-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}
.ep-search-bar {
  display: flex;
  gap: .5rem;
  flex: 1;
  max-width: 480px;
}
.ep-search-bar input {
  flex: 1;
  padding: .6rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  outline: none;
  transition: var(--transition);
}
.ep-search-bar input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(13,27,75,.1); }
.ep-biz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.ep-biz-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.ep-biz-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}
.ep-biz-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .75rem;
}
.ep-biz-name { font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.ep-biz-badge {
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 50px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ep-biz-badge-cat { background: var(--gold-pale); color: var(--navy); }
.ep-biz-meta { font-size: .82rem; color: var(--text-muted); margin-bottom: .75rem; }
.ep-biz-desc { font-size: .9rem; color: #374151; flex: 1; margin-bottom: 1rem; }
.ep-biz-church {
  font-size: .78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: .6rem;
  margin-bottom: .75rem;
}

/* ── FORMS ── */
.ep-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  max-width: 680px;
  margin: 0 auto;
}
.ep-form-card h2 { color: var(--navy); margin-bottom: .5rem; }
.ep-form-group { margin-bottom: 1.25rem; }
.ep-form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: .4rem;
}
.ep-form-group label .req { color: var(--danger); margin-left: 2px; }
.ep-form-control {
  width: 100%;
  padding: .65rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.ep-form-control:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(13,27,75,.1);
}
.ep-form-control::placeholder { color: #9CA3AF; }
select.ep-form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
textarea.ep-form-control { resize: vertical; min-height: 90px; }
.ep-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .ep-form-row { grid-template-columns: 1fr; } }
.ep-radio-group { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.ep-radio-label { display: flex; align-items: center; gap: .4rem; font-size: .9rem; cursor: pointer; }
.ep-check-label { display: flex; align-items: flex-start; gap: .5rem; font-size: .9rem; cursor: pointer; margin-bottom: .5rem; }

/* ── Progress Bar ── */
.ep-progress-wrap { margin-bottom: 2rem; }
.ep-progress-steps {
  display: flex;
  gap: .5rem;
  margin-bottom: .75rem;
}
.ep-progress-step {
  flex: 1;
  height: 5px;
  border-radius: 50px;
  background: var(--border);
  transition: background .3s;
}
.ep-progress-step.done { background: var(--gold); }
.ep-progress-step.active { background: var(--navy); }
.ep-progress-label { font-size: .82rem; color: var(--text-muted); }

/* ── Alerts ── */
.ep-alert {
  padding: .85rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  margin-bottom: 1.25rem;
  border-left: 4px solid;
}
.ep-alert-danger { background: #FEF2F2; color: #991B1B; border-color: var(--danger); }
.ep-alert-success { background: #F0FDF4; color: #166534; border-color: var(--success); }
.ep-alert-info { background: #EFF6FF; color: #1E40AF; border-color: #3B82F6; }
.ep-alert-warning { background: #FFFBEB; color: #92400E; border-color: #F59E0B; }

/* ── Profile Page ── */
.ep-profile-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 3rem 0 2rem;
  color: var(--white);
}
.ep-profile-header h1 { color: var(--white); font-size: 2rem; }
.ep-badge-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .75rem; }
.ep-badge {
  padding: .3rem .8rem;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 700;
}
.ep-badge-navy { background: rgba(255,255,255,.15); color: var(--white); }
.ep-badge-gold { background: var(--gold); color: var(--navy); }
.ep-badge-info { background: rgba(59,130,246,.25); color: #93C5FD; }
.ep-contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.ep-contact-card h5 { color: var(--navy); font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.ep-contact-row { display: flex; align-items: center; gap: .5rem; font-size: .9rem; margin-bottom: .6rem; }
.ep-contact-row a { color: var(--navy); font-weight: 500; }
.ep-contact-row a:hover { color: var(--gold); }
.ep-members-only {
  text-align: center;
  padding: 1.5rem;
  background: var(--off-white);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
}
.ep-members-only p { color: var(--text-muted); font-size: .9rem; margin-bottom: 1rem; }

/* ── Footer ── */
.ep-footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 2.5rem 0;
  text-align: center;
}
.ep-footer a { color: var(--gold-light); }
.ep-footer a:hover { color: var(--white); }
.ep-footer-logo { height: 48px; width: 48px; object-fit: contain; margin: 0 auto 1rem; }
.ep-footer-copy { font-size: .85rem; margin-top: .5rem; }

/* ── Admin Panel ── */
.ep-admin-wrap { padding: 2rem 0; }
.ep-admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ep-admin-table th { background: var(--navy); color: var(--white); padding: .75rem 1rem; text-align: left; }
.ep-admin-table td { padding: .7rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.ep-admin-table tr:hover td { background: var(--off-white); }
.ep-status-badge {
  padding: .2rem .65rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 700;
}
.ep-status-pending { background: #FEF3C7; color: #92400E; }
.ep-status-approved { background: #D1FAE5; color: #065F46; }
.ep-status-rejected { background: #FEE2E2; color: #991B1B; }

/* ── Login Card ── */
.ep-login-wrap {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: var(--off-white);
}
.ep-login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
}
.ep-login-card h3 { color: var(--navy); text-align: center; margin-bottom: 1.75rem; }

/* ── Utilities ── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.text-white { color: var(--white); }
.mt-1 { margin-top: .25rem; } .mt-2 { margin-top: .5rem; } .mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; } .mt-5 { margin-top: 1.5rem; } .mt-6 { margin-top: 2rem; }
.mb-1 { margin-bottom: .25rem; } .mb-2 { margin-bottom: .5rem; } .mb-3 { margin-bottom: .75rem; }
.mb-4 { margin-bottom: 1rem; } .mb-5 { margin-bottom: 1.5rem; } .mb-6 { margin-bottom: 2rem; }
.d-flex { display: flex; } .gap-2 { gap: .5rem; } .gap-3 { gap: .75rem; } .gap-4 { gap: 1rem; }
.align-center { align-items: center; } .justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.w-100 { width: 100%; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 768px) { .row { grid-template-columns: 1fr; } }
.col-lg-8 { } .col-lg-4 { }
@media (min-width: 992px) {
  .row-lg-8-4 { grid-template-columns: 2fr 1fr; }
}
.section-pad { padding: 4rem 0; }
.divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }
.list-clean { list-style: none; padding: 0; }
.list-clean li {
  padding: .5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
  color: var(--text-dark);
}
.list-clean li:last-child { border-bottom: none; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .ep-hero { min-height: 80vh; }
  .ep-hero-content { padding: 3rem 0 4rem; }
  .ep-hero-stats { gap: 1.5rem; }
  .ep-form-card { padding: 1.5rem; }
}

/* Header logo sizing */
.ep-navbar img,
.navbar-brand img,
header img {
    width: 72px !important;
    height: 72px !important;
    object-fit: contain;
}
