*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f5f5f7;
  color: #1f2933;
}

a {
  color: #0b7285;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.th-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.th-header {
  background: #0b7285;
  color: #fff;
  padding: 0.75rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.th-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.th-logo {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  color: #fff;
  font-weight: 700;
}

.th-logo-subtitle {
  font-size: 0.8rem;
  opacity: 0.85;
}

.th-nav a {
  margin-left: 1rem;
  color: #e6fcff;
  font-weight: 600;
  font-size: 0.95rem;
}

.th-nav a:hover {
  color: #fff;
}

.th-main {
  padding: 1.75rem 0 2.5rem;
}

.th-hero {
  background: linear-gradient(135deg, #0b7285 0%, #0d9488 50%, #15aabf 100%);
  color: #fff;
  padding: 3rem 0;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(11, 114, 133, 0.25);
}

.th-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.th-hero h1 {
  margin: 0 0 0.75rem;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.th-hero p {
  margin: 0 0 1.5rem;
  max-width: 620px;
  font-size: 1.05rem;
  line-height: 1.5;
  opacity: 0.95;
}

.th-hero .th-btn + .th-btn {
  margin-left: 0.75rem;
}

.th-btn-hero-sec {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.th-btn-hero-sec:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: #fff;
  color: #fff;
  text-decoration: none;
}

.th-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}

.th-btn-primario {
  background: #fff;
  color: #0b7285;
}

.th-btn-primario:hover {
  background: #e3fafc;
  text-decoration: none;
}

.th-btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
}

.th-section {
  margin-bottom: 2.5rem;
}

.th-section-header h2 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
}

.th-section-header p {
  margin: 0 0 1.25rem;
  color: #52616b;
}

.th-grid {
  display: grid;
  gap: 1.3rem;
}

@media (min-width: 720px) {
  .th-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.th-card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.1rem 1.1rem 1.1rem;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1);
}

.th-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.th-card h4 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.th-card p {
  margin: 0 0 0.45rem;
  color: #52616b;
}

.th-card-amazon {
  margin-top: 0.6rem;
}

.th-meta {
  font-size: 0.8rem;
  color: #6c7a89;
}

.th-tag {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: #e3fafc;
  color: #0b7285;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 0.4rem;
}

.th-footer {
  border-top: 1px solid #dee2e6;
  background: #f8f9fa;
  padding: 1.4rem 0;
  font-size: 0.9rem;
  color: #52616b;
}

.th-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.th-footer-links a {
  margin-right: 0.8rem;
}

.th-layout-main {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 900px) {
  .th-layout-main {
    grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1fr);
  }
}

.th-sidebar-box {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
  margin-bottom: 1.1rem;
}

.th-sidebar-box h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.th-ad-placeholder {
  border-radius: 0.55rem;
  border: 1px dashed #ced4da;
  padding: 0.65rem;
  font-size: 0.8rem;
  color: #6c7a89;
}

.th-list-simple {
  list-style: none;
  padding: 0;
  margin: 0;
}

.th-list-simple li {
  margin-bottom: 0.4rem;
}

.th-breadcrumb {
  font-size: 0.8rem;
  color: #6c7a89;
  margin-bottom: 0.4rem;
}

.th-breadcrumb span {
  margin: 0 0.25rem;
}

.th-article h1 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.th-article-meta {
  font-size: 0.85rem;
  color: #6c7a89;
  margin-bottom: 0.9rem;
}

.th-article-body p {
  margin-top: 0;
  margin-bottom: 0.85rem;
  line-height: 1.6;
}

/* Galería de imágenes del pueblo */
.th-gallery-section {
  background: #fff;
  padding: 2.5rem 0;
  margin-bottom: 2rem;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.th-gallery-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.th-gallery-header h2 {
  font-size: 1.6rem;
  color: #1f2933;
}

.th-gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 600px) {
  .th-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.th-gallery-grid-page {
  margin-top: 1rem;
}

@media (min-width: 720px) {
  .th-gallery-grid-page {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1000px) {
  .th-gallery-grid-page {
    grid-template-columns: repeat(3, 1fr);
  }
}

.th-gallery-item {
  margin: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #f8fafc;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.th-gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.th-gallery-item a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.th-gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}

.th-gallery-grid-page .th-gallery-item img {
  height: 240px;
}

.th-gallery-item figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

.th-gallery-item figcaption strong {
  display: block;
  color: #1f2933;
  margin-bottom: 0.2rem;
}

.th-gallery-item figcaption span {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.4;
}

.th-gallery-more {
  text-align: center;
  margin-top: 1.5rem;
  margin-bottom: 0;
}
