/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* - - Header - - */
#masthead.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  backdrop-filter: blur(10px);
}
li#menu-item-165 a {
  background: #ff5b04;
  color: #2b2b2b;
  border: 2px solid transparent;
  border-radius: 4px;
}

li#menu-item-165 a:hover {
  color: #2b2b2b;
  border-color: #ea5100;
  background: #ea5100;
}

@media (min-width: 768px) {
  #site-navigation .main-nav {
    height: 40px;
  }

  #primary-menu ul.menu > li > a {
    padding-top: 10px;
    padding-bottom: 10px;
    line-height: 20px; /* 20px + 10px + 10px = 40px */
  }
  #site-navigation {
    min-height: 40px;
  }
}

@media (max-width: 768px) {
  .inside-header {
    padding-right: 10px;
    padding-left: 10px;
  }
  ul#menu-menu-1 {
    background-color: white;
    padding: 10px;
  }
}

/* Diseno de tarjeta para el Blog (Sacas Comas) */
/* Todas las reglas estan limitadas a body.blog para no afectar el resto del sitio */

body.blog article.post {
  margin-bottom: 50px;
}

body.blog .inside-article {
  display: grid;
  grid-template-columns: minmax(280px, 45%) 1fr;
  align-items: stretch;
}

body.blog .post-image {
  grid-column: 1;
  grid-row: 1 / span 2;
  margin: 0;
  height: 100%;
  overflow: hidden;
}

body.blog .post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.blog .entry-header {
  grid-column: 2;
  grid-row: 1;
  background: #f0f0f0;
  padding: 40px 40px 0 40px;
  margin: 0;
  display: flex;
  flex-direction: column;
}

body.blog .entry-header .entry-meta {
  order: 1;
  font-size: 0.9rem;
  color: #075056;
  margin: 0 0 10px 0;
}

body.blog .entry-header .entry-meta .byline,
body.blog .entry-header .entry-meta .updated {
  display: none;
}

body.blog .entry-header .entry-title {
  order: 2;
  font-size: 1.9rem;
  line-height: 1.2;
  margin: 0 0 20px 0;
}

body.blog .entry-header .entry-title a {
  color: #075056;
  font-weight: 700;
}

body.blog .entry-summary {
  grid-column: 2;
  grid-row: 2;
  background: #f0f0f0;
  padding: 0 40px 40px 40px;
  margin: 0;
  color: #333333;
}

body.blog .entry-summary p {
  margin: 0;
  padding-bottom: 0;
  border-bottom: none;
}

body.blog .entry-summary a.read-more {
  display: block;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #cccccc;
  color: #e8792c;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
}

body.blog .entry-footer {
  display: none !important;
}

@media (max-width: 768px) {
  body.blog .inside-article {
    grid-template-columns: 1fr;
  }
  body.blog .post-image {
    grid-row: 1;
    grid-column: 1;
    height: 280px;
  }
  body.blog .entry-header {
    grid-row: 2;
    grid-column: 1;
    padding: 30px 20px 0 20px;
  }
  body.blog .entry-summary {
    grid-row: 3;
    grid-column: 1;
    padding: 0 20px 30px 20px;
  }
}

footer.entry-meta {
  margin-top: 2em;
  display: none !important;
}

/* - - - footer - - - */
.site-footer-custom {
  background-color: #000;
  color: #ffffff;
  padding: 40px 0 20px;
}

.site-footer-custom .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.site-footer-custom .footer-logo-wrap {
  margin-bottom: 25px;
}

.site-footer-custom .footer-logo-wrap img {
  height: 40px;
  width: auto;
}

.site-footer-custom nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  margin-bottom: 25px;
}

.site-footer-custom nav .menuitem a {
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  transition: opacity 0.3s ease;
}

.site-footer-custom nav .menuitem a:hover {
  opacity: 0.7;
}

.site-footer-custom .copyright {
  font-size: 13px;
  color: #999999;
}

.site-footer-custom .copyright a {
  color: #999999;
  text-decoration: none;
}

.site-footer-custom .copyright a:hover {
  text-decoration: underline;
  color: #ffffff;
}

.site-footer-custom .legal-link {
  margin: 0 3px;
}

@media (max-width: 600px) {
  .site-footer-custom nav {
    flex-direction: column;
    gap: 10px;
  }
}

/* - - - SINGLE POST - - - */
.post-hero {
	position: relative;
	width: 100%;
	height: 400px;
	background-size: cover;
	background-position: center;
	background-color: #1a1a1a; /* fallback si no hay imagen destacada */
	display: flex;
	align-items: center;
	justify-content: center;
}
.post-hero {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
  padding-top: 80px;
  margin-top: -80px;
}

.post-hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.55);
}

.post-hero-content {
	position: relative;
	z-index: 2;
	max-width: 800px;
	padding: 0 20px;
	text-align: center;
}

.post-hero-title {
	color: #ffffff;
	font-size: 42px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0;
}
.single-post .site-content {
    display: block;
}

@media (max-width: 768px) {
	.post-hero {
		height: 280px;
	}

	.post-hero-title {
		font-size: 28px;
	}
}


