/* Términos y Condiciones Styles */

.terminos-container {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    padding: 110px 20px 40px;
}

.empaques-title {
    width: 40%;
    max-width: 1320px;
    margin: 0 auto;
    display: block;
}

.terminos-card {
    width: 100%;
    max-width: 1400px;
    background-color: #ffffff;
    border-radius: 30px;
    padding: clamp(30px, 5vw, 50px) clamp(25px, 4vw, 45px);
    box-sizing: border-box;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.2),
        0 4px 10px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #55362C;
    font-size: clamp(14px, 1.8vw, 16px);
    line-height: 1.7;
    font-weight: 600;
}

.terminos-content {
    color: #622E1A;
    font-size: clamp(14px, 1.8vw, 16px);
    line-height: 1.7;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #f3c302 transparent;
    padding-right: clamp(6px, 1.2vw, 12px);
}

.terminos-content::-webkit-scrollbar {
    width: 8px;
}

.terminos-content::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 8px;
}

.terminos-content::-webkit-scrollbar-thumb {
    background: #f3c302;
    border-radius: 8px;
}

/* Typography & Titles */
.terminos-main-title {
    text-align: center;
    margin-bottom: 50px;
}

.terminos-main-title h1 {
    font-size: clamp(24px, 4vw, 36px);
    color: #622E1A;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 1px;
}

.terminos-main-title h2 {
    font-size: clamp(18px, 3vw, 24px);
    color: #f3c302;
    font-weight: 700;
    margin-top: 10px;
}

.terminos-content h3 {
    color: #622E1A;
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 800;
    border-left: 6px solid #f3c302;
    padding-left: 15px;
    margin: 45px 0 25px;
    text-transform: uppercase;
}

.terminos-content h4 {
    color: #4a1f0f;
    font-size: clamp(16px, 2vw, 18px);
    font-weight: 800;
    margin: 30px 0 15px;
}

.terminos-content h5 {
    color: #622E1A;
    font-size: 16px;
    font-weight: 800;
    margin: 20px 0 10px;
}

/* Content Blocks */
.terminos-section {
    margin-bottom: 40px;
}

.terminos-content p {
    margin: 0 0 20px;
    text-align: justify;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    background: #fdf8e6;
    padding: 25px;
    border-radius: 20px;
    margin: 20px 0;
}

.products-grid ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: square;
}

.products-grid li {
    margin-bottom: 8px;
    font-size: 14px;
}

/* Mechanics Steps */
.mecánica-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 25px 0;
}

.step-item {
    display: flex;
    gap: 20px;
    background: #ffffff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.step-letter {
    background: #622E1A;
    color: #f3c302;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 20px;
}

.step-item p {
    margin: 0;
}

/* Premium Prize Cards */
.premio-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    margin: 25px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 1px solid #f3c302;
}

.premio-header {
    background: #622E1A;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.premio-label {
    background: #f3c302;
    color: #622E1A;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.premio-header h4 {
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
    font-size: 18px;
}

.premio-body {
    padding: 25px;
}

.bono-uso {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 15px;
    margin-top: 15px;
}

/* Info Boxes */
.nota-box, .paso-box, .advertencia-box {
    padding: 25px;
    border-radius: 20px;
    margin: 30px 0;
}

.nota-box {
    background: #fdf8e6;
    border-left: 6px solid #f3c302;
}

.paso-box {
    background: #ffffff;
    border: 2px solid #eee;
}

.paso-header h4 {
    margin-top: 0;
    color: #622E1A;
}

.advertencia-box {
    background: #622E1A;
    color: #ffffff;
}

.advertencia-box h5 {
    color: #f3c302;
    margin-top: 0;
}

.advertencia-box ul {
    margin-bottom: 0;
}

/* Lists Styles */
.terminos-content ul, .terminos-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.sub-list {
    margin-top: 10px !important;
    font-size: 14px;
}

.custom-ol {
    list-style-type: none;
    counter-reset: item;
    padding-left: 0;
}

.custom-ol > li {
    counter-increment: item;
    margin-bottom: 25px;
    padding-left: 45px;
    position: relative;
}

.custom-ol > li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    background: #f3c302;
    color: #622E1A;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

/* Fraud List */
.fraude-list {
    background: #fff5f5;
    padding: 25px;
    border-radius: 20px;
    border: 1px solid #ffcccc;
}

/* Links */
.terminos-content a {
    color: #622E1A;
    font-weight: 800;
    text-decoration: underline;
    transition: color 0.3s;
}

.terminos-content a:hover {
    color: #f3c302;
}

/* Actions */
.terminos-header-actions {
    margin-bottom: 35px;
    display: flex;
    justify-content: center;
}

.btn-download-pdf {
    background-color: #622E1A;
    color: #ffffff;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 900;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    text-transform: uppercase;
}

.btn-download-pdf i {
    font-size: 20px;
    color: #f3c302;
}

.btn-download-pdf:hover {
    background-color: #f3c302;
    color: #622E1A;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.btn-download-pdf:hover i {
    color: #622E1A;
}

/* Responsive Design */
@media (max-width: 1023px) {
    .empaques-title { width: 60%; }
    .products-grid { grid-template-columns: 1fr; }
}

@media (max-width: 639px) {
    .terminos-container { padding: 100px 15px 30px; }
    .empaques-title { width: 90%; }
    .terminos-card { padding: 25px 15px; border-radius: 20px; }
    .btn-download-pdf { width: 100%; justify-content: center; font-size: 13px; }
    .step-item { flex-direction: column; align-items: flex-start; }
    .custom-ol > li { padding-left: 0; margin-top: 40px; }
    .custom-ol > li::before { top: -40px; }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}