/*
Theme Name: Postino Gemini Pro Premium
Theme URI: https://tupagina.com.uy/
Author: Grodit
Author URI: https://grodit.com
Description: Tema WordPress con estética profesional, visual moderna y estructura robusta.
Version: 2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: postino-gemini
Tags: limpio, moderno, blog, profesional, responsivo, personalizable, premium, elegante
*/

/* --- Base Styles & Typography --- */
body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', sans-serif; /* Modern body font */
  background-color: #f8f8f8; /* Lighter background */
  color: #333;
  line-height: 1.7;
  font-size: 18px; /* Slightly larger base font */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif; /* Bold, modern headings */
  color: #222;
  margin-top: 1.5em;
  margin-bottom: 0.8em;
  line-height: 1.2;
}

h1 { font-size: 2.8em; letter-spacing: -0.02em; }
h2 { font-size: 2.2em; letter-spacing: -0.02em; }
h3 { font-size: 1.8em; }
h4 { font-size: 1.4em; }
h5 { font-size: 1.2em; }
h6 { font-size: 1em; }

p {
  margin-bottom: 1.5em;
}

a {
  color: #CC0000; /* Primary brand color (Red) */
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover,
a:focus {
  color: #A30000; /* Darker shade on hover */
  text-decoration: underline;
}

.container {
  max-width: 1200px; /* Wider container for premium feel */
  margin: auto;
  padding: 40px 30px; /* More padding */
}

/* --- Header --- */
.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 15px 0; /* AJUSTADO: Menos padding para reducir la altura */
  box-shadow: 0 4px 20px rgba(0,0,0,0.08); /* Softer, larger shadow */
  position: relative; /* For sticky header */
  z-index: 100;
}

.site-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.site-branding {
  text-align: left;
}

.site-branding .custom-logo-link img {
    max-height: 60px; /* AJUSTADO: Menor altura para el logo */
    width: auto;
}

.site-branding .site-title {
  margin: 0;
  font-size: 2.5em;
}

.site-branding .site-title a {
  color: #111;
}

.site-branding .site-description {
  color: #777;
  margin-top: 5px;
  font-size: 0.9em;
}

/* --- Navigation --- */
.main-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 30px; /* Space between top-level items */
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  font-weight: 600;
  color: #333;
  text-decoration: none;
  padding: 10px 0;
  display: block;
  transition: color 0.3s ease;
}

.main-navigation a:hover {
  color: #CC0000; /* Accent color on hover */
  text-decoration: none;
}

/* Dropdown menu (basic example, needs more robust JS for full functionality) */
.main-navigation ul ul {
  display: none;
  position: absolute;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  min-width: 200px;
  left: 0;
  top: 100%;
  flex-direction: column;
  padding: 10px 0;
  border-top: 3px solid #CC0000; /* Accent color border */
}

.main-navigation li:hover > ul {
  display: flex;
}

.main-navigation ul ul li {
  border-bottom: 1px solid #eee;
}

.main-navigation ul ul li:last-child {
  border-bottom: none;
}

.main-navigation ul ul a {
  padding: 10px 20px;
  white-space: nowrap;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    padding: 10px;
    color: #333;
}

.menu-toggle .icon-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* Search Form */
.header-search {
  margin-left: 20px;
}

.header-search .search-form {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
}

.header-search .search-field {
  border: none;
  padding: 10px 15px;
  font-size: 0.9em;
  outline: none;
}

.header-search .search-submit {
  background-color: #CC0000; /* Accent color */
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.header-search .search-submit:hover {
  background-color: #A30000; /* Darker accent on hover */
}

/* --- Main Content --- */
.site-main {
  padding-top: 60px;
  padding-bottom: 60px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.post-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1); /* Enhanced shadow */
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15); /* More prominent shadow on hover */
}

.post-card-thumbnail {
  flex-shrink: 0;
}

.post-card-thumbnail img {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.entry-header {
  padding: 25px 30px 15px;
}

.entry-title {
  margin-top: 0;
  font-size: 1.8em;
  margin-bottom: 10px;
}

.entry-title a {
  color: #222;
  transition: color 0.3s ease;
}

.entry-title a:hover {
  color: #CC0000; /* Accent color */
}

.entry-meta {
  font-size: 0.85em;
  color: #888;
  margin-bottom: 15px;
}

.entry-meta span {
  margin-right: 15px;
}

.entry-content {
  padding: 0 30px 25px;
  flex-grow: 1; /* Allow content to grow */
}

.entry-content p:last-child {
  margin-bottom: 0;
}

.read-more-button {
  display: inline-block;
  background-color: #CC0000; /* Accent color */
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  margin-top: 15px;
  font-size: 0.9em;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.read-more-button:hover {
  background-color: #A30000; /* Darker accent on hover */
  transform: translateY(-2px);
  text-decoration: none;
}

/* Pagination */
.navigation.pagination {
  text-align: center;
  margin-top: 50px;
}

.nav-links {
  display: inline-flex;
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
}

.page-numbers {
  display: block;
  padding: 10px 15px;
  color: #555;
  text-decoration: none;
  border-right: 1px solid #ddd;
}

.page-numbers:last-child {
  border-right: none;
}

.page-numbers.current,
.page-numbers:hover {
  background-color: #CC0000; /* Accent color */
  color: #fff;
  border-color: #CC0000; /* Accent color */
}

.prev.page-numbers, .next.page-numbers {
  font-weight: bold;
}

/* --- Single Post Page --- */
.single-post-article {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1); /* Enhanced shadow */
  padding: 40px;
}

.single-post-header {
  text-align: center;
  margin-bottom: 40px;
}

.single-post-header .entry-title {
  font-size: 3.2em;
  margin-bottom: 15px;
}

.single-post-header .entry-meta {
  font-size: 0.9em;
  color: #777;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.single-post-thumbnail {
  margin-top: 30px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.single-post-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.single-post-content {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 50px;
}

.single-post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.single-post-content blockquote {
  border-left: 5px solid #CC0000; /* Accent color */
  padding: 15px 20px;
  margin: 20px 0;
  background-color: #FFF0F0; /* Light red tint */
  font-style: italic;
  color: #555;
}

.single-post-footer {
  border-top: 1px solid #eee;
  padding-top: 30px;
  margin-top: 40px;
  text-align: center;
}

.cat-links, .tags-links {
  font-size: 0.9em;
  color: #777;
  display: block;
  margin-bottom: 10px;
}

.cat-links a, .tags-links a {
  background-color: #e9e9e9;
  padding: 5px 10px;
  border-radius: 5px;
  margin-right: 5px;
  color: #555;
  transition: background-color 0.3s ease;
}

.cat-links a:hover, .tags-links a:hover {
  background-color: #ddd;
  text-decoration: none;
}

/* Author Box */
.author-box {
  display: flex;
  align-items: center;
  background-color: #f9f9f9;
  border: 1px solid #eee;
  padding: 25px;
  border-radius: 8px;
  margin-top: 40px;
}

.author-avatar {
  flex-shrink: 0;
  margin-right: 25px;
}

.author-avatar img {
  border-radius: 50%;
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 3px solid #CC0000; /* Accent color */
}

.author-info {
  flex-grow: 1;
  text-align: left;
}

.author-name {
  margin-top: 0;
  margin-bottom: 5px;
  font-size: 1.5em;
  color: #222;
}

.author-link {
  font-size: 0.9em;
  font-weight: 600;
}

/* Related Posts */
.related-posts {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #eee;
  text-align: center;
}

.related-posts h3 {
  font-size: 2em;
  margin-bottom: 30px;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.related-post-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08); /* Soft shadow */
  overflow: hidden;
  text-align: left;
}

.related-post-thumbnail img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.related-post-card h4 {
  font-size: 1.1em;
  padding: 15px 20px;
  margin: 0;
}

.related-post-card h4 a {
  color: #222;
}

/* Comments Section (basic styling) */
#comments {
  margin-top: 60px;
  background-color: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1); /* Enhanced shadow */
}

.comments-area .comments-title {
  font-size: 2em;
  margin-bottom: 30px;
  text-align: center;
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment-body {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  background-color: #fefefe;
}

.comment-author .avatar {
  border-radius: 50%;
  float: left;
  margin-right: 15px;
}

.comment-meta {
  font-size: 0.9em;
  color: #777;
}

.comment-content {
  margin-top: 10px;
  margin-bottom: 15px;
}

.reply {
  font-size: 0.9em;
  text-align: right;
}

.comment-reply-link {
  background-color: #e9e9e9;
  padding: 5px 10px;
  border-radius: 5px;
  color: #555;
  transition: background-color 0.3s ease;
}

.comment-reply-link:hover {
  background-color: #ddd;
}

.comment-form-comment label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.comment-form-comment textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  min-height: 120px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1em;
}

.form-submit input[type="submit"] {
  background-color: #CC0000; /* Accent color */
  color: #fff;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.form-submit input[type="submit"]:hover {
  background-color: #A30000; /* Darker accent on hover */
}

/* --- Footer --- */
.site-footer {
  background: #222; /* Darker footer */
  color: #bbb;
  padding: 50px 0 30px;
  font-size: 0.9em;
  border-top: 5px solid #CC0000; /* Accent line */
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
  border-bottom: 1px solid #444;
  padding-bottom: 40px;
}

.footer-widget-area .widget-title {
  color: #fff;
  font-size: 1.3em;
  margin-bottom: 20px;
}

.footer-widget-area ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-widget-area ul li {
  margin-bottom: 10px;
}

.footer-widget-area ul li a {
  color: #bbb;
  transition: color 0.3s ease;
}

.footer-widget-area ul li a:hover {
  color: #fff; /* White on hover for dark footer */
}

.site-info {
  text-align: center;
  padding-top: 30px;
}

.social-icons {
  margin-top: 20px;
}

.social-icons a {
  color: #fff;
  font-size: 1.5em;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #CC0000; /* Accent color */
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .site-header {
    padding: 15px 0;
  }
  .header-inner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .main-navigation ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  .header-search {
    margin-left: 0;
    width: 100%;
    max-width: 400px;
  }
  .header-search .search-form {
    width: 100%;
  }
  .single-post-article {
    padding: 30px;
  }
  .single-post-header .entry-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.2em; }
  h2 { font-size: 1.8em; }
  body { font-size: 16px; }
  .container {
    padding: 25px 15px;
  }

  .site-branding .site-title {
    font-size: 2em;
  }

  .main-navigation {
    display: none; /* Hide navigation by default on mobile */
    width: 100%;
    margin-top: 15px;
  }

  .main-navigation.toggled {
    display: block; /* Show when toggled */
  }

  .main-navigation ul {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .main-navigation ul ul {
    position: static; /* Remove absolute positioning for dropdowns on mobile */
    box-shadow: none;
    border-top: none;
    padding: 0;
  }

  .main-navigation ul ul li {
    border-bottom: none;
  }

  .menu-toggle {
    display: block; /* Show toggle button on mobile */
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .single-post-article {
    padding: 20px;
  }

  .single-post-header .entry-title {
    font-size: 2em;
  }

  .author-box {
    flex-direction: column;
    text-align: center;
  }

  .author-avatar {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .footer-widgets {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-icons {
    margin-top: 15px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.8em; }
  h2 { font-size: 1.5em; }
  .single-post-header .entry-title {
    font-size: 1.8em;
  }
}
/* ... (tu CSS existente hasta el final) ... */

/* Estilos para page.php */
.static-page-article {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08); /* Consistent shadow */
  padding: 40px;
}

.page-header {
  text-align: center;
  margin-bottom: 30px;
}

.page-header .entry-title {
  font-size: 2.8em; /* Ajusta según tu preferencia */
  margin-bottom: 20px;
}

.page-thumbnail {
  margin-top: 20px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.page-content {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 30px;
}

.page-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Media queries para page.php (ajusta si es necesario) */
@media (max-width: 768px) {
  .static-page-article {
    padding: 25px;
  }
  .page-header .entry-title {
    font-size: 2.2em;
  }
}
@media (max-width: 480px) {
  .page-header .entry-title {
    font-size: 1.8em;
  }
}