/* Variables */
:root {
    --primary-bg: white;
    --secondary-bg: #f8f9fa;
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --border-color: #e0e0e0;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --radius: 12px;
    --padding: 2rem;
    --amount-color: #3498db;      /* Azul */
    --profit-color: #2ecc71;      /* Verde */
    --deposits-color: #e74c3c;    /* Rojo */
    --amount-bg: rgba(52, 152, 219, 0.1);
    --profit-bg: rgba(46, 204, 113, 0.1);
    --deposits-bg: rgba(231, 76, 60, 0.1);
}

/* Estructura básica */
.calculator-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
}

.intro-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--primary-color);
    font-size: 1.1rem;
    line-height: 1.8;
}

.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.calculator {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    box-sizing: border-box;
}

.calculator:hover {
    transform: translateY(-5px);
}

/* Grupos de input */
.input-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

.input-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

/* Inputs y selects */
.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--secondary-bg);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Iconos de moneda y porcentaje */
.input-wrapper .currency,
.input-wrapper .percentage {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-weight: 500;
    font-size: 1.1rem;
    pointer-events: none;
}

/* Grupo de tiempo y frecuencia */
.time-input-wrapper,
#frequency {
    position: relative;
    width: 100%;
}

/* Contenedor de periodo de tiempo */
.time-input-wrapper {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.time-input-wrapper .input-wrapper:first-child {
    flex: 2;
}

.time-input-wrapper .input-wrapper:last-child {
    flex: 1;
}

/* Input de tiempo */
#time {
    width: 100%;
    height: 3.6rem;
    padding: 0 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1.1rem;
    background: var(--secondary-bg);
    transition: all 0.3s ease;
}

/* Input de periodo de tiempo */
#time-period {
    width: 100%;
    height: 3.6rem;
    padding: 0 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1.1rem;
    background: var(--secondary-bg);
    transition: all 0.3s ease;
}

/* Select de frecuencia */
#frequency {
    height: 3.6rem;
    padding: 0 2.5rem 0 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1.1rem;
    background: var(--secondary-bg);
    transition: all 0.3s ease;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c3e50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}

/* Estados hover */
#time:hover,
#frequency:hover,
.time-input-wrapper select:hover {
    border-color: var(--secondary-color);
}

/* Estados focus */
#time:focus,
#frequency:focus,
.time-input-wrapper select:focus {
    border-color: var(--secondary-color);
    background: var(--primary-bg);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
    outline: none;
}

/* Placeholder */
#time::placeholder {
    color: #999;
    opacity: 1;
}

/* Estados hover y focus */
#time-period:hover {
    border-color: var(--secondary-color);
}

#time-period:focus {
    border-color: var(--secondary-color);
    background: var(--primary-bg);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
    outline: none;
}

/* Placeholder */
#time-period::placeholder {
    color: #999;
    opacity: 1;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .time-input-wrapper {
        gap: 0.8rem;
    }

    .time-input-wrapper .input-wrapper:first-child {
        flex: 3;
    }

    .time-input-wrapper .input-wrapper:last-child {
        flex: 2;
    }

    #time,
    #frequency,
    .time-input-wrapper select {
        height: 3.4rem;
        font-size: 1rem;
        padding: 0 1rem;
    }

    #time-period {
        height: 3.4rem;
        font-size: 1rem;
        padding: 0 1rem;
    }

    .calculator-section {
        padding: 0 0.5rem;
    }

    .calculator {
        padding: 1rem;
        margin: 1rem 0;
    }

    .input-wrapper input,
    .input-wrapper select {
        padding: 0.8rem 0.5rem;
        font-size: 0.95rem;
    }

    .chart-container {
        width: 100%;
        overflow-x: hidden;
    }
}

@media screen and (max-width: 480px) {
    .time-input-wrapper {
        flex-direction: column;
        gap: 0.5rem;
    }

    .time-input-wrapper .input-wrapper {
        width: 100%;
    }

    #time,
    #frequency,
    .time-input-wrapper select {
        height: 3.2rem;
        font-size: 0.95rem;
    }

    #time-period {
        height: 3.2rem;
        font-size: 0.95rem;
    }

    #frequency {
        width: 100%;
    }

    .calculator {
        border-radius: 0;
    }

    .results-section {
        overflow-x: hidden;
        width: 100%;
    }

    .result-item {
        padding: 0.8rem;
    }
}

/* Estilos para el campo de frecuencia */
.frequency-wrapper {
    margin-top: 1rem;
}

.frequency-wrapper select {
    width: 100%;
}

/* Estados hover y focus */
.input-wrapper input:hover,
.input-wrapper select:hover {
    border-color: var(--secondary-color);
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    border-color: var(--secondary-color);
    background: var(--primary-bg);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
    outline: none;
}

/* Botón de calcular */
.calculate-button {
    width: 100%;
    height: 3.6rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.calculate-button:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.calculate-button:active {
    transform: translateY(0);
}

.button-icon {
    font-size: 1.4rem;
}

/* Resultados */
.results {
    margin-top: 2rem;
    padding: var(--padding);
    background: var(--primary-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.results h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    text-align: center;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: var(--radius);
    border-left: 4px solid transparent;
    transition: transform 0.3s ease;
}

.result-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.result-value {
    font-weight: 600;
    color: var(--primary-color);
}

/* Końcowa kwota (Azul) */
.result-item.final-amount {
    background: var(--amount-bg);
    border-left-color: var(--amount-color);
}

.result-item.final-amount .result-value {
    color: var(--amount-color);
    font-weight: 700;
    font-size: 1.3rem;
}

/* Całkowity zysk (Verde) */
.result-item.total-profit {
    background: var(--profit-bg);
    border-left-color: var(--profit-color);
}

.result-item.total-profit .result-value {
    color: var(--profit-color);
    font-weight: 700;
    font-size: 1.3rem;
}

/* Suma wpłat (Rojo) */
.result-item.total-deposits {
    background: var(--deposits-bg);
    border-left-color: var(--deposits-color);
}

.result-item.total-deposits .result-value {
    color: var(--deposits-color);
    font-weight: 700;
    font-size: 1.3rem;
}

/* Etiquetas */
.result-item .result-label {
    font-weight: 500;
    color: var(--primary-color);
}

/* Animación al actualizar valores */
.result-item .result-value {
    transition: all 0.3s ease;
}

/* Gráfico */
.chart-container {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--primary-bg);
    border-radius: var(--radius);
    height: 400px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: rgba(0,0,0,0.8);
    color: white;
    border-radius: 4px;
    font-size: 0.9rem;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
}

input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.calculate-button:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

@media screen and (max-width: 768px) {
    :root {
        --padding: 1.5rem;
    }

    .calculator {
        padding: 1.5rem;
    }

    .time-input-wrapper {
        gap: 0.8rem;
    }

    .time-input-wrapper .input-wrapper:first-child {
        flex: 3;
    }

    .time-input-wrapper .input-wrapper:last-child {
        flex: 2;
    }

    .menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0.5rem 0 0.5rem 1rem;
    }

    .input-wrapper input,
    .input-wrapper select {
        height: 3.4rem;
        font-size: 1rem;
        padding: 0 1rem;
    }
}

@media screen and (max-width: 480px) {
    :root {
        --padding: 1rem;
        --radius: 8px;
    }

    .calculator-section {
        padding: 0 1rem;
    }

    .calculator {
        padding: 1rem;
    }

    .time-input-wrapper {
        flex-direction: column;
        gap: 0.5rem;
    }

    .time-input-wrapper .input-wrapper,
    .frequency-wrapper {
        width: 100%;
    }

    .input-wrapper input,
    .input-wrapper select {
        height: 3.2rem;
        font-size: 0.95rem;
    }

    .calculate-button {
        height: 3.2rem;
        font-size: 1.1rem;
    }

    .result-item {
        padding: 1rem;
    }

    .result-item .result-value {
        font-size: 1.1rem;
    }

    .result-item .result-label {
        font-size: 0.95rem;
    }

    .chart-container {
        height: 300px;
    }
}

.calculator-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.info-box {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.info-box h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-box ul {
    padding-left: 1.5rem;
}

.info-box li {
    margin-bottom: 0.5rem;
    color: #666;
}

@media screen and (min-width: 1024px) {
    .calculator-container {
        grid-template-columns: 400px 1fr;
        max-width: 1200px;
    }

    .calculator {
        padding: 2rem;
    }

    .results {
        padding: 2rem;
    }

    .chart-container {
        min-height: 400px;
    }
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .calculator-section {
        padding: 1rem;
    }

    .intro-text {
        font-size: 0.95rem;
        padding: 0 1rem;
    }

    .calculator,
    .results {
        padding: 1rem;
        border-radius: 10px;
    }

    .input-group {
        margin-bottom: 1rem;
    }

    .input-wrapper input,
    .input-wrapper select {
        padding: 0.7rem;
        font-size: 0.95rem;
    }

    .time-input-wrapper {
        grid-template-columns: 3fr 2fr;
    }

    .time-input-wrapper select {
        width: 100%;
    }

    .result-box {
        padding: 1rem;
    }

    .calculator-info {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
    }

    .info-box {
        padding: 1rem;
    }

    .info-box h2 {
        font-size: 1.3rem;
    }

    .info-box ul {
        padding-left: 1.2rem;
    }

    .info-box li {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    .chart-container {
        min-height: 250px;
    }

    .table-container {
        margin: 1rem -1rem;
    }

    .results-table {
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    .calculator-section {
        padding: 0.5rem;
    }

    .calculator,
    .results {
        margin: 0 -0.5rem;
        border-radius: 0;
    }

    .input-group label {
        font-size: 0.9rem;
    }

    .input-wrapper input,
    .input-wrapper select {
        padding: 0.7rem;
        font-size: 0.95rem;
    }

    .calculate-button {
        padding: 0.9rem;
        font-size: 1.1rem;
    }

    .result-item {
        padding: 1rem;
    }

    .result-item .result-value {
        font-size: 1.1rem;
    }

    .result-item .result-label {
        font-size: 0.95rem;
    }

    .chart-container {
        min-height: 200px;
    }

    .table-container {
        margin: 1rem -1rem;
    }

    .results-table {
        font-size: 0.85rem;
    }

    .info-box {
        margin: 0 -0.8rem;
        border-radius: 0;
    }
}

@media screen and (max-width: 600px) {
    .table-container {
        margin-left: -1rem;
        margin-right: -1rem;
        border-radius: 0;
    }

    .results-table {
        font-size: 0.8rem;
    }

    .results-table th,
    .results-table td {
        padding: 0.5rem;
    }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
    .calculator-container {
        gap: 1.5rem;
    }

    .calculator,
    .results {
        padding: 1.5rem;
    }

    .calculator-info {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

@media screen and (min-width: 1920px) {
    .calculator-section {
        max-width: 1400px;
    }

    .calculator-container {
        grid-template-columns: minmax(400px, 500px) 1fr;
        gap: 3rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .intro-text {
        font-size: 1.2rem;
        max-width: 1000px;
    }
}

.advanced-options {
    margin: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.toggle-advanced {
    width: 100%;
    padding: 0.8rem;
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--primary-color);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-advanced:hover {
    background: #f8f9fa;
    border-color: var(--secondary-color);
}

.advanced-inputs {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.advanced-inputs.hidden {
    display: none;
}

.input-wrapper {
    position: relative;
}

.tooltip {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: help;
    color: var(--secondary-color);
}

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 24px;
    top: -5px;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    white-space: nowrap;
    z-index: 1;
}

.sub-input {
    width: 120px;
    margin-top: 0.5rem;
    padding: 0.6rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    background-color: white;
    cursor: pointer;
}

@media screen and (min-width: 768px) {
    .input-group {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 1rem;
        align-items: start;
    }

    .sub-input {
        margin-top: 1.9rem;
    }
}

.forex-calculator {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.forex-calc {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.input-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.forex-results {
    margin-top: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.forex-calc .input-group {
    margin-bottom: 1.5rem;
}

.forex-calc label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1rem;
}

.forex-calc .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.forex-calc input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.forex-calc .time-input-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
}

.forex-calc select {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background-color: white;
}

.forex-calc .calculate-button {
    width: 100%;
    padding: 1.2rem;
    margin-top: 1rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.forex-results .result-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    border-left: 4px solid transparent;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 4px;
    font-size: 1.1rem;
}

.forex-results .result-item.risk {
    border-left-color: #f1c40f;
}

.forex-results .result-item.risk .result-value {
    color: #f1c40f;
}

@media screen and (max-width: 768px) {
    .input-columns {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .forex-calc {
        padding: 1.5rem;
    }

    .forex-results {
        padding: 1.5rem;
    }

    .forex-calc input,
    .forex-calc select {
        padding: 0.8rem;
    }

    .forex-calc .calculate-button {
        padding: 1rem;
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 480px) {
    .forex-calc,
    .forex-results {
        padding: 1rem;
        margin: 0 -1rem;
        border-radius: 0;
    }

    .forex-calc .input-group {
        margin-bottom: 1rem;
    }

    .forex-results .result-item {
        padding: 0.8rem;
        font-size: 1rem;
    }
}

/* Menú principal */
.menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu li {
    position: relative;
}

.menu a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.menu a:hover {
    color: var(--secondary-color);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-toggle::after {
    content: '';
    display: inline-block;
    width: 0.8rem;
    height: 0.8rem;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    padding: 0.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Estilos para los valores de resultados por ID */
#final-amount {
    color: var(--amount-color);
    font-weight: 700;
    font-size: 1.3rem;
    text-align: right;
    animation: fadeIn 0.3s ease;
}

#profit {
    color: var(--profit-color);
    font-weight: 700;
    font-size: 1.3rem;
    text-align: right;
    animation: fadeIn 0.3s ease;
}

#total-deposits {
    color: var(--deposits-color);
    font-weight: 700;
    font-size: 1.3rem;
    text-align: right;
    animation: fadeIn 0.3s ease;
}

/* Animación para los valores */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media screen and (max-width: 480px) {
    #final-amount,
    #profit,
    #total-deposits {
        font-size: 1.1rem;
    }
}

/* Secciones de contenido */
.content-section {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--primary-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.content-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

/* Tablas de ejemplo */
.example-table,
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
}

.example-table th,
.comparison-table th {
    background: var(--secondary-bg);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--primary-color);
}

.example-table td,
.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

/* FAQ */
.faq-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--secondary-bg);
    border-radius: var(--radius);
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Tips */
.tip-box {
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: var(--secondary-bg);
    border-radius: var(--radius);
    border-left: 4px solid var(--secondary-color);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .content-section {
        padding: 1.5rem;
    }

    .example-table,
    .comparison-table {
        display: block;
        overflow-x: auto;
    }
}

/* Estilos para las pestañas */
.calculator-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
}

.tab-button {
    padding: 0.8rem 1.5rem;
    border: none;
    background: var(--secondary-bg);
    color: var(--text-color);
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background: var(--secondary-color);
    color: white;
}

.tab-button.active {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

/* Pestañas de calculadora */
.calculator-tab {
    display: none;
    animation: fadeIn 0.3s ease;
}

.calculator-tab.active {
    display: block;
}

/* Inputs y grupos */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--text-color);
    font-weight: 500;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    height: 3.6rem;
    padding: 0 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1.1rem;
    background: var(--secondary-bg);
    transition: all 0.3s ease;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
    outline: none;
}

/* Iconos y unidades */
.input-wrapper .currency,
.input-wrapper .percentage {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-weight: 500;
}

/* Botón de cálculo */
.calculate-button {
    width: 100%;
    height: 3.6rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 1.5rem 0;
}

.calculate-button:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* Resultados */
.results {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--secondary-bg);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.result-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
}

/* Ejemplos */
.examples-section {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.example-box {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--secondary-bg);
    border-radius: var(--radius);
    border-left: 4px solid var(--secondary-color);
}

.example-box h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.example-box ul {
    list-style: none;
    padding: 0;
}

.example-box li {
    padding: 0.5rem 0;
    color: var(--text-color);
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .calculator-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .calculator-tabs {
        flex-wrap: wrap;
    }

    .tab-button {
        flex: 1;
        padding: 0.8rem;
        font-size: 0.95rem;
    }

    .calculator {
        padding: 1.5rem;
    }

    .input-wrapper input,
    .input-wrapper select,
    .calculate-button {
        height: 3.4rem;
        font-size: 1rem;
    }
} 