/*
 Theme Name:   CalculaMex - Astra Child
 Theme URI:    https://calculamex.com
 Description:  Child theme de Astra para CalculaMex - Portal de Calculadoras de México
 Author:       CalculaMex
 Author URI:   https://calculamex.com
 Template:     astra
 Version:      2.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  calculamex
*/

/* ==========================================================================
   Variables — Design System
   ========================================================================== */
:root {
    --cm-primary: #7f0cf2;
    --cm-primary-hover: #6a00d9;
    --cm-primary-light: rgba(127, 12, 242, 0.06);
    --cm-primary-border: rgba(127, 12, 242, 0.18);
    --cm-primary-glow: rgba(127, 12, 242, 0.10);
    --cm-secondary: #7171f9;
    --cm-accent: #e8f76b;
    --cm-bg: #fafafa;
    --cm-bg-card: #ffffff;
    --cm-bg-surface: #f5f5f5;
    --cm-bg-dark: #0a0a0b;
    --cm-bg-hero: #111014;
    --cm-text: #141414;
    --cm-text-secondary: #3e3e42;
    --cm-text-muted: #7a7a7a;
    --cm-text-on-dark: rgba(255,255,255,0.85);
    --cm-border: #e5e5e5;
    --cm-border-light: #efefef;
    --cm-success: #007a48;
    --cm-error: #f9452d;
    --cm-shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.02);
    --cm-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 10px 15px -3px rgba(0,0,0,0.03);
    --cm-shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.06), 0 25px 50px -12px rgba(0,0,0,0.04);
    --cm-shadow-xl: 0 20px 50px -12px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.03);
    --cm-shadow-glow: 0 0 40px rgba(127, 12, 242, 0.06);
    --cm-radius: 16px;
    --cm-radius-sm: 10px;
    --cm-radius-lg: 24px;
    --cm-radius-pill: 40px;
    --cm-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --cm-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --cm-container: 1100px;
    --cm-narrow: 860px;
}

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

body {
    font-family: var(--cm-font);
    color: var(--cm-text);
    background-color: var(--cm-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

::selection {
    background: var(--cm-primary-light);
    color: var(--cm-primary);
}

/* ==========================================================================
   Astra Overrides — FULL WIDTH para contenido (NO header)
   ========================================================================== */
body.single-calculadora .site-content .ast-container,
body.post-type-archive-calculadora .site-content .ast-container,
body.tax-categoria_calculadora .site-content .ast-container,
body.home .site-content .ast-container,
body.page-template-front-page .site-content .ast-container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}

body.single-calculadora .ast-separate-container #primary,
body.single-calculadora .ast-separate-container .ast-article-single,
body.single-calculadora .ast-separate-container .ast-article-post,
body.post-type-archive-calculadora .ast-separate-container #primary,
body.post-type-archive-calculadora .ast-separate-container .ast-article-single,
body.tax-categoria_calculadora .ast-separate-container #primary,
body.tax-categoria_calculadora .ast-separate-container .ast-article-single,
body.home .ast-separate-container #primary,
body.home .ast-separate-container .ast-article-page {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    max-width: 100% !important;
    width: 100% !important;
}

body.single-calculadora .site-content main#main,
body.post-type-archive-calculadora .site-content main#main,
body.tax-categoria_calculadora .site-content main#main,
body.home .site-content main#main,
body.page-template-front-page .site-content main#main {
    width: 100% !important;
    max-width: 100vw !important;
}

body.single-calculadora .entry-content,
body.post-type-archive-calculadora .entry-content,
body.tax-categoria_calculadora .entry-content,
body.home .entry-content {
    margin: 0 !important;
    max-width: 100% !important;
}

/* ==========================================================================
   Containers
   ========================================================================== */
.cm-container {
    max-width: var(--cm-container);
    margin: 0 auto;
    padding: 0 2rem;
}

.cm-container-narrow {
    max-width: var(--cm-container);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================================================
   Page base — full width
   ========================================================================== */
.cm-page {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

/* ==========================================================================
   Header — glassmorphism sticky nav, contenido centrado
   ========================================================================== */
.main-header-bar,
.ast-primary-header-bar {
    border-bottom: 1px solid rgba(0,0,0,0.06) !important;
    box-shadow: none !important;
    background: rgba(255,255,255,0.88) !important;
    -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
    backdrop-filter: saturate(180%) blur(20px) !important;
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s var(--cm-ease), box-shadow 0.3s var(--cm-ease);
}

/* Header container — alineado con contenido */
.main-header-bar .ast-container,
.ast-primary-header-bar .ast-container {
    max-width: var(--cm-container) !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
}

/* Nav links top level */
.main-header-menu > .menu-item > a,
.ast-header-sections-navigation .menu-link,
.ast-nav-menu > .menu-item > .menu-link {
    font-weight: 500 !important;
    font-size: 0.88rem !important;
    letter-spacing: -0.01em !important;
    color: var(--cm-text-secondary) !important;
    transition: color 0.2s !important;
    padding: 0 0.9rem !important;
}

.main-header-menu > .menu-item > a:hover,
.ast-nav-menu > .menu-item:hover > .menu-link {
    color: var(--cm-primary) !important;
}

/* Dropdown — mega menu style */
.main-header-menu .sub-menu,
.ast-nav-menu .sub-menu {
    background: var(--cm-bg-card) !important;
    border: 1px solid var(--cm-border-light) !important;
    border-radius: var(--cm-radius) !important;
    box-shadow: var(--cm-shadow-lg) !important;
    padding: 0.5rem !important;
    min-width: 220px !important;
    animation: cmDropIn 0.2s var(--cm-ease);
}

@keyframes cmDropIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.main-header-menu .sub-menu .menu-item a,
.ast-nav-menu .sub-menu .menu-item .menu-link {
    font-size: 0.84rem !important;
    font-weight: 400 !important;
    color: var(--cm-text-secondary) !important;
    padding: 0.5rem 0.85rem !important;
    border-radius: var(--cm-radius-sm) !important;
    transition: all 0.15s !important;
    display: block !important;
    line-height: 1.4 !important;
}

.main-header-menu .sub-menu .menu-item a:hover,
.ast-nav-menu .sub-menu .menu-item:hover > .menu-link {
    background: var(--cm-bg-surface) !important;
    color: var(--cm-text) !important;
}

/* Logo */
.calculamex-logo {
    height: 32px;
    width: auto;
    transition: opacity 0.2s;
}

.calculamex-logo:hover {
    opacity: 0.8;
}

/* ==========================================================================
   HERO — dark, full-width, impactante
   ========================================================================== */
.cm-hero {
    background: var(--cm-bg-hero);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(127, 12, 242, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(113, 113, 249, 0.08), transparent);
    padding: 4rem 2rem 5rem;
    position: relative;
    overflow: hidden;
}

.cm-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(127, 12, 242, 0.2), transparent);
}

.cm-hero-inner {
    max-width: var(--cm-container);
    margin: 0 auto;
}

/* Breadcrumbs on dark */
.cm-hero .cm-breadcrumbs {
    margin-bottom: 2rem;
}

.cm-hero .cm-breadcrumbs,
.cm-hero .cm-breadcrumbs a,
.cm-hero .cm-breadcrumbs span {
    color: rgba(255,255,255,0.4) !important;
}

.cm-hero .cm-breadcrumbs a:hover {
    color: rgba(255,255,255,0.7) !important;
}

.cm-hero .cm-breadcrumb-sep {
    color: rgba(255,255,255,0.2) !important;
}

.cm-hero-title {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    line-height: 1.08;
    margin: 0 0 1.25rem;
    letter-spacing: -0.04em;
    max-width: 800px;
}

.cm-hero-subtitle {
    color: var(--cm-text-on-dark);
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.6;
    margin: 0 0 1rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    max-width: 600px;
    opacity: 0.7;
}

.cm-hero-meta {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.3);
    margin: 0;
    letter-spacing: -0.01em;
}

/* ==========================================================================
   Calculator Section — card flotante sobre el fondo
   ========================================================================== */
.cm-calc-section {
    position: relative;
    padding: 3rem 0 2rem;
    background: var(--cm-bg);
}

.cm-calculator-section {
    margin-bottom: 1.5rem;
}

.cm-calculator {
    background: var(--cm-bg-card);
    border: 1px solid var(--cm-border-light);
    border-radius: var(--cm-radius-lg);
    box-shadow: var(--cm-shadow-xl);
    padding: 2.5rem;
    margin: 0 auto;
    max-width: var(--cm-narrow);
    transition: box-shadow 0.4s var(--cm-ease);
}

.cm-calculator:hover {
    box-shadow: var(--cm-shadow-lg), var(--cm-shadow-glow);
}

.cm-calculator h2 {
    color: var(--cm-text);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    padding-bottom: 0;
    border-bottom: none;
    letter-spacing: -0.02em;
}

.cm-calculator > p {
    font-size: 0.88rem;
    color: var(--cm-text-muted);
    line-height: 1.6;
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--cm-border-light);
}

/* ==========================================================================
   Form Elements
   ========================================================================== */
.cm-form-group {
    margin-bottom: 1.25rem;
}

.cm-form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.3rem;
    color: var(--cm-text);
    font-size: 0.88rem;
    letter-spacing: -0.01em;
}

.cm-form-group .cm-help {
    display: block;
    font-size: 0.76rem;
    color: var(--cm-text-muted);
    margin-bottom: 0.45rem;
    line-height: 1.4;
}

.cm-form-group input[type="number"],
.cm-form-group input[type="text"],
.cm-form-group input[type="date"],
.cm-form-group select {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid var(--cm-border);
    border-radius: var(--cm-radius-sm);
    font-size: 0.92rem;
    font-family: var(--cm-font);
    color: var(--cm-text);
    background: var(--cm-bg);
    transition: border-color 0.2s var(--cm-ease), box-shadow 0.2s var(--cm-ease), background 0.2s;
    -moz-appearance: textfield;
}

.cm-form-group input:focus,
.cm-form-group select:focus {
    border-color: var(--cm-primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--cm-primary-light);
    background: var(--cm-bg-card);
}

.cm-form-group input::placeholder {
    color: var(--cm-text-muted);
    opacity: 0.5;
}

.cm-form-group input[type="number"]::-webkit-inner-spin-button,
.cm-form-group input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cm-form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%237a7a7a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    padding: 6px 10px !important;
    padding-right: 2.5rem !important;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.cm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.6rem;
    border: 1.5px solid transparent;
    border-radius: var(--cm-radius-pill);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--cm-font);
    cursor: pointer;
    transition: all 0.25s var(--cm-ease);
    text-transform: none;
    letter-spacing: -0.01em;
    gap: 0.4rem;
}

.cm-btn-primary {
    background: var(--cm-primary);
    color: #fff;
    border-color: var(--cm-primary);
}

.cm-btn-primary:hover {
    background: var(--cm-primary-hover);
    border-color: var(--cm-primary-hover);
    box-shadow: 0 4px 20px rgba(127, 12, 242, 0.3);
    transform: translateY(-1px);
}

.cm-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(127, 12, 242, 0.2);
}

.cm-btn-reset {
    background: transparent;
    color: var(--cm-text-muted);
    border-color: var(--cm-border);
    margin-left: 0.5rem;
}

.cm-btn-reset:hover {
    border-color: var(--cm-text-secondary);
    color: var(--cm-text);
    background: var(--cm-bg-surface);
}

/* ==========================================================================
   Results
   ========================================================================== */
.cm-results {
    display: none;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--cm-border-light);
}

.cm-results.active {
    display: block;
    animation: cmFadeIn 0.5s var(--cm-ease);
}

@keyframes cmFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.cm-result-total {
    background: var(--cm-bg-hero);
    color: #fff;
    padding: 1.35rem 1.75rem;
    border-radius: var(--cm-radius);
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cm-result-total .cm-label {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.6;
}

.cm-result-total .cm-amount {
    font-size: 1.85rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.cm-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--cm-border-light);
    font-size: 0.88rem;
}

.cm-result-row:last-child {
    border-bottom: none;
}

.cm-result-row .cm-label {
    color: var(--cm-text-muted);
    font-weight: 400;
}

.cm-result-row .cm-amount {
    font-weight: 600;
    color: var(--cm-text);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

/* ==========================================================================
   Info & Warning Boxes
   ========================================================================== */
.cm-info-box {
    background: var(--cm-bg-surface);
    border: 1px solid var(--cm-border-light);
    border-left: 3px solid var(--cm-primary);
    padding: 1rem 1.25rem;
    border-radius: var(--cm-radius-sm);
    margin: 1.5rem 0;
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--cm-text-muted);
}

.cm-info-box strong {
    color: var(--cm-text-secondary);
    font-weight: 600;
}

.cm-warning-box {
    background: #fffbf5;
    border: 1px solid #f5e6d0;
    border-left: 3px solid #e67e22;
    padding: 1rem 1.25rem;
    border-radius: var(--cm-radius-sm);
    margin: 1.5rem 0;
    font-size: 0.82rem;
    line-height: 1.7;
}

/* ==========================================================================
   Share Bar
   ========================================================================== */
.cm-share-bar {
    display: flex;
    gap: 0.6rem;
    margin: 0 auto 1.5rem;
    max-width: var(--cm-narrow);
}

.cm-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1.1rem;
    border-radius: var(--cm-radius-pill);
    font-size: 0.82rem;
    font-weight: 500;
    font-family: var(--cm-font);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s var(--cm-ease);
    border: 1.5px solid var(--cm-border);
    background: var(--cm-bg-card);
    color: var(--cm-text-muted);
    letter-spacing: -0.01em;
}

.cm-share-btn:hover {
    border-color: var(--cm-primary-border);
    color: var(--cm-primary);
    box-shadow: var(--cm-shadow-sm);
}

.cm-share-whatsapp:hover {
    border-color: rgba(37, 211, 102, 0.3);
    color: #25d366;
}

/* ==========================================================================
   Content Section — fondo alternado
   ========================================================================== */
.cm-content-section {
    background: var(--cm-bg-card);
    padding: 3.5rem 0;
    border-top: 1px solid var(--cm-border-light);
    border-bottom: 1px solid var(--cm-border-light);
}

.cm-seo-content {
    line-height: 1.8;
    font-size: 0.93rem;
    color: var(--cm-text-secondary);
    letter-spacing: -0.01em;
}

.cm-seo-content h2 {
    color: var(--cm-text);
    font-size: 1.5rem;
    font-weight: 300;
    margin: 3rem 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--cm-border-light);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.cm-seo-content h2:first-child {
    margin-top: 0;
}

.cm-seo-content h3 {
    color: var(--cm-text);
    font-size: 1.08rem;
    font-weight: 500;
    margin: 2rem 0 0.75rem;
    letter-spacing: -0.02em;
}

.cm-seo-content p {
    margin-bottom: 1rem;
}

.cm-seo-content strong {
    color: var(--cm-text);
    font-weight: 600;
}

.cm-seo-content ul,
.cm-seo-content ol {
    margin: 0.75rem 0 1.25rem 1.25rem;
}

.cm-seo-content li {
    margin-bottom: 0.35rem;
    line-height: 1.75;
}

.cm-seo-content .cm-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
    border-radius: var(--cm-radius-sm);
    border: 1px solid var(--cm-border-light);
}

.cm-seo-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
    min-width: 500px;
    border: none;
    margin: 0;
}

.cm-seo-content th,
.cm-seo-content td {
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--cm-border-light);
    text-align: left;
}

.cm-seo-content th {
    background: var(--cm-bg-surface);
    font-weight: 500;
    color: var(--cm-text);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cm-seo-content td {
    color: var(--cm-text-secondary);
}

.cm-seo-content tr:nth-child(even) td {
    background: var(--cm-bg);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.cm-faq-section {
    padding: 1rem 0 2rem;
}

.cm-faq {
    margin: 2rem 0;
}

.cm-faq h2 {
    color: var(--cm-text);
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--cm-border-light);
    letter-spacing: -0.03em;
}

.cm-faq-item {
    border: 1px solid var(--cm-border-light);
    border-radius: var(--cm-radius-sm);
    margin-bottom: 0.4rem;
    overflow: hidden;
    transition: border-color 0.25s var(--cm-ease), box-shadow 0.25s var(--cm-ease);
}

.cm-faq-item:hover {
    border-color: var(--cm-border);
}

.cm-faq-item.active {
    border-color: var(--cm-primary-border);
    box-shadow: 0 0 0 3px var(--cm-primary-light);
}

.cm-faq-question,
.cm-faq .cm-faq-item .cm-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.9rem 1.15rem;
    background: var(--cm-bg-card);
    border: none;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 500;
    font-family: var(--cm-font);
    color: var(--cm-text) !important;
    text-align: left;
    transition: background 0.2s var(--cm-ease);
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.cm-faq-question:hover {
    background: var(--cm-bg);
}

.cm-faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s var(--cm-ease);
    color: var(--cm-text-muted);
    margin-left: 1rem;
}

.cm-faq-question[aria-expanded="true"] .cm-faq-icon {
    transform: rotate(180deg);
    color: var(--cm-primary);
}

.cm-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--cm-ease);
}

.cm-faq-answer p {
    padding: 0 1.15rem 1rem;
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.75;
    color: var(--cm-text-secondary);
}

.cm-faq-item.active .cm-faq-answer {
    max-height: 500px;
}

/* ==========================================================================
   Related — full-width section con fondo
   ========================================================================== */
.cm-related-section {
    background: var(--cm-bg-card);
    padding: 3rem 0 4rem;
    border-top: 1px solid var(--cm-border-light);
}

.cm-related {
    margin: 0;
}

.cm-related h2 {
    color: var(--cm-text);
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    border-bottom: none;
    padding-bottom: 0;
}

.cm-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.cm-related-card {
    background: var(--cm-bg);
    border: 1px solid var(--cm-border-light);
    border-radius: var(--cm-radius);
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.3s var(--cm-ease);
    display: flex;
    flex-direction: column;
}

.cm-related-card:hover {
    border-color: var(--cm-primary-border);
    box-shadow: var(--cm-shadow-md), var(--cm-shadow-glow);
    transform: translateY(-3px);
}

.cm-related-card h3 {
    color: var(--cm-text);
    font-size: 0.92rem;
    font-weight: 500;
    margin: 0 0 0.5rem;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.cm-related-card p {
    color: var(--cm-text-muted);
    font-size: 0.82rem;
    line-height: 1.55;
    margin: 0 0 0.75rem;
    flex-grow: 1;
}

.cm-related-link {
    color: var(--cm-primary);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* ==========================================================================
   Breadcrumbs (base — override in hero)
   ========================================================================== */
.cm-breadcrumbs {
    font-size: 0.8rem;
    color: var(--cm-text-muted);
    margin-bottom: 2rem;
    padding: 0;
    letter-spacing: -0.01em;
}

.cm-breadcrumbs a {
    color: var(--cm-text-muted);
    text-decoration: none;
    transition: color 0.2s var(--cm-ease);
}

.cm-breadcrumbs a:hover {
    color: var(--cm-primary);
}

.cm-breadcrumb-sep {
    margin: 0 0.4rem;
    color: var(--cm-border);
    font-size: 0.75rem;
}

/* ==========================================================================
   AdSense Slots
   ========================================================================== */
.cm-ad-slot {
    display: none;
}

/* When AdSense is active (has ins element), show the slot */
.cm-ad-slot:has(ins.adsbygoogle) {
    display: block;
    margin: 2rem auto;
    max-width: var(--cm-narrow);
    text-align: center;
    min-height: 90px;
}

/* ==========================================================================
   Footer — hide Astra default, use custom cm-footer
   ========================================================================== */
.site-footer,
.ast-footer-overlay,
.site-below-footer-wrap,
.site-above-footer-wrap,
.site-primary-footer-wrap,
.ast-footer-copyright {
    display: none !important;
}

/* ==========================================================================
   Scroll to top
   ========================================================================== */
#ast-scroll-top,
.ast-scroll-top-icon {
    background: var(--cm-text) !important;
    border-radius: var(--cm-radius-pill) !important;
    box-shadow: var(--cm-shadow-md) !important;
    transition: all 0.3s var(--cm-ease) !important;
}

#ast-scroll-top:hover {
    background: var(--cm-primary) !important;
    transform: translateY(-2px) !important;
}

/* ==========================================================================
   HOME PAGE — cards y layout
   ========================================================================== */

/* Home Astra overrides ya consolidados arriba en la sección principal */

.cm-container-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero home — más grande */
.cm-hero-home {
    padding: 5rem 2rem 6rem;
    text-align: center;
}

.cm-hero-home .cm-hero-inner {
    max-width: 700px;
    margin: 0 auto;
}

.cm-hero-home .cm-hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1.5rem;
}

.cm-hero-home .cm-hero-subtitle {
    max-width: 550px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.cm-hero-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--cm-primary);
    background: rgba(127, 12, 242, 0.1);
    border: 1px solid rgba(127, 12, 242, 0.2);
    padding: 0.3rem 0.85rem;
    border-radius: var(--cm-radius-pill);
    margin-bottom: 1.5rem;
    letter-spacing: 0.01em;
}

/* Section headers */
.cm-home-section {
    padding: 3.5rem 0;
    border-bottom: 1px solid var(--cm-border-light);
}

.cm-home-section:nth-child(odd) {
    background: var(--cm-bg-card);
}

.cm-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cm-section-emoji {
    font-size: 2rem;
    flex-shrink: 0;
}

.cm-section-title {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--cm-text);
    margin: 0;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.cm-section-desc {
    font-size: 0.88rem;
    color: var(--cm-text-muted);
    margin: 0.25rem 0 0;
    letter-spacing: -0.01em;
}

/* Card grid */
.cm-home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.75rem;
}

.cm-home-card {
    background: var(--cm-bg);
    border: 1px solid var(--cm-border-light);
    border-radius: var(--cm-radius);
    padding: 1.25rem 1.35rem;
    text-decoration: none;
    transition: all 0.3s var(--cm-ease);
    display: flex;
    flex-direction: column;
    position: relative;
}

.cm-home-section:nth-child(odd) .cm-home-card {
    background: var(--cm-bg-surface);
}

.cm-home-card:hover {
    border-color: var(--cm-primary-border);
    box-shadow: var(--cm-shadow-md), var(--cm-shadow-glow);
    transform: translateY(-2px);
}

.cm-card-emoji {
    font-size: 1.5rem;
    margin-bottom: 0.65rem;
}

.cm-card-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--cm-text);
    margin: 0 0 0.35rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.cm-card-desc {
    font-size: 0.8rem;
    color: var(--cm-text-muted);
    margin: 0 0 0.75rem;
    line-height: 1.5;
    flex-grow: 1;
}

.cm-card-cta {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--cm-primary);
    letter-spacing: -0.01em;
}

.cm-card-cta .cm-arrow {
    display: inline-block;
    transition: transform 0.2s var(--cm-ease);
}

.cm-home-card:hover .cm-card-cta .cm-arrow {
    transform: translateX(3px);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 921px) {

    /* ---- Global mobile padding ---- */
    .cm-container,
    .cm-container-narrow,
    .cm-container-wide {
        padding: 0 6% !important;
    }

    /* ---- Hero mobile ---- */
    .cm-hero {
        padding: 2.5rem 6% 3rem !important;
    }

    .cm-hero-inner {
        padding: 0 !important;
        max-width: 100% !important;
    }

    .cm-hero-title {
        font-size: 1.65rem;
        letter-spacing: -0.03em;
        line-height: 1.15;
    }

    .cm-hero-subtitle {
        font-size: 0.88rem;
        line-height: 1.55;
        max-width: 100% !important;
    }

    .cm-hero-meta {
        font-size: 0.72rem;
    }

    .cm-hero-home {
        padding: 2.5rem 6% 3rem !important;
    }

    .cm-hero-home .cm-hero-title {
        font-size: 2rem;
    }

    .cm-hero-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.7rem;
        margin-bottom: 1rem;
    }

    /* ---- Breadcrumbs mobile ---- */
    .cm-breadcrumbs {
        font-size: 0.72rem;
        margin-bottom: 1.25rem;
    }

    /* ---- Calculator card mobile ---- */
    .cm-calc-section {
        padding: 1.5rem 6% 1rem !important;
    }

    .cm-calculator {
        padding: 1.25rem;
        border-radius: var(--cm-radius-sm);
        margin: 0;
    }

    .cm-calculator h2 {
        font-size: 1.1rem;
    }

    .cm-calculator > p {
        font-size: 0.82rem;
        margin-bottom: 1.25rem;
        padding-bottom: 1rem;
    }

    /* ---- Form elements mobile ---- */
    .cm-form-group {
        margin-bottom: 1rem;
    }

    .cm-form-group label {
        font-size: 0.84rem;
        margin-bottom: 0.2rem;
    }

    .cm-form-group .cm-help {
        font-size: 0.72rem;
        margin-bottom: 0.35rem;
    }

    .cm-form-group input[type="number"],
    .cm-form-group input[type="text"],
    .cm-form-group input[type="date"],
    .cm-form-group select {
        padding: 0.6rem 0.75rem !important;
        font-size: 0.88rem;
        border-radius: 8px;
    }

    .cm-form-group select {
        padding: 6px 10px !important;
        padding-right: 2.5rem !important;
    }

    /* ---- Buttons mobile ---- */
    .cm-btn {
        width: 100%;
        text-align: center;
        padding: 0.65rem 1.2rem;
        font-size: 0.88rem;
    }

    .cm-btn-reset {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    /* ---- Results mobile ---- */
    .cm-result-total {
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
        padding: 1rem 1.25rem;
        border-radius: 12px;
    }

    .cm-result-total .cm-label {
        font-size: 0.82rem;
    }

    .cm-result-total .cm-amount {
        font-size: 1.4rem;
    }

    .cm-result-row {
        padding: 0.6rem 0;
        font-size: 0.82rem;
    }

    /* ---- Info/Warning boxes mobile ---- */
    .cm-info-box,
    .cm-warning-box {
        padding: 0.85rem 1rem;
        font-size: 0.78rem;
        margin: 1rem 0;
    }

    /* ---- Share bar mobile ---- */
    .cm-share-bar {
        flex-direction: column;
        padding: 0;
        gap: 0.5rem;
    }

    .cm-share-btn {
        justify-content: center;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    /* ---- Content section mobile ---- */
    .cm-content-section {
        padding: 2rem 6% !important;
    }

    .cm-seo-content {
        font-size: 0.88rem;
        line-height: 1.7;
    }

    .cm-seo-content h2 {
        font-size: 1.2rem;
        margin: 2rem 0 0.75rem;
        padding-bottom: 0.5rem;
    }

    .cm-seo-content h2:first-child {
        margin-top: 0;
    }

    .cm-seo-content h3 {
        font-size: 1rem;
        margin: 1.5rem 0 0.5rem;
    }

    .cm-seo-content ul,
    .cm-seo-content ol {
        margin: 0.5rem 0 1rem 1rem;
    }

    .cm-seo-content li {
        font-size: 0.86rem;
        margin-bottom: 0.25rem;
    }

    .cm-seo-content th,
    .cm-seo-content td {
        padding: 0.5rem 0.65rem;
        font-size: 0.78rem;
    }

    /* ---- FAQ mobile ---- */
    .cm-faq-section {
        padding: 0.5rem 0 1.5rem;
    }

    .cm-faq h2,
    .cm-related h2 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .cm-faq-question,
    .cm-faq .cm-faq-item .cm-faq-question {
        padding: 0.75rem 1rem !important;
        font-size: 0.84rem !important;
    }

    .cm-faq-answer p {
        padding: 0 1rem 0.85rem;
        font-size: 0.82rem;
    }

    /* ---- Related section mobile ---- */
    .cm-related-section {
        padding: 2rem 6% 2.5rem !important;
    }

    .cm-related-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .cm-related-card {
        padding: 1.15rem;
    }

    .cm-related-card h3 {
        font-size: 0.88rem;
    }

    .cm-related-card p {
        font-size: 0.78rem;
    }

    /* ---- Ad slots mobile ---- */
    .cm-ad-slot {
        margin: 1.25rem auto;
        min-height: 60px;
        font-size: 0.65rem;
    }

    /* ---- Home page mobile ---- */
    .cm-home-section {
        padding: 2rem 6% !important;
    }

    .cm-home-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .cm-home-card {
        padding: 1rem 1.15rem;
    }

    .cm-card-emoji {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }

    .cm-card-title {
        font-size: 0.88rem;
    }

    .cm-card-desc {
        font-size: 0.78rem;
        margin-bottom: 0.5rem;
    }

    .cm-card-cta {
        font-size: 0.78rem;
    }

    .cm-section-header {
        margin-bottom: 1.25rem;
        gap: 0.75rem;
    }

    .cm-section-emoji {
        font-size: 1.5rem;
    }

    .cm-section-title {
        font-size: 1.15rem;
    }

    .cm-section-desc {
        font-size: 0.82rem;
    }

    /* ---- Header mobile — white clean ---- */
    .main-header-bar,
    .ast-primary-header-bar {
        background: #fff !important;
        border-bottom: 1px solid rgba(0,0,0,0.06) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .main-header-bar .ast-container,
    .ast-primary-header-bar .ast-container {
        max-width: 100% !important;
        padding: 0 1rem !important;
    }

    /* ---- Logo mobile — más grande ---- */
    .calculamex-logo {
        height: 28px !important;
    }

    /* ---- Footer mobile ---- */
    .site-footer,
    .ast-footer-overlay {
        padding: 1.5rem 6% !important;
        font-size: 0.78rem !important;
    }
}

/* ==========================================================================
   Mobile Header & Menu — full-width overlay
   ========================================================================== */

/* ==========================================================================
   Mobile Header & Menu — targeting Astra Header Builder with ID selectors
   ========================================================================== */

/* ---- Mobile header bar ---- */
.ast-header-break-point #masthead .ast-mobile-header-wrap .ast-primary-header-bar,
.ast-header-break-point #masthead #ast-mobile-header .ast-primary-header-bar,
#ast-mobile-header .ast-primary-header-bar,
#ast-mobile-header .main-header-bar {
    padding: 0.6rem 5% !important;
    background: #fff !important;
    border-bottom: 1px solid rgba(0,0,0,0.06) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    min-height: auto !important;
}

.ast-header-break-point #masthead #ast-mobile-header .site-primary-header-wrap,
#ast-mobile-header .site-primary-header-wrap.ast-container,
#ast-mobile-header .ast-primary-header-bar .ast-container {
    padding: 0 !important;
    max-width: 100% !important;
    min-height: auto !important;
}

/* ---- Hamburger button ---- */
#ast-mobile-header .ast-mobile-menu-trigger-minimal,
#ast-mobile-header .main-header-menu-toggle,
#ast-mobile-header .menu-toggle {
    border: none !important;
    background: transparent !important;
    padding: 0.5rem !important;
    border-radius: var(--cm-radius-sm) !important;
    transition: background 0.2s var(--cm-ease) !important;
}

#ast-mobile-header .ast-mobile-menu-trigger-minimal:hover,
#ast-mobile-header .menu-toggle:hover {
    background: var(--cm-bg-surface) !important;
}

#ast-mobile-header .ast-mobile-svg {
    fill: var(--cm-text) !important;
    width: 22px !important;
    height: 22px !important;
}

/* Close X state */
#ast-mobile-header .menu-toggle[aria-expanded="true"] .ast-mobile-svg.ast-menu-svg {
    display: none !important;
}
#ast-mobile-header .menu-toggle[aria-expanded="true"] .ast-mobile-svg.ast-close-svg {
    fill: var(--cm-primary) !important;
}

/* ---- Logo mobile ---- */
#ast-mobile-header .calculamex-logo {
    height: 28px !important;
}

/* ---- Mobile menu dropdown container ---- */
#ast-mobile-header .ast-mobile-header-content {
    background: #fff !important;
    width: 100% !important;
    max-width: 100vw !important;
    padding: 0 !important;
    margin: 0 !important;
    border-top: 1px solid var(--cm-border-light) !important;
    border-bottom: none !important;
    box-shadow: 0 16px 48px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.04) !important;
    max-height: 75vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

/* Animate open */
.ast-main-header-nav-open #ast-mobile-header .ast-mobile-header-content {
    animation: cmMenuSlide 0.25s var(--cm-ease) !important;
}

@keyframes cmMenuSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Menu list reset ---- */
#ast-mobile-header .main-header-menu,
#ast-mobile-header #ast-hf-mobile-menu {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0.75rem 1rem 1rem !important;
}

/* ---- Category headers (Laboral, Fiscal, Financiero) ---- */
#ast-mobile-header .main-header-menu > .menu-item.menu-item-has-children > .menu-link,
#ast-mobile-header #ast-hf-mobile-menu > .menu-item.menu-item-has-children > .menu-link {
    color: var(--cm-text-muted) !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    padding: 1rem 0.5rem 0.35rem !important;
    border-bottom: none !important;
    pointer-events: none !important;
    cursor: default !important;
    background: transparent !important;
}

#ast-mobile-header .main-header-menu > .menu-item.menu-item-has-children:first-child > .menu-link,
#ast-mobile-header #ast-hf-mobile-menu > .menu-item.menu-item-has-children:first-child > .menu-link {
    padding-top: 0.25rem !important;
}

/* ---- Hide ALL toggle arrows everywhere in mobile menu ---- */
#ast-mobile-header .ast-menu-toggle,
#ast-mobile-header .dropdown-menu-toggle,
#ast-mobile-header .ast-header-navigation-arrow,
#ast-mobile-header .sub-menu .menu-link > .ast-icon {
    display: none !important;
}

/* ---- Force all submenus open ---- */
#ast-mobile-header .main-header-menu .sub-menu,
#ast-mobile-header .main-header-menu .sub-menu[style],
#ast-mobile-header #ast-hf-mobile-menu .sub-menu,
#ast-mobile-header .ast-nav-menu .sub-menu {
    display: block !important;
    max-height: none !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 0 !important;
    animation: none !important;
    border-radius: 0 !important;
    position: relative !important;
    width: 100% !important;
    left: auto !important;
    top: auto !important;
}

/* ---- Submenu items — calculadora links ---- */
#ast-mobile-header .main-header-menu .sub-menu .menu-item .menu-link,
#ast-mobile-header #ast-hf-mobile-menu .sub-menu .menu-item .menu-link,
#ast-mobile-header .ast-nav-menu .sub-menu .menu-item .menu-link {
    color: var(--cm-text) !important;
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    padding: 0.6rem 0.75rem !important;
    border-bottom: none !important;
    border-radius: 8px !important;
    background: transparent !important;
    letter-spacing: -0.01em !important;
    transition: background 0.15s ease, color 0.15s ease !important;
    display: block !important;
    line-height: 1.35 !important;
    text-indent: 0 !important;
    margin: 0 !important;
}

#ast-mobile-header .main-header-menu .sub-menu .menu-item .menu-link:hover,
#ast-mobile-header .main-header-menu .sub-menu .menu-item .menu-link:active,
#ast-mobile-header #ast-hf-mobile-menu .sub-menu .menu-item .menu-link:hover {
    color: var(--cm-primary) !important;
    background: var(--cm-primary-light) !important;
}

/* ---- Separator between categories ---- */
#ast-mobile-header .main-header-menu > .menu-item.menu-item-has-children + .menu-item.menu-item-has-children,
#ast-mobile-header #ast-hf-mobile-menu > .menu-item.menu-item-has-children + .menu-item.menu-item-has-children {
    border-top: 1px solid var(--cm-border-light) !important;
    margin-top: 0.5rem !important;
    padding-top: 0.25rem !important;
}

/* ---- Top-level non-category links ---- */
#ast-mobile-header .main-header-menu > .menu-item:not(.menu-item-has-children) > .menu-link {
    color: var(--cm-text) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    padding: 0.6rem 0.75rem !important;
    border-radius: 8px !important;
    border-bottom: none !important;
    transition: background 0.15s ease !important;
}

#ast-mobile-header .main-header-menu > .menu-item:not(.menu-item-has-children) > .menu-link:hover {
    background: var(--cm-primary-light) !important;
    color: var(--cm-primary) !important;
}

/* ---- Hide secondary mobile bars ---- */
#ast-mobile-header .ast-above-header,
#ast-mobile-header .ast-below-header {
    display: none !important;
}

/* ==========================================================================
   Legal Pages
   ========================================================================== */
.cm-legal-page {
    background: var(--cm-bg);
    min-height: 60vh;
    padding: 3rem 0 4rem;
}

.cm-legal-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.cm-legal-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--cm-border);
}

.cm-legal-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--cm-text);
    letter-spacing: -0.03em;
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.cm-legal-updated {
    font-size: 0.82rem;
    color: var(--cm-text-muted);
    margin: 0;
}

.cm-legal-content {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--cm-text-secondary);
}

.cm-legal-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cm-text);
    margin: 2.5rem 0 0.75rem;
    letter-spacing: -0.02em;
}

.cm-legal-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--cm-text);
    margin: 1.75rem 0 0.5rem;
}

.cm-legal-content p {
    margin: 0 0 1rem;
}

.cm-legal-content ul,
.cm-legal-content ol {
    margin: 0.5rem 0 1.25rem 1.5rem;
    padding: 0;
}

.cm-legal-content li {
    margin-bottom: 0.4rem;
}

.cm-legal-content a {
    color: var(--cm-primary);
    text-decoration: underline;
    text-decoration-color: var(--cm-primary-border);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.2s;
}

.cm-legal-content a:hover {
    text-decoration-color: var(--cm-primary);
}

.cm-legal-content strong {
    color: var(--cm-text);
    font-weight: 600;
}

@media (max-width: 768px) {
    .cm-legal-page {
        padding: 2rem 0 3rem;
    }

    .cm-legal-title {
        font-size: 1.5rem;
    }

    .cm-legal-container {
        padding: 0 1rem;
    }

    .cm-legal-content {
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   Custom Footer
   ========================================================================== */
.cm-footer {
    background: var(--cm-bg-dark);
    color: rgba(255,255,255,0.5);
    padding: 3rem 0 2rem;
    font-size: 0.85rem;
    line-height: 1.6;
}

.cm-footer-inner {
    max-width: var(--cm-container);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
}

.cm-footer-brand p {
    margin: 0.75rem 0 0;
    color: rgba(255,255,255,0.4);
    font-size: 0.82rem;
    max-width: 280px;
}

.cm-footer-brand .calculamex-logo-footer {
    height: 26px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.cm-footer-col h4 {
    color: rgba(255,255,255,0.85);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 0.75rem;
}

.cm-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cm-footer-col li {
    margin-bottom: 0.35rem;
}

.cm-footer-col a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.82rem;
}

.cm-footer-col a:hover {
    color: #fff;
}

.cm-footer-bottom {
    max-width: var(--cm-container);
    margin: 2rem auto 0;
    padding: 1.25rem 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255,255,255,0.3);
    font-size: 0.78rem;
}

.cm-footer-bottom a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    margin-left: 1.25rem;
    transition: color 0.2s;
}

.cm-footer-bottom a:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .cm-footer {
        padding: 2rem 0 1.5rem;
    }

    .cm-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .cm-footer-brand {
        grid-column: 1 / -1;
    }

    .cm-footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        padding: 1rem 1rem 0;
    }

    .cm-footer-bottom a {
        margin-left: 0;
        margin: 0 0.5rem;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    body { background: #fff; }

    .cm-hero { background: #fff !important; padding: 1rem 0; }
    .cm-hero-title { color: #000 !important; font-size: 1.5rem; }
    .cm-hero-subtitle { color: #333 !important; }

    .cm-breadcrumbs,
    .cm-share-bar,
    .cm-ad-slot,
    .cm-related-section,
    .cm-faq-section,
    .site-header,
    .site-footer,
    .ast-above-header,
    .ast-below-header,
    #secondary,
    .cm-btn-reset {
        display: none !important;
    }

    .cm-calculator {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .cm-results {
        display: block !important;
    }

    .cm-hero-meta::after {
        content: " — Calculado en CalculaMex.com";
    }
}
