/* ========================================
   CARLOS - TU GRANITO AYUDA
   Landing Page Solidaria
   ======================================== */

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

:root {
  --color-primary: #000000;
  --color-secondary: #0f172a;
  --color-accent: #22c55e;
  --color-accent-light: #86efac;
  --color-bg: #ffffff;
  --color-bg-light: #f8fafc;
  --color-bg-dark: #0f172a;
  --color-text: #1e293b;
  --color-text-light: #64748b;
  --color-text-white: #ffffff;
  --color-border: #e2e8f0;
  --color-heart: #60a5fa;
  
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.navbar-content {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 64px;
  padding: 0 24px;
}

.navbar-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  padding: 120px 24px 80px;
  background: linear-gradient(180deg, var(--color-bg-light) 0%, var(--color-bg) 100%);
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(34, 197, 94, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(96, 165, 250, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-primary);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--color-text-light);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-subtitle strong {
  color: var(--color-text);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  padding: 14px 0;
}

.btn-secondary:hover {
  color: var(--color-primary);
}

/* Progress Bar */
.progress-section {
  max-width: 500px;
}

.progress-bar-container {
  width: 100%;
  height: 12px;
  background: var(--color-border);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 16px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
  border-radius: 100px;
  width: 0;
  transition: width 1.5s ease-out;
}

.progress-amount {
  font-size: 18px;
  color: var(--color-text);
  margin-bottom: 4px;
}

.progress-amount strong {
  font-weight: 700;
}

.progress-goal {
  font-size: 15px;
  color: var(--color-text-light);
}

/* Hero Image */
.hero-image {
  display: flex;
  justify-content: center;
}

.image-card {
  background: var(--color-bg);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  max-width: 450px;
}

.carlos-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.image-caption {
  padding: 20px 24px;
  font-size: 14px;
  color: var(--color-text-light);
  text-align: left;
}

/* ========================================
   HISTORIA SECTION
   ======================================== */
.historia {
  padding: 100px 24px;
  background: var(--color-bg);
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 40px;
  letter-spacing: -0.02em;
}

.historia-content {
  max-width: 800px;
}

.historia-content p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 24px;
}

.historia-content strong {
  color: var(--color-primary);
  font-weight: 600;
}

.highlight-message {
  font-size: 18px !important;
  font-weight: 500;
  color: var(--color-heart) !important;
  padding: 24px;
  background: rgba(96, 165, 250, 0.1);
  border-radius: var(--radius-lg);
  margin-top: 32px !important;
}

/* Aclaración */
.aclaracion {
  margin-top: 60px;
  padding: 40px;
  background: var(--color-bg-light);
  border-radius: var(--radius-xl);
  max-width: 800px;
}

.aclaracion-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.aclaracion p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 16px;
}

.aclaracion p:last-child {
  margin-bottom: 0;
}

/* ========================================
   DONAR SECTION
   ======================================== */
.donar {
  padding: 80px 24px;
  background: var(--color-bg-dark);
}

.donar-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-text-white);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.donar-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
}

.donar-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.donar-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 24px;
}

.donar-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.donar-input-group {
  display: flex;
  gap: 12px;
}

.donar-input {
  flex: 1;
  padding: 14px 16px;
  font-size: 15px;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
  color: var(--color-text-white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  outline: none;
}

.btn-copy {
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-text-white);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-copy:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
}

.btn-copy.copied {
  background: var(--color-accent);
  color: white;
}

.donar-titular {
  font-size: 16px;
  color: var(--color-text-white);
  margin-bottom: 8px;
}

.donar-note {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   TRANSPARENCIA SECTION
   ======================================== */
.transparencia {
  padding: 100px 24px;
  background: var(--color-bg);
}

.transparencia-intro {
  font-size: 17px;
  color: var(--color-text-light);
  margin-bottom: 32px;
}

.costos-lista {
  list-style: none;
  max-width: 600px;
}

.costos-lista li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 16px;
}

.costos-lista li:first-child {
  padding-top: 0;
}

.costo-item {
  color: var(--color-text);
  font-weight: 500;
}

.costo-valor {
  color: var(--color-text-light);
  white-space: nowrap;
  margin-left: 16px;
}

.transparencia-note {
  margin-top: 24px;
  font-size: 15px;
  color: var(--color-text-light);
  font-style: italic;
}

/* ========================================
   FAQ SECTION
   ======================================== */
.faq {
  padding: 100px 24px;
  background: var(--color-bg-light);
}

.accordion {
  max-width: 800px;
}

.accordion-item {
  border-bottom: 1px solid var(--color-border);
}

.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s ease;
}

.accordion-header:hover {
  color: var(--color-primary);
}

.accordion-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-item.active .accordion-content {
  max-height: 500px;
  padding-bottom: 24px;
}

.accordion-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-light);
}

.accordion-content strong {
  color: var(--color-text);
  font-weight: 600;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  padding: 40px 24px;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer p {
  font-size: 14px;
  color: var(--color-text-light);
}

/* ========================================
   SCROLL TO TOP BUTTON
   ======================================== */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: var(--color-text-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: #1a1a1a;
  transform: translateY(-2px);
}

.scroll-top svg {
  width: 20px;
  height: 20px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .hero-text {
    order: 1;
  }
  
  .hero-image {
    order: 2;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .donar-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 100px 16px 60px;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .btn-primary {
    width: 100%;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .historia,
  .transparencia,
  .faq {
    padding: 60px 16px;
  }
  
  .donar {
    padding: 60px 16px;
  }
  
  .donar-card {
    padding: 20px;
  }
  
  .donar-input-group {
    flex-direction: column;
  }
  
  .btn-copy {
    width: 100%;
  }
  
  .costos-lista li {
    flex-direction: column;
    gap: 4px;
  }
  
  .costo-valor {
    margin-left: 0;
  }
  
  .aclaracion {
    padding: 24px;
  }
  
  .image-card {
    max-width: 100%;
  }
  
  .scroll-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title,
.hero-subtitle,
.hero-buttons,
.progress-section {
  animation: fadeInUp 0.6s ease forwards;
}

.hero-subtitle {
  animation-delay: 0.1s;
}

.hero-buttons {
  animation-delay: 0.2s;
}

.progress-section {
  animation-delay: 0.3s;
}

.hero-image {
  animation: fadeInUp 0.6s ease 0.4s forwards;
  opacity: 0;
}
