html {
  font-size: 16px;
}

body {
  line-height: 1.6;
}

.etapa {
  font-weight: bold;
  color: #ab556a;
}


/* Creacion de noticia */

.crear-noticia {
  display: flex;
  justify-content: center; /* Centra horizontal */
  align-items: center;     /* Centra vertical */
  min-height: 74vh;       /* Ocupa toda la pantalla */
  background-color: #ab556a;
}

#crearNoticia {
  display: flex;
  flex-direction: column;
  gap: 1rem; /* Espacio entre campos */
  padding: 2rem;
  border-radius: 12px;
  width: 400px;
  box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
}

#crearNoticia h1 {
  text-align: center;
  margin-bottom: 1rem;
  color: #333;
}

#crearNoticia input,
#crearNoticia textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  outline: none;
}

#crearNoticia input:focus,
#crearNoticia textarea:focus {
  border-color: #ab556a;
  box-shadow: 0 0 4px rgba(171,85,106,0.6);
}

#crearNoticia button {
  padding: 12px;
  border: none;
  border-radius: 6px;
  background-color: #ab556a;
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  transition: 0.3s;
}

#crearNoticia button:hover {
  background-color: #8e4457;
}

#preview-img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #ccc;
}

/*--------------------------------------------------------------------*/





/* Detalles de estilo */


.fila-parrafos {
  display: flex;
  gap: 20px;
}

.fila-parrafos p {
    font-size: large;
    width: 45%;
    padding-left: 3%;
}

.sobre-shafel {
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
  background: #424B5D;
  color: #fff;
  border-radius: 10px;
  line-height: 1.6;
}

.sobre-shafel h1, .sobre-shafel h2 {
  color: #ffbaba; /* suave rojito para títulos */
  margin-bottom: 10px;
}

.sobre-shafel ul, .sobre-shafel ol {
  margin-left: 25px;
  margin-bottom: 20px;
}

.sobre-shafel li {
  margin-bottom: 6px;
}







.sobre-shafel h1 {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 30px;
  border-bottom: 2px solid #ab556a;
  padding-bottom: 10px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.sobre-shafel ul {
  padding-left: 25px;
}

.sobre-shafel ul li {
  list-style: none;
  position: relative;
}

.sobre-shafel ul li::before {
  content: "✔";
  position: absolute;
  left: -20px;
  top: 0px;
  color: var(--color-principal);
}

.sobre-shafel ul.certificaciones {
  background: rgba(255, 255, 255, 0.15);
  padding: 15px 20px;
  border-radius: 10px;
  margin-bottom: 25px;
}

.sobre-shafel p {
  max-width: 900px;
  margin: 20px auto;
  line-height: 1.6;
  text-align: left;
}

.sobre-shafel h2 {
  margin-top: 30px;
  margin-bottom: 15px;
  border-left: 4px solid #ab556a;
  padding-left: 10px;
}

.sobre-shafel h1,
.sobre-shafel h2,
.sobre-shafel p,
.sobre-shafel li {
  text-shadow: 0 0 5px rgba(0,0,0,0.7);
}






#imagenG {
  width: 690px;
  height: auto;
  border: none;
  border-radius: 8px;
}

#visor {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  padding: 0%;
  margin: 0%;
}



/*--------------------------------------------------------------------*/






/* Despliegue de noticias */


#noticias {
  color:#ffffff;
}

#noticias h2 {
  margin-top: 0;
  display: flex;
  justify-content: center;
}

.noticias {
  padding: 0%;
  margin: 0;
  padding: 0;
}

.noticia {
  display: flex;
  margin: 15px;
  padding: 10px;
  background-color: #030f27;
  border: 2px solid #ab5563;
  border-radius: 8px; /* 👈 esquinas redondeadas */
  align-items: center; /* Alinea verticalmente la imagen y el texto */
  margin-bottom: 0;
}

.noticia img {
  width: 150px;
  height: 100px; /* 👈 altura fija, evita estiramientos raros */
  object-fit: cover; /* recorta en vez de deformar */
  border-right: 2px solid #ab5563;
  margin-right: 10px;
  border-radius: 6px 0 0 6px; /* que coincida con el borde redondeado */
}

.noticia div h3 {
  margin: 0 0 5px 0;
}

.noticia div p {
  margin: 0 0 10px 0;
}

.noticia div a {
  display: inline-block;
}



/*--------------------------------------------------------------------*/






/* Modals */


/* Overlay */
#modal-noticia {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}

#modal-noticia-editar {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  border: #ab5563 2px solid;
  justify-content: center;
  align-items: center;
}

#modal-noticia-editar input[type="text"],
#modal-noticia-editar textarea,
#modal-noticia-editar input[type="file"] {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

#modal-noticia-editar input[type="text"]:focus,
#modal-noticia-editar textarea:focus,
#modal-noticia-editar input[type="file"]:focus {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0,123,255,0.5);
  outline: none;
}

#modal-noticia-editar textarea {
  resize: vertical;
  min-height: 100px;
}

#modalConfirmarEdicion {
  display: none; /* oculto por defecto */
  position: fixed;
  z-index: 1000;
  left: 0; 
  top: 0;
  width: 100%; height: 100%;
  overflow: auto; /* habilita scroll si el modal es muy grande */
  justify-content: center;
  align-items: center;
}

#modal-eliminar {
  display: none; /* oculto por defecto */
  position: fixed;
  z-index: 1000;
  left: 0; 
  top: 0;
  width: 100%; height: 100%;
  overflow: auto; /* habilita scroll si el modal es muy grande */
  justify-content: center;
  align-items: center;
}

#modalConfirmacionN {
  display: none; /* oculto por defecto */
  position: fixed;
  z-index: 1000;
  left: 0; 
  top: 0;
  width: 100%; height: 100%;
  overflow: auto; /* habilita scroll si el modal es muy grande */
  justify-content: center;
  align-items: center;
}

#modalConfirmacionN .modal-text {
  white-space: pre-line; /* respeta saltos de línea \n */
  margin-top: 8px;
  color: #ffffff;
  line-height: 1.4;
  /* opcional: quepa bien en el modal */
  max-width: 100%;
  word-wrap: break-word;
}


/* Contenido del modal */
.modal-content {
  background-color: #030f27;
  border: 2px solid #ab5563;
  border-radius: 12px;
  padding: 20px;
  max-width: 800px;
  max-height: 100vh;
  overflow-y: auto;
  color: #ffffff;
  animation: modalFadeIn 0.3s ease-out;
}


/* Despliegue extendido de una noticia */

/* Imagen y texto alineados */
.noticia-ampliada {
  display: flex;
  margin-bottom: 15px;
  align-items: center;
  gap: 20px;
}

.noticia-ampliada img {
  width: 250px;
  height: 200px;
  border-radius: 8px;
  object-fit: cover;
}

/* Botón cerrar */
.close-noticia {
  float: right;
  font-size: 28px;
  cursor: pointer;
}



/*--------------------------------------------------------------------*/





/* Organizacion */

.opciones {
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.opciones a {
  display: inline-block; /* Evita que ocupe todo el ancho */
  width: auto; /* Se ajusta al texto */
  max-width: 200px; /* (Opcional) límite de ancho */
}

.paginacion {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.boton-paginacion {
  background: #030f27;
  border: 1px solid #ab5563;
  color: white;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.3s;
}

.boton-paginacion:hover {
  background: #ab5563;
}

.boton-paginacion.activo {
  background: #ab5563;
  font-weight: bold;
}



/*--------------------------------------------------------------------*/


/* Despliegue de placas y información*/

.placas-s {
  display: flex;
  gap: 10px;
  margin: 10px;
  justify-content: center;
}

.placas-s img {
  max-width: 32%;
}

.despliegue-placas h1{
  color: #ffffff;
  display: block;
  margin: 0 auto;
  max-width: 100%;
}

.info-placa {
  display: none;
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
  background: #424B5D;
  color: #fff;
  border-radius: 10px;
  line-height: 1.6;
  justify-content: center;
}

/* .info-placa img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
} */

.info-placa h1, .info-placa h2, .info-placa h3 {
  color: #ab5563; /* suave rojito para títulos */
  margin-bottom: 10px;
}

.img-text {
  display: flex;
  margin: 20px;
}

.img-text img {
  width: 70%;
}

.img-texto {
  display: flex;
  margin: 20px;
  gap: 20px;
}

.img-texto div{
  max-width: 50%;
}

.img-texto img {
  width: 60%;
}

.QR {
  width: 10%;
}

.img-compartida {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.img-lados {
  display: flex;
}

.img-ejemplo img {
  max-width: 85%;
}

.texto-img {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
}

.texto-img img {
  width: 60%; 
}

.img-chica {
  display: flex;
  justify-content: center; /* Centra horizontalmente */
}

.img-chica img {
  max-width: 42%;
  height: auto;
}

.img-grande {
  display: flex;
  justify-content: center; /* Centra horizontalmente */
  margin: 20px 0;          /* Espaciado opcional */
}

.img-grande img {
  max-width: 60%;
  height: auto;
}

.comp-1 img {
  width: 40%;
  margin: 10px;
}

.comp-2 img {
  width: 33%;
}

.comp-3 img {
  width: 45%;
}

.comp-4 img {
  width: 40%;
}


.check-list {
  list-style: none;
  padding-left: 0;
  margin-top: 35px;
}

.check-list li {
  position: relative;
  padding-left: 24px;
}

.check-list li::before {
  content: "✔";
  color: green;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

/*--------------------------------------------------------------------*/



/* Animación */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}


@media (max-width: 1000px) {
  .noticia {
    flex-direction: column;
    text-align: center;
  }

  .noticia img {
    width: 100%;
    height: 200px;
    border-right: none;
    border-bottom: 2px solid #ab5563;
    margin: 0 0 10px 0;
    border-radius: 8px 8px 0 0;
  }
}
