/* ============================================
   RCC Loja — Design System & Styles
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --red: #C0392B;
  --red-dark: #96281B;
  --red-light: #E74C3C;
  --gold: #F1C40F;
  --gold-dark: #D4AC0D;
  --gold-light: #F9E547;
  --white: #FFFFFF;
  --off-white: #FDF6F0;
  --gray-100: #F8F9FA;
  --gray-200: #E9ECEF;
  --gray-300: #DEE2E6;
  --gray-600: #6C757D;
  --gray-700: #495057;
  --dark: #2C3E50;
  --dark-light: #34495E;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, .1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, .12);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, .15);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 50%;

  --transition: .3s ease;
  --max-width: 1200px;
  --header-height: 70px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: 70px;
  /* space for radio bar */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.3;
  color: var(--dark);
}

a {
  color: var(--red);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--red-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-center {
  text-align: center;
}

.text-gold {
  color: var(--gold-dark);
}

.text-red {
  color: var(--red);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.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: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--dark);
}

.logo img {
  height: 45px;
  width: auto;
}

.logo span {
  color: var(--red);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle .hamburger,
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--dark);
  transition: var(--transition);
}

.nav-toggle .hamburger {
  position: relative;
}

.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav-toggle .hamburger::before {
  top: -8px;
}

.nav-toggle .hamburger::after {
  top: 8px;
}

.nav-toggle.active .hamburger {
  background: transparent;
}

.nav-toggle.active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.nav-toggle.active .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  display: block;
  padding: 8px 14px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--dark-light);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--red);
  background: rgba(192, 57, 43, .06);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--dark) 0%, var(--red-dark) 50%, var(--red) 100%);
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(transparent, var(--white));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 40px 20px;
}

.hero-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 30px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, .1);
  padding: 15px;
  backdrop-filter: blur(5px);
}

.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 16px;
  font-style: italic;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}

.hero h1 .highlight {
  color: var(--gold);
  display: block;
  font-style: normal;
  font-size: .6em;
  margin-top: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 10px;
}

.hero-divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 25px auto;
  border-radius: 3px;
}

.hero .scroll-hint {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .5);
  font-size: .8rem;
  animation: bounce 2s infinite;
}

.hero .scroll-hint i {
  display: block;
  font-size: 1.4rem;
  margin-top: 5px;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

/* ============================================
   WELCOME / BIENVENIDA
   ============================================ */
.welcome {
  padding: 80px 0;
  background: var(--white);
}

.welcome-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.welcome-content blockquote {
  font-size: 1.05rem;
  color: var(--gray-700);
  line-height: 1.9;
  position: relative;
  padding: 30px 40px;
  background: var(--off-white);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--gold);
}

.welcome-content blockquote footer {
  margin-top: 20px;
  font-weight: 700;
  color: var(--red);
  font-size: .95rem;
}

.welcome-content blockquote footer small {
  display: block;
  font-weight: 400;
  color: var(--gray-600);
  font-size: .85rem;
}

/* --- Quick Access Cards --- */
.quick-access {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 50px;
}

.quick-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
}

.quick-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--red);
}

.quick-card .card-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  font-size: 1.4rem;
  color: var(--white);
}

.quick-card .card-icon.red {
  background: var(--red);
}

.quick-card .card-icon.gold {
  background: var(--gold-dark);
}

.quick-card .card-icon.dark {
  background: var(--dark);
}

.quick-card .card-text h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.quick-card .card-text p {
  font-size: .85rem;
  color: var(--gray-600);
}

/* ============================================
   SECTION COMMON STYLES
   ============================================ */
.section {
  padding: 90px 0;
}

.section--alt {
  background: var(--off-white);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--gold);
  margin: 12px auto 0;
  border-radius: 3px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   QUIÉNES SOMOS
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.about-text h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--red);
}

.about-text p {
  margin-bottom: 16px;
  color: var(--gray-700);
}

.objectives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.objective-card {
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--gold);
}

.objective-card h4 {
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}

.objective-card p {
  font-size: .9rem;
  color: var(--gray-600);
}

.activities-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.activities-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--white);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  color: var(--gray-700);
}

.activities-list li i {
  color: var(--red);
  font-size: .9rem;
}

/* ============================================
   COMUNIDAD SACERDOTAL
   ============================================ */
.community-intro {
  max-width: 800px;
  margin: 0 auto 40px;
}

.community-intro p {
  margin-bottom: 14px;
  color: var(--gray-700);
}

.community-intro strong {
  color: var(--dark);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.pillar-card {
  text-align: center;
  padding: 30px 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}

.pillar-card:hover {
  transform: translateY(-4px);
}

.pillar-card .pillar-num {
  width: 40px;
  height: 40px;
  background: var(--red);
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 14px;
}

.pillar-card h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 8px;
}

.pillar-card p {
  font-size: .85rem;
  color: var(--gray-600);
}

.vows-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.vow-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, var(--off-white), var(--white));
  border-radius: var(--radius-sm);
}

.vow-item i {
  color: var(--gold-dark);
  font-size: 1.2rem;
  margin-top: 3px;
}

.vow-item strong {
  display: block;
  margin-bottom: 2px;
}

.vow-item span {
  font-size: .88rem;
  color: var(--gray-600);
}

.formation-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 24px 0;
  justify-content: center;
}

.formation-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  font-size: .9rem;
}

.formation-step .step-num {
  width: 32px;
  height: 32px;
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .8rem;
  flex-shrink: 0;
}

.founder-section {
  margin-top: 60px;
  padding: 40px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--red-dark) 100%);
  border-radius: var(--radius-lg);
  color: var(--white);
}

.founder-section h3 {
  color: var(--gold);
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.founder-section .founder-subtitle {
  color: rgba(255, 255, 255, .7);
  font-style: italic;
  margin-bottom: 20px;
}

.founder-section p {
  color: rgba(255, 255, 255, .9);
  margin-bottom: 14px;
}

.founder-quote {
  margin-top: 24px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, .1);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}

.founder-quote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-weight: 700;
  color: var(--gold);
}

/* ============================================
   BIBLIOTECA DE ORACIONES
   ============================================ */
.prayers-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
  align-items: center;
  justify-content: center;
}

.prayers-search {
  flex: 1;
  min-width: 250px;
  max-width: 400px;
  position: relative;
}

.prayers-search input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: .95rem;
  font-family: var(--font-body);
  transition: border-color var(--transition);
}

.prayers-search input:focus {
  outline: none;
  border-color: var(--red);
}

.prayers-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-600);
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.category-btn {
  padding: 8px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  font-family: var(--font-body);
  font-size: .85rem;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.category-btn:hover,
.category-btn.active {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

.prayers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.prayer-card {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
}

.prayer-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.prayer-card .prayer-cat {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--red);
  background: rgba(192, 57, 43, .08);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.prayer-card h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.prayer-card .prayer-preview {
  font-size: .88rem;
  color: var(--gray-600);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Prayer Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: modalIn .3s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.modal-close:hover {
  background: var(--gray-200);
}

.modal .prayer-cat {
  margin-bottom: 10px;
}

.modal h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  padding-right: 40px;
}

.modal .prayer-full-text {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--gray-700);
  white-space: pre-line;
}

/* ============================================
   RADIO ONLINE
   ============================================ */
.radio-hero {
  text-align: center;
  padding: 40px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--red-dark) 100%);
  border-radius: var(--radius-lg);
  color: var(--white);
  margin-bottom: 40px;
}

.radio-hero h3 {
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 4px;
}

.radio-hero p {
  color: rgba(255, 255, 255, .8);
}

.radio-player-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 30px 0 10px;
}

.radio-play-btn {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-full);
  border: 3px solid var(--gold);
  background: rgba(255, 255, 255, .1);
  color: var(--gold);
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.radio-play-btn:hover {
  background: var(--gold);
  color: var(--dark);
}

.radio-play-btn.playing {
  background: var(--gold);
  color: var(--dark);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(241, 196, 15, .4);
  }

  50% {
    box-shadow: 0 0 0 15px rgba(241, 196, 15, 0);
  }
}

.radio-status {
  font-size: .9rem;
  color: rgba(255, 255, 255, .6);
}

.radio-status .live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--red-light);
  border-radius: var(--radius-full);
  margin-right: 5px;
  animation: blink 1.5s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .3;
  }
}

.radio-info {
  margin-bottom: 40px;
}

.radio-info p {
  color: var(--gray-700);
  margin-bottom: 14px;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: .93rem;
}

.schedule-table th {
  background: var(--dark);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 700;
}

.schedule-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-200);
}

.schedule-table tr:nth-child(even) td {
  background: var(--gray-100);
}

.schedule-table tr:hover td {
  background: rgba(192, 57, 43, .04);
}

.radio-form-section {
  margin-top: 40px;
}

.radio-form-section h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

/* ============================================
   FORMS
   ============================================ */
.form {
  max-width: 600px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .95rem;
  transition: border-color var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--red);
  color: var(--red);
}

.btn-outline:hover {
  background: var(--red);
  color: var(--white);
}

.form-message {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  margin-top: 12px;
  display: none;
}

.form-message.success {
  display: block;
  background: #D4EDDA;
  color: #155724;
  border: 1px solid #C3E6CB;
}

.form-message.error {
  display: block;
  background: #F8D7DA;
  color: #721C24;
  border: 1px solid #F5C6CB;
}

/* ============================================
   EVENTOS Y NOTICIAS
   ============================================ */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-bottom: 50px;
}

.event-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}

.event-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.event-card-header {
  padding: 20px 24px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 14px;
}

.event-card-header .event-icon {
  font-size: 2rem;
}

.event-card-header h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1.05rem;
}

.event-card-body {
  padding: 20px 24px;
}

.event-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  font-size: .88rem;
  color: var(--gray-600);
}

.event-meta i {
  color: var(--red);
  width: 18px;
}

.event-card-body p {
  font-size: .93rem;
  color: var(--gray-700);
}

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

.news-card {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: box-shadow var(--transition);
}

.news-card:hover {
  box-shadow: var(--shadow-md);
}

.news-card .news-date {
  font-size: .8rem;
  color: var(--gray-600);
  margin-bottom: 8px;
}

.news-card h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 8px;
}

.news-card p {
  font-size: .9rem;
  color: var(--gray-600);
}

/* ============================================
   CONTACTO
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-info-item i {
  width: 40px;
  height: 40px;
  background: rgba(192, 57, 43, .08);
  color: var(--red);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-item strong {
  display: block;
  font-size: .9rem;
}

.contact-info-item span {
  font-size: .88rem;
  color: var(--gray-600);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--red);
  color: var(--white);
}

.map-container {
  margin-top: 30px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  height: 250px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================
   RECURSOS
   ============================================ */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.resource-group {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
}

.resource-group h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
}

.resource-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: .93rem;
}

.resource-list li:last-child {
  border-bottom: none;
}

.resource-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--dark-light);
}

.resource-list a:hover {
  color: var(--red);
}

.resource-list a i {
  color: var(--red);
  width: 20px;
  text-align: center;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, .8);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer h4 {
  color: var(--gold);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-about p {
  font-size: .9rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.footer-about .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-about .footer-logo img {
  height: 40px;
  width: auto;
}

.footer-about .footer-logo span {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--white);
  font-size: 1.1rem;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, .7);
  font-size: .9rem;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 24px;
  text-align: center;
  font-size: .85rem;
  color: rgba(255, 255, 255, .5);
}

.footer-bottom .footer-verse {
  font-style: italic;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 8px;
}

/* ============================================
   RADIO PLAYER BAR (Fixed Bottom)
   ============================================ */
.radio-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--dark);
  color: var(--white);
  z-index: 999;
  display: flex;
  align-items: center;
  padding: 0 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, .2);
}

.radio-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

.radio-bar-play {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 2px solid var(--gold);
  background: none;
  color: var(--gold);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}

.radio-bar-play:hover,
.radio-bar-play.playing {
  background: var(--gold);
  color: var(--dark);
}

.radio-bar-info {
  flex: 1;
  min-width: 0;
}

.radio-bar-title {
  font-weight: 700;
  font-size: .88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.radio-bar-subtitle {
  font-size: .75rem;
  color: rgba(255, 255, 255, .5);
}

.radio-bar-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  color: var(--red-light);
  font-weight: 600;
}

.radio-bar-volume {
  display: flex;
  align-items: center;
  gap: 8px;
}

.radio-bar-volume i {
  font-size: .9rem;
  color: rgba(255, 255, 255, .6);
}

.radio-bar-volume input[type="range"] {
  width: 80px;
  accent-color: var(--gold);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-xl);
    padding: 80px 24px 24px;
    transition: right var(--transition);
    z-index: 1000;
    overflow-y: auto;
  }

  .main-nav.open {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 2px;
  }

  .main-nav a {
    font-size: 1rem;
    padding: 12px 16px;
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 999;
    display: none;
  }

  .nav-overlay.show {
    display: block;
  }

  .hero {
    min-height: 90vh;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero-logo {
    width: 90px;
    height: 90px;
  }

  .section {
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .quick-access {
    grid-template-columns: 1fr;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .prayers-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .founder-section {
    padding: 24px;
  }

  .radio-bar-volume {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 1.4rem;
  }

  .logo span {
    display: none;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   LOADING & ANIMATIONS
   ============================================ */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.loading-spinner::after {
  content: '';
  width: 36px;
  height: 36px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--red);
  border-radius: var(--radius-full);
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
