/* Estilos para la versión Bootstrap del sitio de Aurelio González */

/* Estilos generales */
body {
  font-family: 'Montserrat', Helvetica, sans-serif;
  font-size: 14px;
  color: #484848;
  background-color: #ffffff;
  line-height: 1.5em;
  background: url(../img/halftone.png) no-repeat top left fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#bottom-bg {
  width: 100%;
  height: 100%;
  background: url(../img/halftone-bottom.png) no-repeat bottom right fixed;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Arvo', serif;
  font-weight: 400;
  line-height: 1.2em;
}

h1 { font-size: 30px; }
h2 { font-size: 28px; }
h3 { font-size: 26px; }
h4 { font-size: 24px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

a {
  color: #484848;
  text-decoration: none;
}

a:hover {
  color: #AC0000;
  text-decoration: none;
}

.content-wrapper a {
  color: #AC0000;
}

.content-wrapper a:hover {
  color: #484848;
  text-decoration: underline;
}

/* Header */
.site-header {
  padding: 20px 0;
}

#logo {
  max-width: 160px;
  height: auto;
}

/* Navegación superior */
.navbar {
  background-color: transparent !important;
  padding: 0;
  margin-bottom: 0;
}

.navbar-nav {
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.navbar-nav .nav-link {
  padding: 12px 20px;
  position: relative;
  font-weight: bold;
  font-size: 13px;
  width: auto;
  display: block;
}

.navbar-light .navbar-nav .nav-link {
  color: #484848;
}

.navbar-light .navbar-nav .active > .nav-link, 
.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-item.active .nav-link {
  color: #AC0000;
}

.subheader {
  display: block;
  font-family: 'Montserrat', Helvetica, sans-serif;
  font-weight: 200;
  font-size: 11px;
  margin-top: 0px;
}

/* Mobile navbar toggler */
.navbar-toggler {
  border: none;
  padding: 8px 12px;
  background: transparent;
  font-size: 22px;
  color: #484848;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1060;
  cursor: pointer;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

/* Dropdown */
.dropdown-menu {
  border-radius: 0;
  background-color: #ffffff;
  border: 1px solid #eeeeee;
  margin-top: 10px;
  font-family: 'Montserrat', Helvetica, sans-serif;
  font-weight: lighter;
  font-size: 11px;
  min-width: 200px;
}

.dropdown-item {
  padding: 7px 10px;
  color: #484848;
  font-size: 11px;
}

.dropdown-item:hover {
  background-color: transparent;
  color: #484848;
  text-decoration: underline;
}

/* Posts */
.post-card {
  margin-bottom: 80px;
  border: none;
  background-color: transparent;
  border-radius: 0;
  position: relative;
}

.post-image-container {
  position: relative;
  line-height: 0em;
}

.feature-image {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-image img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.entry-top {
  height: 13px;
  width: 100%;
  background: url(../img/oblique.png);
  margin-bottom: 0px;
}

.date-badge {
  position: absolute;
  top: 20px;
  left: 0px;
  background: #ffffff;
  width: 46px;
  height: 46px;
  text-align: center;
  z-index: 11;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
}

.entry-day {
  font-size: 34px;
  font-weight: bold;
  display: block;
  line-height: 30px;
  text-align: center;
  width: 100%;
  padding-top: 3px;
}

.entry-year {
  font-size: 10px;
  text-align: center;
  display: block;
  width: 100%;
  line-height: 12px;
}

.entry-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  border-bottom: 1px dotted #484848;
  padding-bottom: 5px;
  overflow: hidden;
}


.entry-title a {
  display: block;
  float: left;
  line-height: 45px;
  color: #484848;
}

.entry-title a:hover {
  color: #AC0000;
  text-decoration: none;
}

.entry-excerpt {
  font-size: 14px;
  margin-bottom: 19.5px;
  line-height: 1.5em;
}

.responsive-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin-bottom: 20px;
  line-height: 0em;
}

.responsive-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.project-link {
  margin-top: 15px;
  margin-bottom: 20px;
  background: url(../img/icon-link.png) no-repeat 0px 0px;
  padding-left: 20px;
}

.project-link a {
  color: #AC0000;
}

.project-link a:hover {
  text-decoration: underline;
}

/* Link format */
.format-link {
  position: relative;
  margin-bottom: 60px;
}

.link-bg {
  background: #484848 url(../img/link.png) no-repeat 62px 29px;
  padding: 28px 22px 28px 96px;
  position: relative;
}

.format-link a {
  color: #ffffff;
  text-decoration: none;
  display: block;
  font-size: 16px;
  line-height: 1.5em;
}

.format-link a:hover {
  color: #ffffff;
  opacity: 0.8;
}

.format-link .entry-date {
  position: absolute;
  top: 0;
  left: 0;
  background: #ffffff;
  width: 46px;
  height: 46px;
  text-align: center;
  z-index: 2;
  padding: 0;
}

.format-link .entry-date .entry-day {
  color: #484848;
}

.format-link .entry-date .entry-year {
  color: #484848;
}

/* Sidebar */
.sidebar-title {
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  margin-bottom: 10px;
}

.sidebar-links {
  margin-bottom: 30px;
}

.sidebar-links a {
  display: block;
  margin-bottom: 0;
  padding: 7px 0;
  color: #484848;
}

.sidebar-links a:hover {
  color: #AC0000;
  text-decoration: underline;
}

/* Pager */
.pager {
  display: none;
}

/* Footer */
.footer-bottom {
  background-color: transparent;
  color: #9a9a9a;
  padding: 8px 0;
  margin-top: 18px;
  line-height: 1.2;
  font-size: 0.75rem;
  border-top: 1px solid #e6e6e6;
}

.footer-bottom h6 {
  font-family: 'Arvo';
  display: inline-block;
  margin-bottom: 0;
}

.footer-bottom span {
  color: #9a9a9a;
  display: inline-block;
}

.footer-bottom a {
  color: #8e8e8e;
}

/* Responsive - Móvil */
@media (max-width: 991px) {
  .top-navbar {
    position: relative;
    border: none;
  }

  .navbar-toggler {
    position: relative;
    display: block;
    margin: 8px auto;
    right: auto;
    top: auto;
    transform: none;
  }

  .navbar-collapse {
    background-color: rgba(0,0,0,0.95);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    padding: 80px 20px;
    text-align: center;
    overflow-y: auto;
    display: none;
  }

  .navbar-collapse.show {
    display: block;
  }
  
  .navbar-nav {
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
  }
  
  .navbar-light .navbar-nav .nav-link {
    color: #ffffff;
    font-size: 18px;
    padding: 15px 0;
    width: 100%;
  }
  
  .navbar-light .navbar-nav .active > .nav-link, 
  .navbar-light .navbar-nav .nav-link.active,
  .navbar-light .navbar-nav .nav-item.active .nav-link {
    color: #AC0000;
  }
  
  .dropdown-menu {
    background-color: transparent;
    border: none;
    text-align: center;
  }
  
  .dropdown-item {
    color: #ccc;
  }
  
  .dropdown-item:hover {
    background-color: rgba(255,255,255,0.1);
  }
  
  .post-card {
    margin-bottom: 40px;
  }
  
  .date-badge {
    position: relative;
    top: auto;
    left: auto;
    margin: 10px auto;
  }
  
  .entry-title {
    text-align: center;
  }
  
  .entry-title a {
    float: none;
    display: block;
    line-height: 1.3;
  }
  
  body.menu-open {
    overflow: hidden;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
  .navbar-nav .nav-link {
    padding: 10px 14px;
    font-size: 12px;
  }
}

/* Escritorio */
@media (min-width: 992px) {
  .navbar-collapse {
    display: flex !important;
  }
  
  .navbar-toggler {
    display: none !important;
  }
}

/* Estilo moderno para iconos sociales */
.social-modern {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: flex;
  gap: 20px;
}

.social-modern li a {
  font-size: 28px;
  color: #333;
  transition: color .3s ease, transform .3s ease;
}

.social-modern li a:hover {
  color: #007bff;
  transform: scale(1.15);
}
/* Estilos responsivos para obras */
.work {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 40px;
}

.description {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.one-third {
  flex: 1 1 55%;
  max-width: 55%;
  min-width: 250px;
}

.two-third {
  flex: 0 0 40%;
  max-width: 40%;
  min-width: 200px;
}

.two-third.last {
  margin-right: 0;
}

.two-third img {
  max-width: 100%;
  max-height: 450px;
  width: auto;
  height: auto;
  display: block;
}

.clearfix {
  clear: both;
  display: none;
}

/* Críticas grid */
.criticas-grid {
  padding-top: 10px;
}

.critica-card {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 18px 20px 14px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.critica-card h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: #333;
}

.critica-card p {
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 8px;
  flex: 1;
}

.critica-card .project-link {
  margin-top: auto;
  margin-bottom: 0;
}

/* Responsivo para tablets y móviles */
@media (max-width: 992px) {
  .one-third,
  .two-third {
    flex: 0 1 100%;
    max-width: 100%;
    min-width: 100%;
  }
  
  .work {
    flex-direction: column;
    flex-wrap: nowrap;
  }
  
  .description {
    order: 1;
  }
  
  .two-third {
    order: 2;
  }
}

@media (max-width: 768px) {
  .work {
    gap: 15px;
    margin-bottom: 30px;
  }
  
  .description {
    order: 1;
  }
  
  .two-third {
    order: 2;
  }
}