/* === ProcuradorMadrid.com — Shared Styles === */
:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --accent: #1e40af;
  --accent-hover: #1e3a8a;
  --green: #16a34a;
  --border: #e2e8f0;
  --section-bg: #f1f5f9;
  --sale-bg: #0f172a;
  --sale-text: #f1f5f9;
  --radius: 12px;
  --max-w: 1100px;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* === Layout === */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* === Sale Banner === */
.sale-banner {
  background: var(--sale-bg);
  color: var(--sale-text);
  text-align: center;
  padding: 12px 20px;
  font-size: 14px;
  font-family: var(--sans);
}
.sale-banner a { color: #d97706; font-weight: 600; }
.sale-banner a:hover { color: #f59e0b; text-decoration: underline; }
.sale-banner strong { color: #fff; }

/* === Header / Nav === */
.header {
  background: var(--card);
  border-bottom: 2px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  font-family: var(--sans);
}
.logo:hover { text-decoration: none; }
.logo span { color: var(--accent); }

.nav { display: flex; align-items: center; }
.nav__list {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  list-style: none;
}
.nav__list a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s;
  font-family: var(--sans);
}
.nav__list a:hover { color: var(--accent); text-decoration: none; }
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 4px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

/* Also support .site-header for subpages */
.site-header {
  background: var(--card);
  border-bottom: 2px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.site-header .container,
.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}
nav,
.main-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.main-nav ul {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  list-style: none;
}
nav a,
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s;
  font-family: var(--sans);
}
nav a:hover,
.main-nav a:hover { color: var(--accent); text-decoration: none; }
nav a.active,
.main-nav a.active { color: var(--accent); font-weight: 600; }

/* === Hero === */
.hero {
  padding: 64px 0 44px;
  text-align: center;
}
.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text);
}
.hero h1 span { color: var(--accent); }
.hero p,
.hero__subtitle {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto 24px;
  font-family: var(--sans);
}
.hero .updated,
.hero__updated {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  font-family: var(--sans);
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  cursor: pointer;
  border: none;
  font-family: var(--sans);
  background: var(--accent);
  color: #fff;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; background: var(--accent-hover); color: #fff; }
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-sale {
  background: #d97706;
  color: #fff;
}
.btn-sale:hover { background: #b45309; color: #fff; box-shadow: 0 4px 12px rgba(217,119,6,.3); }

/* === Section === */
.section {
  padding: 50px 0;
}
.section--alt,
.section-alt {
  background: var(--section-bg);
}
.section h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text);
}
.section__content {
  font-family: var(--sans);
}
.section__content p {
  margin-bottom: 16px;
  color: #334155;
  font-family: var(--sans);
}
.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}
.section-sub {
  color: var(--muted);
  margin-bottom: 30px;
  font-size: 1.05rem;
  font-family: var(--sans);
}

/* === Stats === */
.stats {
  padding: 30px 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stat {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 16px;
}
.stat__number {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 6px;
  font-family: var(--sans);
}
.stat__label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  font-family: var(--sans);
}
/* Also support .stat-grid for subpages */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0;
}
.stat-grid .stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 6px;
  font-family: var(--sans);
}
.stat-grid .stat-label {
  font-size: 14px;
  color: var(--muted);
  font-family: var(--sans);
}

/* === Price Cards === */
.price-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.price-card__label {
  font-size: 14px;
  color: var(--muted);
  font-family: var(--sans);
  font-weight: 500;
}
.price-card__amount {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--sans);
}
.price-card__note {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--sans);
}

/* === Info Grid & Cards === */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
  text-decoration: none;
  color: var(--text);
}
.info-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
  transform: translateY(-2px);
  text-decoration: none;
}
.info-card__icon,
.info-card .icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: #eff6ff;
  border-radius: 10px;
}
.info-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--text);
}
.info-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  flex-grow: 1;
  font-family: var(--sans);
}
.info-card__link {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  margin-top: 12px;
  font-family: var(--sans);
}

/* === Content / Article === */
.content {
  max-width: 800px;
  margin: 0 auto;
}
.content h2 {
  font-size: 1.5rem;
  margin: 40px 0 12px;
  color: var(--text);
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
}
.content h3 {
  font-size: 1.2rem;
  margin: 30px 0 10px;
  color: var(--accent);
}
.content p {
  margin-bottom: 16px;
  color: #334155;
  font-family: var(--sans);
}
.content ul, .content ol {
  margin: 0 0 20px 24px;
  color: #334155;
  list-style: disc;
}
.content ol { list-style: decimal; }
.content li {
  margin-bottom: 8px;
  font-family: var(--sans);
}
.content-section {
  margin-bottom: 40px;
}

/* === Functions Grid (que-hace page) === */
.functions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.function-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.function-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text);
}
.function-card p {
  font-size: 14px;
  color: var(--muted);
  font-family: var(--sans);
}

/* === Two Columns Layout === */
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 24px 0;
}
.two-columns > div {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.two-columns h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.two-columns ul {
  list-style: disc;
  margin-left: 20px;
}
.two-columns li {
  margin-bottom: 6px;
  font-size: 14px;
  color: #475569;
  font-family: var(--sans);
}

/* === Steps === */
.steps,
.steps-list {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
.steps li,
.steps-list li {
  counter-increment: step;
  padding: 16px 16px 16px 60px;
  position: relative;
  margin-bottom: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--sans);
}
.steps li::before,
.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  font-family: var(--sans);
}

/* === Comparison Table === */
.table-wrap {
  overflow-x: auto;
  margin: 30px 0;
}
.table-responsive,
.table-wrap,
.comparison-table-wrapper {
  overflow-x: auto;
  margin: 30px 0;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.comp-table,
.comparison-table,
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--card);
  font-family: var(--sans);
}
.comp-table th,
.comparison-table th,
.pricing-table th {
  background: var(--sale-bg);
  color: #fff;
  padding: 14px 20px;
  text-align: left;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.comp-table td,
.comparison-table td,
.pricing-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.comp-table tr:last-child td,
.comparison-table tr:last-child td,
.pricing-table tr:last-child td { border-bottom: none; }
.comp-table tr:nth-child(even),
.comparison-table tr:nth-child(even),
.pricing-table tr:nth-child(even) { background: var(--section-bg); }
.comp-table tr:hover,
.comparison-table tr:hover,
.pricing-table tr:hover { background: #e0e7ff; }
.comp-table thead tr:hover,
.comparison-table thead tr:hover,
.pricing-table thead tr:hover { background: var(--sale-bg); }
.comp-table .check,
.comparison-table .check,
.pricing-table .check { color: var(--green); font-weight: 700; }
.comp-table .cross,
.comparison-table .cross,
.pricing-table .cross { color: #dc2626; }
.table-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
  font-family: var(--sans);
  font-style: italic;
}

/* === FAQ === */
.faq,
.faq-list { max-width: 800px; margin: 20px auto 0; }
details,
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
details summary,
.faq-item__question {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  font-family: var(--sans);
}
details summary::-webkit-details-marker,
.faq-item summary::-webkit-details-marker { display: none; }
details summary::before,
.faq-item__question::before { content: "+ "; color: var(--accent); font-weight: 800; }
details[open] summary::before,
.faq-item[open] .faq-item__question::before { content: "- "; }
details p, details ul,
.faq-item__answer p, .faq-item__answer ul {
  padding: 0 20px 16px;
  font-size: 15px;
  color: #475569;
  font-family: var(--sans);
}

/* === Breadcrumb === */
.breadcrumb {
  padding: 16px 0;
  font-size: 13px;
  color: var(--muted);
  font-family: var(--sans);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 6px; }
.breadcrumb ol, .breadcrumb ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
}
.breadcrumb li::after { content: " ›"; margin: 0 6px; color: var(--muted); }
.breadcrumb li:last-child::after { content: none; }

/* === CTA Box (legacy, no longer used) === */
.cta-box {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  margin: 40px 20px;
}
.cta-box h2 { font-size: 1.6rem; margin-bottom: 10px; }
.cta-box p { color: #dbeafe; margin-bottom: 20px; font-family: var(--sans); }
.cta-box strong { color: #fff; }
.cta-box .btn { font-size: 17px; padding: 14px 36px; }
.cta-box__form { margin-top: 16px; }
.cta-box input[type="image"] { transition: transform .15s; }
.cta-box input[type="image"]:hover { transform: scale(1.05); }

/* === Domain Notice (subtle sale card) === */
.domain-notice {
  max-width: 600px;
  margin: 40px auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  font-family: var(--sans);
}
.domain-notice p {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--text);
}
.domain-notice__link {
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.domain-notice__link:hover {
  text-decoration: underline;
}

/* === Related Links === */
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}
.related-links a {
  display: inline-flex;
  padding: 8px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  transition: background .2s, border-color .2s;
  font-family: var(--sans);
}
.related-links a:hover {
  background: #eff6ff;
  border-color: var(--accent);
  text-decoration: none;
}

/* === Tag === */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  background: #dbeafe;
  color: var(--accent);
  font-family: var(--sans);
}

/* === Footer === */
.footer,
.site-footer {
  background: var(--sale-bg);
  color: var(--sale-text);
  padding: 44px 0;
  margin-top: 40px;
  font-size: 14px;
  font-family: var(--sans);
}
.footer__grid,
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}
.footer__col h4,
.footer-col h4 { margin-bottom: 12px; font-size: 15px; color: #fff; }
.footer__col a,
.footer-col a { color: #94a3b8; display: block; margin-bottom: 6px; font-size: 13px; }
.footer__col a:hover,
.footer-col a:hover { color: #fff; }
.footer__col p,
.footer-col p { color: #94a3b8; font-size: 13px; line-height: 1.6; }
.footer__col ul { list-style: none; }
.footer__bottom,
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  color: #94a3b8;
  font-size: 12px;
}
.footer__bottom a,
.footer-bottom a { color: #94a3b8; }
.footer__bottom a:hover,
.footer-bottom a:hover { color: #fff; }

/* === Responsive === */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.8rem; }
  .section h2, .section-title { font-size: 1.4rem; }
  .info-grid { grid-template-columns: 1fr; }
  .stats__grid, .stat-grid { grid-template-columns: 1fr; }
  .two-columns { grid-template-columns: 1fr; }
  .functions-grid { grid-template-columns: 1fr; }
  .nav__list { gap: 12px; }
  nav { gap: 12px; }
  .cta-box { padding: 24px; margin: 24px 12px; }
  .footer__grid, .footer-grid { grid-template-columns: 1fr 1fr; }
  .price-highlights { grid-template-columns: 1fr; }

  /* Mobile nav toggle */
  .nav__toggle { display: flex; }
  .nav__list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card);
    border-bottom: 2px solid var(--border);
    flex-direction: column;
    padding: 16px 20px;
    gap: 12px;
  }
  .nav__list--open { display: flex; }
  .header { position: relative; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .hero { padding: 40px 0 28px; }
  .nav__list a, nav a { font-size: 13px; }
  .comp-table, .comparison-table { font-size: 12px; }
  .comp-table th, .comp-table td,
  .comparison-table th, .comparison-table td { padding: 8px 10px; }
  .footer__grid, .footer-grid { grid-template-columns: 1fr; }
  .info-card { padding: 20px 16px; }
  .stat__number { font-size: 1.8rem; }
}
