@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");

:root {
  --primary-color: #b4dced; /* Amarillo/Dorado principal */
  --secondary-color: #fdeecf;
  --text-color: #2b4e81;
  --background-color: #fff;
  --red-color: #ec407a;
  --border-radius: 12px;
}

body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  background-color: #fefcf8;
  color: var(--text-color);
  justify-content: center;
  align-items: center;
  min-height: 100vh;

  .main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--background-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .logo img {
    height: 50px;
  }

  .main-nav a {
    margin: 0 1rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
  }

  .main-nav .cta-button {
    background-color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-weight: 700;
  }

  .hero {
    height: 300px;
    background: url("../img/imagen_banner.webp") no-repeat center center/cover; /* Reemplaza con la URL de tu imagen de fondo */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
  }

  .hero-content {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    max-width: 400px;
    border-color: #000;
  }

  .hero-content h1 {
    font-size: 2rem;
    color: #005ea6;
    margin: 0;
  }

  .info-section {
    text-align: center;
    background-color: #e8f8ff;
    padding: 3rem 2rem;
  }

  .info-section h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-color);
  }

  .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
  }

  .info-card {
    background-color: var(--background-color);
    border: 2px solid var(--text-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .info-card img {
    height: 40px;
  }

  .info-card span {
    font-weight: 600;
  }

  .donation-section {
    background-color: #e8f8ff;
    padding: 3rem 2rem;
    display: flex;
    justify-content: center;
  }

  .donation-box {
    background-color: var(--background-color);
    border: 1.5px solid var(--text-color);
    border-radius: 10px;
    box-shadow: 10px 8px 3px rgba(34, 34, 34, 0.281);
    width: 100%;
    max-width: 600px;
    overflow: hidden;
  }

  .donation-tabs {
    display: flex;
  }

  .tab-link {
    flex: 1;
    padding: 1rem;
    border: none;
    background-color: #e8f8ff;
    cursor: pointer;
    font-size: 1rem;
    color: #888;
    font-weight: bold;
    transition: background-color 0.3s;
  }

  .tab-link.active {
    background-color: #67b8de;
    color: #fff;
  }

  .tab-content {
    padding: 2rem;
  }

  .amount-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .amount-options label {
    display: block;
    padding: 1rem;
    border: 2px solid var(--text-color);
    border-radius: var(--border-radius);
    cursor: pointer;
  }

  .amount-options input[type="radio"] {
    margin-right: 0.5rem;
  }

  .donate-button {
    width: 100%;
    padding: 1rem;
    background-color: #3399cc;
    border: none;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    color: #fff;
  }

  .transfer-section {
    padding: 2rem;
    background-color: #e8f8ff;
    text-align: center;
  }

  .or-text {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-left: 120px;
  }

  .transfer-details {
    max-width: 600px;
    margin: 0 auto;
  }

  .accordion {
    background-color: #3399cc;
    color: white;
    cursor: pointer;
    margin-top: 0.4px;
    padding: 18px;
    width: 100%;
    border: 1px solid #2b4e81;
    text-align: left;
    outline: none;
    font-size: 1.2rem;
    transition: 0.4s;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
  }

  .panel {
    padding: 0 18px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    border: 1px solid #2b4e81;
    border-bottom: none;
    transition: max-height 0.2s ease-out;
    border-top: none;
    text-align: left;
    line-height: 1.8;
  }

  .panel p {
    margin: 1rem 0;
  }

  /*Inscripcion a correo mensual*/
  #voletin {
    width: 200px;
    height: 25px;
    border-radius: 7px;
    border: 1px solid #2b4e81;
    padding: 0px 10px;
    background-color: #4f5bff2c;
  }
  #voletin:focus {
    outline-color: #0070ba;
  }

  /* --- Estilo del botón de WhatsApp --- */
  .whatsapp-button {
    position: fixed;
    bottom: 25px;
    right: 25px;

    background-color: #25d366; /* Color verde de WhatsApp */
    width: 60px;
    height: 60px;
    border-radius: 50%;

    display: flex;
    justify-content: center;
    align-items: center;

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s ease;
  }

  /* Efecto al pasar el mouse por encima */
  .whatsapp-button:hover {
    transform: scale(1.1);
  }

  /* Estilo del ícono dentro del botón */
  .whatsapp-button img {
    width: 35px;
    height: 35px;
  }

  /* --- Animación de "sacudida" --- */
  @keyframes shake {
    0%,
    100% {
      transform: translateX(0);
    }
    10%,
    30%,
    50%,
    70%,
    90% {
      transform: translateX(-5px);
    }
    20%,
    40%,
    60%,
    80% {
      transform: translateX(5px);
    }
  }

  /* Clase que se agregará con JavaScript para activar la animación */
  .whatsapp-button.animating {
    animation: shake 0.5s ease;
  }

  /*
 * ESTILOS TRAJETA BANCO ESTADO :V
 */

  /* Contenedor principal del modal */
  .payment-modal {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 750px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #fff;
  }

  /* Cabecera */
  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #e8e8e8;
    background-color: #ca7a03;
  }

  .logo {
    font-size: 14px;
    line-height: 1.2;
  }

  .logo span {
    font-weight: normal;
    color: #fff;
    font-weight: 40px;
    font-size: 15px;
  }

  /* Cuerpo del modal (con las dos columnas) */
  .modal-body {
    display: flex;
    padding: 24px;
    gap: 32px;
    padding-bottom: 20px;
    background-color: #f7f9fc;
  }

  /* Columna Izquierda: Tarjeta visual */
  .data-card-visual {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border: 1px solid #ffd54f;
    border-radius: 12px;
    padding: 24px;
    width: 220px;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #6d4c41;
  }

  .card-icon {
    font-size: 28px;
    opacity: 0.7;
  }

  .card-details .card-text {
    display: block;
    font-size: 14px;
  }

  .card-details .card-text-bold {
    display: block;
    font-size: 18px;
    font-weight: bold;
  }

  /* Columna Derecha: Contenedor de datos */
  .transfer-data-container {
    flex: 1; /* Ocupa el espacio restante */
  }

  h3 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
  }
  .footertext {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
  }

  .data-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .data-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
  }

  .data-list li:last-child {
    border-bottom: none;
  }

  .label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
  }

  .value {
    font-weight: 500;
    color: #111;
    margin: 0 16px;
    flex-grow: 1; /* Empuja el botón a la derecha */
    text-align: right;
  }

  .copy-btn {
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    color: #495057;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
  }

  .copy-btn:hover {
    background-color: #dde2e6;
  }

  .copy-btn:disabled {
    background-color: #2b4e81; /* Verde para feedback */
    color: white;
    border-color: #2b4e81;
    cursor: default;
  }

  /* Pie del modal */
  .modal-footer {
    background-color: #f9f9f9;
    padding: 24px;
    border-top: 1px solid #e8e8e8;
    padding-top: 100px;
  }

  #boletin:focus {
    border-inline: 1px solid #045bdd;
  }
  #boletin {
    border-inline: 1px solid #045bdd;
    width: 200px;
    height: 25px;
    border: 1px solid #2b4e81;
    padding: 0px 10px;
    border-radius: 7px;
  }
  .final-step {
    font-size: 13px;
    background-color: #e3f2fd;
    border: 1px solid #bbdefb;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    text-align: center;
  }

  .main-action-btn {
    width: 100%;
    background-color: #e0e0e0;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 16px;
    font-weight: bold;
    color: #757575;
    cursor: not-allowed;
  }

  /* Estilos para pantallas pequeñas */
  @media (max-width: 680px) {
    .modal-body {
      flex-direction: column;
    }
    .data-card-visual {
      width: auto;
      height: auto;
      flex-direction: row;
      align-items: center;
    }
  }
  .modal-container {
    display: flex;
    justify-content: center; /* Centra horizontalmente */
    align-items: center; /* Centra verticalmente */

    /* Opcional: añade un poco de espacio para que no quede pegado */
    padding: 40px 10px;
    padding-bottom: 50px;
  }

  /*
 * ESTILOS PARA LA TARJETA DE PAYPAL
 */

  /* Contenedor principal de la tarjeta PayPal */
  .paypal-card {
    background-color: #f7f9fc; /* Un azul muy claro y suave */
    border: 1px solid #e0e6f0;
    border-radius: 16px;
    padding: 24px;
    max-width: 450px; /* Ancho máximo de la tarjeta */
    margin: 20px auto; /* Centra la tarjeta si está sola */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
      Helvetica, Arial, sans-serif;
  }

  /* Logo de PayPal */
  .paypal-logo {
    height: 30px; /* Ajusta el tamaño del logo */
    width: auto;
    margin-bottom: 16px;
  }

  /* Título y párrafo */
  .paypal-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1c2e43;
    margin: 0 0 8px 0;
  }

  .paypal-card p {
    font-size: 14px;
    color: #5b6b7c;
    margin: 0 0 24px 0;
    line-height: 1.5;
  }

  /* Sección de acción (botón y QR) */
  .paypal-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px; /* Espacio entre el botón y el QR */
    width: 100%;
  }

  /* Contenedores del botón y del QR */
  .button-container,
  .qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px; /* Espacio entre el elemento y su texto 'small' */
  }

  /* Botón de donación de PayPal */
  .paypal-button {
    display: inline-block;
    background-color: #0070ba; /* Azul clásico de PayPal */
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 25px; /* Forma de píldora */
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.2s ease-in-out;
    border: none;
  }

  .paypal-button:hover {
    background-color: #005ea6; /* Un azul más oscuro al pasar el ratón */
  }

  /* Imagen del código QR */
  .qr-container img {
    width: 100px;
    height: 100px;
    border: 1px solid #ddd;
    border-radius: 8px;
  }

  /* Texto pequeño debajo de los elementos */
  .paypal-action small {
    font-size: 12px;
    color: #5b6b7c;
  }

  /* ---- Responsive para móviles ---- */
  @media (max-width: 480px) {
    .paypal-action {
      flex-direction: column; /* Apila el botón y el QR en vertical */
      gap: 24px;
    }
  }
}
