/* =============================================
   DICCIONARIO COMERCIO EXTERIOR
   ============================================= */

/* Hero Banner */
.dicc-hero {
    position: relative;
    width: 100%;
    min-height: 250px;
    background-color: #1a1a2e;
    overflow: hidden;
}

.dicc-hero__bg {
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
    display: block;
}

.dicc-hero__default {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #0f0f23 100%);
}

.dicc-hero__titulo {
    margin: 0;
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-size: 60px;
    font-weight: 700;
    letter-spacing: 8px;
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

/* Header Section */
.dicc-header {
    padding: 40px 0 20px;
    text-align: center;
}

.dicc-header__titulo {
    margin: 0 0 20px;
    color: #C51A1B;
    font-family: 'Raleway', sans-serif;
    font-size: 42px;
    font-weight: 700;
    font-style: italic;
}

.dicc-header__linea {
    width: 100%;
    height: 1px;
    background-color: #ddd;
}

/* Intro Text */
.dicc-intro {
    padding: 20px 0 30px;
}

.dicc-intro__texto {
    margin: 0 auto;
    color: #666;
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    line-height: 1.7;
}

.dicc-intro__texto p {
    margin-bottom: 15px;
}

.dicc-intro__texto p:last-child {
    margin-bottom: 0;
}

.dicc-intro__texto a {
    color: #C51A1B;
    text-decoration: underline;
}

.dicc-intro__texto a:hover {
    color: #a01515;
}

/* Content Section */
.dicc-content {
    padding: 0 0 60px;
}

.dicc-content__selector-header {
    background-color: #b5a68a;
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    padding: 15px 20px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Alphabet Buttons */
.dicc-content__letras {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 30px;
}

.dicc-content__letra {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 4px;
    background-color: #e0e0e0;
    color: #666;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dicc-content__letra:hover:not(:disabled) {
    background-color: #C51A1B;
    color: #fff;
}

.dicc-content__letra--active {
    background-color: #999;
    color: #fff;
}

.dicc-content__letra--active:hover:not(:disabled) {
    background-color: #C51A1B;
}

.dicc-content__letra--selected {
    background-color: #C51A1B;
    color: #fff;
}

.dicc-content__letra:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Terms Groups */
.dicc-content__grupo {
    display: none;
}

/* Term Item */
.dicc-content__item {
    margin-bottom: 5px;
    border: 1px solid #eee;
    background-color: #fff;
}

.dicc-content__item-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border: none;
    background-color: #f5f5f5;
    color: #606060;
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dicc-content__item-header:hover {
    background-color: #C51A1B;
    color: #fff;
}

.dicc-content__flecha {
    flex-shrink: 0;
    color: #C51A1B;
    transition: transform 0.3s ease;
}

.dicc-content__item-header:hover .dicc-content__flecha {
    color: #fff;
}

.dicc-content__item--open .dicc-content__flecha {
    transform: rotate(90deg);
}

.dicc-content__item--open .dicc-content__item-header {
    background-color: #C51A1B;
    color: #fff;
}

.dicc-content__item-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #fff;
}

.dicc-content__item--open .dicc-content__item-body {
    background-color: #fff;
}

.dicc-content__item-texto {
    padding: 20px;
    color: #666;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    line-height: 1.7;
}

.dicc-content__item-texto p {
    margin-bottom: 10px;
}

.dicc-content__item-texto p:last-child {
    margin-bottom: 0;
}

.dicc-content__vacio {
    text-align: center;
    color: #999;
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    padding: 40px 0;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (min-width: 1024px) and (max-width: 1199px) {
    .dicc-hero__titulo {
        font-size: 50px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .dicc-hero__titulo {
        font-size: 45px;
    }

    .dicc-header__titulo {
        font-size: 36px;
    }

    .dicc-content__letra {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .dicc-hero {
        min-height: 180px;
    }

    .dicc-hero__default {
        min-height: 180px;
    }

    .dicc-hero__titulo {
        font-size: 36px;
        letter-spacing: 4px;
    }

    .dicc-header__titulo {
        font-size: 32px;
    }

    .dicc-content__selector-header {
        font-size: 14px;
        padding: 12px 15px;
    }

    .dicc-content__letras {
        gap: 4px;
    }

    .dicc-content__letra {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .dicc-content__item-header {
        padding: 12px 15px;
        font-size: 14px;
    }

    .dicc-content__item-texto {
        padding: 15px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .dicc-hero__titulo {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .dicc-header__titulo {
        font-size: 28px;
    }

    .dicc-intro__texto {
        font-size: 14px;
    }

    .dicc-content__letra {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .dicc-content__item-header {
        font-size: 13px;
    }
}
