/* ==========================================================================
   Hope Mission - Apple Ultra-Minimalist Design System (Borderless & Seamless)
   Features:
   - Responsive Balanced Typography for Hero (clamp font sizes, text-wrap balance)
   - High Contrast Secondary Button (.btn-secondary visible on dark background)
   - Option 1 Dark Petroleum Studio Hero (#07151E + Emerald Radial Glow)
   - 2-Column Split 50/50 Layout for Section 2 GoFundMe Campaign
   - 3-Column Balanced Impact Metrics Section with align-items: stretch
   - Day Mode (Modo Día) & Night Mode (Modo Noche) Engine
   - Floating Pill Navigation
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

/* Default Night Mode Variables (Modo Noche) */
:root, [data-theme="dark"] {
  --bg-main: #0B0F12;
  --bg-pill: rgba(20, 26, 33, 0.85);
  
  --text-main: #F5F5F7;
  --text-muted: #98989D;
  --text-subtle: #6E6E73;
  
  --emerald: #00E5A3;
  --emerald-hover: #12F5B3;
  --emerald-dark: #00B37E;
  --emerald-glow: rgba(0, 229, 163, 0.16);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(0, 229, 163, 0.35);
  --shadow-apple: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 10px 25px -8px rgba(0, 229, 163, 0.3);

  /* Impact Section (White Background #FFFFFF) */
  --bg-impact: #FFFFFF;
  --text-impact-main: #0B0F12;
  --text-impact-muted: #64748B;
  --border-impact: rgba(0, 0, 0, 0.08);

  --input-bg: rgba(255, 255, 255, 0.03);
  --input-border: rgba(255, 255, 255, 0.12);
  --trust-bg: rgba(255, 255, 255, 0.02);
}

/* Day Mode Variables (Modo Día) */
[data-theme="light"] {
  --bg-main: #F5F5F7;
  --bg-pill: rgba(255, 255, 255, 0.88);
  
  --text-main: #1D1D1F;
  --text-muted: #6E6E73;
  --text-subtle: #86868B;
  
  --emerald: #00B37E;
  --emerald-hover: #00875F;
  --emerald-dark: #00875F;
  --emerald-glow: rgba(0, 179, 126, 0.12);

  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-active: rgba(0, 179, 126, 0.4);
  --shadow-apple: 0 20px 40px -15px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 10px 25px -8px rgba(0, 179, 126, 0.25);

  /* Impact Section (White Background #FFFFFF) */
  --bg-impact: #FFFFFF;
  --text-impact-main: #1D1D1F;
  --text-impact-muted: #6E6E73;
  --border-impact: rgba(0, 0, 0, 0.08);

  --input-bg: rgba(0, 0, 0, 0.03);
  --input-border: rgba(0, 0, 0, 0.12);
  --trust-bg: rgba(0, 0, 0, 0.02);
}

/* Global Setup */
:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-pill: 9999px;
  --radius-input: 12px;
  --transition-apple: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  font-size: 16px;
  color: var(--text-main);
  background-color: var(--bg-main);
  transition: background-color 0.4s ease, color 0.4s ease;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Helpers */
.highlight-emerald {
  color: #00E5A3;
  font-weight: 800;
}

.text-gradient {
  background: linear-gradient(135deg, var(--text-main) 30%, var(--emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: transparent;
  border: 1px solid var(--border-active);
  border-radius: var(--radius-pill);
  color: var(--emerald);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--emerald);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.15); }
}

/* Floating Pill Navbar */
.navbar-wrapper {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}

.navbar-pill {
  pointer-events: auto;
  background: var(--bg-pill);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1050px;
  width: 100%;
  box-shadow: var(--shadow-apple);
  transition: var(--transition-apple);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.brand-icon {
  width: 28px;
  height: 28px;
  background: var(--emerald);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #07151E;
  padding: 4px;
  transition: var(--transition-apple);
}

.brand-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition-apple);
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.control-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 5px 11px;
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition-apple);
}

.control-btn:hover {
  border-color: var(--border-active);
  color: var(--emerald);
}

/* Minimalist Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-apple);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--emerald);
  color: #07151E;
  font-weight: 700;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background-color: var(--emerald-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-secondary:hover {
  border-color: var(--emerald);
  color: var(--emerald);
  transform: translateY(-1px);
}

[data-theme="light"] .btn-secondary {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-main);
  border: 1px solid rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .btn-secondary:hover {
  background: rgba(0, 179, 126, 0.06);
  border-color: var(--emerald);
  color: var(--emerald);
}

.btn-large {
  padding: 14px 28px;
  font-size: 0.95rem;
}

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

.section {
  padding: 100px 0;
  position: relative;
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-top: 10px;
  margin-bottom: 12px;
  line-height: 1.15;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.6;
}

/* ==========================================================================
   SECTION 1: HERO (Seamless Photo Integration + Editorial Typography)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 88vh;
  padding-top: 170px;
  padding-bottom: 95px;
  display: flex;
  align-items: center;
  background-color: #07151E;
  overflow: hidden;
}

.hero-bg-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 65%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  filter: brightness(0.9) contrast(1.05);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(to right, #07151E 0%, rgba(7, 21, 30, 0.95) 15%, rgba(7, 21, 30, 0.5) 55%, rgba(7, 21, 30, 0.05) 100%),
    linear-gradient(to top, #07151E 0%, rgba(7, 21, 30, 0) 25%),
    linear-gradient(to bottom, #07151E 0%, rgba(7, 21, 30, 0) 20%);
}

[data-theme="light"] .hero-section {
  background-color: #f1f5f9;
}

[data-theme="light"] .hero-bg-overlay {
  background: 
    linear-gradient(to right, #f1f5f9 0%, rgba(241, 245, 249, 0.95) 15%, rgba(241, 245, 249, 0.5) 55%, rgba(241, 245, 249, 0.05) 100%),
    linear-gradient(to top, #f1f5f9 0%, rgba(241, 245, 249, 0) 25%),
    linear-gradient(to bottom, #f1f5f9 0%, rgba(241, 245, 249, 0) 20%);
}

[data-theme="light"] .hero-section .hero-title {
  color: #0f172a;
}

[data-theme="light"] .hero-section .hero-subtitle {
  color: #475569;
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 22px;
}

.hero-title {
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.04em;
  color: #FFFFFF;
  text-align: left;
  margin: 0;
  text-wrap: balance;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  color: #CBD5E1;
  line-height: 1.6;
  text-align: left;
  max-width: 540px;
  margin: 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin-top: 6px;
  flex-wrap: wrap;
}

/* Secondary Button Contrast in Hero */
.hero-section .btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-section .btn-secondary:hover {
  background: rgba(0, 229, 163, 0.14);
  border-color: #00E5A3;
  color: #00E5A3;
  transform: translateY(-2px);
}

[data-theme="light"] .hero-section .btn-secondary {
  background: rgba(15, 23, 42, 0.06);
  color: #0F172A;
  border: 1px solid rgba(15, 23, 42, 0.24);
}

[data-theme="light"] .hero-section .btn-secondary:hover {
  background: rgba(0, 179, 126, 0.1);
  border-color: #00B37E;
  color: #00875A;
}

/* ==========================================================================
   SECTION 2: CAMPAÑA ACTIVA GOFUNDME (50/50 Split Layout)
   ========================================================================== */
.campaign-section {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.campaign-split-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}

.campaign-left-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.campaign-left-title {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.campaign-left-subtitle {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.impact-bullet-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.impact-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-main);
}

.impact-bullet-icon {
  color: var(--emerald);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Trust Box */
.trust-box {
  background: var(--trust-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.trust-box-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.trust-box-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.campaign-right-col {
  display: flex;
  justify-content: center;
  width: 100%;
}

.gfm-embed-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   SECTION 3: EL IMPACTO (3 Columnas Perfecto Equilibrio, align-items: stretch)
   ========================================================================== */
.impact-section {
  background-color: var(--bg-impact);
  color: var(--text-impact-main);
}

.impact-header .section-title {
  color: var(--text-impact-main);
}

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

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: stretch;
}

.impact-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 2px solid var(--border-impact);
  transition: var(--transition-apple);
  height: 100%;
}

.impact-item:hover {
  border-top-color: var(--emerald);
}

.impact-number {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text-impact-main);
}

.impact-text {
  font-size: 1.02rem;
  color: var(--text-impact-muted);
  font-weight: 500;
  line-height: 1.5;
}

/* ==========================================================================
   SECTION 4: TRANSPARENCIA EN EL CAMPO (Galería - Seamless)
   ========================================================================== */
.gallery-section {
  text-align: center;
}

.gallery-content-wrapper {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.gallery-icon-bubble {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--emerald-glow);
  color: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-content-wrapper h3 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.gallery-content-wrapper p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   SECTION 5: QUIÉNES SOMOS (Directorio Editorial Borderless)
   ========================================================================== */
.team-section {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.team-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.team-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.member-role {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--emerald);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.member-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.member-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   SECTION 6: HISTORIA Y FE
   ========================================================================== */
.history-section {
  position: relative;
}

.history-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

.history-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.history-col h3 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.history-col p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Clean Blockquote */
.verse-blockquote {
  border-left: 2px solid var(--emerald);
  padding-left: 20px;
  margin-top: 10px;
}

.verse-text {
  font-size: 1.15rem;
  color: var(--text-main);
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 6px;
}

.verse-cite {
  font-size: 0.85rem;
  color: var(--emerald);
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.02em;
}

.coffee-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-left: 24px;
  border-left: 1px solid var(--border-subtle);
}

.coffee-icon-bubble {
  width: 48px;
  height: 48px;
  background: var(--emerald-glow);
  border-radius: 50%;
  color: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
}

.coffee-col h3 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.coffee-col p {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   SECTION 7: QUIERO SER PARTE (Seamless Form)
   ========================================================================== */
.contact-section {
  border-top: 1px solid var(--border-subtle);
}

.contact-form-container {
  max-width: 540px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-input, .form-select {
  width: 100%;
  padding: 14px 18px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-input);
  color: var(--text-main);
  outline: none;
  transition: var(--transition-apple);
}

.form-input:focus, .form-select:focus {
  border-color: var(--emerald);
}

.form-select option {
  background: var(--bg-main);
  color: var(--text-main);
}

/* Toast Notifications */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 22px;
  background: var(--bg-pill);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-pill);
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-apple);
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition-apple);
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   SECTION 8: PIE DE PÁGINA (Footer)
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 28px 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.footer-email-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.98rem;
  color: var(--emerald);
  font-weight: 600;
}

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

.social-icon-text {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: 20px;
  transition: var(--transition-apple);
}

.social-icon-text:hover {
  border-color: var(--border-active);
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.05);
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-subtle);
  margin-top: 14px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 18px;
  width: 100%;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-section {
    min-height: auto;
    padding-top: 330px;
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 420px;
    max-height: 50vh;
    opacity: 1;
  }

  .hero-bg-image {
    object-position: center 15%;
    filter: brightness(0.96) contrast(1.05);
  }

  .hero-bg-overlay {
    background: 
      linear-gradient(to right, rgba(7, 21, 30, 0.5) 0%, transparent 10%, transparent 90%, rgba(7, 21, 30, 0.5) 100%),
      linear-gradient(to bottom, rgba(7, 21, 30, 0.5) 0%, rgba(7, 21, 30, 0) 20%, rgba(7, 21, 30, 0.3) 65%, #07151E 98%);
  }

  [data-theme="light"] .hero-bg-overlay {
    background: 
      linear-gradient(to right, rgba(241, 245, 249, 0.5) 0%, transparent 10%, transparent 90%, rgba(241, 245, 249, 0.5) 100%),
      linear-gradient(to bottom, rgba(241, 245, 249, 0.5) 0%, rgba(241, 245, 249, 0) 20%, rgba(241, 245, 249, 0.35) 65%, #f1f5f9 98%);
  }

  .hero-content {
    max-width: 100%;
    align-items: flex-start;
    text-align: left;
    gap: 18px;
  }

  .hero-actions {
    flex-direction: row;
    width: 100%;
    justify-content: flex-start;
    margin: 8px 0 0 0;
  }

  .campaign-split-grid, .history-grid, .impact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .coffee-col {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--border-subtle);
    padding-top: 32px;
  }

  .nav-menu {
    display: none;
  }
}

@media (max-width: 600px) {
  .navbar-wrapper {
    top: 10px;
    padding: 0 10px;
  }

  .navbar-pill {
    padding: 6px 12px;
    gap: 8px;
    width: 100%;
  }

  .brand-logo {
    font-size: 0.95rem;
    gap: 6px;
  }

  .brand-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    padding: 3px;
  }

  .nav-controls {
    gap: 6px;
  }

  .control-btn {
    padding: 4px 8px;
    font-size: 0.74rem;
    gap: 3px;
  }

  .container {
    padding: 0 16px;
  }

  .section {
    padding: 55px 0;
  }

  .section-header {
    margin-bottom: 30px;
  }

  .section-title {
    font-size: clamp(1.75rem, 6.5vw, 2.1rem);
    letter-spacing: -0.03em;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .hero-section {
    min-height: auto;
    padding-top: 275px;
    padding-bottom: 40px;
  }

  .hero-bg-wrapper {
    height: 330px;
    max-height: 48vh;
  }

  .hero-bg-image {
    object-position: center 8%;
  }

  .hero-bg-overlay {
    background: 
      linear-gradient(to right, rgba(7, 21, 30, 0.4) 0%, transparent 8%, transparent 92%, rgba(7, 21, 30, 0.4) 100%),
      linear-gradient(to bottom, rgba(7, 21, 30, 0.45) 0%, rgba(7, 21, 30, 0) 18%, rgba(7, 21, 30, 0.3) 60%, #07151E 96%);
  }

  [data-theme="light"] .hero-bg-overlay {
    background: 
      linear-gradient(to right, rgba(241, 245, 249, 0.4) 0%, transparent 8%, transparent 92%, rgba(241, 245, 249, 0.4) 100%),
      linear-gradient(to bottom, rgba(241, 245, 249, 0.45) 0%, rgba(241, 245, 249, 0) 18%, rgba(241, 245, 249, 0.35) 60%, #f1f5f9 96%);
  }

  .hero-content {
    gap: 14px;
  }

  .hero-title {
    font-size: clamp(1.95rem, 7.5vw, 2.35rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-top: 4px;
  }

  .hero-actions .btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .campaign-left-title {
    font-size: 1.65rem;
  }

  .campaign-left-subtitle {
    font-size: 0.95rem;
  }

  .trust-box {
    padding: 18px 16px;
  }

  .gfm-embed-wrapper {
    width: 100%;
    overflow: hidden;
  }

  .gfm-embed-wrapper iframe {
    max-width: 100% !important;
    width: 100% !important;
  }

  .impact-grid {
    gap: 20px;
  }

  .impact-item {
    padding-top: 16px;
    gap: 6px;
  }

  .impact-number {
    font-size: 2.6rem;
  }

  .impact-text {
    font-size: 0.92rem;
  }

  .gallery-content-wrapper h3 {
    font-size: 1.65rem;
  }

  .gallery-content-wrapper p {
    font-size: 0.95rem;
  }

  .team-list {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .team-item {
    padding-bottom: 18px;
  }

  .member-name {
    font-size: 1.18rem;
  }

  .member-desc {
    font-size: 0.88rem;
  }

  .history-col h3 {
    font-size: 1.6rem;
  }

  .history-col p {
    font-size: 0.95rem;
  }

  .verse-blockquote {
    padding-left: 14px;
  }

  .verse-text {
    font-size: 0.98rem;
  }

  .coffee-col h3 {
    font-size: 1.5rem;
  }

  .contact-form {
    gap: 16px;
  }

  .form-input, .form-select {
    font-size: 16px; /* Prevents auto-zoom on iOS/Android */
    padding: 12px 14px;
  }

  .toast-notification {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
    padding: 12px 16px;
    font-size: 0.85rem;
    justify-content: center;
    text-align: center;
  }

  .footer {
    padding: 36px 0 24px 0;
  }

  .social-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 380px) {
  .brand-logo span {
    font-size: 0.88rem;
  }

  .control-btn span {
    display: none;
  }

  .control-btn {
    padding: 5px;
  }

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

/* FLOATING GOFUNDME TOP-UP BANNER */
.gfm-floating-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(30, 41, 59, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 18px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  max-width: 380px;
}

[data-theme="light"] .gfm-floating-banner {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.gfm-floating-banner.show {
  transform: translateY(0);
  opacity: 1;
}

.gfm-floating-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
  flex-shrink: 0;
}

.gfm-floating-content {
  flex-grow: 1;
}

.gfm-floating-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.gfm-floating-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.gfm-floating-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gfm-floating-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  background: var(--emerald);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-apple);
}

.gfm-floating-btn:hover {
  background: #059669;
  transform: scale(1.02);
}

.gfm-floating-close {
  background: transparent;
  border: none;
  color: var(--text-subtle);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-apple);
}

.gfm-floating-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

[data-theme="light"] .gfm-floating-close:hover {
  background: rgba(0, 0, 0, 0.05);
}

@media (max-width: 600px) {
  .gfm-floating-banner {
    bottom: 16px;
    left: 16px;
    right: 16px;
    max-width: calc(100% - 32px);
    gap: 12px;
    padding: 10px 14px;
  }
}

/* COFFEE AGENDA MODAL */
.coffee-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.coffee-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.coffee-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.coffee-modal-wrapper {
  position: relative;
  width: 90%;
  max-width: 480px;
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  transform: scale(0.95) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

[data-theme="light"] .coffee-modal-wrapper {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.coffee-modal.show .coffee-modal-wrapper {
  transform: scale(1) translateY(0);
}

.coffee-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.coffee-modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.coffee-modal-close {
  background: transparent;
  border: none;
  color: var(--text-subtle);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-apple);
}

.coffee-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

[data-theme="light"] .coffee-modal-close:hover {
  background: rgba(0, 0, 0, 0.05);
}

.coffee-modal-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.coffee-option-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 14px 18px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: var(--transition-apple);
  text-align: left;
}

[data-theme="light"] .coffee-option-card {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.coffee-option-card:hover {
  background: rgba(16, 185, 129, 0.08);
  border-color: var(--emerald);
  transform: translateY(-2px);
}

.coffee-option-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald);
  flex-shrink: 0;
}

.coffee-option-text {
  flex-grow: 1;
}

.coffee-option-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.coffee-option-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   CINEMATIC PRELOADER
   ========================================================================== */
.preloader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #07090b; /* Fondo oscuro ultra premium por defecto */
  z-index: 99999; /* Por encima de absolutamente todo */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
  overflow: hidden;
}

/* En Modo Día, la intro sigue siendo oscura para mantener el toque cinemático y teatral al cargar */
[data-theme="light"] .preloader-overlay {
  background-color: #0B0F12;
}

.preloader-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 229, 163, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: preloaderPulse 3s infinite ease-in-out;
  pointer-events: none;
}

.preloader-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 24px;
}

.preloader-logo-wrapper {
  animation: preloaderFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.preloader-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #FFFFFF 30%, #00E5A3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.preloader-divider {
  width: 50px;
  height: 2px;
  background: #00E5A3;
  margin: 16px auto;
  border-radius: 2px;
}

.preloader-subtitle {
  font-size: 1.05rem;
  font-weight: 500;
  color: #8A99AD;
  letter-spacing: -0.01em;
}

.preloader-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: #00E5A3;
  border-radius: 50%;
  animation: preloaderSpin 1s linear infinite;
  margin-top: 10px;
}

/* Animaciones */
@keyframes preloaderSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes preloaderPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 1;
  }
}

@keyframes preloaderFadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animación para el contenido principal detrás de la intro al desvanecerse */
.preloader-fadeOut {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Ajustes Responsive */
@media (max-width: 600px) {
  .preloader-title {
    font-size: 1.8rem;
  }
  .preloader-subtitle {
    font-size: 0.95rem;
  }
  .preloader-glow {
    width: 280px;
    height: 280px;
  }
}

/* ==========================================================================
   REAL-TIME DATA DASHBOARD VIEW (#realtimedata)
   ========================================================================== */
.realtimedata-view {
  min-height: 80vh;
  padding-top: 110px;
  animation: fadeInView 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInView {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.realtimedata-section {
  padding: 30px 0 80px 0;
}

.realtimedata-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
}

.realtimedata-header {
  text-align: left;
  max-width: 800px;
  margin: 0 0 28px 0;
}

.realtimedata-header .section-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 10px;
}

/* Informative Notice / Acotación Discreta */
.realtime-notice-simple {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: -10px 0 24px 0;
  max-width: 820px;
  opacity: 0.85;
}

/* Looker Studio Frame Container */
.looker-dashboard-container {
  width: 100%;
  background: rgba(20, 26, 33, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 8px;
  box-shadow: var(--shadow-apple);
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

[data-theme="light"] .looker-dashboard-container {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
}

.looker-dashboard-frame-wrapper {
  position: relative;
  width: 100%;
  height: 820px;
  max-height: 85vh;
  min-height: 520px;
  border-radius: 14px;
  overflow: hidden;
  background-color: #0b0f12;
}

[data-theme="light"] .looker-dashboard-frame-wrapper {
  background-color: #f8fafc;
}

.looker-dashboard-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  opacity: 0;
  filter: blur(14px);
  transform: scale(0.99);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.looker-dashboard-iframe.loaded {
  opacity: 1;
  filter: blur(0px);
  transform: scale(1);
}

/* Glassmorphic Loader Overlay */
.looker-loader-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 15, 18, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  z-index: 10;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

[data-theme="light"] .looker-loader-overlay {
  background: rgba(248, 250, 252, 0.88);
}

.looker-loader-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.looker-loader-spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(0, 229, 163, 0.15);
  border-top-color: var(--emerald);
  animation: lookerSpin 0.9s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite;
  box-shadow: 0 0 20px rgba(0, 229, 163, 0.3);
}

@keyframes lookerSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.looker-loader-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: -0.01em;
  animation: lookerPulseText 1.8s ease-in-out infinite;
}

@keyframes lookerPulseText {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; color: var(--text-main); }
}

@media (max-width: 768px) {
  .realtimedata-view {
    padding-top: 85px;
  }

  .realtimedata-section {
    padding: 20px 0 60px 0;
  }

  .realtimedata-header {
    text-align: center;
    margin: 0 auto 20px auto;
  }

  .realtimedata-nav-header {
    justify-content: center;
    margin-bottom: 18px;
  }

  .looker-dashboard-frame-wrapper {
    height: 600px;
    min-height: 440px;
  }

  .realtime-notice-box {
    padding: 14px 16px;
    gap: 12px;
  }
}
