﻿/* =========================================================
   JUNGLA CUSTOM STUDIO
   Tipografías autorizadas para personalización
   ========================================================= */

@font-face {
    font-family: "JunglaPoppinsMedium";
    src: url("/fonts/personalizacion/Poppins-Medium.ttf") format("truetype");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "JunglaMontserrat";
    src: url("/fonts/personalizacion/Montserrat-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "JunglaLeagueSpartan";
    src: url("/fonts/personalizacion/LeagueSpartan-Bold.otf") format("opentype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "JunglaAntonio";
    src: url("/fonts/personalizacion/Antonio-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "JunglaCarmella";
    src: url("/fonts/personalizacion/Carmella-Bold.otf") format("opentype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "JunglaMoontime";
    src: url("/fonts/personalizacion/Moontime-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "JunglaMuthiara";
    src: url("/fonts/personalizacion/Muthiara-Demo.otf") format("opentype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

/* =========================================================
   SELECTOR VISUAL
   ========================================================= */

.font-selector {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.font-option {
    position: relative;
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 96px;
    align-items: center;
    justify-content: center;
    padding: 16px 34px 16px 18px;
    overflow: hidden;
    cursor: pointer;
    color: #1f2922;
    background: #ffffff;
    border: 1px solid #d9dfda;
    border-radius: 16px;
    box-shadow: 0 2px 7px rgba(17, 31, 21, 0.025);
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

    .font-option:hover {
        border-color: #aebdb2;
        box-shadow: 0 10px 24px rgba(27, 45, 32, 0.08);
        transform: translateY(-2px);
    }

    .font-option.active {
        color: var(--jungla-green-dark);
        background: linear-gradient( 135deg, #f1f7f2 0%, #ffffff 100% );
        border-color: var(--jungla-green);
        box-shadow: 0 0 0 3px rgba(72, 108, 84, 0.09), 0 10px 24px rgba(27, 45, 32, 0.07);
    }

    .font-option:focus-visible {
        outline: 3px solid rgba(72, 108, 84, 0.18);
        outline-offset: 2px;
    }

.font-option-preview {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 60px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 4px;
    overflow: visible;
    color: inherit;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    transform-origin: center center;
}

.font-option-check {
    position: absolute;
    top: 10px;
    right: 10px;
    display: none;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: #ffffff;
    background: var(--jungla-green);
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 7px rgba(28, 63, 38, 0.2);
    font-size: 0.68rem;
}

.font-option.active .font-option-check {
    display: inline-flex;
}

.font-option-loading {
    pointer-events: none;
    opacity: 0.58;
}

/* =========================================================
   AJUSTES POR TIPOGRAFÍA
   ========================================================= */

.font-poppins {
    font-family: "JunglaPoppinsMedium", sans-serif;
    font-size: 1.08rem;
    letter-spacing: 0.02em;
}

.font-montserrat {
    font-family: "JunglaMontserrat", sans-serif;
    font-size: 1.06rem;
    letter-spacing: 0.01em;
}

.font-league-spartan {
    font-family: "JunglaLeagueSpartan", sans-serif;
    font-size: 1.14rem;
    letter-spacing: 0.01em;
}

.font-antonio {
    font-family: "JunglaAntonio", sans-serif;
    font-size: 1.28rem;
    letter-spacing: 0.02em;
}

.font-carmella {
    font-family: "JunglaCarmella", cursive;
    font-size: 1.55rem;
    line-height: 1;
    transform: translateY(-1px) scale(0.78);
}

.font-moontime {
    font-family: "JunglaMoontime", cursive;
    font-size: 1.68rem;
    line-height: 1;
    transform: translateY(-1px) scale(0.74);
}

.font-muthiara {
    font-family: "JunglaMuthiara", cursive;
    font-size: 1.55rem;
    line-height: 1;
    transform: translateY(-1px) scale(0.78);
}

/* =========================================================
   AYUDA
   ========================================================= */

.font-selection-help {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    color: var(--jungla-muted);
    font-size: 0.7rem;
    line-height: 1.5;
}

    .font-selection-help i {
        flex: 0 0 auto;
        margin-top: 2px;
        color: var(--jungla-green);
    }

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1399.98px) {
    .font-selector {
        grid-template-columns: 1fr;
    }

    .font-option {
        min-height: 92px;
    }
}

@media (max-width: 991.98px) {
    .font-selector {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .font-option {
        min-height: 94px;
    }
}

@media (max-width: 575.98px) {
    .font-selector {
        grid-template-columns: 1fr;
    }

    .font-option {
        min-height: 88px;
        padding-right: 40px;
        padding-left: 14px;
    }

    .font-carmella {
        transform: translateY(-1px) scale(0.82);
    }

    .font-moontime {
        transform: translateY(-1px) scale(0.78);
    }
}
