/* ============================================
   CALCULADORAS - ESTILOS ESPECÍFICOS
   ============================================ */

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-light);
}

.breadcrumb-link {
    color: var(--color-primary);
    transition: color var(--transition-base);
}

.breadcrumb-link:hover {
    color: var(--color-primary-dark);
}

.breadcrumb-separator {
    color: var(--color-text-light);
}

.breadcrumb-current {
    color: var(--color-text);
    font-weight: 500;
}

/* Calculator Container */
.calculator-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-lg);
}

.calculator-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.calculator-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-top: var(--spacing-md);
}

/* Methods Comparison */
.methods-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.method-card {
    background-color: var(--color-bg);
    border: 2px solid var(--color-bg-gray);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    transition: all var(--transition-base);
}

.method-card:hover {
    border-color: var(--color-primary-light);
    box-shadow: var(--shadow-lg);
}

.method-card.active {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0.1) 100%);
}

.method-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.method-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.method-card p {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
}

.method-link {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    background-color: var(--color-primary);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--transition-base);
}

.method-link:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
}

.method-link.current {
    background-color: var(--color-text-light);
    cursor: default;
}

.method-link.current:hover {
    transform: none;
}

/* Calculator Layout */
.calculator-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

/* Panel Card */
.panel-card {
    background-color: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
}

.panel-card h2 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.panel-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.panel-description {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
}

/* Debts List */
.debts-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.debt-item {
    background-color: var(--color-bg-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
}

.debt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.debt-name {
    font-weight: 600;
    font-size: 1.125rem;
}

.btn-remove {
    background-color: var(--color-error);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    width: 30px;
    height: 30px;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-remove:hover {
    background-color: #dc2626;
    transform: scale(1.1);
}

.debt-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
}

/* Input Groups */
.input-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.input-group label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--color-text);
}

.input-field {
    padding: var(--spacing-md);
    border: 2px solid var(--color-bg-gray);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: all var(--transition-base);
    background-color: var(--color-bg);
}

.input-field:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-field.large {
    font-size: 1.25rem;
    padding: var(--spacing-lg);
}

.input-with-symbol {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-symbol .input-field {
    flex: 1;
}

.input-symbol {
    position: absolute;
    font-weight: 600;
    color: var(--color-text-light);
}

.input-with-symbol .input-symbol:first-child {
    left: var(--spacing-md);
}

.input-with-symbol .input-symbol:last-child {
    right: var(--spacing-md);
}

.input-with-symbol .input-field {
    padding-left: 2.5rem;
}

.input-with-symbol .input-symbol:last-child + .input-field {
    padding-left: var(--spacing-md);
    padding-right: 2.5rem;
}

/* Buttons */
.btn-add-debt {
    width: 100%;
    padding: var(--spacing-md);
    background-color: var(--color-bg-gray);
    border: 2px dashed var(--color-text-light);
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.btn-add-debt:hover {
    background-color: var(--color-primary-light);
    border-color: var(--color-primary);
    color: white;
}

.btn-icon {
    font-size: 1.25rem;
}

.input-section {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--color-bg-gray);
}

.input-description {
    color: var(--color-text-light);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-md);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.btn-calculate {
    flex: 1;
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    padding: var(--spacing-lg);
    background-color: var(--color-bg-gray);
    color: var(--color-text);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.btn-secondary:hover {
    background-color: var(--color-text-light);
    color: white;
}

/* Results Summary */
.results-summary {
    margin-bottom: var(--spacing-xl);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
}

.summary-item {
    background-color: var(--color-bg-light);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    text-align: center;
}

.summary-item.highlight {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.2) 100%);
    border: 2px solid var(--color-secondary);
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.summary-item.highlight .summary-value {
    color: var(--color-secondary);
}

.summary-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* Payment Plan */
.payment-plan {
    margin-bottom: var(--spacing-xl);
}

.order-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.order-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    background-color: var(--color-bg-light);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.order-item:hover {
    background-color: var(--color-bg-gray);
}

.order-item.first-debt {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.15) 100%);
    border: 2px solid var(--color-primary);
}

.order-number {
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.order-details {
    flex: 1;
}

.order-name {
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.order-meta {
    display: flex;
    gap: var(--spacing-md);
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.priority-badge {
    background-color: var(--color-error);
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
}

/* Interest Savings */
.interest-savings {
    margin-bottom: var(--spacing-xl);
}

.savings-chart {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.chart-bar {
    position: relative;
}

.chart-label {
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.chart-amount {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
}

.chart-bar-fill {
    height: 40px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: var(--radius-md);
    transition: width var(--transition-slow);
}

.chart-bar-fill.snowball {
    background: linear-gradient(90deg, var(--color-text-light) 0%, var(--color-text) 100%);
}

.savings-note {
    background-color: rgba(16, 185, 129, 0.1);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-secondary);
    font-size: 0.875rem;
}

/* Milestones */
.milestone-section {
    margin-bottom: var(--spacing-xl);
}

.milestones {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.milestone {
    display: flex;
    gap: var(--spacing-md);
    background-color: var(--color-bg-light);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
}

.milestone-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.milestone-content {
    flex: 1;
}

.milestone-title {
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.milestone-description {
    color: var(--color-text-light);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-xs);
}

.milestone-month {
    font-size: 0.875rem;
    color: var(--color-primary);
    font-weight: 600;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--spacing-2xl);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: var(--spacing-md);
}

.empty-state p {
    color: var(--color-text-light);
}

/* Comparison Card */
.comparison-card {
    margin-top: var(--spacing-xl);
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.comparison-item {
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    text-align: center;
}

.comparison-item.avalanche {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.2) 100%);
    border: 2px solid var(--color-primary);
}

.comparison-item.snowball {
    background-color: var(--color-bg-light);
    border: 2px solid var(--color-bg-gray);
}

.method-name {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
}

.method-stats {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
}

.method-savings {
    font-weight: 600;
    color: var(--color-secondary);
    font-size: 0.875rem;
}

/* Info Section */
.info-section {
    margin-top: var(--spacing-2xl);
}

.info-card {
    background-color: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-xl);
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.benefit-item {
    display: flex;
    gap: var(--spacing-md);
}

.benefit-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.benefit-content h4 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
}

.benefit-content p {
    color: var(--color-text-light);
    font-size: 0.875rem;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.choice-item {
    background-color: var(--color-bg-light);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
}

.choice-item h4 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
}

.choice-item ul {
    list-style: none;
}

.choice-item li {
    padding: var(--spacing-sm) 0;
    color: var(--color-text);
}

/* Motivation Section (Bola de Nieve) */
.motivation-section {
    margin-bottom: var(--spacing-xl);
}

.motivation-stats {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.motivation-item {
    display: flex;
    gap: var(--spacing-md);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(147, 197, 253, 0.1) 100%);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-primary);
    transition: all var(--transition-base);
}

.motivation-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.motivation-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.motivation-content {
    flex: 1;
}

.motivation-title {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-xs);
}

.motivation-text {
    color: var(--color-text-light);
    font-size: 0.875rem;
}

/* Comparison Note */
.comparison-note {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-primary);
    font-size: 0.875rem;
    line-height: 1.6;
}

.method-cost {
    font-size: 0.875rem;
    color: var(--color-error);
    font-weight: 600;
    margin-top: var(--spacing-sm);
}

/* Duration Controls (Ahorro) */
.duration-controls {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.duration-btn {
    flex: 1;
    padding: var(--spacing-md);
    background-color: var(--color-bg-gray);
    border: 2px solid var(--color-bg-gray);
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    transition: all var(--transition-base);
}

.duration-btn:hover {
    background-color: var(--color-bg-light);
    border-color: var(--color-primary-light);
}

.duration-btn.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* Progress Bar (Ahorro) */
.progress-section {
    margin-bottom: var(--spacing-xl);
}

.progress-bar {
    width: 100%;
    height: 40px;
    background-color: var(--color-bg-gray);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    margin-bottom: var(--spacing-sm);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width var(--transition-slow);
    position: relative;
}

.progress-text {
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-light);
}

/* Breakdown Section (Ahorro) */
.breakdown-section {
    margin-bottom: var(--spacing-xl);
}

.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
}

.breakdown-item {
    background-color: var(--color-bg-light);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    text-align: center;
    border: 2px solid var(--color-bg-gray);
}

.breakdown-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
}

.breakdown-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* SEO Content Section */
.seo-content-section {
    max-width: 900px;
    margin: var(--spacing-2xl) auto;
    padding: 0 var(--spacing-lg);
}

.main-content {
    background-color: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    line-height: 1.8;
}

.main-content h2 {
    color: var(--color-text-dark);
    margin-top: var(--spacing-2xl);
    margin-bottom: var(--spacing-lg);
}

.main-content h3 {
    color: var(--color-text-dark);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

.main-content h4 {
    color: var(--color-text);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.intro-paragraph {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: var(--spacing-xl);
}

.styled-list {
    margin-left: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.styled-list li {
    margin-bottom: var(--spacing-sm);
    line-height: 1.8;
}

/* Chart Container */
#chartContainer {
    margin-top: var(--spacing-xl);
}

#savingsChart {
    max-height: 400px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .calculator-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .duration-controls {
        flex-direction: column;
    }

    .breakdown-grid {
        grid-template-columns: 1fr;
    }

    .main-content {
        padding: var(--spacing-lg);
    }

    #savingsChart {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .calculator-container {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .methods-comparison {
        grid-template-columns: 1fr;
    }
    
    .debt-fields {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .benefits-grid,
    .choice-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   CALCULADORA DE EDAD - CSS ADICIONAL
   ============================================ */

/* Layout Principal */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    margin-bottom: 2rem;
}

.main-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Calculator Card */
.calculator-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.card-description {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* Input Section */
.date-input-section {
    margin-bottom: 1.5rem;
}

.date-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.label-icon {
    font-size: 1.25rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.date-input {
    cursor: pointer;
}

/* Buttons */
.btn-calculate {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

.btn-calculate:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 1.25rem;
}

/* Results Section */
.result-section {
    margin-top: 2rem;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Result */
.main-result {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: white;
    margin-bottom: 2rem;
}

.age-display {
    margin-bottom: 1rem;
}

.age-number {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    display: block;
}

.age-label {
    font-size: 1.5rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.age-extra {
    margin-top: 1rem;
}

.extra-text {
    font-size: 1.25rem;
    opacity: 0.95;
}

/* Breakdown Grid */
.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.breakdown-card {
    background: #f9fafb;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.breakdown-card:hover {
    background: white;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.breakdown-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.breakdown-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.breakdown-label {
    font-size: 0.875rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Additional Info */
.additional-info {
    margin-top: 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.info-card-result {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    gap: 1rem;
    transition: all 0.3s ease;
}

.info-card-result:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.info-card-result.fun-fact {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.info-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
}

.info-title {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.info-detail {
    font-size: 0.875rem;
    color: #6b7280;
}

.info-highlight {
    font-size: 1rem;
    font-weight: 600;
    color: #3b82f6;
    margin-top: 0.5rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-secondary {
    flex: 1;
    padding: 1rem;
    background: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

/* Double Date Section */
.double-date-section {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: end;
    margin-bottom: 1.5rem;
}

.vs-divider,
.arrow-divider {
    font-size: 1.5rem;
    font-weight: 700;
    color: #9ca3af;
    padding-bottom: 0.875rem;
}

/* Difference Result */
.difference-result,
.future-result {
    margin-top: 2rem;
    background: #f9fafb;
    padding: 2rem;
    border-radius: 12px;
    animation: fadeIn 0.5s ease;
}

.diff-summary,
.future-summary {
    text-align: center;
    margin-bottom: 2rem;
}

.diff-summary h3,
.future-summary h3 {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.diff-main {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
}

.diff-number {
    color: #3b82f6;
    font-weight: 700;
}

.diff-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.diff-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: white;
    border-radius: 8px;
}

.diff-label {
    color: #6b7280;
}

.diff-value {
    font-weight: 600;
    color: #1f2937;
}

.diff-note {
    text-align: center;
    padding: 1rem;
    background: #dbeafe;
    border-radius: 8px;
    color: #1e40af;
    font-weight: 600;
}

/* Future Age */
.future-age {
    margin: 1rem 0;
}

.future-number {
    font-size: 4rem;
    font-weight: 700;
    color: #3b82f6;
    display: block;
    line-height: 1;
}

.future-label {
    font-size: 1.25rem;
    color: #6b7280;
    text-transform: uppercase;
}

.future-extra {
    font-size: 1.125rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.future-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.future-stat {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.stat-icon {
    font-size: 2rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.info-card p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.zodiac-list,
.generation-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.zodiac-list li,
.generation-list li {
    padding: 0.5rem 0;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

.zodiac-list li:last-child,
.generation-list li:last-child {
    border-bottom: none;
}

.tip-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

/* Fun Facts Card */
.fun-facts-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.fact-card {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.fact-card:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.fact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.fact-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.fact-card p {
    color: #6b7280;
    line-height: 1.6;
}

/* SEO Section */
.seo-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.seo-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.seo-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #374151;
}

.seo-content p {
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.seo-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.seo-content li {
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: 2;
    }
}

@media (max-width: 768px) {
    .calculator-card {
        padding: 1.5rem;
    }

    .age-number {
        font-size: 3rem;
    }

    .breakdown-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .double-date-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .vs-divider,
    .arrow-divider {
        text-align: center;
        padding: 0;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .facts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .age-number {
        font-size: 2.5rem;
    }

    .future-number {
        font-size: 3rem;
    }

    .breakdown-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }
}


/* ============================================
   CONTADOR DE PALABRAS - CSS
   ============================================ */

/* Layout Principal */
.word-counter-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Editor Section */
.editor-section {
    display: flex;
    flex-direction: column;
}

.editor-container {
    margin-bottom: 1.5rem;
}

.text-editor {
    width: 100%;
    min-height: 400px;
    padding: 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    line-height: 1.8;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    resize: vertical;
    transition: all 0.3s ease;
    background: #ffffff;
}

.text-editor:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.text-editor::placeholder {
    color: #9ca3af;
    line-height: 1.6;
}

/* Editor Actions */
.editor-actions {
    display: flex;
    gap: 1rem;
}

/* Stats Section */
.stats-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stats-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stats-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

/* Stats Grid */
.stats-grid-counter {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-item {
    background: #f9fafb;
    padding: 1.25rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.stat-item:hover {
    background: white;
    border-color: #e5e7eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-item.highlight {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.stat-item.highlight:hover {
    background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 100%);
}

.stat-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Limits Card */
.limits-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.limits-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.limits-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.limit-item {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.limit-item:hover {
    background: #f3f4f6;
}

.limit-item.over-limit {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
}

.limit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.limit-name {
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
}

.limit-count {
    font-weight: 700;
    color: #10b981;
    font-size: 0.875rem;
}

.limit-count.error {
    color: #ef4444;
}

.limit-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.limit-progress {
    height: 100%;
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 4px;
}

.limit-info {
    font-size: 0.75rem;
    color: #6b7280;
}

.limit-exceeded {
    color: #dc2626;
    font-weight: 600;
}

.limit-remaining {
    color: #059669;
}

/* Social Limits Grid (SEO Section) */
.social-limits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.limit-card {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.limit-card:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.limit-card h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.limit-card p {
    margin-bottom: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.limit-card strong {
    color: #3b82f6;
    font-weight: 700;
}

/* FAQ Items */
.faq-item {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #3b82f6;
}

.faq-item h4 {
    color: #1f2937;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.faq-item p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* Notifications */
.notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 600;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification-success {
    background: #10b981;
    color: white;
}

.notification-warning {
    background: #f59e0b;
    color: white;
}

.notification-error {
    background: #ef4444;
    color: white;
}

.notification-info {
    background: #3b82f6;
    color: white;
}

/* Related Links */
.related-calculators {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.related-link {
    display: block;
    padding: 1rem;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: #1f2937;
    transition: all 0.3s ease;
    text-decoration: none;
}

.related-link:hover {
    background: white;
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .word-counter-layout {
        grid-template-columns: 1fr;
    }

    .stats-section {
        order: -1; /* Mostrar stats primero en móvil */
    }
}

@media (max-width: 768px) {
    .calculator-card {
        padding: 1.5rem;
    }

    .text-editor {
        min-height: 300px;
        padding: 1rem;
        font-size: 0.9375rem;
    }

    .stats-card,
    .limits-card {
        padding: 1.5rem;
    }

    .stats-grid-counter {
        grid-template-columns: 1fr;
    }

    .editor-actions {
        flex-direction: column;
    }

    .social-limits-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stat-item {
        padding: 1rem;
    }

    .stat-icon {
        font-size: 1.5rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .notification {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }
}

/* Animación de carga */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Print styles */
@media print {
    .editor-actions,
    .limits-card,
    .ad-container,
    header,
    footer {
        display: none;
    }

    .word-counter-layout {
        grid-template-columns: 1fr;
    }

    .text-editor {
        border: 1px solid #000;
        min-height: auto;
    }
}


/* ============================================
   CALCULADORA PACE RUNNING - CSS ADICIONAL
   ============================================ */

/* Contenedor Principal */
.pace-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Tabs Container */
.tabs-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-button {
    flex: 1;
    min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.tab-button.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.tab-icon {
    font-size: 1.25rem;
}

/* Tab Content */
.tab-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pace Inputs */
.pace-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Reference Table */
.reference-table {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.reference-table h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    color: #111827;
}

.table-responsive {
    overflow-x: auto;
}

.reference-table table {
    width: 100%;
    border-collapse: collapse;
}

.reference-table th {
    background: #f9fafb;
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
}

.reference-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    color: #6b7280;
}

.reference-table tr:last-child td {
    border-bottom: none;
}

/* Level Badges */
.level-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.level-badge.elite {
    background: #fef3c7;
    color: #92400e;
}

.level-badge.advanced {
    background: #d1fae5;
    color: #065f46;
}

.level-badge.intermediate {
    background: #dbeafe;
    color: #1e40af;
}

.level-badge.beginner {
    background: #ede9fe;
    color: #5b21b6;
}

.level-badge.recreational {
    background: #fce7f3;
    color: #9f1239;
}

/* Result Container */
.result-container {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #bae6fd;
    border-radius: 16px;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-main {
    text-align: center;
    margin-bottom: 2rem;
}

.result-label {
    font-size: 0.95rem;
    color: #0369a1;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.result-value {
    font-size: 4rem;
    font-weight: 800;
    color: #0c4a6e;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.result-unit {
    font-size: 1.25rem;
    color: #0369a1;
    font-weight: 600;
}

.result-secondary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.secondary-item {
    text-align: center;
    padding: 1.25rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #bae6fd;
}

.secondary-label {
    font-size: 0.875rem;
    color: #0369a1;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.secondary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0c4a6e;
}

/* Pace Interpretation */
.pace-interpretation {
    text-align: center;
    margin-top: 1.5rem;
}

.interpretation-badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
}

.interpretation-badge.elite {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

.interpretation-badge.advanced {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.interpretation-badge.intermediate {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.interpretation-badge.beginner {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.interpretation-badge.recreational {
    background: linear-gradient(135deg, #ec4899, #db2777);
    color: white;
}

/* Prediction Splits */
.prediction-splits {
    margin-top: 1.5rem;
}

.prediction-splits h4 {
    text-align: center;
    color: #0369a1;
    font-weight: 700;
    margin-bottom: 1rem;
}

.splits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.split-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    border: 1px solid #bae6fd;
}

.split-distance {
    font-size: 0.875rem;
    color: #0369a1;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.split-time {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0c4a6e;
}

/* Sidebar Tips */
.tips-list {
    margin: 0;
    padding-left: 1.5rem;
    color: #6b7280;
}

.tips-list li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.tips-list li:last-child {
    margin-bottom: 0;
}

.tip-highlight {
    background: #f0f9ff;
    border-left: 4px solid #0ea5e9;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
}

/* Zones List */
.zones-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.zone-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.zone-color {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    flex-shrink: 0;
    margin-top: 2px;
}

.zone-item strong {
    display: block;
    color: #111827;
    margin-bottom: 0.25rem;
}

.zone-item p {
    margin: 0;
    font-size: 0.9rem;
    color: #6b7280;
}

/* Error Message */
.error-message {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: 12px;
    color: #991b1b;
}

.error-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.error-text {
    font-weight: 600;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: 2;
    }
}

@media (max-width: 768px) {
    .pace-container {
        padding: 1rem;
    }

    .calculator-header h1 {
        font-size: 2rem;
    }

    .tabs-container {
        flex-direction: column;
    }

    .tab-button {
        width: 100%;
    }

    .result-value {
        font-size: 3rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .time-inputs {
        justify-content: center;
    }

    .quick-distances {
        justify-content: center;
    }

    .splits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reference-table {
        padding: 1.5rem;
    }

    .reference-table table {
        font-size: 0.875rem;
    }

    .reference-table th,
    .reference-table td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .result-value {
        font-size: 2.5rem;
    }

    .time-input {
        width: 70px;
    }

    .time-separator {
        font-size: 0.875rem;
    }

    .splits-grid {
        grid-template-columns: 1fr;
    }

    .secondary-item {
        padding: 1rem;
    }

    .secondary-value {
        font-size: 1.25rem;
    }
}

/* Print Styles */
@media print {
    .tabs-container,
    .ad-container,
    header,
    footer,
    .sidebar {
        display: none;
    }

    .calculator-card {
        border: 1px solid #000;
        page-break-inside: avoid;
    }

    .result-container {
        border: 1px solid #000;
        background: white !important;
    }
}


/* ============================================
   CALCULADORA DE HIPOTECA - CSS ADICIONAL
   ============================================ */

/* Result Breakdown */
.result-breakdown {
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
}

.result-breakdown h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    color: #1f2937;
}

/* Breakdown Chart */
.breakdown-chart {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.chart-row {
    display: grid;
    grid-template-columns: 100px 1fr 60px;
    align-items: center;
    gap: 1rem;
}

.chart-label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9375rem;
}

.chart-bar-container {
    background: #f3f4f6;
    height: 32px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.chart-bar {
    height: 100%;
    border-radius: 16px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.chart-bar.capital {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.chart-bar.interest {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

.chart-value {
    font-weight: 700;
    color: #1f2937;
    font-size: 0.9375rem;
    text-align: right;
}

/* Formula Container */
.formula-container {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.formula-container p {
    margin: 0 0 0.75rem 0;
    font-weight: 600;
    color: #374151;
}

.formula-container code {
    display: block;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: #1f2937;
    border: 1px solid #e5e7eb;
}

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.tip-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.tip-card:hover {
    border-color: #3b82f6;
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.tip-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: #1f2937;
}

.tip-card p {
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
}

/* FAQ Section */
.faq-section {
    margin: 2rem 0;
}

.faq-item {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: #1f2937;
}

.faq-item p {
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
}

/* Related Calculators */
.related-calculators {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.related-card {
    display: block;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-card:hover {
    border-color: #3b82f6;
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.related-card .icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.related-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #1f2937;
}

.related-card p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tips-grid,
    .related-calculators {
        grid-template-columns: 1fr;
    }

    .chart-row {
        grid-template-columns: 80px 1fr 50px;
        gap: 0.75rem;
    }

    .chart-label,
    .chart-value {
        font-size: 0.875rem;
    }

    .formula-container code {
        font-size: 0.875rem;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .result-breakdown {
        padding: 1rem;
    }

    .chart-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .chart-bar-container {
        height: 24px;
    }

    .chart-value {
        text-align: left;
    }
}


/* ============================================
   CALCULADORA RETENCIÓN EN LA FUENTE - CSS
   ============================================ */

/* Features Quick */
.features-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin: 2rem 0;
}

.feature-badge {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Layout */
.retencion-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Form Card */
.form-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.form-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    color: #1f2937;
}

.section-description {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Input with Prefix */
.input-with-prefix {
    position: relative;
    display: flex;
    align-items: center;
}

.prefix {
    position: absolute;
    left: 1rem;
    font-weight: 600;
    color: #6b7280;
    font-size: 1.125rem;
}

.input-with-prefix .form-control {
    padding-left: 2.5rem;
}

/* Info Banner */
.info-banner {
    background: #dbeafe;
    border-left: 4px solid #3b82f6;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.info-banner strong {
    color: #1e40af;
}

/* Deducciones Card */
.deducciones-card {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
}

.deduccion-item {
    padding: 1.25rem;
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.deduccion-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.checkbox-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.tooltip-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 0.75rem;
    cursor: help;
    margin-left: 0.25rem;
}

.nested-fields {
    margin-top: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
}

.nested-fields label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.nested-fields small {
    display: block;
    margin-top: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Info Box */
.info-box {
    background: #fef3c7;
    border: 2px solid #fbbf24;
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9375rem;
}

/* Results Section */
.results-section {
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-card-main {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.result-title {
    font-size: 1.25rem;
    margin: 0 0 1rem 0;
    opacity: 0.95;
}

.result-value-big {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin: 0 0 0.5rem 0;
}

.result-description {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

/* Calculation Steps */
.calculation-steps {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.calculation-steps h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    color: #1f2937;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: #f9fafb;
    border-radius: 12px;
    border-left: 4px solid #e5e7eb;
}

.step-item.deduction {
    background: #fef3c7;
    border-left-color: #fbbf24;
}

.step-item.final {
    background: #dbeafe;
    border-left-color: #3b82f6;
}

.step-item.result {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-left-color: #10b981;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-item.deduction .step-number {
    background: #f59e0b;
}

.step-item.final .step-number {
    background: #3b82f6;
}

.step-item.result .step-number {
    background: #10b981;
}

.step-content {
    flex: 1;
}

.step-content h5 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #1f2937;
}

.step-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.25rem 0;
}

.step-value.negative {
    color: #dc2626;
}

.step-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.deductions-detail {
    margin-top: 0.75rem;
}

.deductions-detail p {
    font-size: 0.875rem;
    color: #374151;
    margin: 0.25rem 0;
}

/* Result Cards Grid */
.result-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.result-card-small {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.result-card-small:hover {
    border-color: #3b82f6;
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.result-card-small h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    margin: 0 0 0.75rem 0;
}

.card-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.card-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

/* Tabla Retención */
.retencion-table-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.retencion-table-section h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    color: #1f2937;
}

.table-description {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.table-responsive {
    overflow-x: auto;
}

.retencion-table {
    width: 100%;
    border-collapse: collapse;
}

.retencion-table th {
    background: #f9fafb;
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
    font-size: 0.875rem;
}

.retencion-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 0.875rem;
}

.retencion-table tr.active-row {
    background: #dbeafe;
}

.retencion-table tr.active-row td {
    color: #1e40af;
    font-weight: 600;
}

/* Tips Box */
.tips-box {
    background: #fef3c7;
    border: 2px solid #fbbf24;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.tips-box h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: #92400e;
}

.tips-box ul {
    margin: 0;
    padding-left: 1.5rem;
}

.tips-box li {
    color: #78350f;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

/* No Retención Card */
.no-retencion-card {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
}

.no-retencion-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.no-retencion-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #065f46;
    margin: 0 0 1rem 0;
}

.no-retencion-message {
    font-size: 1.125rem;
    color: #047857;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.no-retencion-description {
    font-size: 1rem;
    color: #059669;
    margin-bottom: 2rem;
}

.calculation-summary-simple {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    border-top: 2px solid #1f2937;
    margin-top: 0.5rem;
    padding-top: 1rem;
}

.summary-row .value {
    font-weight: 600;
    color: #1f2937;
}

.summary-row .value.negative {
    color: #dc2626;
}

.info-text {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    color: #047857;
    font-size: 0.9375rem;
    margin-top: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .features-quick {
        justify-content: flex-start;
    }

    .form-card {
        padding: 1.5rem;
    }

    .result-value-big {
        font-size: 2.5rem;
    }

    .calculation-steps {
        padding: 1.5rem;
    }

    .step-item {
        flex-direction: column;
        gap: 1rem;
    }

    .result-cards-grid {
        grid-template-columns: 1fr;
    }

    .retencion-table {
        font-size: 0.75rem;
    }

    .retencion-table th,
    .retencion-table td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .result-value-big {
        font-size: 2rem;
    }

    .card-value {
        font-size: 1.5rem;
    }

    .no-retencion-card {
        padding: 2rem 1.5rem;
    }
}


/* ============================================
   GENERADOR DE CONTRASEÑAS - CSS
   ============================================ */

/* Content Layout */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.main-column {
    min-width: 0;
}

/* Page Header */
.page-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.header-icon {
    font-size: 4rem;
    line-height: 1;
}

.header-content h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.header-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    margin: 0;
}

/* Generator Card */
.generator-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

/* Password Display */
.password-display {
    margin-bottom: 2.5rem;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.password-input {
    flex: 1;
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    padding: 1.25rem 1.5rem;
    border: 3px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    color: #1f2937;
    transition: all 0.3s ease;
}

.password-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.btn-toggle-visibility {
    width: 50px;
    height: 50px;
    border: none;
    background: #f3f4f6;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-toggle-visibility:hover {
    background: #e5e7eb;
    transform: scale(1.05);
}

/* Strength Meter */
.strength-meter {
    height: 12px;
    background: #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
    margin: 1.5rem 0 0.75rem 0;
}

.strength-bar {
    height: 100%;
    transition: all 0.5s ease;
    border-radius: 20px;
}

.strength-bar.very-weak { background: linear-gradient(90deg, #ef4444, #dc2626); width: 20%; }
.strength-bar.weak { background: linear-gradient(90deg, #f59e0b, #d97706); width: 40%; }
.strength-bar.medium { background: linear-gradient(90deg, #eab308, #ca8a04); width: 60%; }
.strength-bar.strong { background: linear-gradient(90deg, #22c55e, #16a34a); width: 80%; }
.strength-bar.very-strong { background: linear-gradient(90deg, #10b981, #059669); width: 100%; }

.strength-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9375rem;
    font-weight: 600;
}

.strength-label {
    font-size: 1rem;
}

.strength-label.very-weak { color: #dc2626; }
.strength-label.weak { color: #d97706; }
.strength-label.medium { color: #ca8a04; }
.strength-label.strong { color: #16a34a; }
.strength-label.very-strong { color: #059669; }

.strength-score {
    color: #6b7280;
}

/* Options Section */
.options-section {
    margin-bottom: 2rem;
}

.options-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1.5rem 0;
}

.option-group {
    margin-bottom: 2rem;
}

.option-header {
    margin-bottom: 1rem;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: #374151;
}

.label-icon {
    font-size: 1.25rem;
}

/* Range Slider */
.range-slider {
    width: 100%;
    height: 8px;
    border-radius: 10px;
    background: #e5e7eb;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.range-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

/* Checkboxes Grid */
.checkboxes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-option:hover {
    background: #f3f4f6;
    border-color: #3b82f6;
}

.checkbox-option input:checked ~ .checkbox-content {
    opacity: 1;
}

.checkbox-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.checkbox-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.checkbox-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.checkbox-title {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.9375rem;
}

.checkbox-example {
    font-size: 0.8125rem;
    color: #6b7280;
}

/* Advanced Options */
.advanced-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkbox-option.advanced {
    background: #fef3c7;
    border-color: #fbbf24;
}

.checkbox-option.advanced:hover {
    background: #fef08a;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-generate {
    width: 100%;
    padding: 1.25rem 2rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-generate:active {
    transform: translateY(0);
}

.secondary-buttons {
    display: flex;
    gap: 1rem;
}

.btn-action {
    flex: 1;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-action:hover {
    background: #f9fafb;
    border-color: #3b82f6;
    color: #3b82f6;
}

/* Multiple Passwords */
.multiple-passwords {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
}

.multiple-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1rem 0;
}

.passwords-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.password-item {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.password-mini {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.9375rem;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}

.btn-copy-mini {
    width: 40px;
    height: 40px;
    border: none;
    background: #3b82f6;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-copy-mini:hover {
    background: #2563eb;
    transform: scale(1.05);
}

/* Warning Message */
.warning-message {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: #fef3c7;
    border: 2px solid #fbbf24;
    border-radius: 12px;
    color: #92400e;
    font-weight: 600;
}

/* Checker Card */
.checker-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.card-description {
    font-size: 1rem;
    color: #6b7280;
    margin: 0 0 1.5rem 0;
}

.checker-input-group {
    margin-bottom: 1.5rem;
}

.checker-input {
    width: 100%;
    font-size: 1.125rem;
    padding: 1rem 1.5rem;
    border: 3px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    transition: all 0.3s ease;
}

.checker-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Checker Result */
.checker-result {
    margin-top: 1.5rem;
}

.checker-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.checker-stat {
    padding: 1rem;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.stat-value {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
}

.stat-value.very-weak { color: #dc2626; }
.stat-value.weak { color: #d97706; }
.stat-value.medium { color: #ca8a04; }
.stat-value.strong { color: #16a34a; }
.stat-value.very-strong { color: #059669; }

/* Analysis Section */
.analysis-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
}

.analysis-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1rem 0;
}

.analysis-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.analysis-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 8px;
    border: 2px solid transparent;
}

.analysis-item.success {
    border-color: #10b981;
    background: #d1fae5;
}

.analysis-item.warning {
    border-color: #ef4444;
    background: #fee2e2;
}

.analysis-icon {
    font-weight: 700;
    font-size: 1.125rem;
}

.analysis-item.success .analysis-icon {
    color: #10b981;
}

.analysis-item.warning .analysis-icon {
    color: #ef4444;
}

.analysis-text {
    flex: 1;
    font-size: 0.9375rem;
    color: #374151;
}

/* Sidebar - Mejorado */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.75rem 0;
}

.info-card p {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
    color: #374151;
}

.stats-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stats-list li {
    font-size: 0.9375rem;
    line-height: 1.6;
    padding-left: 1.5rem;
    position: relative;
    color: #374151;
}

.stats-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    font-weight: 700;
    color: #3b82f6;
}

.stats-list li strong {
    color: #1f2937;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: -1;
    }

    .checkboxes-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .content-layout {
        padding: 1rem;
    }

    .generator-card,
    .checker-card {
        padding: 1.5rem;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .header-icon {
        font-size: 3rem;
    }

    .header-content h1 {
        font-size: 1.5rem;
    }

    .password-input {
        font-size: 1.125rem;
        padding: 1rem;
    }

    .secondary-buttons {
        flex-direction: column;
    }

    .checker-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .password-wrapper {
        flex-direction: column;
    }

    .btn-toggle-visibility {
        width: 100%;
    }

    .checkboxes-grid {
        gap: 0.75rem;
    }

    .checkbox-option {
        padding: 0.875rem;
    }
}




/* ============================================
   CONVERSOR DE UNIDADES - CSS
   ============================================ */

/* Calculator Layout */
.calculator-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Conversion Row */
.conversion-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: start;
    margin-top: 1.5rem;
}

.conversion-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Conversion Arrow */
.conversion-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 2rem;
}

.btn-swap {
    width: 60px;
    height: 60px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 2rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-swap:hover {
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.6);
}

.btn-swap:active {
    transform: rotate(180deg) scale(0.95);
}

/* Result Display */
.result-display {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 3px solid #d1d5db;
    border-radius: 12px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    font-family: 'Courier New', monospace;
}

.result-placeholder {
    font-size: 1.75rem;
    color: #9ca3af;
}

/* Conversion Summary */
.conversion-summary {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 2px solid #3b82f6;
    border-radius: 12px;
    text-align: center;
    font-size: 1.125rem;
    line-height: 1.8;
}

.highlight-text {
    color: #1e40af;
    font-size: 1.25rem;
}

/* Common Conversions */
.common-conversions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.common-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.common-item:hover {
    background: white;
    border-color: #3b82f6;
    transform: translateX(4px);
}

.common-label {
    color: #6b7280;
    font-size: 0.9375rem;
}

.common-value {
    font-weight: 700;
    color: #1f2937;
    font-size: 1rem;
}

/* Info Card - Mejorado */
.info-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1rem 0;
}

/* Tips List */
.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tips-list li {
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
    color: #374151;
    font-size: 0.9375rem;
}

.tips-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
    font-size: 1.125rem;
}

.tips-list li strong {
    color: #1f2937;
    font-weight: 600;
}

/* Category List */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.category-item {
    padding: 0.875rem;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #374151;
}

.category-item strong {
    color: #1f2937;
    font-weight: 600;
}

/* Form Card Specific */
.form-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1.5rem 0;
}

.form-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1.25rem 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .calculator-layout {
        grid-template-columns: 1fr;
    }

    .calculator-sidebar {
        order: -1;
    }

    .conversion-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .conversion-arrow {
        padding-top: 0;
        padding-bottom: 0.5rem;
    }

    .btn-swap {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        transform: rotate(90deg);
    }

    .btn-swap:hover {
        transform: rotate(270deg) scale(1.1);
    }
}

@media (max-width: 768px) {
    .result-number {
        font-size: 1.5rem;
    }

    .conversion-summary {
        font-size: 1rem;
    }

    .highlight-text {
        font-size: 1.125rem;
    }

    .common-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .common-label,
    .common-value {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .result-display {
        min-height: 50px;
        padding: 1rem;
    }

    .result-number {
        font-size: 1.25rem;
    }

    .btn-swap {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}

/* Animation for result change */
@keyframes resultPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.result-number {
    animation: resultPulse 0.3s ease;
}