body {
 margin: 0;
 font-family:"Courier New",Courier,monospace;
 background-color:#FCD77E;
 background-image:
  repeating-linear-gradient(45deg, rgba(0,0,0,0.02) 0 2px, transparent 2px 8px),
  repeating-linear-gradient(-45deg, rgba(255,255,255,0.02) 0 2px, transparent 2px 8px);
}

    .container {
      width: 1024px;
      margin: 0 auto;
      background-color: #ffffff;
    }

    header {
      background-color: #FFA011;
      color: #fff;
      padding: 20px;
      text-align: center;
      border-bottom:4px solid #ae8c2e;
    }

#logo {
  text-align: center;
}

#logo h1 {
  margin:0;
  font-size:38px;
  letter-spacing:2px;
  text-align:center;
  text-transform:uppercase;
  text-shadow:2px 2px 0 #000,4px 4px 0 rgba(0,0,0,0.2);
  font-weight:700;
  background:linear-gradient(180deg,#c6a3ff,#9b70d5);
  display:inline-block;
  padding:6px 14px;
  border:2px solid #2b114d;
  border-bottom:4px solid #502d84;
  box-shadow:3px 3px 0 #2b114d;
}

#main-nav {
  margin-top: 10px;
}

#main-nav a {
  display: block;
  padding: 4px 0;
  text-decoration: none;
  color: #3F3368;
  font-weight: normal;
  font-size: 14px;
  font-family: Arial, sans-serif;
}

#main-nav a:hover {
  text-decoration: underline;
  font-family: Arial, sans-serif;
}

#nav-container {
    padding: 10px;
    background: #f2f2f2;
    border-bottom: 2px solid #ccc;
}

.content {
    display: flex;
    align-items: flex-start;
}

main {
    flex: 1;
    padding: 15px;
    background: #ffffff;
}

.sidebar-right {
    width: 220px;
    padding: 15px;
    background: #f2f2f2;
    border-left: 2px solid #ddd;
    box-sizing: border-box;
    flex-shrink: 0;
}

    footer {
      background-color: #3F3368;
      color: #fff;
      text-align: center;
      padding: 10px;
      font-family: Arial, sans-serif;
}
@media (max-width:1024px){

    .container{
        width:100%;
    }

}

@media (max-width:768px){

    .content{
        display:block;
    }

    .sidebar-right{
        display:none;
    }

    main{
        width:100%;
        padding:15px;
        box-sizing:border-box;
    }

}

.datos h2{
    margin:6px 0 12px;
    font-size:28px;
    color:#3a235e;
    border-bottom:2px dotted #b79adb;
    padding-bottom:6px;
}

.datos p{
    margin:3px 0;
    font-size:14px;
    line-height:1.2;
    color:#333;
}

.ficha {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.ficha img {
    width: 280px;
    height: auto;
}

.ficha.derecha {
    flex-direction: row-reverse;
}

.datos {
    flex: 1;
}

.panel {
  background:#fffdf6;
  border:2px solid #8060b2;
  margin-bottom:16px;
  padding:12px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.6);
}

.panel h2 {
  margin:0 0 10px;
  font-size:20px;
  border-bottom:1px dashed #a58bcf;
  padding-bottom:6px;
  color:#3a235e;
}

.img-en-noticia {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

figcaption {
  text-align: center;
}	

.thumbnails {
  display:flex;
  gap:10px;
  margin-top:8px;
  flex-wrap:wrap;
}

.thumb  {
  width:160px;
  height:100px;
  border:2px solid #3a235e;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  color:#fff;
  background:repeating-linear-gradient(45deg,#7e63b8 0 6px,#9b7dd0 6px 12px);
  box-shadow:3px 3px 0 #65498d;
  overflow:hidden;
}

.thumb img {
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  display:block;
}

#destacados .thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width:160px;
  height:100px;
  border:2px solid #3a235e;
  background:repeating-linear-gradient(45deg,#7e63b8 0 6px,#9b7dd0 6px 12px);
  box-shadow:3px 3px 0 #65498d;
  overflow:hidden;
}

#destacados .thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit:contain;
  display:block;
}

#destacados .thumb .caption {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.8);
  color: #3a235e;
  font-weight: 700;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  text-align: center;
  white-space: nowrap;
}

.portadas {
  display: flex;
  flex-wrap: wrap;              
  justify-content: center;      
  gap: 20px;                  
  margin: 20px auto;
}


.portada {
  text-align: center;          
  font-size: 12px;            
  color: #2b114d;              
}


.portada img {
  width: 160px;              
  height: auto;               
  border: 2px solid #3a235e;  
  box-shadow: 3px 3px 0 #65498d;
  transition: transform 0.2s ease;
}

.portada img:hover {
  transform: scale(1.05);     
}

.post h3{ margin:6px 0; font-size:16px; color:#3a235e; }
.post .meta{ font-size:11px; color:#555; margin-bottom:8px; }

.noticia-flex p {
  flex: 1;
}

.parrafo-publicidad-articulos p {
  flex: 1 1 300px;  
  font-size: 14px;
  line-height: 1.4;
  color: #2b114d;
}

.puntosdebajo {
  border-bottom:1px dashed #a58bcf;
}

.parrafo-publicidad-articulos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 20px 0;
  text-align: center;
  flex-wrap: wrap;
  background: #fffdf6;
  border: 2px solid #8060b2;
  box-shadow: 3px 3px 0 #65498d;
  padding: 12px;
  position: relative;
}

.parrafo-publicidad-articulos img {
  max-width: 200px;
  height: auto;
  display: block;
  margin: 0 auto;
  border: 2px solid #3a235e;
  box-shadow: 3px 3px 0 #65498d;
}

.parrafo-publicidad-articulos p {
  flex: 1 1 300px; 
  font-size: 14px;
  line-height: 1.4;
  color: #2b114d;
}

.parrafo-publicidad-articulos .pie {
  width: 100%;
  font-size: 11px;
  color: #4b2f75;
  margin-top: 8px;
  border-top: 1px dotted #bba6e9;
  padding-top: 4px;
  text-align: right;
  font-style: italic;
}

.btn{
  display:inline-block;
  padding:6px 10px;
  border:2px outset #d2c2f1;
  text-decoration:none;
  font-weight:700;
  cursor:pointer;
  background:linear-gradient(#efe8fa,#d4bdf5);
  color:#2a1451;
}
.btn:hover{ background:linear-gradient(#f5f0fc,#e3d1fb); }
.btn:active,.btn.pressed{
  border-style:inset;
  transform:translateY(1px);
}


.banner-superior, .banner-inferior {
  width: 360px;
  height: 76px;
  margin: 0 auto;
  cursor: pointer;
  overflow: hidden;
  margin-top: 40px;
  margin-bottom: 40px;
}

.banner-superior img, .banner-inferior img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

#site-footer {
  padding: 10px 14px;
  font-size: 12px;
  border-top: 4px solid #ae8c2e;
  background-color: #FFA011;
  color: #fff;
  text-align: center;
}

#site-footer a,
#site-footer a:visited {
  color: #fff;
  text-decoration: underline;
}

#site-footer a:hover,
#site-footer a:focus {
  color: lightgray;
  text-decoration: underline;
}

#site-footer a:active {
  color: lightgray;
}