body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f5f5f5;
}

header {
  background: #f5f5f5;
  color: black;
  padding: 1rem;
  text-align: center;
}

header input {
  margin-top: 10px;
  padding: 0.5rem;
  width: 50%;
  max-width: 400px;
}

header h1 {
  margin: 0.5rem 0;
}

#main-story {
  margin: 20px;
}

nav a {
  color: dodgerblue;
  margin: 0 1rem;
  text-decoration: none;
}
nav a:hover {
  text-decoration: underline;
}

main {
  padding: 1rem;
}

.featured {
  margin-bottom: 2rem;
}

#main-story .story-card {
  background: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  cursor: pointer;
  text-align: center;
  object-position: center;
}

#main-story img {
  width: 100%;
  border-radius: 10px;
  max-height: 400px;
  object-fit: cover;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(350px, 90%), 1fr));
  gap: 20px;
  padding: 5px;
}



.story {
  background: white;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.story-card {
  background: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.2s;
  justify-items: center;
  text-align: center;
}
 
.story-card:hover {
  transform: scale(1.03);
}

.story-card img {
  width: 100%;
  border-radius: 10px;
  max-height: 200px;
  object-fit: cover;
}
.story img {
  width: 100%;
  border-radius: 10px;
}

.short {
  color: #555;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  
}

.modal-content {
  background: white;
  margin: 5% auto;
  padding: 20px;
  border-radius: 10px;
  max-width: 800px;
  text-align: center;
  position: relative;
}

.modal-content img {
  width: 100%;
  border-radius: 10px;
  margin: 15px 0;
}

.close {
  position: absolute;
  right: 20px;
  top: 10px;
  font-size: 30px;
  cursor: pointer;
}

.image-modal{
  align-content: center;
}

.image-modalAporta{
  align-content: center;
  max-width: 55%;
  max-height: 55%;
}

.image-history{
  max-width: 10%;
  max-height: 10%;
  align-content: center;
}

.image-history-secondary{
  width: 50px;
  height: auto;
  object-fit: fill;
  
}

.img-container{
  width:250px;
  height:250px;
  overflow:hidden;
  display: flex;

  align-items: center;
  justify-content: center;
}
.img-container img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center; 
}

.imgppal-container{
  width:200px;
  height:200px;
  overflow:hidden;
  display: flex;

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

    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px; 
}
.imgppal-container img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center; 
}

.imgppalAporta-container{
  width:200px;
  height:300px;
  overflow:hidden;
  display: flex;

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

    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px; 
}

.imgppalAporta-container img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center; 
}



footer {
  background: black;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}
 
.historyText { 
 display: none;
}
.historyTittle{
 text-align: center;
}
.noEnter{
  white-space: nowrap;
}

.download-icon {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 10px;
  text-decoration: none;
  color: white;
  background: rgba(0,0,0,0.6);
  padding: 8px;
  border-radius: 50%;
  transition: background 0.3s;
}

.download-icon:hover {
  background: rgba(0,0,0,0.9);
}

.gridAporta {
  display: grid;  
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));  
  gap: 20px;
  padding: 5px;
  
}

.storyAporta {
  background: white;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s;
  height: 500px;
}

.storyAporta-card {
  background: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.2s;
  justify-items: center;
  
}

.storyAporta-card:hover {
  transform: scale(1.03);
}

.storyAporta-card img {
  width: 100%;
  border-radius: 10px;
  max-height: 200px;
  object-fit: cover;
}
.storyAporta img {
  width: 100%;
  border-radius: 10px;
}

/*
.storyAporta-card.highlight {
  transform: scale(1.05);
  border: 4px solid #ffae00;
  box-shadow: 0 0 35px rgba(255, 174, 0, 0.9), 0 0 10px rgba(0, 0, 0, 0.3);
  z-index: 20;
  position: relative;
  animation: pulse 1.5s ease-in-out infinite;
  transition: all 0.3s ease;
}
  */

.storyAporta-card {
  transition: transform 0.3s, box-shadow 0.3s;
}


/* 🔥 ANIMACIÓN de brillo 
@keyframes cardGlow {
    0% { box-shadow: 0 0 10px #00f5ff; }
    50% { box-shadow: 0 0 25px #00ffc8; }
    100% { box-shadow: 0 0 10px #00f5ff; }
}

/* 🌟 Highlight vistoso 
.highlight {
    border-radius: 16px;
    transform: scale(1.03);
    transition: all 0.3s ease;
    animation: cardGlow 1.2s infinite;
    border: 2px solid #00ffc8;
}
*/

.highlight {
  animation: bandera 1.5s infinite;
}

@keyframes bandera {
  0% { box-shadow: 0 0 20px #006847; }
  33% { box-shadow: 0 0 20px #FFFFFF; }
  66% { box-shadow: 0 0 20px #CE1126; }
  100% { box-shadow: 0 0 20px #006847; }
}

@keyframes pulse {
  0% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.6); }
  50% { box-shadow: 0 0 35px rgba(255, 215, 0, 1); }
  100% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.6); }
}




