/* =============================================================================
   APRODE PERÚ - ESTILOS GENERALES DE PROYECTOS
   ============================================================================= */


/* =============================================================================
   1. RESET GLOBAL
   ============================================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


/* =============================================================================
   2. FAQ / PREGUNTAS FRECUENTES
   ============================================================================= */

.faq-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.cart-pregunta {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 0.7%;
    box-shadow: 0 2px 12px rgba(26,58,124,0.07);
    transition: box-shadow 0.3s ease;
    margin-left: 5%;
    margin-right: 5%;
}

.cart-pregunta:hover {
    box-shadow: 0 4px 20px rgba(26,58,124,0.13);
}

.pregunta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    min-height: 72px;
    position: relative;
}

.pregunta-texto {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: #1a1a2e;
    padding: 18px 24px;
    flex: 1;
    line-height: 1.4;
    transition: opacity 0.3s ease;
}


/* =============================================================================
   3. BOTÓN TOGGLE FAQ
   ============================================================================= */

.btn-toggle {
    flex-shrink: 0;
    background: #fff;
    color: #1a3a7c;
    border: 2px solid #1a3a7c;
    border-radius: 4%;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 12px 20px;
    margin: 12px 16px 12px 12px;
    cursor: pointer;
    white-space: nowrap;
    transition:
        transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
        background 0.3s ease,
        color 0.3s ease,
        margin 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-width: 140px;
    text-align: center;
    letter-spacing: 0.3px;
    position: relative;
}

.btn-toggle:hover {
    background: #1a3a7c;
    color: #fff;
}

.cart-pregunta.activo .pregunta-row {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

.cart-pregunta.activo .btn-toggle {
    transform: none;
    margin: 12px 12px 12px 16px;
    background: #1a3a7c;
    color: #fff;
}


/* =============================================================================
   4. PANEL DE INFORMACIÓN DESPLEGABLE
   ============================================================================= */

.informacion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease, padding 0.3s ease;
    background: #f0f4ff;
}

.informacion-panel.visible {
    max-height: 300px;
}

.informacion-panel p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #2d3748;
    padding: 18px 24px;
    text-align: justify;
    margin: 0;
}

.informacion-panel ul,
.informacion-panel ol {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #2d3748;
    padding: 18px 24px;
    text-align: justify;
    margin: 0;
}

.informacion-panel li {
    margin-bottom: 8px;
    padding-left: 8px;
}


/* =============================================================================
   5. GALERÍA 2X3
   ============================================================================= */

.galeria-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.galeria-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.galeria-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.galeria-item:hover img {
    transform: scale(1.05);
}

.galeria-caption {
    display: none !important;
}

@media (max-width: 992px) {
    .galeria-container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .galeria-container { grid-template-columns: 1fr; }
}


/* =============================================================================
   6. SECCIÓN QR PREMIUM (DONACIONES)
   ============================================================================= */

.qr-premium-section {
  position: relative;
  padding: 90px 20px;
  background: var(--bg-img) center/cover no-repeat;
  overflow: hidden;
  font-family: 'Montserrat', sans-serif;
}

.qr-premium-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6,50,94,0.92), rgba(37,37,35,0.85));
  z-index: 1;
}

.qr-premium-container {
  position: relative;
  z-index: 2;
  max-width: 1150px;
  margin: 0 auto;
  text-align: center;
  color: #ffffff;
}

.qr-premium-title {
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.qr-premium-divider {
  width: 90px;
  height: 4px;
  background: #fff201;
  margin: 0 auto 30px auto;
  border-radius: 3px;
}

.qr-premium-text {
  max-width: 750px;
  margin: 0 auto 60px auto;
  font-size: 1.05rem;
  line-height: 1.6;
}

.qr-premium-cards {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.qr-premium-card {
  background: rgba(255,255,255,0.95);
  padding: 30px 20px;
  border-radius: 18px;
  width: 240px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-premium-card:hover {
  transform: translateY(-8px);
}

.qr-logo {
  width: 100px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

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

.qr-code {
  width: 170px;
  height: 170px;
  object-fit: contain;
  margin-bottom: 20px;
}

.qr-btn {
  position: relative;
  display: inline-block;
  padding: 12px 26px;
  background: #142441;
  color: #ececec;
  font-weight: 700;
  border-radius: 40px;
  text-decoration: none;
  overflow: hidden;
  transition: 0.3s ease;
}

.qr-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.7), transparent);
  transition: 0.6s;
}

.qr-btn:hover::before { left: 100%; }

.qr-btn:hover {
  box-shadow: 0 0 15px rgba(23,34,58,0.8);
  transform: translateY(-3px);
}

.qr-premium-footer {
  margin-top: 70px;
  font-size: 0.95rem;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .qr-premium-title { font-size: 1.8rem; }
  .qr-premium-cards { gap: 35px; }
  .qr-premium-card { width: 90%; max-width: 300px; }
}


/* =============================================================================
   7. HERO PRINCIPAL (CJ-HERO)
   ============================================================================= */

.cj-hero {
    height: 460px;
    position: relative;
}

.cj-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.cj-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(57,63,111,0.92) 0%, rgba(57,63,111,0.55) 60%, transparent 100%);
    display: flex;
    align-items: center;
}

.cj-hero-content {
    max-width: 600px;
    padding: 0 70px;
    color: #fff;
}

@media (max-width: 900px) {
    .cj-hero { height: 380px; }
    .cj-hero-content { padding: 0 36px; }
    .cj-hero-content h1 { font-size: 1.8rem; }
}

@media (max-width: 768px) {
    .cj-hero { height: 300px; }
    .cj-hero-overlay { background: rgba(57,63,111,0.85); }
    .cj-hero-content { padding: 0 28px; }
    .cj-hero-content h1 { font-size: 1.5rem; }
}

@media (max-width: 576px) {
    .cj-hero { height: 240px; }
    .cj-hero-content h1 { font-size: 1.3rem; }
    .cj-hero-content p { display: none; }
}

@media (max-width: 380px) {
    .cj-hero { height: 200px; }
    .cj-hero-content { padding: 0 18px; }
    .cj-hero-content h1 { font-size: 1.1rem; }
}


/* =============================================================================
   8. RESPONSIVE FAQ
   ============================================================================= */

@media (max-width: 992px) {
    .pregunta-texto { font-size: 0.85rem; padding: 16px 18px; }
    .btn-toggle { font-size: 0.78rem; padding: 10px 16px; min-width: 120px; margin: 10px 12px 10px 10px; }
}

@media (max-width: 576px) {
    .faq-section { padding: 0 12px; }
    .cart-pregunta { margin-left: 0; margin-right: 0; margin-bottom: 12px; border-radius: 10px; overflow: hidden; }
    .pregunta-row { flex-direction: row-reverse; justify-content: flex-start; align-items: center; padding: 12px 10px; min-height: 60px; }
    .pregunta-texto { padding: 6px 10px; font-size: 0.8rem; line-height: 1.4; }
    .btn-toggle { width: auto; margin: 8px 10px 8px 12px; font-size: 0.72rem; padding: 8px 12px; min-width: 85px; border-radius: 5px; flex-shrink: 0; }
    .cart-pregunta.activo .pregunta-row { flex-direction: row-reverse; justify-content: flex-start; }
    .cart-pregunta.activo .btn-toggle { margin: 8px 10px 8px 12px; padding: 8px 12px; }
    .informacion-panel p, .informacion-panel ul, .informacion-panel ol { padding: 12px 14px; font-size: 0.84rem; line-height: 1.6; }
}

@media (max-width: 400px) {
    .faq-section { padding: 0 10px; }
    .cart-pregunta { margin-left: 0; margin-right: 0; margin-bottom: 10px; border-radius: 8px; overflow: hidden; }
    .pregunta-row { flex-direction: row-reverse; justify-content: flex-start; align-items: center; padding: 10px 8px; min-height: 56px; }
    .pregunta-texto { font-size: 0.72rem; line-height: 1.3; padding: 6px 10px; }
    .btn-toggle { font-size: 0.62rem; padding: 6px 8px; min-width: 70px; width: auto; margin: 6px 8px 6px 10px; border-radius: 4px; flex-shrink: 0; }
    .cart-pregunta.activo .btn-toggle { margin: 6px 8px 6px 10px; padding: 6px 8px; }
    .informacion-panel p, .informacion-panel ul, .informacion-panel ol { padding: 10px 12px; font-size: 0.78rem; line-height: 1.5; }
    .informacion-panel li { margin-bottom: 4px; padding-left: 4px; }
}

@media (max-width: 320px) {
    .faq-section { padding: 0 10px; }
    .cart-pregunta { margin-left: 0; margin-right: 0; margin-bottom: 8px; border-radius: 6px; }
    .pregunta-row { flex-direction: column; align-items: stretch; padding: 10px; }
    .pregunta-texto { font-size: 0.82rem; line-height: 1.4; padding: 6px 0; margin-bottom: 6px; order: 1; }
    .btn-toggle { font-size: 0.75rem; padding: 8px 12px; width: 100%; min-width: auto; margin: 0 0 8px 0; order: 2; transform: none !important; border-radius: 5px; }
    .cart-pregunta.activo .pregunta-row { flex-direction: column; }
    .informacion-panel p, .informacion-panel ul, .informacion-panel ol { font-size: 0.8rem; padding: 10px 12px; }
}