/* =============================================
   INFORMACION.CSS - ESTILOS ESPECÍFICOS
   Cooperativa de Servicios Múltiples CB
   Requiere: global.css
   ============================================= */

/* === VARIABLES LOCALES ADICIONALES === */
:root {
  --text-muted: #999999;
  --accent-color: #fbbc04;
  --error-color: #dc3545;
  --warning-color: #ffc107;
  --border-color: #e2e8f0;
  --bg-alt: #ffffff;

  /* Colores de Bancos */
  --bcp-color: #003399;
  --bbva-color: #14549C;
  --bn-color: #d11019;

  /* Colores de Canales */
  --yape-color: #742384;
  --plin-color: #00d5ff;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

body.dark-mode {
  --border-color: #333333;
  --bg-alt: #1a1a1a;
}

/* === ESTRUCTURA DE SECCIONES === */
.info-section {
  padding: 25px 0;
}

.info-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.section-icon {
  width: 60px;
  height: 60px;
  background: rgba(26, 115, 232, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 15px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--text-color);
  margin-bottom: 10px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
}

/* === HERO INFORMACIÓN === */
.info-hero {
  background: linear-gradient(135deg, #1a2a6c 0%, #2c5f7c 50%, #1a73e8 100%);
  color: white;
  padding: 60px 30px;
  text-align: center;
  position: relative;
}

.info-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 60%);
}

.info-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.info-hero h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  margin-bottom: 15px;
  line-height: 1.2;
}

.info-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero-quick-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-quick-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
  backdrop-filter: blur(5px);
  white-space: nowrap;
}

.hero-quick-btn:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-3px);
}

/* === HORARIOS DE ATENCIÓN === */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-bottom: 30px;
}

.schedule-card {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 25px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.schedule-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(26, 115, 232, 0.3);
}

.schedule-day-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.schedule-day-header i {
  font-size: 1.3rem;
}

.schedule-time {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.time-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.time-label {
  font-weight: 600;
  color: var(--text-color);
  font-size: 0.95rem;
}

.time-value {
  color: var(--text-light);
  font-size: 0.95rem;
  background: var(--bg-alt);
  padding: 4px 10px;
  border-radius: 6px;
}

.schedule-time.closed {
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 600;
}

.schedule-badge {
  position: absolute;
  top: 25px;
  right: 25px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.schedule-badge.open {
  background: rgba(40, 167, 69, 0.1);
  color: var(--success-color);
}

.schedule-badge.partial {
  background: rgba(255, 193, 7, 0.15);
  color: #d39e00;
}

body.dark-mode .schedule-badge.partial {
  color: var(--warning-color);
}

.schedule-badge.closed {
  background: rgba(220, 53, 69, 0.1);
  color: var(--error-color);
}

/* Indicador de Estado en Tiempo Real */
.realtime-status {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: white;
  padding: 15px 25px;
  border-radius: 50px;
  max-width: 400px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  font-weight: 600;
}

body.dark-mode .realtime-status {
  background: var(--bg-alt);
}

.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  position: relative;
}

.status-indicator.is-open {
  background: var(--success-color);
  box-shadow: 0 0 10px var(--success-color);
}

.status-indicator.is-closed {
  background: var(--error-color);
  box-shadow: 0 0 10px var(--error-color);
}

.status-indicator.is-open::after {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid var(--success-color);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* === CUENTAS BANCARIAS === */
.accounts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.account-card {
  background: var(--bg-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.account-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.bank-header {
  padding: 20px;
  color: white;
  display: flex;
  align-items: center;
  gap: 15px;
}

.bank-header.bcp {
  background: linear-gradient(135deg, var(--bcp-color), #F27405);
}

.bank-header.bbva {
  background: linear-gradient(135deg, var(--bbva-color), #00B1E1);
}

.bank-header.banco-nacion {
  background: linear-gradient(135deg, var(--bn-color), #a00b12);
}

.bank-logo-icon {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.bank-title {
  display: flex;
  flex-direction: column;
}

.bank-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.1;
}

.bank-full {
  font-size: 0.8rem;
  opacity: 0.8;
}

.account-details {
  padding: 20px;
}

.account-row {
  margin-bottom: 15px;
}

.account-row:last-child {
  margin-bottom: 0;
}

.account-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 5px;
  font-weight: 600;
}

.account-number-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-alt);
  padding: 10px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.account-number {
  font-family: "Courier New", Courier, monospace;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-color);
  letter-spacing: 0.5px;
  word-break: break-all;
}

.copy-btn {
  background: transparent;
  border: none;
  color: var(--primary-color);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.copy-btn:hover {
  background: rgba(26, 115, 232, 0.1);
  transform: scale(1.1);
}

.copy-btn.copied {
  color: var(--success-color);
}

.accounts-note {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(250, 188, 4, 0.1);
  border-left: 4px solid var(--accent-color);
  padding: 20px;
  border-radius: 4px;
  margin-top: 10px;
}

.accounts-note i {
  font-size: 2rem;
  color: #b08000;
}

body.dark-mode .accounts-note i {
  color: var(--accent-color);
}

.accounts-note p {
  color: var(--text-color);
  font-size: 0.95rem;
  margin: 0;
}

/* === CANALES DE PAGO === */
.payments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.payment-card {
  background: var(--bg-color);
  padding: 30px 25px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.payment-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.payment-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
  color: white;
}

.payment-icon.yape {
  background: linear-gradient(135deg, var(--yape-color), #4c1758);
}

.payment-icon.plin {
  background: linear-gradient(135deg, var(--plin-color), #0095b3);
}

.payment-icon.transfer {
  background: linear-gradient(135deg, #6c757d, #495057);
}

.payment-icon.cash {
  background: linear-gradient(135deg, #28a745, #1e7e34);
}

.payment-icon.whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.payment-icon.online {
  background: linear-gradient(135deg, #17a2b8, #117a8b);
}

.payment-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.payment-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 20px;
  flex: 1;
}

.payment-detail {
  background: var(--bg-alt);
  padding: 10px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border-color);
}

.payment-detail i {
  color: var(--primary-color);
}

.payment-detail a {
  color: var(--primary-color);
  transition: color 0.2s;
}

.payment-detail a:hover {
  text-decoration: underline;
  color: var(--primary-hover);
}

/* === CONTACTOS OFICIALES === */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.contact-card {
  background: var(--bg-color);
  padding: 30px 20px;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 15px;
  color: var(--primary-color);
}

.contact-icon.whatsapp {
  color: #25d366;
  background: rgba(37, 211, 102, 0.1);
}

.contact-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-item {
  background: var(--bg-alt);
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-color);
  border: 1px solid transparent;
  transition: all 0.2s;
}

.contact-item:hover {
  background: rgba(26, 115, 232, 0.05);
  border-color: rgba(26, 115, 232, 0.2);
  color: var(--primary-color);
}

.contact-item.whatsapp-link:hover {
  background: rgba(37, 211, 102, 0.05);
  border-color: rgba(37, 211, 102, 0.2);
  color: #128c7e;
}

/* === PREGUNTAS FRECUENTES (FAQ) === */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.3s;
}

.faq-item:hover {
  border-color: rgba(26, 115, 232, 0.3);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 25px;
  background: transparent;
  border: none;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s;
}

.faq-question:hover {
  color: var(--primary-color);
}

.faq-question i {
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  background: var(--bg-alt);
}

.faq-answer p {
  padding: 0 25px 20px 25px;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-answer a {
  color: var(--primary-color);
  font-weight: 600;
}

.faq-answer a:hover {
  text-decoration: underline;
}

.contact-item span,
.account-number,
.payment-detail span,
.payment-detail a {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

@media (max-width: 992px) {
  .accounts-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto 30px;
  }

  .payments-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contacts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .info-section {
    padding-top: 5px;
  }

  .info-container {
    padding: 0 15px;
  }

  .info-hero {
    padding: 60px 15px 40px;
  }

  .hero-quick-links {
    gap: 10px;
  }

  .hero-quick-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .info-hero h1 {
    font-size: 2.2rem;
  }

  .info-hero p {
    font-size: 1rem;
  }

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

  .section-header p {
    font-size: 1rem;
  }

  .schedule-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .schedule-card {
    padding: 12px;
  }

  .schedule-card span {
    font-size: 0.95rem;
  }

  .schedule-day-header {
    font-size: 0.95rem;
    padding-bottom: 8px;
    margin-bottom: 10px;
    gap: 5px;
  }

  .time-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    align-items: center;
  }

  .time-label {
    font-size: 0.8rem;
    opacity: 0.8;
  }

  .time-value {
    font-size: 0.8rem;
    padding: 2px 6px;
  }

  .schedule-badge {
    position: static;
    display: inline-flex;
    margin-top: 10px;
    font-size: 0.65rem;
    padding: 2px 8px;
  }

  .accounts-note {
    flex-direction: column;
    text-align: center;
  }

  .copyright-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {

  .payments-grid,
  .contacts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .payment-card,
  .contact-card {
    padding: 15px 10px;
  }

  .payment-icon,
  .contact-icon {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  .payment-card h3,
  .contact-card h3 {
    font-size: 0.95rem;
    margin-bottom: 8px;
  }

  .payment-card p {
    font-size: 0.95rem;
    margin-bottom: 12px;
  }

  .payment-detail {
    font-size: 0.95rem;
    padding: 6px;
  }

  .contact-item {
    padding: 8px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {

  .payments-grid,
  .schedule-grid,
  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .info-hero h1 {
    font-size: 1.8rem;
  }

  .account-number {
    font-size: 0.95rem;
  }

  .account-number-wrapper {
    padding: 8px 10px;
  }

  .hero-quick-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
  }

  .hero-quick-btn {
    white-space: normal;
    text-align: center;
    justify-content: center;
    width: 100%;
    padding: 10px 5px;
    font-size: 0.8rem;
  }
}