/*
Theme Name: AAG TI - Alfredo Alsina Guittier
Theme URI: https://www.aag-ti.com
Author: Alfredo Alsina Guittier
Author URI: https://www.aag-ti.com
Description: Tema minimal centrado en compatibilidad con Elementor y cabeceras/pies de Elementor.
Version: 1.0.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aag-ti
Requires at least: 6.0
Requires PHP: 6.0
Tested up to: 6.9
*/

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #f5f5f5;
  color: #222;
}

a {
  color: #0073aa;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-content {
  flex: 1;
}

/* Contenedor simple para cuando no uses Elementor */
.aagti-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ==== BLOG ARCHIVE MODERNO ==== */

.blog-archive {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.blog-archive-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding-bottom: 1.5rem;
}

.blog-archive-title {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin: 0;
  letter-spacing: 0.03em;
}

.blog-archive-description {
  margin-top: .75rem;
  max-width: 600px;
  line-height: 1.6;
  opacity: 0.75;
}

/* Grid de cards */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

/* Card */
.post-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, translate .25s ease;
  translate: 0 0;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.18);
}

/* Imagen */
.post-card-thumbnail {
  position: relative;
  padding-top: 60%; /* proporción 16:10 */
  overflow: hidden;
}

.post-card-thumbnail img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.post-card:hover .post-card-thumbnail img {
  transform: scale(1.06);
}

.post-card-thumbnail-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  background: linear-gradient(135deg, #004f64, #0f172a);
  color: #f9fafb;
}

/* Body */
.post-card-body {
  padding: 1.4rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Meta */
.post-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 0.75rem;
  opacity: 0.7;
}

.post-card-category {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, .6);
}

/* Título */
.post-card-title {
  font-size: 1.15rem;
  margin: 0 0 0.6rem;
  line-height: 1.35;
}

.post-card-title a {
  color: inherit;
}

.post-card-title a:hover {
  text-decoration: none;
}

/* Extracto */
.post-card-excerpt {
  font-size: 0.92rem;
  line-height: 1.7;
  opacity: 0.85;
  margin-bottom: 1.3rem;
  flex: 1;
}

/* Footer botón */
.post-card-footer {
  display: flex;
  justify-content: flex-start;
}

.post-card-readmore {
  font-size: 0.86rem;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.post-card-readmore:hover {
  background: #0f172a;
  color: #f9fafb;
  border-color: #0f172a;
  text-decoration: none;
}

/* Paginación */
.blog-pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

.blog-pagination .page-numbers {
  margin: 0 0.25rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
}

.blog-pagination .page-numbers.current {
  background: #0f172a;
  color: #f9fafb;
}

.blog-pagination .page-numbers:hover:not(.current) {
  border-color: rgba(15, 23, 42, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
  .blog-archive-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==== SINGLE POST ULTRA MODERNO ====

.single-post {
  padding-top: 3rem;
  padding-bottom: 3rem;
  max-width: 860px;
}*/

/* HERO */
.single-hero {
  margin-bottom: 1.75rem;
}

.single-hero-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.75;
}

.single-hero-category {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, .6);
}

.single-hero-title {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  margin: 0.8rem 0 0.5rem;
  line-height: 1.15;
}

.single-hero-author {
  font-size: 0.9rem;
  opacity: 0.8;
}

.single-hero-author span {
  margin-right: 0.35rem;
}

/* Imagen destacada */
.single-hero-image {
  margin-bottom: 2rem;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.24);
}

.single-hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Contenido */
.single-content {
  font-size: 1rem;
  line-height: 1.85;
  color: #111827;
}

.single-content p {
  margin-bottom: 1.25rem;
}

.single-content h2,
.single-content h3,
.single-content h4 {
  margin-top: 2rem;
  margin-bottom: 0.9rem;
}

.single-content ul,
.single-content ol {
  margin: 1rem 0 1.25rem 1.4rem;
}

.single-content blockquote {
  margin: 1.8rem 0;
  padding: 1.2rem 1.4rem;
  border-left: 4px solid #0f172a;
  background: #f9fafb;
  border-radius: 10px;
  font-style: italic;
}

/* Footer */
.single-footer {
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(148, 163, 184, .4);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}

.single-footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.single-tag-label {
  font-weight: 600;
  margin-right: 0.25rem;
}

.single-footer-tags a {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: #f3f4f6;
  text-decoration: none;
}

.single-footer-share {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.single-footer-share span {
  font-weight: 600;
  margin-right: 0.25rem;
}

.single-footer-share a {
  font-size: 0.85rem;
  text-decoration: none;
  opacity: 0.85;
}

.single-footer-share a:hover {
  opacity: 1;
}

/* Navegación siguiente/anterior */
.single-post-navigation {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(148, 163, 184, .4);
}

.single-post-navigation .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.single-post-navigation a {
  text-decoration: none;
  max-width: 48%;
  display: block;
}

.single-post-navigation .nav-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  opacity: 0.7;
  margin-bottom: 0.25rem;
}

.single-post-navigation .nav-title {
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Comentarios */
.single-comments {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(148, 163, 184, .4);
}

/* Responsive */
@media (max-width: 768px) {
  .single-post {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .single-post-navigation a {
    max-width: 100%;
  }
}
