/* ============================================
   CalculaLoTuyo - Styles v5 LightTech
   Diseño limpio y profesional
   ============================================ */

/* === RESET & VARIABLES === */
*{margin:0;padding:0;box-sizing:border-box}

:root {
    --bg: #F3F4F6;
    --bg2: #E5E7EB;
    --card: #FFFFFF;
    --card-h: #F9FAFB;
    --border: #E5E7EB;
    --border-h: #D1D5DB;
    --text: #111827;
    --text2: #374151;
    --muted: #6B7280;
    --accent: #4F46E5;
    --accent-h: #4338CA;
    --success: #059669;
    --success-bg: #ECFDF5;
    --warning: #D97706;
    --warning-bg: #FFFBEB;
}

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === HEADER === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 1rem;
}

.logo-mark {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #fff;
    font-weight: 700;
}

/* === NAVIGATION === */
.nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    font-size: 0.9rem;
    color: var(--text2);
    background: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}

.nav-link:hover {
    color: var(--text);
    background: var(--bg);
}

.nav-link svg {
    opacity: 0.5;
    transition: transform 0.2s;
}

.nav-cta {
    margin-left: 8px;
    padding: 8px 16px;
    background: var(--accent);
    color: #fff;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.15s;
}

.nav-cta:hover {
    background: var(--accent-h);
}

/* === DROPDOWN === */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 200;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown.open .nav-link svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 14px;
    font-size: 0.9rem;
    color: var(--text2);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.15s;
}

.nav-dropdown-menu a:hover {
    color: var(--text);
    background: var(--bg);
}

/* === MOBILE MENU === */
.menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.menu-btn span {
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: all 0.2s;
}

.menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--card);
    padding: 16px;
    z-index: 99;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.2s;
}

.mobile-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-nav-section {
    border-bottom: 1px solid var(--border);
}

.mobile-nav-title {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.mobile-nav-title svg {
    transition: transform 0.2s;
}

.mobile-nav-section.open .mobile-nav-title svg {
    transform: rotate(180deg);
}

.mobile-nav-links {
    display: none;
    padding-bottom: 8px;
}

.mobile-nav-section.open .mobile-nav-links {
    display: block;
}

.mobile-nav-link {
    display: block;
    padding: 12px 16px;
    font-size: 0.95rem;
    color: var(--text2);
    text-decoration: none;
    border-radius: 8px;
}

.mobile-nav-link:hover {
    background: var(--bg);
}

@media (max-width: 900px) {
    .nav { display: none; }
    .menu-btn { display: flex; }
    .mobile-nav { display: block; }
}

/* === HERO (Index) === */
.hero {
    padding: 140px 0 80px;
    text-align: center;
    background-color: var(--card);
    background-image: radial-gradient(var(--border-h) 1px, transparent 1px);
    background-size: 24px 24px;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--bg));
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(5,150,105,0.1);
    border: 1px solid rgba(5,150,105,0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--success);
    margin-bottom: 24px;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: var(--text);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text2);
    max-width: 600px;
    margin: 0 auto 32px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.15s;
}

.hero-cta:hover {
    background: var(--accent-h);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79,70,229,0.3);
}

.hero-cta svg {
    width: 20px;
    height: 20px;
}

.hero-sub {
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--muted);
}

/* Hero con degradado */
.hero-gradient {
    background: linear-gradient(135deg, rgba(79,70,229,0.03) 0%, rgba(124,58,237,0.08) 100%);
    background-image: 
        linear-gradient(135deg, rgba(79,70,229,0.03) 0%, rgba(124,58,237,0.08) 100%),
        radial-gradient(var(--border-h) 1px, transparent 1px);
    background-size: 100% 100%, 24px 24px;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero h1 span {
    color: var(--accent);
}

.hero-trust {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.hero-trust span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--muted);
}

.hero-trust svg {
    width: 16px;
    height: 16px;
}

/* Hero Mini (Calculadoras) */
.hero-mini {
    padding: 100px 0 50px;
    background-color: var(--card);
    background-image: radial-gradient(var(--border-h) 1px, transparent 1px);
    background-size: 24px 24px;
    position: relative;
}

.hero-mini .container {
    position: relative;
    z-index: 1;
}

.hero-mini h1 {
    font-size: clamp(1.6rem, 4vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero-mini p {
    font-size: 1rem;
    color: var(--text2);
    max-width: 550px;
}

/* === STATS === */
.stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 32px 0;
    border-top: 1px solid var(--border);
    margin-top: 48px;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--muted);
}

@media (max-width: 600px) {
    .stats { flex-direction: column; gap: 24px; }
}

/* === SECTIONS === */
.section {
    padding: 64px 0;
}

.section-header {
    margin-bottom: 32px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(79,70,229,0.1);
    border: 1px solid rgba(79,70,229,0.2);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.section-desc {
    font-size: 1rem;
    color: var(--text2);
}

/* === CARDS GRID === */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.calc-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.calc-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.05), 0 10px 10px -5px rgba(0,0,0,0.01);
}

.calc-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(79,70,229,0.1);
    color: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
    transition: all 0.2s;
}

.calc-card:hover .calc-card-icon {
    background: var(--accent);
    color: #fff;
    transform: scale(1.1) rotate(-3deg);
}

.calc-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 10px;
    background: var(--accent);
    color: #fff;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.calc-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.calc-card p {
    font-size: 0.9rem;
    color: var(--text2);
    margin-bottom: 16px;
    line-height: 1.6;
}

.calc-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent);
}

.calc-card-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.15s;
}

.calc-card:hover .calc-card-link svg {
    transform: translateX(4px);
}

/* Calc grid (para index) */
.calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}

.calc-card-tag {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 10px;
    background: var(--bg);
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
}

/* === BREADCRUMB === */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 88px 0 24px;
    font-size: 0.85rem;
    color: var(--muted);
}

.breadcrumb a {
    color: var(--muted);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--accent);
}

/* === PAGE HEADER === */
.page-header {
    padding: 100px 0 40px;
    background: var(--bg2);
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.page-header p {
    color: var(--text2);
}

.page-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(79,70,229,0.1);
    border: 1px solid rgba(79,70,229,0.2);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.page-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.page-desc {
    font-size: 1rem;
    color: var(--text2);
    max-width: 600px;
}

/* === CALCULATOR SECTION === */
.calc-section {
    margin-top: -40px;
    position: relative;
    z-index: 10;
    padding-bottom: 40px;
}

/* === CARD === */
.card {
    background: var(--card);
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02), 0 1px 3px rgba(0,0,0,0.08);
    padding: 32px;
    margin-bottom: 24px;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text);
}

.card-icon {
    width: 40px;
    height: 40px;
    background: rgba(79,70,229,0.1);
    color: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* === FORM === */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text2);
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    transition: all 0.15s;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

.form-hint {
    font-size: 0.75rem;
    color: var(--muted);
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
}

.checkbox-group input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.checkbox-group span {
    font-size: 0.9rem;
    color: var(--text);
}

/* === BUTTONS === */
.btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    margin-top: 8px;
}

.btn:hover {
    background: var(--accent-h);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(79,70,229,0.3);
}

.btn-text {
    font-size: 0.8rem;
    color: var(--muted);
    text-align: center;
    margin-top: 12px;
}

.btn-text svg {
    display: inline;
    vertical-align: middle;
    margin-right: 4px;
}

.btn-secondary {
    flex: 1;
    min-width: 150px;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.15s;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* === DISCLAIMER === */
.disclaimer-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    background: var(--warning-bg);
    border: 1px solid rgba(217,119,6,0.25);
    border-radius: 10px;
    margin: 20px 0;
}

.disclaimer-box svg {
    flex-shrink: 0;
    color: var(--warning);
    margin-top: 2px;
}

.disclaimer-box p {
    font-size: 0.8rem;
    color: var(--text2);
    line-height: 1.5;
}

.disclaimer-box strong {
    color: var(--text);
}

/* === RESULT === */
.result {
    display: none;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.result.visible {
    display: block;
    animation: fadeIn 0.4s;
}

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

.result-hero,
.result-total {
    text-align: center;
    padding: 32px;
    background: var(--success-bg);
    border-radius: 12px;
    margin-bottom: 24px;
}

.result-label {
    font-size: 0.9rem;
    color: var(--text2);
    margin-bottom: 8px;
}

.result-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--success);
}

.result-sub {
    font-size: 0.85rem;
    color: var(--success);
    margin-top: 6px;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.result-item {
    padding: 16px;
    background: var(--bg);
    border-radius: 10px;
    text-align: center;
}

.result-item-label {
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.result-item-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

.result-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

/* === FISCAL BOX === */
.fiscal-box {
    padding: 18px;
    background: rgba(79,70,229,0.04);
    border: 1px solid rgba(79,70,229,0.1);
    border-radius: 12px;
    margin: 18px 0;
}

.fiscal-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fiscal-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.85rem;
}

.fiscal-row:not(:last-child) {
    border-bottom: 1px dashed var(--border);
}

.fiscal-row span:first-child {
    color: var(--text2);
}

.fiscal-row span:last-child {
    font-weight: 600;
    color: var(--text);
}

.fiscal-row.highlight span {
    color: var(--success);
    font-weight: 700;
}

/* === NEXT STEPS === */
.next-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.step-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.step-btn:hover {
    border-color: var(--accent);
    background: rgba(79,70,229,0.04);
}

.step-btn svg {
    color: var(--accent);
    flex-shrink: 0;
}

/* === AD === */
.ad {
    /* Descomenta cuando tengas el código de AdSense */
    display: none;
    background: var(--card-h);
    border: none;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    margin: 32px 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.ad.active {
    display: flex;
}

.ad::before {
    content: 'Publicidad';
    font-size: 0.65rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
}

/* === INFO BOX === */
.info-box {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(79,70,229,0.05);
    border: 1px solid rgba(79,70,229,0.1);
    border-radius: 10px;
    margin-top: 24px;
}

.info-box svg {
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 2px;
}

.info-box p {
    font-size: 0.85rem;
    color: var(--text2);
    line-height: 1.6;
}

.info-box strong {
    color: var(--text);
}

/* === SEO SECTION === */
.seo-section {
    background: var(--card);
    border-radius: 16px;
    padding: 36px;
    margin: 36px 0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.seo-section h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 28px 0 14px;
    color: var(--text);
}

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

.seo-section h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 22px 0 10px;
    color: var(--text);
}

.seo-section p {
    margin-bottom: 14px;
    color: var(--text2);
    line-height: 1.75;
    font-size: 0.95rem;
}

.seo-section ul,
.seo-section ol {
    margin: 0 0 16px 20px;
    color: var(--text2);
}

.seo-section li {
    margin-bottom: 8px;
    line-height: 1.65;
}

.seo-section a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.seo-section a:hover {
    text-decoration: underline;
}

.seo-section strong {
    color: var(--text);
}

/* === SOURCE BOX === */
.source-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(79,70,229,0.06);
    border: 1px solid rgba(79,70,229,0.15);
    border-radius: 12px;
    margin: 20px 0;
}

.source-box svg {
    flex-shrink: 0;
    color: var(--accent);
}

.source-box p {
    font-size: 0.85rem;
    color: var(--text2);
    margin: 0;
}

/* === INFO TABLE === */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.9rem;
}

.info-table th,
.info-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.info-table th {
    background: var(--bg);
    font-weight: 600;
    color: var(--text);
}

.info-table td {
    color: var(--text2);
}

/* === FAQ === */
.faq {
    margin-top: 48px;
}

.faq h2,
.faq-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.2s;
    background: var(--card);
}

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

.faq-q {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.faq-q svg {
    transition: transform 0.2s;
    color: var(--muted);
    flex-shrink: 0;
}

.faq-item.open .faq-q svg {
    transform: rotate(180deg);
}

.faq-item.open .faq-q {
    background: var(--bg);
}

.faq-a {
    display: none;
    padding: 0 20px 16px;
    font-size: 0.9rem;
    color: var(--text2);
    line-height: 1.7;
}

.faq-item.open .faq-a {
    display: block;
}

/* === RELATED === */
.related {
    margin-top: 48px;
}

.related h2,
.related-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.related-card {
    display: block;
    padding: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.related-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 20px -5px rgba(0,0,0,0.05);
}

.related-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.related-card p {
    font-size: 0.85rem;
    color: var(--text2);
}

/* === LEGAL SOURCES === */
.legal-sources {
    background: var(--bg2);
    border-radius: 14px;
    padding: 20px 24px;
    margin-top: 36px;
}

.legal-sources h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text);
}

.legal-sources-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.legal-source {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.8rem;
    color: var(--text2);
    transition: all 0.15s;
}

.legal-source:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.legal-source svg {
    width: 14px;
    height: 14px;
}

/* === GUIDES === */
.guides {
    background: var(--bg2);
    padding: 50px 0;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.guide-card {
    padding: 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-decoration: none;
}

.guide-card:hover {
    border-color: var(--accent);
}

.guide-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.guide-card p {
    font-size: 0.85rem;
    color: var(--text2);
}

/* Guide Content (para páginas de guías) */
.guide {
    padding: 40px 0;
}

.guide-content {
    background: var(--card);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.guide-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 32px 0 14px;
    color: var(--text);
}

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

.guide-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 24px 0 10px;
}

.guide-content p {
    color: var(--text2);
    margin-bottom: 14px;
    line-height: 1.75;
}

.guide-content ul,
.guide-content ol {
    margin: 0 0 16px 20px;
    color: var(--text2);
}

.guide-content li {
    margin-bottom: 8px;
    line-height: 1.65;
}

.guide-content a {
    color: var(--accent);
}

.guide-content strong {
    color: var(--text);
}

/* CTA Box (para guías) */
.cta-box {
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    margin-top: 40px;
}

.cta-box h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.cta-box p {
    color: rgba(255,255,255,0.85);
    margin-bottom: 20px;
}

.cta-box a {
    display: inline-block;
    padding: 12px 24px;
    background: #fff;
    color: var(--accent);
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
}

/* === CTA SECTION === */
.cta-section {
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    padding: 50px 0;
    text-align: center;
    border-radius: 20px;
    margin: 0 24px 40px;
}

.cta-section h2 {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-section p {
    color: rgba(255,255,255,0.85);
    margin-bottom: 24px;
}

.cta-section a {
    display: inline-flex;
    padding: 14px 28px;
    background: #fff;
    color: var(--accent);
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
}

/* === CONTACT === */
.contact-section {
    padding: 40px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 800px) {
    .contact-grid { grid-template-columns: 1fr; }
}

.contact-form {
    background: var(--card);
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.contact-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.contact-info p {
    color: var(--text2);
    margin-bottom: 20px;
    line-height: 1.7;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 12px;
}

.contact-item svg {
    color: var(--accent);
}

.contact-item span {
    font-size: 0.95rem;
    color: var(--text);
}

.form-row {
    margin-bottom: 18px;
}

.form-row label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-row input,
.form-row textarea,
.form-row select {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.form-row textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-submit {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.form-submit:hover {
    background: var(--accent-h);
}

.form-note {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 12px;
    text-align: center;
}

/* === GRACIAS === */
.gracias {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 24px;
}

.gracias-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.gracias h1 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.gracias p {
    color: var(--text2);
    margin-bottom: 24px;
}

.gracias a {
    display: inline-block;
    padding: 12px 24px;
    background: var(--accent);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
}

/* === LEGAL PAGES === */
.legal {
    padding: 40px 0;
}

.legal-content {
    background: var(--card);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.legal-content h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 28px 0 12px;
    color: var(--text);
}

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

.legal-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 20px 0 10px;
}

.legal-content p {
    color: var(--text2);
    margin-bottom: 14px;
    line-height: 1.7;
}

.legal-content ul {
    margin: 0 0 16px 20px;
    color: var(--text2);
}

.legal-content li {
    margin-bottom: 8px;
}

.legal-content a {
    color: var(--accent);
}

/* === FOOTER === */
.footer {
    padding: 64px 0 32px;
    background: var(--card);
    border-top: 1px solid var(--border);
    margin-top: 48px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 0.9rem;
    color: var(--text2);
    line-height: 1.7;
    margin-bottom: 16px;
}

.footer-desc a {
    color: var(--accent);
    text-decoration: none;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(5,150,105,0.1);
    border: 1px solid rgba(5,150,105,0.2);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--success);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col a {
    display: block;
    font-size: 0.9rem;
    color: var(--text2);
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.15s;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--muted);
    text-align: center;
}

.footer-bottom a {
    color: var(--accent);
    text-decoration: none;
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--muted);
}

.heart {
    color: #EF4444;
}

.footer-external {
    display: flex;
    gap: 20px;
}

.footer-external a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--muted);
    text-decoration: none;
}

.footer-external a:hover {
    color: var(--accent);
}

.footer-external svg {
    width: 12px;
    height: 12px;
}

.footer-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 24px;
    padding: 16px 20px;
    background: rgba(217,119,6,0.08);
    border: 1px solid rgba(217,119,6,0.2);
    border-radius: 10px;
}

.footer-disclaimer svg {
    flex-shrink: 0;
    color: var(--warning);
    margin-top: 2px;
}

.footer-disclaimer p {
    font-size: 0.85rem;
    color: var(--text2);
    line-height: 1.6;
}

.footer-disclaimer strong {
    color: var(--text);
}

@media (max-width: 600px) {
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* === RESULTADO MEJORADO === */
.result-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 20px 0;
    padding: 16px;
    background: var(--bg);
    border-radius: 12px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.95rem;
}

.result-row.bruto {
    background: rgba(79, 70, 229, 0.1);
    color: var(--accent);
    font-weight: 600;
}

.result-row.exento {
    background: rgba(5, 150, 105, 0.1);
    color: var(--success);
}

.result-row.tributa {
    background: rgba(217, 119, 6, 0.1);
    color: var(--warning);
}

.result-row-label {
    font-weight: 500;
}

.result-row-value {
    font-weight: 700;
    font-size: 1rem;
}

/* === EJEMPLO PRÁCTICO MEJORADO === */
.example-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-top: 20px;
}

.example-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.example-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent), #7C3AED);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.example-header strong {
    font-size: 1.1rem;
    color: var(--text);
    display: block;
    margin-bottom: 4px;
}

.example-header p {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0;
}

.example-story {
    padding: 14px;
    background: var(--bg);
    border-radius: 10px;
    margin-bottom: 16px;
}

.example-story p {
    margin: 0;
    line-height: 1.7;
}

.example-calc h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--text);
}

.calc-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.calc-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.step-num {
    width: 28px;
    height: 28px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.calc-step strong {
    color: var(--text);
    font-size: 0.9rem;
}

.calc-step p {
    margin: 4px 0 0;
    font-size: 0.85rem;
    color: var(--text2);
}

.example-result {
    background: linear-gradient(135deg, rgba(79,70,229,0.05), rgba(124,58,237,0.1));
    border: 1px solid rgba(79,70,229,0.2);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.example-result-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(79,70,229,0.1);
    font-size: 0.95rem;
}

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

.example-result-row.total {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent);
    padding-top: 12px;
    border-top: 2px solid rgba(79,70,229,0.2);
    margin-top: 8px;
}

.example-result-row.exento {
    color: var(--success);
    font-weight: 500;
}

.example-result-row .amount {
    font-weight: 600;
}

.example-result-row .note {
    font-size: 0.8rem;
    color: var(--muted);
}

.example-tip {
    padding: 16px;
    background: rgba(5, 150, 105, 0.08);
    border: 1px solid rgba(5, 150, 105, 0.2);
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.7;
}

.example-tip strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
}

.example-tip a {
    color: var(--accent);
}

/* === SECCIÓN ALTERNATIVA === */
.section-alt {
    background: var(--card);
}

/* === HERO HIGHLIGHT === */
.hero-mini h1 .highlight,
.hero h1 .highlight {
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === FISCAL BOX MEJORADO === */
.fiscal-row.success {
    color: var(--success);
}

.fiscal-row.warning {
    color: var(--warning);
}

/* === WHATSAPP BUTTON === */
.btn-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: #25D366 !important;
    border: none !important;
    color: #fff !important;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    min-width: 140px;
}

.btn-wa:hover {
    background: #1DA851 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
    color: #fff !important;
}

.btn-wa:active {
    transform: translateY(0);
}

/* === TABLA DE TRAMOS IRPF === */
.info-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}

.info-card h3 {
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.tramos-table {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.9rem;
}

.tramo-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bg);
    border-radius: 6px;
}

.tramo-row.header {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: 0.8rem;
}

.tramo-row .total {
    font-weight: 700;
    color: var(--accent);
}

@media (max-width: 600px) {
    .tramo-row {
        grid-template-columns: 1fr 1fr;
        font-size: 0.8rem;
    }
    .tramo-row span:nth-child(2),
    .tramo-row span:nth-child(3) {
        display: none;
    }
}

/* ============================================
   RESPONSIVE MÓVIL COMPLETO
   ============================================ */

/* Tablets (900px) */
@media (max-width: 900px) {
    .container {
        padding: 0 16px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-mini h1 {
        font-size: 1.6rem;
    }
    
    .section {
        padding: 48px 0;
    }
    
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* Móviles (600px) */
@media (max-width: 600px) {
    /* Hero compacto */
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .hero-mini {
        padding: 100px 0 40px;
    }
    
    .hero-mini h1 {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
    
    /* Calculadora */
    .card {
        padding: 20px 16px;
        border-radius: 16px;
    }
    
    .card-title {
        font-size: 1rem;
        gap: 10px;
    }
    
    .form-label {
        font-size: 0.85rem;
    }
    
    .form-input,
    .form-select {
        padding: 12px;
        font-size: 16px; /* Evita zoom en iOS */
    }
    
    .form-hint {
        font-size: 0.75rem;
    }
    
    .btn {
        padding: 14px 24px;
        font-size: 0.95rem;
        width: 100%;
    }
    
    /* Resultados */
    .result-hero {
        padding: 24px 16px;
    }
    
    .result-value {
        font-size: 2rem;
    }
    
    .result-breakdown {
        padding: 12px;
        gap: 6px;
    }
    
    .result-row {
        padding: 8px 10px;
        font-size: 0.85rem;
        flex-wrap: wrap;
    }
    
    .result-row-label {
        flex: 1;
        min-width: 60%;
    }
    
    .result-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .result-item {
        padding: 12px;
    }
    
    .result-item-label {
        font-size: 0.75rem;
    }
    
    .result-item-value {
        font-size: 0.95rem;
    }
    
    .result-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .result-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .fiscal-box {
        padding: 16px;
    }
    
    .fiscal-row {
        font-size: 0.85rem;
        flex-wrap: wrap;
        gap: 4px;
    }
    
    /* Ejemplo práctico */
    .example-box {
        padding: 14px;
    }
    
    .example-story {
        padding: 10px 12px;
        margin-bottom: 12px;
    }
    
    .example-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding-bottom: 12px;
        margin-bottom: 12px;
    }
    
    .example-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .example-header strong {
        font-size: 1rem;
    }
    
    .calc-steps {
        gap: 10px;
    }
    
    .calc-step {
        gap: 10px;
    }
    
    .step-num {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }
    
    .calc-step strong {
        font-size: 0.85rem;
    }
    
    .calc-step p {
        font-size: 0.8rem;
    }
    
    .example-result {
        padding: 12px;
    }
    
    .example-result-row {
        font-size: 0.85rem;
        padding: 6px 0;
    }
    
    .example-result-row.total {
        font-size: 1rem;
    }
    
    .example-tip {
        display: block;
        font-size: 0.85rem;
        padding: 14px;
        line-height: 1.7;
    }
    
    .example-tip strong {
        display: block;
        margin-bottom: 8px;
    }
    
    /* FAQ */
    .faq-q {
        padding: 14px;
        font-size: 0.9rem;
    }
    
    .faq-q svg {
        width: 16px;
        height: 16px;
    }
    
    .faq-a {
        padding: 0 14px 14px;
        font-size: 0.85rem;
    }
    
    .faq-a ul, .faq-a ol {
        padding-left: 20px;
    }
    
    /* Secciones */
    .section-title {
        font-size: 1.25rem;
    }
    
    .section-desc {
        font-size: 0.9rem;
    }
    
    /* Cards relacionadas */
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .calc-card {
        padding: 20px;
    }
    
    .calc-card h3 {
        font-size: 1rem;
    }
    
    .calc-card p {
        font-size: 0.85rem;
    }
    
    /* Source box */
    .source-box {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 16px;
    }
    
    .source-box p {
        font-size: 0.85rem;
    }
    
    /* Disclaimer */
    .disclaimer-box {
        padding: 12px;
        gap: 10px;
    }
    
    .disclaimer-box p {
        font-size: 0.8rem;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 24px;
    }
    
    .footer-grid {
        gap: 32px;
    }
    
    .footer-col h4 {
        font-size: 0.9rem;
    }
    
    .footer-col a {
        font-size: 0.85rem;
    }
    
    .footer-disclaimer {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .footer-disclaimer p {
        font-size: 0.75rem;
    }
}

/* Móviles pequeños (380px) */
@media (max-width: 380px) {
    .hero h1,
    .hero-mini h1 {
        font-size: 1.25rem;
    }
    
    .result-value {
        font-size: 1.75rem;
    }
    
    .result-grid {
        grid-template-columns: 1fr;
    }
    
    .example-result-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
}

/* Fix iOS input zoom */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    select,
    textarea,
    input {
        font-size: 16px;
    }
}

/* Touch-friendly */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .btn-secondary,
    .faq-q,
    .calc-card {
        min-height: 44px;
    }
    
    .nav-dropdown-menu a {
        padding: 14px 16px;
    }
}

/* ============================================
   NUEVO DISEÑO - HERO LIMPIO
   ============================================ */

.hero-clean {
    padding: 120px 0 60px;
    text-align: center;
    background: linear-gradient(180deg, var(--card) 0%, var(--bg) 100%);
}

.hero-update {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--success);
    background: rgba(5, 150, 105, 0.1);
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.hero-clean h1 {
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-accent {
    display: block;
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 500;
    color: var(--muted);
    margin-top: 8px;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text2);
    max-width: 600px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--accent);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.btn-hero:hover {
    background: #4338CA;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.btn-hero svg {
    width: 20px;
    height: 20px;
}

.hero-trust {
    margin-top: 32px;
    font-size: 0.85rem;
    color: var(--muted);
    letter-spacing: 0.02em;
}

/* TRUST BAR */
.trust-bar {
    padding: 24px 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.trust-items {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text2);
}

.trust-item svg {
    width: 20px;
    height: 20px;
    color: var(--success);
}

.trust-item strong {
    color: var(--text);
}

/* ============================================
   DISEÑO PLANO - SIN CARDS ANIDADAS
   ============================================ */

.section-flat {
    padding: 48px 0;
}

.calc-group {
    margin-bottom: 48px;
}

.calc-group-header {
    margin-bottom: 20px;
}

.calc-group-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.calc-group-header p {
    font-size: 0.9rem;
    color: var(--muted);
}

.calc-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.calc-item:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.calc-item-info {
    flex: 1;
    min-width: 0;
}

.calc-item-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.calc-item-info p {
    font-size: 0.85rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calc-item-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.calc-item-badge.popular {
    background: rgba(79, 70, 229, 0.1);
    color: var(--accent);
}

.calc-item-arrow {
    width: 20px;
    height: 20px;
    color: var(--muted);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.calc-item:hover .calc-item-arrow {
    transform: translateX(4px);
    color: var(--accent);
}

.calc-group-guide {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.calc-group-guide:hover {
    text-decoration: underline;
}

/* GUÍAS SECTION */
.section-guides {
    padding: 48px 0;
    background: var(--card);
}

.section-guides h2 {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.section-guides-desc {
    text-align: center;
    color: var(--muted);
    margin-bottom: 32px;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.guide-card {
    padding: 24px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.2s;
}

.guide-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}

.guide-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 12px;
}

.guide-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.guide-card p {
    font-size: 0.9rem;
    color: var(--text2);
    line-height: 1.6;
    margin-bottom: 12px;
}

.guide-link {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
}

/* ABOUT TEASER */
.section-about-teaser {
    padding: 48px 0;
}

.about-teaser {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.about-teaser-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.about-teaser-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.about-teaser-content p {
    font-size: 0.95rem;
    color: var(--text2);
    line-height: 1.7;
    margin-bottom: 12px;
}

.about-teaser-link {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
}

.about-teaser-link:hover {
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE - DISEÑO PLANO MÓVIL
   ============================================ */

@media (max-width: 600px) {
    .hero-clean {
        padding: 100px 0 40px;
    }
    
    .hero-clean h1 {
        font-size: 1.5rem;
    }
    
    .hero-accent {
        font-size: 0.95rem;
    }
    
    .hero-desc {
        font-size: 0.95rem;
        padding: 0 8px;
    }
    
    .btn-hero {
        padding: 14px 28px;
        font-size: 0.95rem;
    }
    
    .hero-trust {
        font-size: 0.75rem;
        margin-top: 24px;
    }
    
    .trust-items {
        gap: 16px;
    }
    
    .trust-item {
        font-size: 0.8rem;
    }
    
    .trust-item svg {
        width: 18px;
        height: 18px;
    }
    
    .section-flat {
        padding: 32px 0;
    }
    
    .calc-group {
        margin-bottom: 32px;
    }
    
    .calc-group-header h2 {
        font-size: 1.1rem;
    }
    
    .calc-item {
        padding: 14px 16px;
    }
    
    .calc-item-info h3 {
        font-size: 0.95rem;
    }
    
    .calc-item-info p {
        font-size: 0.8rem;
        white-space: normal;
    }
    
    .calc-item-badge {
        font-size: 0.65rem;
        padding: 3px 8px;
    }
    
    .section-guides {
        padding: 32px 0;
    }
    
    .section-guides h2 {
        font-size: 1.25rem;
    }
    
    .guides-grid {
        gap: 12px;
    }
    
    .guide-card {
        padding: 20px;
    }
    
    .guide-card h3 {
        font-size: 1rem;
    }
    
    .about-teaser {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .about-teaser-icon {
        font-size: 2rem;
    }
    
    .about-teaser-content h3 {
        font-size: 1rem;
    }
    
    .about-teaser-content p {
        font-size: 0.9rem;
    }
}

/* ============================================
   PÁGINA SOBRE EL PROYECTO
   ============================================ */

.about-page {
    padding: 48px 0 64px;
}

.about-content {
    max-width: 720px;
    margin: 0 auto;
}

.about-mission {
    display: flex;
    gap: 20px;
    padding: 28px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(124, 58, 237, 0.08));
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 16px;
    margin-bottom: 40px;
}

.about-mission-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.about-mission h2 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text);
}

.about-mission p {
    color: var(--text2);
    line-height: 1.7;
    margin-bottom: 10px;
}

.about-mission p:last-child {
    margin-bottom: 0;
}

.about-section {
    margin-bottom: 40px;
}

.about-section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}

.about-section p {
    color: var(--text2);
    line-height: 1.8;
    margin-bottom: 14px;
}

.about-section ul {
    margin: 16px 0;
    padding-left: 0;
    list-style: none;
}

.about-section ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    color: var(--text2);
    line-height: 1.7;
}

.about-section ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.about-section code {
    background: var(--card);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.9em;
    font-family: monospace;
}

.source-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.source-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.source-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.source-item strong {
    display: block;
    color: var(--text);
    margin-bottom: 6px;
}

.source-item p {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.source-item a {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
}

.source-item a:hover {
    text-decoration: underline;
}

.about-legal-box {
    padding: 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-top: 40px;
}

.about-legal-box h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

.about-legal-box ul {
    margin: 12px 0;
    padding-left: 20px;
}

.about-legal-box ul li {
    font-size: 0.9rem;
    color: var(--text2);
    margin-bottom: 6px;
}

.about-legal-box ul li::before {
    content: none;
}

.about-legal-date {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

@media (max-width: 600px) {
    .about-mission {
        flex-direction: column;
        padding: 20px;
    }
    
    .about-mission-icon {
        font-size: 2rem;
    }
    
    .about-section h2 {
        font-size: 1.1rem;
    }
    
    .source-item {
        flex-direction: column;
        padding: 16px;
    }
}

/* ============================================
   GUÍAS DE AUTORIDAD - ESTILOS
   ============================================ */

.guide-article {
    background: var(--bg);
}

.guide-header {
    padding: 100px 0 48px;
    background: var(--card);
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.guide-category {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 16px;
}

.guide-header h1 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.2;
}

.guide-subtitle {
    font-size: 1.05rem;
    color: var(--text2);
    max-width: 640px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.guide-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--muted);
}

.guide-toc {
    padding: 32px 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.guide-toc h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}

.guide-toc ol {
    list-style: decimal;
    padding-left: 20px;
    margin: 0;
}

.guide-toc li {
    margin-bottom: 8px;
}

.guide-toc a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.95rem;
}

.guide-toc a:hover {
    text-decoration: underline;
}

.guide-content {
    padding: 48px 0 64px;
}

.guide-content > .container {
    max-width: 760px;
}

.guide-section {
    margin-bottom: 48px;
}

.guide-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    padding-top: 24px;
}

.guide-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin: 28px 0 12px;
}

.guide-section p {
    color: var(--text2);
    line-height: 1.8;
    margin-bottom: 16px;
}

.guide-section ul, .guide-section ol {
    margin: 16px 0;
    padding-left: 24px;
}

.guide-section li {
    color: var(--text2);
    line-height: 1.7;
    margin-bottom: 8px;
}

.guide-section li strong {
    color: var(--text);
}

.legal-reference {
    padding: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin: 20px 0;
}

.legal-reference h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

.legal-reference ul {
    margin: 0;
    padding-left: 20px;
}

.legal-reference li {
    font-size: 0.9rem;
}

.guide-highlight {
    padding: 20px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(124, 58, 237, 0.05));
    border-left: 4px solid var(--accent);
    border-radius: 0 12px 12px 0;
    margin: 24px 0;
}

.guide-highlight h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
}

.guide-highlight p {
    margin-bottom: 8px;
}

.guide-highlight p:last-child {
    margin-bottom: 0;
}

.guide-highlight em {
    font-size: 0.9rem;
    color: var(--muted);
}

.guide-formula {
    padding: 16px 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin: 20px 0;
}

.guide-formula h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.guide-formula code {
    display: block;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 1rem;
    color: var(--text);
    background: var(--bg);
    padding: 12px 16px;
    border-radius: 8px;
}

.guide-example {
    padding: 20px;
    background: rgba(5, 150, 105, 0.06);
    border: 1px solid rgba(5, 150, 105, 0.15);
    border-radius: 12px;
    margin: 24px 0;
}

.guide-example p:first-child {
    margin-bottom: 12px;
}

.guide-example ul {
    margin: 8px 0 0;
}

.guide-warning {
    padding: 20px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px;
    margin: 24px 0;
}

.guide-warning h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #B45309;
    margin-bottom: 8px;
}

.guide-sources {
    padding: 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-top: 48px;
}

.guide-sources h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.guide-sources ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.guide-sources li {
    margin-bottom: 8px;
}

.guide-sources a {
    color: var(--accent);
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .guide-header {
        padding: 80px 0 32px;
    }
    
    .guide-header h1 {
        font-size: 1.4rem;
    }
    
    .guide-subtitle {
        font-size: 0.95rem;
    }
    
    .guide-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .guide-toc {
        padding: 24px 0;
    }
    
    .guide-content {
        padding: 32px 0 48px;
    }
    
    .guide-section h2 {
        font-size: 1.2rem;
    }
    
    .guide-section h3 {
        font-size: 1rem;
    }
    
    .guide-highlight, .guide-warning, .guide-example, .legal-reference {
        padding: 16px;
    }
}

/* ============================================
   OPTIMIZACIÓN UX/UI - MÓVIL SIN FATIGA VISUAL
   ============================================ */

/* Hero: Más separación entre botón y micro-copy */
.hero-trust {
    margin-top: 40px !important;
    font-size: 0.8rem !important;
    color: #9ca3af !important;
    letter-spacing: 0.01em;
    opacity: 0.85;
}

/* Móvil: Diseño PLANO sin cards anidadas */
@media (max-width: 600px) {
    /* Container más estrecho */
    .container {
        padding: 0 16px;
    }
    
    /* Example boxes: FULL WIDTH, sin card anidada */
    .example-box {
        margin: 0 -16px;
        border-radius: 0;
        border-left: none;
        border-right: none;
        padding: 20px 16px;
        background: #f8fafc;
    }
    
    .example-header {
        padding: 0;
        background: transparent;
        border-radius: 0;
        margin-bottom: 16px;
    }
    
    .example-avatar {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
    
    .example-header h4 {
        font-size: 0.95rem;
    }
    
    .example-header p {
        font-size: 0.8rem;
    }
    
    .example-story {
        padding: 16px;
        margin: 0;
        border-radius: 12px;
        background: #fff;
        border: 1px solid #e5e7eb;
    }
    
    .example-steps {
        padding: 0;
        background: transparent;
    }
    
    .example-step {
        padding: 12px 0;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .example-step:last-child {
        border-bottom: none;
    }
    
    .example-tip {
        margin: 16px 0 0;
        padding: 14px;
        background: rgba(79, 70, 229, 0.06);
        border-radius: 10px;
    }
    
    /* FAQ: Diseño plano */
    .faq-section {
        margin: 0 -16px;
        padding: 24px 16px;
        background: #fff;
        border-top: 1px solid #e5e7eb;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .faq-item {
        border: none;
        border-bottom: 1px solid #e5e7eb;
        border-radius: 0;
        margin-bottom: 0;
    }
    
    .faq-item:last-child {
        border-bottom: none;
    }
    
    .faq-q {
        padding: 16px 0;
    }
    
    .faq-a {
        padding: 0 0 16px;
    }
    
    /* Related calculators: Lista simple */
    .related-grid {
        gap: 8px;
    }
    
    .related-card {
        padding: 14px 16px;
        border-radius: 10px;
    }
    
    /* Resultados: Diseño limpio */
    .result-card {
        margin: 0 -16px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    /* Calc groups en home: Sin márgenes excesivos */
    .calc-group {
        margin-bottom: 32px;
    }
    
    .calc-list {
        gap: 6px;
    }
    
    .calc-item {
        padding: 14px;
        border-radius: 10px;
    }
    
    /* Hero más compacto */
    .hero-clean {
        padding: 90px 0 36px;
    }
    
    .hero-clean h1 {
        font-size: 1.6rem;
        line-height: 1.25;
    }
    
    .hero-accent {
        font-size: 0.9rem;
        margin-top: 6px;
    }
    
    .hero-desc {
        font-size: 0.92rem;
        margin-bottom: 24px;
    }
    
    .btn-hero {
        padding: 14px 24px;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }
    
    .hero-trust {
        margin-top: 28px !important;
    }
    
    /* Trust bar más compacta */
    .trust-bar {
        padding: 16px 0;
    }
    
    .trust-items {
        gap: 12px;
        justify-content: space-between;
    }
    
    .trust-item {
        font-size: 0.75rem;
        gap: 4px;
    }
    
    .trust-item svg {
        width: 16px;
        height: 16px;
    }
    
    /* Section guides más compacta */
    .section-guides {
        padding: 32px 0;
    }
    
    .guides-grid {
        gap: 10px;
    }
    
    .guide-card {
        padding: 16px;
    }
    
    /* About teaser compacto */
    .about-teaser {
        padding: 16px;
    }
}

/* ============================================
   HERO MINI - Para páginas internas
   ============================================ */
.hero-mini {
    padding: 100px 0 32px;
    background: var(--card);
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.hero-mini h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}

.hero-mini p {
    color: var(--muted);
    font-size: 1rem;
}

@media (max-width: 600px) {
    .hero-mini {
        padding: 80px 0 24px;
    }
    
    .hero-mini h1 {
        font-size: 1.35rem;
    }
    
    .hero-mini p {
        font-size: 0.9rem;
    }
}

/* ============================================
   MEJORAS GENERALES LEGIBILIDAD
   ============================================ */

/* Líneas de texto más cortas en móvil */
@media (max-width: 600px) {
    .guide-content p,
    .about-section p,
    .legal-content p {
        font-size: 0.95rem;
        line-height: 1.75;
    }
    
    .guide-section h2 {
        font-size: 1.15rem;
    }
    
    .guide-section h3 {
        font-size: 1rem;
    }
}

/* ============================================
   FOOTER 4 COLUMNAS
   ============================================ */

.footer-grid-4 {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .footer-grid-4 {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 600px) {
    .footer-grid-4 {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* ============================================
   CORRECCIÓN MÁRGENES - GUÍAS Y ABOUT
   ============================================ */

/* Hero mini centrado */
.hero-mini {
    text-align: center;
}

.hero-mini .container {
    max-width: 800px;
    margin: 0 auto;
}

/* Guías - contenido centrado */
.guide-header .container,
.guide-toc .container {
    max-width: 800px;
    margin: 0 auto;
}

.guide-content > .container {
    max-width: 760px;
    margin: 0 auto;
}

/* About page - contenido centrado */
.about-page .container {
    max-width: 760px;
    margin: 0 auto;
}

.about-content {
    max-width: 100%;
    margin: 0;
}

/* Asegurar padding en container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 600px) {
    .container {
        padding: 0 16px;
    }
}

/* ============================================
   BOTÓN COMPARTIR WHATSAPP (para añadir)
   ============================================ */

.share-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.share-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #25D366;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-whatsapp:hover {
    background: #1DA851;
    transform: translateY(-2px);
}

.btn-whatsapp svg {
    width: 20px;
    height: 20px;
}

.btn-copy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--card);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-copy:hover {
    border-color: var(--accent);
    background: var(--bg);
}

/* ============================================
   CORRECCIÓN CENTRADO - HERO MINI Y GUÍAS
   ============================================ */

/* Hero mini - forzar centrado */
.hero-mini {
    padding: 100px 0 40px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
}

.hero-mini .container {
    text-align: center;
}

.hero-mini h1 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
    text-align: center;
}

.hero-mini p {
    color: var(--muted);
    font-size: 1.05rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* Guía header - forzar centrado */
.guide-header {
    padding: 100px 0 48px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
}

.guide-header .container {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.guide-category {
    display: inline-block;
    text-align: center;
}

.guide-header h1 {
    text-align: center;
}

.guide-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 20px;
}

.guide-meta {
    justify-content: center;
}

/* Guía TOC - centrado */
.guide-toc {
    padding: 32px 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.guide-toc .container {
    max-width: 760px;
    margin: 0 auto;
}

/* Guía content - centrado */
.guide-content {
    padding: 48px 0 64px;
}

.guide-content > .container {
    max-width: 760px;
    margin: 0 auto;
}

/* About page - centrado */
.about-page {
    padding: 48px 0 64px;
}

.about-page > .container {
    max-width: 760px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .hero-mini {
        padding: 80px 0 32px;
    }
    
    .hero-mini h1 {
        font-size: 1.4rem;
    }
    
    .hero-mini p {
        font-size: 0.95rem;
    }
    
    .guide-header {
        padding: 80px 0 32px;
    }
    
    .guide-header h1 {
        font-size: 1.35rem;
    }
}

/* ============================================
   FIX: BOTONES RESULT-ACTIONS (50% cada uno)
   ============================================ */

.result-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.result-actions .btn-secondary,
.result-actions .btn-wa {
    flex: 1;
    min-width: 0;
}

@media (max-width: 480px) {
    .result-actions {
        flex-direction: row;
        gap: 10px;
    }
    
    .result-actions .btn-secondary,
    .result-actions .btn-wa {
        flex: 1;
        padding: 14px 12px;
        font-size: 0.9rem;
    }
}

/* ============================================
   FIX: INPUTS FECHA EN MÓVIL
   ============================================ */

.form-input,
.form-select,
input[type="date"],
input[type="number"],
input[type="text"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .form-input,
    .form-select,
    input[type="date"],
    input[type="number"],
    input[type="text"] {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        font-size: 16px; /* Evita zoom en iOS */
    }
    
    .form-group {
        width: 100%;
        max-width: 100%;
    }
    
    .form-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    
    .calc-card-inner,
    .card,
    .form-card {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
}

/* ============================================
   FIX: INPUT DATE EN iOS/MÓVIL
   ============================================ */

input[type="date"] {
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    line-height: 48px;
    padding: 0 16px;
    -webkit-appearance: none;
    appearance: none;
}

@media (max-width: 600px) {
    input[type="date"] {
        height: 50px !important;
        min-height: 50px !important;
        max-height: 50px !important;
        padding: 0 12px !important;
        font-size: 16px !important;
        line-height: 50px !important;
    }
    
    /* Asegurar que el contenedor no crezca */
    .form-group {
        overflow: visible;
    }
    
    .form-input,
    .form-select {
        height: auto;
        min-height: 48px;
    }
}

/* ============================================
   FIX: INPUT DATE DESBORDA A LA DERECHA
   ============================================ */

@media (max-width: 600px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
        overflow-x: hidden;
    }
    
    .calc-card-inner,
    .card-body,
    form,
    .form-grid {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .form-group {
        width: 100%;
        max-width: 100%;
    }
    
    .form-input,
    .form-select,
    input[type="date"],
    input[type="number"],
    input[type="text"],
    select {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Evitar scroll horizontal en toda la página */
    body, html {
        overflow-x: hidden;
    }
}
