html {
  font-size: 16px;
}

body {
  line-height: 1.6;
}

.etapa {
  font-weight: 600;
  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: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, .sobre-shafel h3 {
  color: #ffbaba; /* suave rojito para títulos */
}

.sobre-shafel h1 {
  margin-bottom: 25px;
}

.sobre-shafel h2 {
  margin-top: 40px;
  margin-bottom: 15px;
}

.sobre-shafel h3 {
  margin-bottom: 15px;
  font-weight: 500;
}


.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 h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
}

.sobre-shafel ul {
  max-width: 900px;
  margin: 20px auto 30px;
  padding-left: 20px;
}

.sobre-shafel ul li {
  margin-bottom: 12px;
  line-height: 1.6;
}

.certificaciones li {
  list-style: none;
  margin-bottom: 10px;
}

.certificaciones .etapa {
  font-weight: 600;
}

.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 ol {
  max-width: 900px;
  margin: 30px auto;
  padding-left: 20px;
}

.sobre-shafel ol li {
  margin-bottom: 14px;
  line-height: 1.6;
}

.sobre-shafel p {
  max-width: 900px;
  margin: 20px auto;
  line-height: 1.7;
  font-size: 1.05rem;
}


.sobre-shafel h2 {
  margin-top: 30px;
  margin-bottom: 15px;
  border-left: 4px solid #ab556a;
  padding-left: 10px;
}

.video-nosotros {
  position: relative;
  width: 100%;
  height: 100vh; /* ajustable */
  overflow: hidden;
}

.video-bg {
  width: 10%;
  max-height: 42px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.interviews-slider {
  position: relative;
  display: flex;
  align-items: center;
}

.interviews-viewport {
  overflow: hidden;
  width: 100%;
}

.interviews-track {
  display: flex;
  gap: 1.5rem;
  align-items: stretch; /* 🔥 asegura mismas alturas */
  transition: transform 0.4s ease;
}

.interview-card {
  display: flex;
  flex-direction: column;
  min-width: calc(100% / 3 - 4.1rem);
}

.interview-content {
  flex-grow: 1; /* 🔥 empuja todo lo demás abajo */
}

.interview-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.btn-ver-video {
  margin-top: 0;
}

.interviews-slider .slider-btn {
  background: white;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 40px;
  height: 40px;

  cursor: pointer;
  font-size: 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0 10px;
}

@media (max-width: 768px) {
  .interview-card {
    min-width: 100%;
  }
}

.qs-content .interviews-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .qs-content .interviews-grid { grid-template-columns: repeat(3, 1fr); }
}

.qs-content .interview-card {
  border-radius: 0.75rem;
  border: 1px solid hsl(220, 13%, 90%);
  padding: 1.5rem;
  background: hsl(0, 0%, 100%);
  transition: all 0.3s ease;
}
.qs-content .interview-card:hover {
  transform: translateY(-4px);
  border: 1px solid #ab5563;
}

.qs-content .interview-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: hsl(220, 50%, 8%);
  font-size: 1rem;
  margin: 0;
}

.qs-content .interview-card p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: hsl(220, 16%, 31%);
}

.qs-content .interview-card a {
  display: inline-block;
  margin-top: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: hsl(354, 73%, 48%);
  text-decoration: none;
  transition: color 0.2s;
}
.qs-content .interview-card a:hover {
  color: rgba(213,33,52,0.8);
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px);
}

.modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: #000;
  border-radius: 12px;
  padding: 1rem;
}

#modal-body {
  display: flex;
  flex-direction: column; /* 🔥 clave */
  gap: 1rem;
}

.video-container iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.cerrar-modal {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}




/*---------------------------------------------------------------*/





#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%;
  padding: 0;
}

.noticia {
  position: relative;
  display: flex;
  margin: 20px 0 20px 0;
  padding: 10px;
  background-color: #030f27;
  border: 2px solid #ab5563;
  border-radius: 8px; /* 👈 esquinas redondeadas */
  align-items: center; /* Alinea verticalmente la imagen y el texto */
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.noticia:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.noticia img {
  width: 150px;
  height: 100px; /* 👈 altura fija, evita estiramientos raros */
  object-fit: cover; /* recorta en vez de deformar */
  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 {
  line-height: 1.5;
  max-height: 4.5em;
  overflow: hidden;
  margin: 0 0 10px 0;
}

.noticia div a {
  display: inline-block;
}

.noticia-reciente {
  border-left: 4px solid #64E44D; /* rojo marca */
}

.noticia-reciente img {
    border-right: 2px solid #64E44D;
}

.noticia-media {
    border-left: 4px solid #F09855; /* rojo marca */
}

.noticia-media {
    border-right: 2px solid #F09855; /* rojo marca */
}

.noticia-antigua {
  border-left: 4px solid #ab5563; /* rojo marca */
  filter: grayscale(20%);
}

.noticia-antigua img{
  border-right: 2px solid #ab5563; /* rojo marca */
}

.badge-nueva {
  position: absolute;
  top: 10px;
  left: 10px;

  background-color: #c62828; /* rojo shafel */
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;

  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ultima-modificacion {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 4px;
  margin-top: 10px;
  margin-left: 30px;
  border-left: 2px solid #ab5563;
  text-align: right;
}



/*--------------------------------------------------------------------*/






/* Modals */


/* Overlay */
#modal-noticia {
  display: none;
  position: fixed;
  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;
  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;
  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;
  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;
  left: 0; 
  top: 0;
  width: 100%; height: 100%;
  overflow: hidden; /* 🔥 clave */
  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;
  margin: auto;
  max-width: 800px;
  overflow-y: auto;
  color: #ffffff;
  animation: modalFadeIn 0.3s ease-out;
}

.modal-content > div {
    display: flex;
}

/* 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;
}

#modal-body .boton-rojo{
    display: flex;
}



/*--------------------------------------------------------------------*/





/* Organizacion */

.nav-noticias {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid #ddd;
}

.nav-noticia {
  font-size: 0.9rem;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
}

.nav-noticia:hover {
  text-decoration: underline;
}

.nav-noticia.disabled {
  visibility: hidden;
}

.opciones {
  padding: 15px;
  display: flex;
  gap: 10px;
  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: grid;
  grid-template-columns: repeat(3, 1fr); /* Tres columnas iguales */
  grid-template-rows: repeat(2, auto);    /* Dos filas */
  gap: 10px;                             /* Espacio entre imágenes */
  padding-top: 15px;
}

.placas-s img {
  max-width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.placas-s img.activa {
  outline: 2px solid #ab5563;
  transform: scale(1.03);
}

.placas-s img.match {
  border: 3px solid #ffffff;
}

.placas-s img:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.despliegue-placas div h1{
  color: #ffffff;
  display: block;
  margin: 0 20px;
  max-width: 100%;
}

.placas-intro {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.placas-intro h1 {
  white-space: nowrap; /* evita salto feo */
  flex: 0 0 auto;
}

.buscador-servicios {
  flex: 1 1 60%;              /* ⭐ ESTO ES LO IMPORTANTE */
  max-width: 30%;
}

#buscadorServicios {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.highlight {
  background-color: #ffe58a;
  padding: 0 2px;
  border-radius: 3px;
}

.info-placa {
  display: none;
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
  background: #424B5D;
  color: #fff;
  border-radius: 10px;
  line-height: 1.6;

  transform: translateY(20px);
  transition: 
    opacity 0.4s ease,
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-placa.activa {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Elementos animables dentro de info-placa */
.info-placa .stagger-item {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.info-placa .stagger-item.visible {
  opacity: 1;
  transform: translateY(0);
}



/* .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 {
  width: 100%;
  max-width: 600px;
}


.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;
}

.btn-volver-arriba {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #ab5563;
  color: white;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  cursor: pointer;
  font-size: 18px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

.btn-volver-arriba.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.btn-volver-arriba:hover {
  background: #c46a78;
}


/*--------------------------------------------------------------------*/



/* 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;
    margin: 0 0 10px 0;
    border-radius: 8px 8px 0 0;
  }

  .noticia-reciente img {
    border-bottom: 2px solid #64E44D;
  }
    
    
  .noticia-media img {
    border-bottom: 2px solid #F09855; /* rojo marca */
  }
    
    
  .noticia-antigua img{
    border-bottom: 2px solid #ab5563; /* rojo marca */
  }

}

@media (max-width: 768px) {
  .placas-intro {
    flex-direction: column;
    align-items: stretch;
  }

  .placas-intro h1 {
    white-space: normal;
    text-align: center;
    justify-items: center;
  }
}