/* ====== CSS EXCLUSIVO PARA PÁGINA DE TASAS IMPOSITIVAS ====== */

/* Formas flotantes de fondo */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-secondary);
    opacity: 0.05;
    z-index: -1;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    right: -200px;
    animation: float-1 25s infinite ease-in-out;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: 10%;
    left: -150px;
    animation: float-2 30s infinite ease-in-out;
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: 10%;
    animation: float-3 20s infinite ease-in-out;
}

@keyframes float-1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, 50px) rotate(120deg); }
    66% { transform: translate(-20px, 30px) rotate(240deg); }
}

@keyframes float-2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-40px, 30px) rotate(120deg); }
    66% { transform: translate(20px, -20px) rotate(240deg); }
}

@keyframes float-3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(20px, -30px) rotate(120deg); }
    66% { transform: translate(-30px, 20px) rotate(240deg); }
}

/* Hero de tasas impositivas */
.tax-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding-top: 150px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e6f0ff 100%);
}

.tax-hero-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.tax-hero h1 {
    font-size: 4rem;
    margin-bottom: 25px;
    line-height: 1.1;
}

.tax-hero p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    color: var(--gray-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Navegación entre impuestos */
.tax-nav {
    position: sticky;
    top: 120px;
    z-index: 999;
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 102, 204, 0.1);
    box-shadow: 0 5px 20px rgba(0, 102, 204, 0.05);
    margin-bottom: 60px;
}

.tax-nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
    gap: 10px;
}

.tax-nav-item a {
    padding: 12px 25px;
    background: rgba(0, 102, 204, 0.05);
    border-radius: 50px;
    font-weight: 600;
    color: var(--dark-color);
    border: 1px solid rgba(0, 102, 204, 0.1);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tax-nav-item a:hover {
    background: rgba(0, 102, 204, 0.1);
    transform: translateY(-3px);
    color: var(--primary-color);
}

.tax-nav-item a.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 102, 204, 0.15);
}

.tax-nav-item i {
    font-size: 1.2rem;
}

/* Tablas de tasas impositivas */
.tax-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 60px;
    margin-bottom: 80px;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(0, 102, 204, 0.1);
    position: relative;
    overflow: hidden;
}

.tax-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
}

.tax-header {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.tax-icon-large {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-right: 30px;
    position: relative;
}

.tax-icon-large:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: rgba(0, 160, 233, 0.1);
    border-radius: 50%;
    z-index: -1;
}

.tax-title h2 {
    font-size: 2.5rem;
    text-align: left;
    margin-bottom: 10px;
}

.tax-title h2:after {
    left: 0;
    transform: none;
}

.tax-description {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 40px;
    line-height: 1.8;
}

/* Tablas estilizadas */
.tax-table-container {
    overflow-x: auto;
    margin-bottom: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.05);
    border: 1px solid rgba(0, 102, 204, 0.1);
}

.tax-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.05rem;
}

.tax-table thead {
    background: var(--gradient-primary);
    color: white;
}

.tax-table th {
    padding: 20px 25px;
    text-align: left;
    font-weight: 700;
    font-size: 1.1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.tax-table th:last-child {
    border-right: none;
}

.tax-table tbody tr {
    border-bottom: 1px solid rgba(0, 102, 204, 0.1);
    transition: var(--transition);
}

.tax-table tbody tr:hover {
    background-color: rgba(0, 102, 204, 0.03);
}

.tax-table tbody tr:nth-child(even) {
    background-color: rgba(0, 102, 204, 0.02);
}

.tax-table tbody tr:nth-child(even):hover {
    background-color: rgba(0, 102, 204, 0.05);
}

.tax-table td {
    padding: 18px 25px;
    color: var(--dark-color);
}

.tax-table td:first-child {
    font-weight: 600;
    color: var(--primary-color);
}

.tax-rate {
    display: inline-block;
    padding: 6px 15px;
    background: rgba(0, 160, 233, 0.1);
    color: var(--secondary-color);
    font-weight: 700;
    border-radius: 50px;
    border: 1px solid rgba(0, 160, 233, 0.2);
}

.tax-rate-high {
    background: rgba(255, 107, 53, 0.1);
    color: var(--accent-color);
    border-color: rgba(255, 107, 53, 0.2);
}

.tax-rate-low {
    background: rgba(0, 200, 83, 0.1);
    color: #00c853;
    border-color: rgba(0, 200, 83, 0.2);
}

/* Información importante */
.important-note {
    background: linear-gradient(135deg, rgba(255, 243, 224, 0.8) 0%, rgba(255, 248, 240, 0.8) 100%);
    border-left: 5px solid var(--accent-color);
    padding: 30px;
    border-radius: var(--border-radius);
    margin: 40px 0;
}

.important-note h4 {
    color: var(--accent-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.important-note h4 i {
    font-size: 1.5rem;
}

/* Calculadora de impuestos */
.tax-calculator {
    background: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 40px;
    margin-top: 50px;
    border: 1px solid rgba(0, 102, 204, 0.1);
}

.tax-calculator h3 {
    margin-bottom: 25px;
    color: var(--dark-color);
}

.calculator-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.form-group input, .form-group select {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 102, 204, 0.2);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.calculator-result {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    margin-top: 30px;
    border: 1px solid rgba(0, 102, 204, 0.1);
    display: none;
}

.calculator-result.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 102, 204, 0.05);
}

.result-item:last-child {
    border-bottom: none;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Responsive específico para esta página */
@media (max-width: 1200px) {
    .calculator-form {
        grid-template-columns: 1fr;
    }
    
    .tax-nav-list {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .tax-table th, .tax-table td {
        padding: 15px 20px;
    }
}

@media (max-width: 992px) {
    .tax-hero h1 {
        font-size: 3rem;
    }
    
    .tax-hero p {
        font-size: 1.3rem;
    }
    
    .tax-section {
        padding: 40px 30px;
    }
    
    .tax-header {
        flex-direction: column;
        text-align: center;
    }
    
    .tax-icon-large {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .tax-title h2 {
        text-align: center;
    }
    
    .tax-title h2:after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .tax-hero h1 {
        font-size: 2.5rem;
    }
    
    .tax-hero p {
        font-size: 1.2rem;
    }
    
    .tax-section {
        padding: 30px 20px;
    }
    
    .tax-table th, .tax-table td {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .tax-calculator {
        padding: 30px 20px;
    }
}