/* ===================================
   Estilos para Términos y Condiciones
   Colores corporativos PGT Logistics
   =================================== */

:root {
    --pgt-blue-primary: #003c78;
    --pgt-blue-secondary: #0056b3;
    --pgt-red: #dc3545;
    --pgt-gold: #ffc107;
    --pgt-success: #28a745;
    --pgt-light-bg: #f8f9fa;
    --pgt-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --pgt-shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Header Principal */
.terminos-header {
    background: linear-gradient(135deg, var(--pgt-blue-primary) 0%, var(--pgt-blue-secondary) 100%);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: var(--pgt-shadow-lg);
    border: none;
}

.terminos-header h1 {
    color: white;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.terminos-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 0;
}

.terminos-header .icon-circle {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

/* Section Titles */
.section-divider {
    margin: 4rem 0 2rem 0;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--pgt-blue-primary);
}

.section-divider h2 {
    color: var(--pgt-blue-primary);
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-divider .subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    font-weight: 400;
}

/* Content Cards */
.terminos-content {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: var(--pgt-shadow);
    margin-bottom: 2rem;
    border-left: 4px solid var(--pgt-blue-primary);
}

.terminos-content p {
    color: #333;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.terminos-content p:last-child {
    margin-bottom: 0;
}

.terminos-content p b {
    color: var(--pgt-blue-primary);
    font-weight: 600;
}

.terminos-content ol {
    color: #333;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.terminos-content ol li {
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}

.terminos-content ol li::marker {
    color: var(--pgt-blue-primary);
    font-weight: 600;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, #fff8e1 0%, #ffe0b2 100%);
    border-left: 4px solid var(--pgt-gold);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.highlight-box p {
    margin-bottom: 0;
    color: #333;
    font-weight: 500;
}

/* Warning Box */
.warning-box {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-left: 4px solid var(--pgt-red);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.warning-box p {
    margin-bottom: 0;
    color: #333;
    font-weight: 500;
}

/* Icons Inline con Texto - Alineación Vertical */
.terminos-content i,
.highlight-box i,
.warning-box i,
.section-divider i,
.subsection-header i {
    vertical-align: middle;
    margin-right: 0.5rem;
    font-size: 1em; /* Mismo tamaño que el texto */
    line-height: 1;
    display: inline-block; /* Asegura consistencia */
}

/* Ajuste específico para iconos en títulos h2 y h3 */
.section-divider h2 i,
.subsection-header h3 i {
    vertical-align: middle;
    margin-right: 0.75rem;
    font-size: 0.9em; /* Ligeramente más pequeño que el título */
    display: inline-block;
}

/* Override de clases Bootstrap me-2 para mejor alineación */
.terminos-content .me-2,
.highlight-box .me-2,
.warning-box .me-2 {
    margin-right: 0.5rem !important;
    vertical-align: middle;
}

/* Info Icons */
.info-icon {
    width: 40px;
    height: 40px;
    background: var(--pgt-blue-primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.info-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.info-row p {
    margin-bottom: 0;
    flex: 1;
}

/* Table Styles */
.terminos-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--pgt-shadow);
    margin-bottom: 2rem;
}

.terminos-table table {
    margin-bottom: 0;
}

.terminos-table thead {
    background: linear-gradient(135deg, var(--pgt-blue-primary) 0%, var(--pgt-blue-secondary) 100%);
}

.terminos-table thead th {
    color: white;
    font-weight: 600;
    border: none;
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
}

.terminos-table tbody td {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    color: #333;
    font-size: 1rem;
    line-height: 1.8;
}

.terminos-table tbody tr:hover {
    background-color: #f8f9fa;
    transition: background-color 0.3s ease;
}

.terminos-table tbody th {
    background-color: var(--pgt-light-bg);
    color: var(--pgt-blue-primary);
    font-weight: 600;
    border: none;
}

/* Subsection Headers */
.subsection-header {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 10px;
    padding: 1.2rem 1.5rem;
    margin: 2rem 0 1.5rem 0;
    border-left: 4px solid var(--pgt-blue-secondary);
}

.subsection-header h3 {
    color: var(--pgt-blue-primary);
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 0;
}

/* Blockquote Example */
.terminos-content blockquote {
    background: var(--pgt-light-bg);
    border-left: 4px solid var(--pgt-blue-primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.terminos-content blockquote p {
    color: var(--pgt-blue-primary);
    font-weight: 600;
    font-family: 'Courier New', monospace;
    margin-bottom: 0;
}

/* Banner Image */
.bannerPage {
    border-radius: 15px;
    box-shadow: var(--pgt-shadow);
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .terminos-header h1 {
        font-size: 1.8rem;
    }
    
    .terminos-header p {
        font-size: 1rem;
    }
    
    .terminos-header .icon-circle {
        width: 60px;
        height: 60px;
    }
    
    .section-divider h2 {
        font-size: 1.5rem;
    }
    
    .terminos-content {
        padding: 1.5rem;
    }
    
    .terminos-content p,
    .terminos-content ol {
        font-size: 1rem;
    }
}

/* Smooth Scroll Animation */
.terminos-content,
.terminos-header,
.section-divider {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Print Styles */
@media print {
    .terminos-header,
    .terminos-content,
    .section-divider {
        box-shadow: none;
        animation: none;
    }
    
    .terminos-header {
        background: var(--pgt-blue-primary);
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
