/*
Theme Name: Twenty Twenty-Five Child
Template: twentytwentyfive
Version: 1.0
*/

:root {
  --color-primary: #000;
  --color-accent: #f5f5f7;
  --color-text: #333;
  --color-muted: #6e6e73;
  --text-accent: #007aff
}
body {
  margin: 0;
  font-family: 'Montserrat-Regular', Helvetica;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: inherit;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  font-weight: 600;
  padding-bottom: 1.5rem;
  padding-top: 1.5rem;
  color: var(--color-text);
}

h1 {
  font-size: 32px;
  font-weight: 600;
  color: rgb(29, 29, 31);
  margin-bottom: 50px;
  text-align: center;
}

h2 {
  /* font-size: 1.5rem; */
  font-size: 20px;
  font-weight: 500;
  color: rgb(29, 29, 31);
  background: none;
  border: none;
  padding: 0px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;

  position: relative;
  padding-bottom: 0.5em;
  margin-bottom: 1em;
}

h2::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background-color: #d2d2d7;
  margin-top: 0.5em;
}

p, ul {
        font-size: 17px;
    color: rgb(110, 110, 115);
    line-height: 1.7;
    margin-bottom: 30px;
}

a {
  color: var(--text-accent);
}

blockquote {
  color: var(--text-accent);
  font-style: italic;

  p {
    color: var(--color-text);
  }
}

img {
  border-radius: 8px;
  max-width: 100%;
  height: auto;
}

/* Cabecera estilo Opoosito */
.wp-block-group.header-opoosito {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-opoosito nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-opoosito nav a {
  text-decoration: none;
  color: #333333;
  font-weight: 500;
}

.header-opoosito .btn {
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
}

.header-opoosito .btn-login {
  border: 1px solid #333;
  color: #333;
}

.header-opoosito .btn-register {
  background-color: #0033cc;
  color: white;
  border: none;
}


/* Estilo de las tarjetas de los posts */
.post-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  margin-bottom: 2rem;
}

.post-card:hover {
  transform: translateY(-4px);
}

.post-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.post-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-content {
  padding: 1rem;
}

.post-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.post-excerpt {
  font-size: 1rem;
  color: #666;
  line-height: 1.5;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.post-wrapper {
  max-width: 1200px;
  margin: 8rem auto;
  padding: 0 20px;
}

.post-card {
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

.post-card:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.entrada-con-sombra {
  background-color: #ffffff;
  padding: 10px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 100%;
}


/* Footer */

#footer-container {
  padding: 20px 10px;
  background: #f5f5f5;
}

.footer-content {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.footer-text {
  margin: 0;
  flex: 1 1 100%;
}

.footer-link {
  color: #333 !important;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: none;
}

/* En pantallas grandes, los enlaces pueden ir en línea */
@media (min-width: 768px) {
  .footer-text {
    flex: 0 0 auto;
    margin: 0 10px;
  }
}
