/*
Theme Name: Seguro Sin Miedo EDU
Theme URI: https://segurosinmiedo.com
Author: Seguro Sin Miedo
Description: Tema ligero para blog educativo SEO/AI de seguros de vida, con enfoque en familias hispanas en Estados Unidos y conversion a citas.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: ssm-edu
*/

:root {
  --ssm-ink: #17252f;
  --ssm-muted: #5a6b75;
  --ssm-brand: #106b72;
  --ssm-brand-dark: #0b4650;
  --ssm-gold: #f2bf3d;
  --ssm-green: #18a957;
  --ssm-paper: #ffffff;
  --ssm-soft: #f4f8f9;
  --ssm-line: #d9e5e8;
  --ssm-radius: 8px;
  --ssm-shadow: 0 16px 42px rgba(11, 70, 80, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ssm-ink);
  background: var(--ssm-paper);
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

a {
  color: var(--ssm-brand);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

img {
  max-width: 100%;
  height: auto;
}

.ssm-container {
  width: min(1120px, calc(100% - 36px));
  margin-inline: auto;
}

.ssm-skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 99999;
  background: var(--ssm-ink);
  color: #fff;
  padding: 10px 14px;
}

.ssm-skip-link:focus {
  left: 12px;
}

.ssm-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--ssm-line);
  backdrop-filter: blur(12px);
}

.ssm-header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.ssm-brand {
  display: inline-flex;
  flex-direction: column;
  color: var(--ssm-brand-dark);
  text-decoration: none;
  line-height: 1.05;
}

.ssm-brand strong {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 800;
}

.ssm-brand span {
  color: var(--ssm-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.ssm-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ssm-nav ul {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ssm-nav a {
  color: var(--ssm-ink);
  font-weight: 700;
  font-size: 0.93rem;
  text-decoration: none;
}

.ssm-nav a:hover,
.ssm-nav .current-menu-item > a {
  color: var(--ssm-brand);
}

.ssm-button,
.ssm-wp-block .wp-block-button__link,
.ssm-post-content .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 0;
  border-radius: var(--ssm-radius);
  color: #fff;
  background: var(--ssm-brand);
  box-shadow: none;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.ssm-button:hover,
.ssm-post-content .wp-block-button__link:hover {
  background: var(--ssm-brand-dark);
  color: #fff;
}

.ssm-button--gold {
  background: var(--ssm-gold);
  color: #1e2528;
}

.ssm-button--green {
  background: var(--ssm-green);
}

.ssm-hero {
  padding: clamp(44px, 7vw, 86px) 0;
  background:
    linear-gradient(135deg, rgba(11, 70, 80, 0.94), rgba(16, 107, 114, 0.86)),
    url("https://images.unsplash.com/photo-1511895426328-dc8714191300?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: #fff;
}

.ssm-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
}

.ssm-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--ssm-radius);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 800;
  font-size: 0.82rem;
}

.ssm-hero h1,
.ssm-page-hero h1,
.ssm-archive-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.ssm-hero p {
  max-width: 720px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.04rem, 1.7vw, 1.22rem);
}

.ssm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ssm-hero-panel {
  background: #fff;
  color: var(--ssm-ink);
  border-radius: var(--ssm-radius);
  padding: clamp(22px, 4vw, 34px);
  box-shadow: var(--ssm-shadow);
}

.ssm-hero-panel h2 {
  margin: 0 0 14px;
  color: var(--ssm-brand-dark);
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  line-height: 1.18;
}

.ssm-check-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.ssm-check-list li {
  position: relative;
  padding: 9px 0 9px 30px;
  border-top: 1px solid var(--ssm-line);
}

.ssm-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ssm-green);
}

.ssm-band {
  padding: clamp(44px, 7vw, 78px) 0;
}

.ssm-band--soft {
  background: var(--ssm-soft);
}

.ssm-section-head {
  max-width: 760px;
  margin-bottom: 30px;
}

.ssm-section-head h2,
.ssm-page-title,
.ssm-post-title {
  margin: 0 0 12px;
  color: var(--ssm-brand-dark);
  font-size: clamp(1.75rem, 3vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.ssm-section-head p {
  margin: 0;
  color: var(--ssm-muted);
  font-size: 1.05rem;
}

.ssm-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ssm-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--ssm-line);
  border-radius: var(--ssm-radius);
  background: #fff;
}

.ssm-card h3 {
  margin: 0 0 10px;
  color: var(--ssm-brand-dark);
  font-size: 1.2rem;
  line-height: 1.25;
}

.ssm-card p {
  margin: 0 0 14px;
  color: var(--ssm-muted);
}

.ssm-card a:last-child {
  margin-top: auto;
  font-weight: 800;
}

.ssm-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.ssm-post-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--ssm-line);
  border-radius: var(--ssm-radius);
  overflow: hidden;
  background: #fff;
}

.ssm-post-card__thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--ssm-brand), var(--ssm-gold));
}

.ssm-post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ssm-post-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}

.ssm-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 10px;
  color: var(--ssm-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.ssm-post-card h2,
.ssm-post-card h3 {
  margin: 0 0 10px;
  font-size: 1.22rem;
  line-height: 1.28;
}

.ssm-post-card h2 a,
.ssm-post-card h3 a {
  color: var(--ssm-brand-dark);
  text-decoration: none;
}

.ssm-post-card p {
  margin: 0 0 16px;
  color: var(--ssm-muted);
}

.ssm-post-card .ssm-read-more {
  margin-top: auto;
  font-weight: 800;
}

.ssm-page-hero,
.ssm-archive-hero {
  padding: 48px 0;
  background: var(--ssm-soft);
  border-bottom: 1px solid var(--ssm-line);
}

.ssm-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 44px;
  align-items: start;
}

.ssm-post-shell {
  padding: 50px 0;
}

.ssm-post-content,
.ssm-page-content {
  font-size: 1.05rem;
}

.ssm-post-content h2,
.ssm-page-content h2 {
  margin-top: 2em;
  color: var(--ssm-brand-dark);
  line-height: 1.2;
}

.ssm-post-content h3,
.ssm-page-content h3 {
  color: var(--ssm-brand-dark);
}

.ssm-post-content blockquote,
.ssm-page-content blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 5px solid var(--ssm-gold);
  background: var(--ssm-soft);
}

.ssm-sidebar {
  position: sticky;
  top: 96px;
}

.ssm-widget {
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid var(--ssm-line);
  border-radius: var(--ssm-radius);
  background: #fff;
}

.ssm-widget h2,
.ssm-widget h3 {
  margin: 0 0 12px;
  color: var(--ssm-brand-dark);
  font-size: 1.15rem;
}

.ssm-widget ul {
  margin: 0;
  padding-left: 20px;
}

.ssm-cta-band {
  padding: clamp(42px, 6vw, 70px) 0;
  color: #fff;
  background: linear-gradient(135deg, var(--ssm-brand-dark), var(--ssm-brand));
}

.ssm-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.ssm-cta-inner h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.12;
}

.ssm-cta-inner p {
  margin: 0;
  max-width: 700px;
  color: rgba(255, 255, 255, 0.86);
}

.ssm-site-footer {
  padding: 44px 0 28px;
  background: #0a3038;
  color: #fff;
}

.ssm-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 28px;
}

.ssm-site-footer a {
  color: rgba(255, 255, 255, 0.82);
}

.ssm-site-footer h2,
.ssm-site-footer h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.ssm-site-footer p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.72);
}

.ssm-footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .ssm-header-inner,
  .ssm-nav,
  .ssm-nav ul,
  .ssm-cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .ssm-header-inner {
    padding: 14px 0;
  }

  .ssm-hero-grid,
  .ssm-main-grid,
  .ssm-footer-grid {
    grid-template-columns: 1fr;
  }

  .ssm-card-grid,
  .ssm-post-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ssm-sidebar {
    position: static;
  }
}

@media (max-width: 620px) {
  .ssm-container {
    width: min(100% - 28px, 1120px);
  }

  .ssm-nav ul {
    gap: 10px;
  }

  .ssm-card-grid,
  .ssm-post-grid {
    grid-template-columns: 1fr;
  }

  .ssm-button {
    width: 100%;
  }
}
