/* ==========================================================================
   CIRAL - Proyectos Solidarios & Responsabilidad Social
   Estilos específicos para la sección de impacto comunitario y ambiental
   ========================================================================== */

:root {
  --ciral-orange: #fa5f0b;
  --ciral-orange-hover: #e04f02;
  --ciral-orange-light: #fff3ec;
  --ciral-dark: #0f172a;
  --ciral-dark-blue: #1e293b;
  --ciral-gray-text: #475569;
  --ciral-gray-light: #f8fafc;
  --ciral-border: #e2e8f0;

  --asora-emerald: #059669;
  --asora-emerald-light: #ecfdf5;
  --asora-emerald-border: #a7f3d0;

  --tesla-blue: #0284c7;
  --tesla-blue-light: #f0f9ff;
  --tesla-blue-border: #bae6fd;
}

/* --------------------------------------------------------------------------
   Hero / Page Title Area
   -------------------------------------------------------------------------- */
.solidarios-hero {
  position: relative;
  background: linear-gradient(135deg, #0b1324 0%, #152238 60%, #0f172a 100%);
  padding: 100px 0 80px;
  overflow: hidden;
  color: #ffffff;
}

.solidarios-hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(250, 95, 11, 0.22) 0%, rgba(250, 95, 11, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.solidarios-hero::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -80px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.18) 0%, rgba(5, 150, 105, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.solidarios-hero .container {
  position: relative;
  z-index: 2;
}

.solidarios-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 13.5px;
  color: #cbd5e1;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.solidarios-breadcrumb a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.25s ease;
}

.solidarios-breadcrumb a:hover {
  color: #fa5f0b;
}

.solidarios-breadcrumb span.sep {
  opacity: 0.5;
}

.solidarios-breadcrumb span.current {
  color: #ffffff;
  font-weight: 600;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(250, 95, 11, 0.15);
  border: 1px solid rgba(250, 95, 11, 0.45);
  color: #ff9457;
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 18px;
}

.hero-pill-badge i {
  font-size: 18px;
  animation: pulseHeart 1.8s ease-in-out infinite;
}

@keyframes pulseHeart {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.22); }
}

.solidarios-hero h1 {
  font-size: 42px;
  line-height: 1.25;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.solidarios-hero h1 .text-gradient-orange {
  background: linear-gradient(135deg, #fa5f0b 0%, #ff9852 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.solidarios-hero-lead {
  font-size: 17px;
  line-height: 1.75;
  color: #cbd5e1;
  max-width: 820px;
  margin-bottom: 30px;
}

.solidarios-quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.quick-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.28s ease;
  backdrop-filter: blur(6px);
}

.quick-nav-btn:hover {
  background: #fa5f0b;
  border-color: #fa5f0b;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(250, 95, 11, 0.35);
}

.quick-nav-btn.asora-nav:hover {
  background: #059669;
  border-color: #059669;
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.35);
}

.quick-nav-btn.tesla-nav:hover {
  background: #0284c7;
  border-color: #0284c7;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35);
}

/* --------------------------------------------------------------------------
   Impact Ribbon / Stats
   -------------------------------------------------------------------------- */
.solidarios-stats-bar {
  position: relative;
  margin-top: -40px;
  z-index: 10;
  margin-bottom: 50px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 24px 20px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.stat-icon.orange {
  background: #fff3ec;
  color: #fa5f0b;
}

.stat-icon.emerald {
  background: #ecfdf5;
  color: #059669;
}

.stat-icon.blue {
  background: #f0f9ff;
  color: #0284c7;
}

.stat-icon.purple {
  background: #f5f3ff;
  color: #7c3aed;
}

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.stat-label {
  font-size: 13px;
  color: #64748b;
  margin-top: 4px;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Initiative Sections (ASORA & Nikola Tesla)
   -------------------------------------------------------------------------- */
.solidarios-section {
  padding: 60px 0 80px;
  position: relative;
}

.solidarios-section.bg-alt {
  background-color: #f8fafc;
}

.initiative-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 14px;
}

.initiative-badge.asora-badge {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.initiative-badge.tesla-badge {
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.solidarios-section h2 {
  font-size: 34px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: -0.4px;
}

.solidarios-narrative {
  font-size: 16px;
  line-height: 1.85;
  color: #334155;
  margin-bottom: 20px;
}

.solidarios-narrative p {
  margin-bottom: 16px;
}

.solidarios-narrative strong {
  color: #0f172a;
}

/* Quote Box */
.solidarios-quote-box {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  padding: 32px 36px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  margin: 30px 0 35px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.solidarios-quote-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 6px;
}

.solidarios-quote-box.asora-quote::before {
  background: linear-gradient(to bottom, #059669, #34d399);
}

.solidarios-quote-box.tesla-quote::before {
  background: linear-gradient(to bottom, #fa5f0b, #0284c7);
}

.quote-watermark {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 70px;
  opacity: 0.08;
  color: #0f172a;
  pointer-events: none;
  line-height: 1;
}

.solidarios-quote-box blockquote {
  font-size: 16.5px;
  line-height: 1.8;
  color: #1e293b;
  margin: 0 0 20px 0;
  font-style: normal;
  position: relative;
  z-index: 2;
}

.solidarios-quote-box blockquote a {
  color: #fa5f0b;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.solidarios-quote-box blockquote a:hover {
  color: #e04f02;
}

.solidarios-quote-box .quote-author {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
}

.author-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.asora-quote .author-badge-icon {
  background: #ecfdf5;
  color: #059669;
}

.tesla-quote .author-badge-icon {
  background: #fff3ec;
  color: #fa5f0b;
}

.author-details strong {
  display: block;
  font-size: 15px;
  color: #0f172a;
  font-weight: 700;
}

.author-details span {
  font-size: 13px;
  color: #64748b;
}

/* Feature Checkpoints */
.initiative-points {
  list-style: none;
  padding: 0;
  margin: 25px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.initiative-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: #334155;
  line-height: 1.6;
}

.initiative-points li i {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.asora-points li i {
  color: #059669;
}

.tesla-points li i {
  color: #0284c7;
}

/* --------------------------------------------------------------------------
   Gallery Bento Grid
   -------------------------------------------------------------------------- */
.solidarios-gallery-wrap {
  position: relative;
}

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

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  background: #0f172a;
  display: block;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

/* Bento variations */
.gallery-item.item-tall {
  grid-column: span 1;
  grid-row: span 2;
  min-height: 380px;
}

.gallery-item.item-wide {
  grid-column: span 2;
  min-height: 220px;
}

.gallery-item.item-standard {
  min-height: 190px;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay .zoom-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.gallery-caption {
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.gallery-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(250, 95, 11, 0.9);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
  align-self: flex-start;
}

.gallery-tag.tag-asora {
  background: rgba(5, 150, 105, 0.92);
}

.gallery-tag.tag-tesla {
  background: rgba(2, 132, 199, 0.92);
}

/* --------------------------------------------------------------------------
   Divider Banner
   -------------------------------------------------------------------------- */
.solidarios-divider-banner {
  background: linear-gradient(135deg, #fa5f0b 0%, #ff7b2b 100%);
  padding: 40px 0;
  color: #ffffff;
}

.divider-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.divider-text h3 {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.divider-text p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.divider-action a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #fa5f0b;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}

.divider-action a:hover {
  background: #0f172a;
  color: #ffffff;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Philosophy / Manifesto Section
   -------------------------------------------------------------------------- */
.solidarios-manifesto-area {
  padding: 90px 0 80px;
  background-color: #ffffff;
}

.manifesto-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 55px;
}

.manifesto-header .section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff3ec;
  color: #fa5f0b;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.manifesto-header h2 {
  font-size: 34px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 15px;
}

.manifesto-header p {
  font-size: 16px;
  color: #64748b;
  line-height: 1.7;
}

.manifesto-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.manifesto-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 36px 30px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.manifesto-card:hover {
  transform: translateY(-6px);
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.manifesto-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 24px;
}

.manifesto-card:nth-child(1) .manifesto-card-icon {
  background: #ecfdf5;
  color: #059669;
}

.manifesto-card:nth-child(2) .manifesto-card-icon {
  background: #f0f9ff;
  color: #0284c7;
}

.manifesto-card:nth-child(3) .manifesto-card-icon {
  background: #fff3ec;
  color: #fa5f0b;
}

.manifesto-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
}

.manifesto-card p {
  font-size: 14.5px;
  line-height: 1.7;
  color: #64748b;
  margin: 0;
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.solidarios-cta-area {
  padding: 0 0 90px;
}

.solidarios-cta-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 24px;
  padding: 60px 50px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.16);
}

.solidarios-cta-card::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(250, 95, 11, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.solidarios-cta-content {
  max-width: 680px;
  position: relative;
  z-index: 2;
}

.solidarios-cta-card h2 {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.3;
}

.solidarios-cta-card p {
  font-size: 16px;
  line-height: 1.7;
  color: #cbd5e1;
  margin-bottom: 30px;
}

.solidarios-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.cta-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fa5f0b;
  color: #ffffff;
  padding: 13px 28px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 6px 18px rgba(250, 95, 11, 0.4);
}

.cta-primary-btn:hover {
  background: #e04f02;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(250, 95, 11, 0.5);
}

.cta-secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 13px 26px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.cta-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .solidarios-hero {
    padding: 70px 0 60px;
  }
  .solidarios-hero h1 {
    font-size: 32px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .solidarios-stats-bar {
    margin-top: -20px;
  }
  .manifesto-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .divider-flex {
    flex-direction: column;
    text-align: center;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item.item-tall {
    grid-row: span 1;
    min-height: 220px;
  }
  .gallery-item.item-wide {
    grid-column: span 2;
  }
  .solidarios-cta-card {
    padding: 40px 30px;
  }
}

@media (max-width: 767px) {
  .solidarios-hero h1 {
    font-size: 27px;
  }
  .solidarios-hero-lead {
    font-size: 15.5px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .solidarios-section h2 {
    font-size: 26px;
  }
  .solidarios-quote-box {
    padding: 24px 20px;
  }
  .solidarios-quote-box blockquote {
    font-size: 15px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-item.item-tall,
  .gallery-item.item-wide,
  .gallery-item.item-standard {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 220px;
  }
  .solidarios-cta-actions {
    flex-direction: column;
  }
  .cta-primary-btn,
  .cta-secondary-btn {
    width: 100%;
    justify-content: center;
  }
}
