:root {
    --primary:  #9d2828;
    --primary-dark: #ee435b;
    --primary-light: #9f7aea;
    --yin: #a67de9;
    --yang: #6a3bb5;
    --text: #2d3748;
    --text-light: #4a5568;
    --bg: #f8f5ff;
    --card-bg: #ffffff;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.main-container {
    font-family: 'Poppins', sans-serif;
    background-color: #ef92a1;
    color: var(--text);
    line-height: 1.7;
    margin-top: 40px;
    position: relative;
    background-image: url('../../assets/img/black-paper.png');
    margin-bottom: 40px;
}

.main-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(248, 245, 255, 0.9);
    z-index: -1;
}

.container {
    width: 90%;
    margin: 40px auto;
    padding: 0 20px;
    margin-top: 40px;
}

.header-title {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    background: linear-gradient(135deg, #9d2828 0%, #ee435b 100%);
    color: white;
    border-radius: 20px 20px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    margin-top: 40px;
}

.header-title::after {
    content: '⚯';
    position: absolute;
    font-size: 200px;
    opacity: 0.1;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
}

 h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #9d2828;
}
.main-container h3{
    color: white;

}
h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    color: #ffffff;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
}

.subtitle {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
    color: #ffffff;
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 20px -5px rgba(0, 0, 0, 0.15);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: #9d2828;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #ee435b;
}

h2 i {
    margin-right: 15px;
    font-size: 1.5rem;
}

p {
    margin-bottom: 20px;
    
}

ul, ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

li {
    margin-bottom: 10px;
    color: var(--text-light);
}

strong {
    color: #ee435b;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.info-card {
    background: rgba(126, 75, 206, 0.05);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #9d2828;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
}

.info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #ee435b;
    display: flex;
    align-items: center;
}

.info-card h3 i {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Calculator */
.calculator-box {
    text-align: center;
}

.input-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.input-box {
    text-align: left;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #9d2828;
}

input[type="date"] {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

input[type="date"]:focus {
    outline: none;
    border-color: #9d2828;
    box-shadow: 0 0 0 3px rgba(126, 75, 206, 0.2);
}

button {
    background-color: #9d2828;
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

button:hover {
    background-color: #ee435b;
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.15);
}

button:active {
    transform: translateY(0);
}

button i {
    margin-right: 10px;
}

/* Results */
#resultado {
    margin-top: 40px;
    text-align: center;
    animation: fadeIn 0.5s ease;
    display: none;
}

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

.resultado-header {
    margin-bottom: 30px;
}

.resultado-header h3 {
    font-size: 1.8rem;
    color: #9d2828;
    margin-bottom: 10px;
}

/* Charts */
.graficos-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin: 40px 0;
}

.energia-box {
    text-align: center;
    min-width: 150px;
}

.energia-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 32px;
    font-weight: bold;
    position: relative;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.energia-circle.yin {
    background: #e76464;
    color: white;
}

.energia-circle.yang {
    background: #a32020;
    color: white;
}

.energia-circle:hover {
    transform: scale(1.05);
}

.energia-label {
    font-weight: 600;
    color: #9d2828;
    font-size: 1.1rem;
}

/* Balance Bar */
.balance-container {
    margin: 40px auto;
    max-width: 600px;
}

.balance-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.balance-title {
    font-weight: 600;
    color: #9d2828;
}

.balance-value {
    font-weight: bold;
    color: #ee435b;
}

.barra {
    height: 25px;
    background: #f0e5ff;
    border-radius: 12px;
    margin: 10px 0;
    overflow: hidden;
    position: relative;
}

.barra-fill {
    height: 100%;
    width: 0;
    transition: width 1s ease-out;
    position: relative;
}

.barra-value {
    position: absolute;
    right: 10px;
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(0,0,0,0.3);
    line-height: 25px;
}

.balance-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Interpretation */
.interpretacion-box {
    background: rgba(126, 75, 206, 0.05);
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px;
    border-left: 4px solid #9d2828;
}

.interpretacion-box h4 {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.interpretacion-box h4 i {
    margin-right: 10px;
}

/* FAQ */
.faq-section {
    margin: 50px 0;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-question {
    background: var(--card-bg);
    padding: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #9d2828;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    content: '-';
}

.faq-answer {
    padding: 0 18px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.show {
    padding: 18px;
    max-height: 1000px;
}

.faq-answer ul {
    margin-left: 20px;
}

.faq-answer li {
    margin-bottom: 8px;
}

/* Tooltips */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    background: rgba(0,0,0,0.85);
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    z-index: 100;
    width: 250px;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .graficos-container {
        flex-direction: column;
        align-items: center;
    }
    
    .energia-box {
        min-width: 120px;
    }
    
    .input-group {
        grid-template-columns: 1fr;
    }
    .container {
        width: 100%;
        
    }
}