/* ============================================
   VARIABLES Y RESET
   ============================================ */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;

    --bg-body: #f8fafc;
    --bg-white: #ffffff;
    --bg-light: #f1f5f9;

    --text-dark: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --radius: 12px;
    --radius-lg: 16px;

    /* Variables para componentes (compatibilidad) */
    --admin-bg: var(--bg-white);
    --card-bg: var(--bg-white);
    --input-bg: var(--bg-light);
    --text-main: var(--text-dark);
    --accent: var(--primary);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.6;
    padding-top: 60px;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    padding: 1rem 0;
    background: var(--bg-white) !important;
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
    font-size: 1.25rem;
    text-decoration: none;
}

.flag-icon {
    width: 20px;
    height: 20px;
    object-fit: cover;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    margin-top: -60px;
    padding-top: 5rem;
    position: relative;
    overflow: hidden;
}

.hero-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 300px;
    position: relative;
}

.hero-logo {
    width: 280px;
    height: 280px;
    object-fit: contain;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.3));
    animation: logoFloat 4s ease-in-out infinite;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.hero-logo:hover {
    animation-play-state: paused;
    transform: scale(1.05);
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.03);
    }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

/* ============================================
   CALCULATOR SECTION
   ============================================ */
.calculator-section {
    padding: 3rem 0;
}

.calculator-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    height: 100%;
}

.card-header-calc {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.card-title-calc {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.badge-calc {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-section {
    margin-bottom: 1.5rem;
}

.form-label-calc {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control-calc {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    transition: all 0.2s;
    background: var(--bg-white);
}

.form-control-calc:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.salary-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    z-index: 1;
}

.salary-input {
    width: 100%;
    padding: 1.25rem 1rem 1.25rem 3rem;
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    transition: all 0.2s;
}

.salary-input:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* ============================================
   GRATIFICATION BOX
   ============================================ */
.gratification-box {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #bfdbfe;
    border-radius: var(--radius);
    padding: 1.5rem;
}

.form-check-custom {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.form-check-custom input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.form-check-custom label {
    font-weight: 600;
    cursor: pointer;
    margin: 0;
}

.gratification-options {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.radio-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.radio-group input[type="radio"] {
    cursor: pointer;
}

.radio-group label {
    font-size: 0.875rem;
    cursor: pointer;
    margin: 0;
}

/* ============================================
   INFO BOXES
   ============================================ */
.info-box {
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 2px solid;
}

.info-box-green {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.info-box-red {
    background: #fef2f2;
    border-color: #fecaca;
}

.info-box-title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.info-box-green .info-box-title {
    color: var(--success);
}

.info-box-red .info-box-title {
    color: var(--danger);
}

/* ============================================
   BUTTON
   ============================================ */
.btn-calculate {
    width: 100%;
    padding: 1.25rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-calculate:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

/* ============================================
   RESULTS CARD
   ============================================ */
.results-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    height: 100%;
}

.result-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1.25rem 1.5rem;
    text-align: center;
}

.result-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.result-amount {
    font-size: 2rem;
    font-weight: 800;
    margin: 0.25rem 0;
}

.result-subtitle {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.result-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 0.75rem;
    background: none;
    border: none;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    color: var(--primary);
    background: var(--bg-light);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: var(--bg-light);
}

.result-content {
    padding: 1rem 1.25rem;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ============================================
   DETAIL TABLE
   ============================================ */
.detail-table {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.content-legal {
    line-height: 1.8;
}

.content-legal h2 {
    color: var(--text-dark);
    margin-top: 2rem;
}

.content-legal ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

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

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

.content-legal a:hover {
    text-decoration: underline;
}

.contact-box {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 1.5rem;
    border-left: 4px solid var(--primary);
}

.contact-form {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius);
}

.source-item {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary);
}

.source-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.source-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-top: 0.5rem;
}

.source-link:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

.source-description {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.sources-list-detailed {
    margin-top: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
}

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

.detail-header {
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.75rem 0;
    border-bottom: 2px solid var(--border-color) !important;
}

.detail-header.detail-red {
    color: var(--danger);
}

.detail-header.detail-green {
    color: var(--success);
}

.detail-row i {
    font-size: 0.5rem;
    margin-right: 0.5rem;
    color: var(--text-light);
}

/* ============================================
   CHART
   ============================================ */
.chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
    min-height: 250px;
}

#salaryChart {
    max-width: 100%;
    max-height: 300px;
}

.chart-note {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1rem;
    padding: 0 1rem;
}

/* ============================================
   INFO SECTION
   ============================================ */
.info-section {
    padding: 3rem 0;
    background: var(--bg-white);
}

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

/* ============================================
   ACCORDION
   ============================================ */
.accordion-custom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item-custom {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}

.accordion-header-custom {
    width: 100%;
    padding: 1.25rem;
    background: none;
    border: none;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.accordion-header-custom:hover {
    background: var(--bg-light);
}

.accordion-header-custom i {
    transition: transform 0.3s;
}

.accordion-header-custom[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.accordion-body-custom {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================
   SOURCES BOX
   ============================================ */
.sources-box {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 2rem;
    margin-top: 3rem;
}

.sources-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.sources-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sources-list a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.sources-list a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ============================================
   AD CONTAINERS
   ============================================ */
.ad-container {
    background: var(--bg-light);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.ad-placeholder {
    text-align: center;
    padding: 2rem;
}

.ad-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.ad-top {
    min-height: 90px;
}

.ad-sidebar {
    min-height: 250px;
}

.ad-sidebar-large {
    min-height: 600px;
}

.ad-inline {
    min-height: 90px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: white;
}

.footer-text {
    color: rgba(255, 255, 255, 0.9) !important;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-link:hover {
    color: white;
    text-decoration: underline;
}

.footer-separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2rem;
    }

    .results-card {
        position: relative;
        top: 0;
        margin-top: 2rem;
    }

    .calculator-card {
        padding: 1.5rem;
    }

    .result-amount {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 50px;
    }

    .hero-section {
        padding-top: 4rem;
        padding-bottom: 2rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .calculator-section {
        padding: 2rem 0;
    }

    .calculator-card {
        padding: 1.25rem;
    }

    .card-title-calc {
        font-size: 1.25rem;
    }

    .salary-input {
        font-size: 1.25rem;
        padding: 1rem 1rem 1rem 2.5rem;
    }

    .result-amount {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
    }
}

/* ============================================
   NAVBAR / TOP BAR STYLES (Componente)
   ============================================ */

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--admin-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.top-bar-content {
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.top-bar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
}

.top-bar .logo-icon {
    font-size: 24px;
    color: var(--accent);
    display: flex;
    align-items: center;
}

.top-bar .logo-text {
    background: linear-gradient(135deg, var(--accent) 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.top-bar-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar .uf-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--input-bg);
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-main);
}

.top-bar .uf-indicator .flag-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

.top-bar .uf-indicator .uf-value {
    font-weight: 600;
    color: var(--accent);
}

.social-link,
.blog-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    text-decoration: none;
    padding: 6px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.2s;
    width: 28px;
    height: 28px;
    opacity: 0.7;
}

.social-link:hover,
.blog-link:hover {
    background: var(--input-bg);
    border-color: var(--accent);
    opacity: 1;
    transform: translateY(-1px);
}

.social-link svg,
.blog-link .material-symbols-outlined {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.blog-link .material-symbols-outlined {
    font-size: 18px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--input-bg);
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-main);
}

.theme-toggle:hover {
    background: var(--card-bg);
    border-color: var(--accent);
}

.top-bar {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .top-bar {
        height: 50px;
    }

    body {
        padding-top: 50px;
    }

    .top-bar .logo-text {
        font-size: 1.1rem;
    }

    .social-link,
    .blog-link {
        width: 26px;
        height: 26px;
        padding: 4px;
    }

    .social-link svg,
    .blog-link .material-symbols-outlined {
        width: 16px;
        height: 16px;
    }

    .top-bar .uf-indicator {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}

@media (max-width: 480px) {
    .top-bar-content {
        padding: 0 15px;
    }

    .top-bar-links {
        gap: 10px;
    }
}

/* ============================================
   FOOTER STYLES (Componente)
   ============================================ */

.blog-footer {
    width: 100%;
    background: var(--card-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    margin-top: auto;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.blog-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.blog-footer-links {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.blog-footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
    background: var(--input-bg);
    opacity: 0.7;
    font-size: 0.9rem;
}

.blog-footer-link:hover {
    background: var(--card-bg);
    opacity: 1;
    transform: translateY(-2px);
}

.blog-footer-link svg {
    width: 18px;
    height: 18px;
}

.blog-footer-link .material-symbols-outlined {
    font-size: 18px;
}

.blog-footer-credit {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

.blog-footer-credit strong {
    color: var(--accent);
    font-weight: 600;
}

.blog-footer-credit .heart-icon {
    color: #ef4444;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

.blog-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .blog-footer {
        padding: 25px 15px;
    }

    .blog-footer-links {
        gap: 10px;
    }

    .blog-footer-link {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .blog-footer {
        padding: 20px 10px;
    }

    .blog-footer-links {
        flex-direction: column;
        gap: 8px;
    }

    .blog-footer-link {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   FAQ STYLES (FacilCV Replica)
   ============================================ */
.faq-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    /* gray-200 */
    border-radius: 0.75rem;
    /* rounded-xl (12px) */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    /* shadow-sm */
    transition: box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    overflow: hidden;
}

.faq-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    /* shadow-md */
}

/* Reset for FAQ questions to prevent browser default overrides */
.faq-question {
    border: none !important;
    background: none !important;
    outline: none !important;
    box-shadow: none !important;
}