/* ============================================================
   ConsultarRUT.com.co – Global Styles
   Color Palette: #003366 (primary navy), #FFCC00 (accent yellow)
   Font: Inter (Google Fonts)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

/* ---------- Skip link (accessibility) ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent);
  color: var(--primary-dk);
  font-weight: 700;
  padding: .6rem 1.25rem;
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 9999;
  transition: top .2s;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:    #003366;
  --primary-lt: #004a99;
  --primary-dk: #002244;
  --accent:     #FFCC00;
  --accent-dk:  #e6b800;
  --white:      #ffffff;
  --gray-100:   #f8f9fa;
  --gray-200:   #e9ecef;
  --gray-400:   #adb5bd;
  --gray-600:   #6c757d;
  --gray-800:   #343a40;
  --text:       #1a1a2e;
  --text-light: #555577;
  --radius:     8px;
  --shadow:     0 4px 24px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.15);
  --transition: .25s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

img { max-width: 100%; display: block; }
a  { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dk); }

/* Focus-visible for keyboard accessibility */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

h1,h2,h3,h4,h5,h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary-dk);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }

p { margin-bottom: 1rem; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary-dk);
}
.btn-primary:hover {
  background: var(--accent-dk);
  color: var(--primary-dk);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,204,0,.4);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-secondary:hover {
  background: rgba(255,255,255,.15);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* ---------- Navigation ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary-dk);
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 800;
  text-decoration: none;
}

.navbar-logo span.highlight { color: var(--accent); }

.navbar-logo .logo-icon {
  background: var(--accent);
  color: var(--primary-dk);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,.85);
  font-size: .92rem;
  font-weight: 500;
  padding: .5rem .85rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,.12);
  color: var(--accent);
}

.nav-cta {
  background: var(--accent) !important;
  color: var(--primary-dk) !important;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--accent-dk) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: .5rem;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--primary-dk) 0%, var(--primary) 60%, var(--primary-lt) 100%);
  color: var(--white);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,204,0,.2);
  border: 1px solid rgba(255,204,0,.4);
  color: var(--accent);
  padding: .3rem .9rem;
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  letter-spacing: .04em;
}

.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero p  { color: rgba(255,255,255,.85); font-size: 1.15rem; margin-bottom: 2rem; }

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.hero-stat strong { display: block; font-size: 1.8rem; color: var(--accent); font-weight: 800; }
.hero-stat span   { font-size: .85rem; color: rgba(255,255,255,.7); }

/* Consulta box inside hero */
.consulta-box {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2.5rem;
}
.consulta-box h3 { color: var(--white); margin-bottom: 1.25rem; font-size: 1.1rem; }
.consulta-form  { display: flex; gap: .75rem; flex-wrap: wrap; }
.consulta-form input {
  flex: 1;
  min-width: 220px;
  padding: .8rem 1.2rem;
  border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.1);
  color: var(--white);
  font-size: 1rem;
  outline: none;
}
.consulta-form input::placeholder { color: rgba(255,255,255,.55); }
.consulta-form input:focus { border-color: var(--accent); }

/* ---------- Section helpers ---------- */
.section { padding: 5rem 0; }
.section-alt { background: var(--gray-100); }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: .75rem auto 0;
}

.badge-label {
  display: inline-block;
  background: rgba(0,51,102,.1);
  color: var(--primary);
  padding: .25rem .8rem;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: .75rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* ---------- Cards Grid ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--gray-200);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(0,51,102,.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.card-icon.accent { background: rgba(255,204,0,.2); color: var(--primary-dk); }

.card h3 { margin-bottom: .6rem; }
.card p  { color: var(--text-light); font-size: .95rem; }
.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-weight: 600;
  font-size: .9rem;
  margin-top: 1rem;
  color: var(--primary);
}
.card .card-link:hover { gap: .6rem; }

/* ---------- Steps ---------- */
.steps-list { counter-reset: step; display: grid; gap: 1.5rem; }
.step-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}
.step-num {
  min-width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.step-body h4 { margin-bottom: .35rem; color: var(--primary-dk); }
.step-body p  { color: var(--text-light); font-size: .95rem; margin: 0; }

/* ---------- FAQ Accordion ---------- */
.faq-list { display: grid; gap: .75rem; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary-dk);
  text-align: left;
  gap: 1rem;
}
.faq-question .material-icons { transition: transform var(--transition); font-size: 1.2rem; color: var(--primary); }
.faq-item.open .faq-question .material-icons { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  color: var(--text-light);
  font-size: .97rem;
  line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dk), var(--primary));
  color: var(--white);
  border-radius: 16px;
  padding: 3.5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content:'';
  position:absolute;
  width:300px; height:300px;
  border-radius:50%;
  background:rgba(255,204,0,.08);
  top:-80px; right:-80px;
}
.cta-banner h2 { color:var(--white); margin-bottom:.75rem; }
.cta-banner p  { color:rgba(255,255,255,.8); max-width:500px; margin:0 auto 2rem; }
.cta-banner .btn-primary { font-size:1.1rem; padding:.9rem 2.25rem; }

/* ---------- Info Box ---------- */
.info-box {
  background: rgba(0,51,102,.06);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.info-box.warning {
  background: rgba(255,193,7,.1);
  border-color: #ffc107;
}
.info-box.success {
  background: rgba(25,135,84,.06);
  border-color: #198754;
}
.info-box strong { display: block; margin-bottom: .3rem; color: var(--primary-dk); }
.info-box.warning strong { color: #856404; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}
th {
  background: var(--primary);
  color: var(--white);
  padding: .85rem 1.1rem;
  text-align: left;
  font-weight: 600;
}
td { padding: .8rem 1.1rem; border-bottom: 1px solid var(--gray-200); }
tr:hover td { background: var(--gray-100); }

/* ---------- Blog Cards ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.blog-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--gray-200);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.blog-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--primary), var(--primary-lt));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 3rem;
}
.blog-card-body { padding: 1.5rem; }
.blog-card-tag {
  display: inline-block;
  background: rgba(0,51,102,.1);
  color: var(--primary);
  font-size: .78rem;
  font-weight: 600;
  padding: .2rem .65rem;
  border-radius: 100px;
  margin-bottom: .75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.blog-card-body h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.blog-card-body p  { color: var(--text-light); font-size: .92rem; }
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--gray-600);
  font-size: .82rem;
  margin-top: 1rem;
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dk), var(--primary));
  color: var(--white);
  padding: 4rem 0 3rem;
}
.page-hero h1 { color: var(--white); }
.page-hero p  { color: rgba(255,255,255,.8); margin-top: .6rem; font-size: 1.05rem; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.6);
  font-size: .85rem;
  margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255,255,255,.75); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .material-icons { font-size: .9rem; }

/* ---------- Search Box ---------- */
.search-box {
  display: flex;
  gap: .75rem;
  max-width: 620px;
  flex-wrap: wrap;
}
.search-box input {
  flex: 1;
  min-width: 220px;
  padding: .85rem 1.25rem;
  border-radius: var(--radius);
  border: 2px solid var(--gray-200);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition);
}
.search-box input:focus { border-color: var(--primary); }

/* ---------- CIIU Search ---------- */
.ciiu-search-wrap { background: var(--white); border-radius: 12px; box-shadow: var(--shadow); padding: 2rem; }
.ciiu-results { margin-top: 1.5rem; }
.ciiu-result-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  margin-bottom: .75rem;
  transition: background var(--transition);
  cursor: pointer;
}
.ciiu-result-item:hover { background: var(--gray-100); }
.ciiu-code {
  min-width: 60px;
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: .3rem .5rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: .9rem;
}

/* ---------- Responsabilidades ---------- */
.resp-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
  border-top: 4px solid var(--primary);
}
.resp-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
  width: 52px;
  height: 52px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.resp-card h4 { margin-bottom: .4rem; }
.resp-card p  { color: var(--text-light); font-size: .93rem; }

/* ---------- Footer ---------- */
.footer {
  background: var(--primary-dk);
  color: rgba(255,255,255,.8);
  padding: 3.5rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer-brand { max-width: 320px; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.footer-logo .logo-icon {
  background: var(--accent);
  color: var(--primary-dk);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: .95rem;
}
.footer-brand p { font-size: .88rem; line-height: 1.6; }

.footer-col h5 {
  color: var(--white);
  font-size: .95rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 700;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .55rem; }
.footer-col ul li a {
  color: rgba(255,255,255,.65);
  font-size: .88rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-disclaimer {
  background: rgba(0,0,0,.2);
  padding: 1rem 1.5rem;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.06);
}

/* ---------- Social icons ---------- */
.social-links { display: flex; gap: .6rem; margin-top: 1.25rem; }
.social-link {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: .9rem;
  transition: background var(--transition);
  text-decoration: none;
}
.social-link:hover { background: var(--accent); color: var(--primary-dk); }

/* ---------- Newsletter ---------- */
.newsletter-form {
  display: flex;
  gap: .6rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.newsletter-form input {
  flex: 1;
  min-width: 180px;
  padding: .65rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: var(--white);
  font-size: .9rem;
  outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.45); }
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form button {
  padding: .65rem 1.25rem;
  background: var(--accent);
  color: var(--primary-dk);
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  font-size: .9rem;
  transition: background var(--transition);
}
.newsletter-form button:hover { background: var(--accent-dk); }

/* ---------- Misc ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.gap-1 { gap: 1rem; }

.tag {
  display: inline-flex;
  align-items: center;
  background: rgba(0,51,102,.1);
  color: var(--primary);
  padding: .2rem .7rem;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
}

/* ---------- Two-column layout helper ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* ---------- Three-column methods grid ---------- */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* ---------- Blog Article Layout ---------- */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}

.article-sidebar {
  position: sticky;
  top: 90px;
}

.article-body h2 { margin-top: 2rem; margin-bottom: .75rem; }
.article-body h3 { margin-top: 1.5rem; margin-bottom: .6rem; }
.article-body p  { margin-bottom: 1rem; }
.article-body ul,
.article-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.article-body li { margin-bottom: .4rem; }

.sidebar-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-card h4 {
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--primary);
  margin-bottom: 1rem;
}
.sidebar-card ul { list-style: none; }
.sidebar-card ul li { margin-bottom: .55rem; }
.sidebar-card ul li a {
  color: var(--text-light);
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  transition: color var(--transition);
}
.sidebar-card ul li a:hover { color: var(--primary); }

.article-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  color: var(--text-light);
  font-size: .88rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}
.article-meta span {
  display: flex;
  align-items: center;
  gap: .35rem;
}
.article-meta .material-icons { font-size: 1rem; color: var(--primary); }

/* ---------- Tablet (max 992px) ---------- */
@media (max-width: 992px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
    order: -1;
  }
  /* Nav links font smaller on mid-range screens */
  .nav-links a { font-size: .82rem; padding: .45rem .6rem; }

  /* Blog featured card: stack on tablet */
  .blog-featured-inner {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--primary-dk);
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,.1);
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1rem; padding: .65rem .75rem; border-radius: var(--radius); }
  .hamburger { display: flex; }
  .navbar-inner { position: relative; }

  /* Hero */
  .hero { padding: 3rem 0 2.5rem; }
  .hero p { font-size: 1rem; }
  .hero-content { max-width: 100%; }
  .consulta-form { flex-direction: column; }
  .consulta-form input { min-width: 100%; }
  .consulta-form .btn { width: 100%; justify-content: center; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 1.25rem; }
  .hero-stat strong { font-size: 1.5rem; }

  /* Two-col & Three-col grids → single column */
  .two-col,
  .three-col { grid-template-columns: 1fr !important; }

  /* inline style overrides for two-column sections */
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns: 2fr 1fr"],
  [style*="grid-template-columns: repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Page hero */
  .page-hero { padding: 2.5rem 0 2rem; }
  .page-hero h1 { font-size: clamp(1.6rem, 5vw, 2.5rem); }

  /* Sections spacing */
  .section { padding: 3rem 0; }

  /* CTA banner */
  .cta-banner { padding: 2.25rem 1.25rem; border-radius: 12px; }
  .cta-banner > div[style*="display:flex"],
  .cta-banner [style*="display:flex"] { flex-direction: column; align-items: center; }
  .cta-banner .btn { width: 100%; justify-content: center; }

  /* CTA newsletter form in blog.html */
  .cta-banner form[style*="display:flex"] {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
  }
  .cta-banner form[style*="display:flex"] input { min-width: 100%; width: 100%; }
  .cta-banner form[style*="display:flex"] button { width: 100%; justify-content: center; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
  .footer-brand { grid-column: 1 / -1; max-width: none; }

  /* Blog featured card — target the inline grid */
  .blog-featured-inner,
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }

  /* Consultar page form grid */
  [style*="grid-template-columns:1fr 1fr;gap:3rem"] { grid-template-columns: 1fr !important; }

  /* Step items always horizontal on mobile */
  .step-item { flex-direction: row; }
  .step-body { min-width: 0; }

  /* Tables */
  .table-wrap { -webkit-overflow-scrolling: touch; }
  table { min-width: 500px; }
  th, td { padding: .65rem .85rem; font-size: .88rem; }

  /* Info boxes */
  .info-box { padding: 1rem 1.25rem; }

  /* CIIU search */
  .ciiu-search-wrap [style*="display:flex"] { flex-wrap: wrap; }
  .ciiu-search-wrap { padding: 1.25rem; }
}

@media (max-width: 480px) {
  /* Reset font sizes slightly */
  html { font-size: 15px; }

  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Cards grid always 1 column */
  .cards-grid { grid-template-columns: 1fr !important; }
  .blog-grid { grid-template-columns: 1fr; }

  /* Hero stats in 2 columns */
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

  /* Breadcrumb wraps */
  .breadcrumb { flex-wrap: wrap; }

  /* FAQ */
  .faq-question { font-size: .92rem; padding: .9rem 1.1rem; }
  .faq-answer { padding: 0 1.1rem 1rem; }

  /* Blog card images slightly shorter */
  .blog-card-img { height: 160px; }

  /* Sidebar card on mobile */
  .sidebar-card { padding: 1.25rem; }
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim-fadeup { animation: fadeUp .6s ease both; }
.anim-delay-1 { animation-delay: .15s; }
.anim-delay-2 { animation-delay: .3s; }
.anim-delay-3 { animation-delay: .45s; }
