/* Estilos para la vista principal */
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,200;0,300;0,400;0,800;1,500&display=swap");

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "Poppins", sans-serif;
}

.header {
  background-image: url(../images/bg-01.png);
  background-position: bottom center;
  background-size: cover;
  background-repeat: no-repeat;
  width: 100%;
  min-height: 220px;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.desktop {
  display: block;
}

.mobile {
  display: none;
}

.bg-2 {
  background-image: url(../images/bg-02.png);
}

.title-detail {
  text-align: center;
  color: #0d1345;
  text-transform: uppercase;
}

.container-header {
  align-items: center;
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  height: auto;
}

.container-header a img {
  margin-top: 50px;
  width: 90%;
  padding: 0 20px;
}

.card-header {
  width: 150px;
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  margin: 0 30px 30px 50px;
}

.card-header img {
  width: 100%;
  padding: 20px;
}
.card-title {
  width: 200px;
  text-align: center;
  text-transform: uppercase;
  color: #0d1345;
  font-size: 12px;
  font-weight: 800;
}

.title {
  color: #0d1345;
  text-transform: uppercase;
  text-align: center;
  font-size: 56px;
  margin: 10px 0;
  padding: 0;
}

@media (max-width: 763px) {
  .title {
    font-size: 2.4rem;
  }
}

.subtitle {
  text-align: center;
  font-size: 16px;
  margin: 5px 0;
}

.container {
  width: 100%;
  height: auto;
  max-width: 1200px;
}

#obituarios-list {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

#pagination {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

#pagination a {
  margin-left: 10px;
}

.obituario {
  margin-bottom: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.search-container {
  display: flex;
  justify-content: center;
}
.search-group {
  text-align: center;
  width: 250px;
  height: 40px;
  display: flex;
}

.search-group input[type="text"] {
  color: #33414f;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #666666;
  background-color: #ebebeb;
  font-style: italic;
}

.search-group button {
  background-color: #ff5102;
  width: 130px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: 0.2s ease;
  -webkit-transition: 0.2s ease;
  -moz-transition: 0.2s ease;
  -ms-transition: 0.2s ease;
  -o-transition: 0.2s ease;
}

.search-group button:hover {
  background-color: #0d1345;
  color: #fff;
}

.obituario-img {
  position: relative;
  width: 300px;
  height: 250px;
  overflow: hidden;
}

.obituario-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(../images/bg-perro1.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.5; /* Ajusta la opacidad del fondo si es necesario */
}

.obituario-img img {
  position: absolute;
  top: 57%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%; /* Ajusta el tamaño de la imagen dentro del círculo */
  height: auto;
  border-radius: 50%;
}

.obituario-title {
  margin: 10px 0 0 0;
  color: #ff5102;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
}

.obituario-sede {
  font-size: 14px;
  text-align: center;
  text-transform: uppercase;
}

.obituario-boton {
  background-color: #ff5102;
  width: 130px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 14px;
  border-radius: 50px;
  -webkit-border-radius: 50px;
  -moz-border-radius: 50px;
  -ms-border-radius: 50px;
  -o-border-radius: 50px;
  transition: 0.2s ease;
  -webkit-transition: 0.2s ease;
  -moz-transition: 0.2s ease;
  -ms-transition: 0.2s ease;
  -o-transition: 0.2s ease;
}

.obituario-boton:hover {
  background-color: #0d1345;
  color: #fff;
}

.header-detail {
  width: 150px;
  text-align: center;
  padding: 12px 20px;
}

.page-link {
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  text-decoration: none;
  color: #0d1345;
  background-color: #fff;
  border: 1px solid #ff5102;
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
}

.page-link.active {
  font-weight: bold;
  color: #fff;
  background-color: #ff5102;
}

/* Estilos para la vista de detalle */
#obituario-detail {
  margin-bottom: 20px;
  padding: 10px;
  background-color: #f9f9f9;
}

#obituario-detail h2 {
  font-size: 24px;
  color: #333;
}

#obituario-detail p {
  font-size: 16px;
  color: #666;
}

#obituario-detail a {
  color: #007bff;
  text-decoration: none;
}

#comment-form {
  margin-top: 20px;
}

#comment-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

#comment-form input[type="text"],
#comment-form textarea {
  width: 100%;
  padding: 5px;
  margin-bottom: 10px;
}

form {
  margin-top: 20px;
  padding: 10px;
  background-color: #f5f5f5;
  border-radius: 5px;
}

label {
  display: block;
  margin-bottom: 5px;
}

input[type="text"],
textarea {
  width: 100%;
  padding: 5px;
  margin-bottom: 10px;
}

.previous-messages {
  margin-top: 20px;
}

.previous-messages p {
  margin-bottom: 10px;
}

.spinner {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(
    255,
    255,
    255,
    0.8
  ); /* Fondo blanco con transparencia */
  z-index: 9999; /* Asegura que el spinner se muestre encima de otros elementos */
}

.spinner:before {
  content: "";
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid #ccc;
  border-top-color: #ff5102;
  animation: spin 1s infinite linear;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#backButton {
  display: none;
  margin: 30px 10px;
}

.back-link {
  font-family: "Montserrat", Sans-serif;
  font-size: 14px;
  font-weight: 600;
  fill: #202245;
  color: #202245;
  background-color: #ffffff;
  border-style: solid;
  border-width: -1px -1px -1px -1px;
  border-color: #e9531e;
  border-radius: 50px 50px 50px 50px;
  padding: 10px 20px;
  text-decoration: none;
  transition: 0.2s ease;
  -webkit-transition: 0.2s ease;
  -moz-transition: 0.2s ease;
  -ms-transition: 0.2s ease;
  -o-transition: 0.2s ease;
}

.back-link:hover {
  background-color: #0d1345;
  color: #f5f5f5;
}

.obituario-container {
  background-color: #ffe6df;
  width: 70%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  margin: 30px 0;
  border-radius: 30px;
  -webkit-border-radius: 30px;
  -moz-border-radius: 30px;
  -ms-border-radius: 30px;
  -o-border-radius: 30px;
}

.left-top {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 450px;
  width: 100%;
}

.left-details {
  padding-left: 40px;
  max-width: 450px;
  width: 100%;
}

.font-size-detail {
  font-size: 18px;
}

.text-details {
  color: #0d1345;
}

.right {
  float: right;
  width: 50%;
  height: 460px;
  overflow-y: auto;
  background-color: white;
  border: 1px solid #ccc;
  padding: 10px;
  margin-left: 20px;
}

.right::-webkit-scrollbar {
  width: 10px; /* Ancho de la barra de desplazamiento */
}

.right::-webkit-scrollbar-track {
  background-color: #f1f1f1; /* Colozzr de fondo de la barra de desplazamiento */
  padding: 2px;
  border-radius: 5px;
}

.right::-webkit-scrollbar-thumb {
  background-color: #d8d8d8; /* Color del pulgar de la barra de desplazamiento */
  padding: 2px;
  border-radius: 5px;
}

.right::-webkit-scrollbar-thumb:hover {
  background-color: #e9531e; /* Color del pulgar de la barra de desplazamiento al pasar el cursor sobre él */
}

.mensaje-list {
  padding-top: 10px;
}
.mensaje-info {
  display: flex;
  justify-content: space-between;
}

.mensaje-card {
  margin-bottom: 20px;
  border-top: 1px solid #ccc;
}

.nombre {
  font-weight: bold;
}

.mensaje {
  margin-top: 5px;
  margin-bottom: 5px;
}

.fecha {
  font-style: italic;
  color: #888;
}

.left-share {
  background-color: #fff;
  width: 80%;
  height: auto;
  padding: 5px 30px;
  border: 1px solid #e9531e;
  border-radius: 20px;
  -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  -ms-border-radius: 20px;
  -o-border-radius: 20px;
}

.left-share p {
  padding: 0;
  margin: 0;
}

.social-icons {
  margin: 10px 0;
  display: flex;
  justify-content: space-around;
}

.social-icons a {
  text-decoration: none;
  margin-right: 5px;
}

.social-icons a i {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 35px;
  padding: 2px;
  width: 50px;
  height: 50px;
  text-decoration: none;
  background-color: #0d1345;
  color: #fff;
  border-radius: 50px;
  -webkit-border-radius: 50px;
  -moz-border-radius: 50px;
  -ms-border-radius: 50px;
  -o-border-radius: 50px;
}

.footer {
  background-size: cover;
  background-repeat: no-repeat;
  width: 100%;
  min-height: 350px;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0;
}

.footer-title {
  color: #0d1345;
  font-weight: 800;
  font-size: 26px;
  text-align: center;
  text-transform: uppercase;
  margin: 0;
  padding: 0;
}

.footer-subtitle {
  color: #0d1345;
  font-size: 14px;
  text-align: center;
}

.bg-3 {
  margin-top: 50px;
  background-image: url(../images/bg-03.png);
  background-position: top center;
}

.footer-form {
  background-color: transparent;
  width: 70%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  margin: 30px 0;
  border-radius: 30px;
  -webkit-border-radius: 30px;
  -moz-border-radius: 30px;
  -ms-border-radius: 30px;
  -o-border-radius: 30px;
  display: grid;
  grid-template-columns: 1fr;
}
.form-top {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0;
}

.form-field {
  width: 48%;
}

.form-field input,
.form-msg textarea {
  padding: 10px;
  border: none;
  background-color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 14px; /* Ajusta el tamaño de fuente según tus necesidades */
  color: #040935 !important;
  border-radius: 5px;
  margin-bottom: 10px;
  height: 50px;
  border: 1px solid #666;
}

.form-msg textarea {
  width: 100%;
  height: 200px; /* Ajusta la altura según tus necesidades */
  resize: none; /* Evita que el usuario pueda redimensionar el textarea */
}

.container-send {
  width: 100%;
  display: flex;
  justify-content: center;
}

#boton-msg {
  background-color: #ff5102 !important;
  width: 230px;
  height: 50px;
  display: flex;
  border: none;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 14px;
  border-radius: 50px;
  -webkit-border-radius: 50px;
  -moz-border-radius: 50px;
  -ms-border-radius: 50px;
  -o-border-radius: 50px;
  transition: 0.2s ease;
  -webkit-transition: 0.2s ease;
  -moz-transition: 0.2s ease;
  -ms-transition: 0.2s ease;
  -o-transition: 0.2s ease;
}

#boton-msg:hover {
  background-color: #0d1345;
  color: #fff;
}

@media (max-width: 890px) {
  .bg-3 {
    margin-top: 0;
  }
  .footer {
    padding-bottom: 10px;
  }
  .card-header {
    width: 150px;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 5px 30px;
  }

  .card-header img {
    width: 100%;
    padding: 0;
  }

  .title {
    color: #0d1345;
    text-transform: uppercase;
    text-align: center;
    font-size: 56px;
    margin: 10px 0;
    padding: 0;
  }
  .obituario-container {
    flex-direction: column;
  }

  .right {
    width: 80%;
    margin-top: 30px;
    margin-left: 0;
  }

  .social-icons a i {
    font-size: 25px;
    padding: 2px;
    width: 30px;
    height: 30px;
  }
}

.img-msg {
  width: 95%;
  margin: 10px 0;
}

.btn-back {
  display: flex;
  width: 100%;
  justify-content: flex-end;
  padding-top: 40px;
  padding-right: 40px;
  position: fixed;
}

@media (max-width: 520px) {
  .left-top {
    flex-direction: column;
  }
  .right {
    width: 100%;
  }
  .left-details {
    padding: 0;
  }

  .header {
    min-height: 320px;
  }

  .desktop {
    display: none;
  }

  .mobile {
    display: block;
  }

  .img-msg {
    width: 100%;
  }

  .title-detail {
    padding-top: 70px;
  }

  .btn-back {
    justify-content: flex-end;
    padding-right: 30px;
    position: fixed;
    z-index: 2;
  }

  @media screen and (max-device-width: 480px) and (-webkit-device-pixel-ratio: 2) {
    .desktop {
      display: none;
    }

    .mobile {
      display: block;
    }
  }
}

@media (max-width: 350px) {
  .title {
    font-size: 30px;
  }
  .obituario-container {
    width: 100%;
  }
  .obituario-datalle {
    padding: 0 10px;
  }
}
