
/* ==========================================================
   CARD 1 – PRE KVK CALCULATOR
   ========================================================== */


/* ==========================================================
   MODAL OVERLAY GENÉRICA
   ========================================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 50;
}

.modal-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
}


/* ==========================================================
   MODAL WINDOW (PERGAMINO)
   ========================================================== */

.modal-window {
    position: relative;
    max-width: 960px;
    width: 90%;
    padding: 24px 26px 26px;
    z-index: 51;
    font-family: "Quintessential", serif;
    height: 650px;
    margin-top:60px;
    background: #f3e8cf;
    background-image: url('../images/pergamino.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    border-radius: 10px;
    border: 3px solid #b88b3f;

    box-shadow:
        0 0 30px rgba(0, 0, 0, 0.85),
        inset 0 0 0 1px #e6d5aa,
        inset 0 0 25px rgba(0, 0, 0, 0.15);

    color: #3b2612;
}

.modal-window::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 10px;
    pointer-events: none;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.20) 0%,
        rgba(255, 255, 255, 0.02) 40%,
        rgba(255, 255, 255, 0.10) 100%
    );
}


/* ==========================================================
   BOTÓN CERRAR
   ========================================================== */

.modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    width: 40px;
    height: 40px;
    padding: 0;

    background-image: url('../images/close.png');
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    border: none;
    cursor: pointer;

    font-size: 0;
    text-shadow: none;
    box-shadow: none;
}

.modal-close::before,
.modal-close::after {
    content: none !important;
}


/* ==========================================================
   TÍTULOS MODAL
   ========================================================== */

.modal-title {
    font-size: 30px;
    margin-top: 30px;
    margin-bottom: 6px;
    color: #6a441e;
    text-align: center;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    font-weight: 700;
}

.modal-subtitle {
    font-size: 18px;
    margin: 0 0 14px;
    color: #6a441e;
    text-align: center;
    font-style: italic;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
    font-weight: 700;
}

.modal-body {
    font-size: 13px;
}


/* ==========================================================
   KVK TABS
   ========================================================== */

.kvk-wrapper {
    width: 82%;
    margin: 10px auto 0;
}

.kvk-tabs,
.kvk-tab-panels {
    width: 100%;
    margin: 0;
}

.kvk-tabs {
    display: flex;
    gap: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(60, 35, 10, 0.35);
}

.kvk-tab {
    flex: 1 1 0;
    padding: 6px 12px;
    border-radius: 10px 10px 0 0;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-bottom: none;

    background: rgba(90, 52, 18, 0.75);
    color: #f7f3e9;

    font-size: 16px;
    cursor: pointer;
    font-family: "Quintessential", serif;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.kvk-tab:hover {
    background: rgba(90, 52, 18, 0.92);
}

.kvk-tab.active {
    background: rgba(70, 40, 10, 0.95);
    color: #ffd700;
    box-shadow: 0 0 10px rgba(40, 20, 5, 0.8);
}


/* ==========================================================
   TAB PANELS
   ========================================================== */

.kvk-tab-panels {
    padding: 12px 14px;
    background: rgba(70, 40, 10, 0.88);
    border-radius: 0 0 12px 12px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 0 10px rgba(40, 20, 5, 0.7);
    color: #f7f3e9;
    min-height: 140px;
}

.kvk-tab-panel {
    display: none;
}

.kvk-tab-panel.active {
    display: block;
}

/* ==========================================================
   DAY 1 – RALLY CAMPAIGN
   ========================================================== */

.kvk-day-intro {
    margin-bottom: 12px;
    font-size: 15px;
    color: #f7f3e9;
    line-height: 1.5;
}

.kvk-day-intro strong {
    color: #ffd670;
    text-shadow: 0 0 3px #000;
}

.kvk-day1-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 8px;
}

.kvk-day1-box {
    background: linear-gradient(145deg, #5a3b20 0%, #4a2f19 40%, #3a2414 100%);
    border-radius: 10px;
    padding: 10px 9px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6) inset;
}


/* ==========================================================
   TITLES DAY BOX
   ========================================================== */

.kvk-day1-box h4 {
    position: relative;
    margin: 0 0 14px;
    font-size: 18px;
    letter-spacing: 0.6px;
    text-shadow: 0 0 4px #000;
    color: #ffd700 !important;
}


/* ==========================================================
   ICONO INFO + TOOLTIP
   ========================================================== */

.kvk-box-title-with-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.kvk-box-title-with-info span {
    color: #ffd700 !important;
    text-shadow: 0 0 4px #000;
}

.info-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.info-icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 215, 0, 0.55);
    background: linear-gradient(145deg, #6c4b2a, #4a321f);
    color: #f0e7d6;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.45);
}


/* ==========================================================
   TOOLTIP INFO
   ========================================================== */

.info-tooltip {
    position: absolute;
    top: 130%;
    right: 0;
    min-width: 260px;
    max-width: 320px;
    padding: 14px 16px;

    background: linear-gradient(180deg, #f5eedd, #ebe1cd);
    border-radius: 10px;
    border: 1px solid rgba(120, 90, 50, 0.55);
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.25);

    color: #3b2c1b;
    font-size: 13px;
    line-height: 1.45;

    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 999;
}

.info-tooltip::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 14px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid #f5eedd;
    color: #3a2d1c !important;
    font-weight: 500;
}

.info-tooltip p {
    margin: 0 0 6px;
}


/* ==========================================================
   TOOLTIP TEXT FIX
   ========================================================== */

.info-tooltip,
.info-tooltip * {
    filter: none !important;
    text-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    color: #2a1d0f !important;
    font-weight: 600 !important;
}

.kvk-day1-box .info-tooltip,
.kvk-day1-box .info-tooltip p,
.kvk-day1-box .info-tooltip span,
.kvk-day1-box .info-tooltip li {
    color: #3a2d1c !important;
    text-shadow: none !important;
    filter: none !important;
}

.info-tooltip span.tooltip-red {
    color: #a22020 !important;
    font-weight: 700;
}

.info-icon-wrapper:hover .info-tooltip {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}


/* ==========================================================
   GOLD LINE UNDER TITLES
   ========================================================== */

.kvk-day1-box h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 46%;
    height: 2px;
    background: linear-gradient(90deg, #ffd700, transparent);
    opacity: 0.9;
}


/* ==========================================================
   TEXT COLORS
   ========================================================== */

.kvk-day1-box p,
.kvk-day1-box span,
.kvk-day1-box strong {
    color: #e9d8b5;
}

.kvk-day1-box p {
    color: #9ac27b;
}

.kvk-day1-box {
    color: #ffd670;
}


/* ==========================================================
   INPUT FIELDS
   ========================================================== */

.kvk-field {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
}

.kvk-field input {
    width: 50%;
    padding: 6px 10px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.55);
    border-radius: 8px;
    color: #ffeec2;
    font-family: "Quintessential", serif;
    font-size: 12px;
    outline: none;
    transition: 0.25s ease;
}

.kvk-field input:focus {
    background: rgba(212, 175, 55, 0.25);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.7);
}

.kvk-field input::placeholder {
    color: rgba(255, 235, 200, 0.75);
    font-style: italic;
    opacity: 1;
}

.kvk-day1-results p {
    margin: 2px 0;
    font-size: 14px;
}

.kvk-day1-results span {
    font-weight: 600;
    color: #ffd670;
}

.kvk-day-note {
    margin-top: 10px;
    font-size: 13px;
    opacity: 0.9;
}


/* ==========================================================
   REMOVE NUMBER ARROWS
   ========================================================== */

.kvk-field input::-webkit-outer-spin-button,
.kvk-field input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.kvk-field input[type=number] {
    -moz-appearance: textfield;
}
/* ==========================================================
   DAY 5 – BRAVE STEEDS
   ========================================================== */

.kvk-day5-row {
    margin-bottom: 8px;
}

/* Fila compacta en una línea */
.kvk-day5-row--single {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    margin-bottom: 6px;
}

/* Columnas internas */
.kvk-day5-col {
    flex: 1;
}

.kvk-day5-col--amount {
    max-width: 210px;
}

/* Labels */
.kvk-day5-label {
    display: block;
    font-size: 15px;
    color: #9ac27b;
}

/* Labels resultados */
.kvk-day5-results .kvk-day5-label,
.kvk-day5-results-final .kvk-day5-label {
    color: #9ac27b !important;
}


/* ==========================================================
   SELECTS
   ========================================================== */

.kvk-select {
    width: 100%;
    padding: 6px 10px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.55);
    border-radius: 8px;
    color: #ffeec2;
    font-family: "Quintessential", serif;
    font-size: 15px;
    outline: none;
    transition: 0.25s ease;
}

.kvk-select:focus {
    background: rgba(212, 175, 55, 0.25);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.7);
}

/* Select pequeño (tiers) */

.kvk-select--small {
    width: 65px !important;
    padding: 6px 6px;
    text-align: center;
}

.kvk-select--normal {
    width: 85px;
}

.kvk-day5-col.small-col {
    flex: 0 0 auto;
}


/* ==========================================================
   INPUTS
   ========================================================== */

.kvk-input--small {
    width: 100px !important;
    padding: 6px 10px;
    text-align: center;
}

/* Input cantidad */

.kvk-day5-col--amount input {
    width: 100%;
    padding: 6px 10px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.55);
    border-radius: 8px;
    color: #ffeec2;
    font-family: "Quintessential", serif;
    font-size: 15px;
    outline: none;
    box-shadow: none;
    transition: 0.25s ease;
}

.kvk-day5-col--amount input:focus {
    background: rgba(212, 175, 55, 0.25);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.7);
}

/* Quitar flechas number */

.kvk-day5-col--amount input::-webkit-outer-spin-button,
.kvk-day5-col--amount input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.kvk-day5-col--amount input[type="number"] {
    -moz-appearance: textfield;
}

/* Placeholder */

.kvk-day5-col--amount input::placeholder {
    color: rgba(255, 238, 194, 0.7);
    font-style: italic;
}

/* Inputs reutilizables */

.kvk-day5-row-inputs {
    display: flex;
    gap: 8px;
}

.kvk-day5-row-inputs input {
    flex: 1;
}


/* ==========================================================
   BOTÓN CLEAN
   ========================================================== */

.kvk-clean-col {
    max-width: 90px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.kvk-reset-btn-red {
    padding: 6px 12px;
    font-family: "Quintessential", serif;
    font-size: 14px;
    border-radius: 6px;
    background: rgba(180, 20, 20, 0.2);
    border: 1px solid rgba(255, 50, 50, 0.6);
    color: #ffcccc;
    cursor: pointer;
    transition: 0.2s ease;
}

.kvk-reset-btn-red:hover {
    background: rgba(200, 20, 20, 0.35);
    border-color: rgba(255, 80, 80, 0.9);
}


/* ==========================================================
   RESULTADOS
   ========================================================== */

.kvk-day5-results-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.kvk-day5-results-top p {
    margin: 0;
}

.kvk-day5-results-final {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.rss-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 4px;
}


/* ==========================================================
   PROMOTING TROOPS FIXES
   ========================================================== */

#day3-promote-from,
#day3-promote-to {
    width: 49px !important;
}

#day3-promote-family {
    width: 93px !important;
}

#day3-promote-qty {
    width: 108px !important;
}


/* ==========================================================
   NOTAS
   ========================================================== */

.kvk-small-note {
    font-size: 12px;
    opacity: 0.85;
    margin: 4px 0 8px;
}


/* ==========================================================
   BOTÓN PRINCIPAL
   ========================================================== */

.modal-primary-btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid #ffd700;
    background: linear-gradient(135deg, #ffdd55 0%, #d4af37 40%, #a67c00 100%);
    color: #1a0f00;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.8);
    margin: 0 auto;
    display: block;
    text-shadow: 0 0 4px rgba(0,0,0,0.7);
}

.modal-primary-btn:hover {
    filter: brightness(1.05);
}

