/* ==========================================================================
   MÓDULO PROFESIONAL DE QUEJAS, RECLAMOS Y DEVOLUCIONES
   ========================================================================== */

.pqrs-hero {
    position: relative;
    width: 100%;
    height: 32vh;
    min-height: 240px;
    background-image: url('/assets/img/1391x458/1.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -90px;
}

.pqrs-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(242, 149, 34, 0.75), rgba(31, 31, 31, 0.8));
    z-index: 1;
}

.pqrs-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    padding: 0 1.5rem;
    max-width: 850px;
}

.pqrs-hero-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.pqrs-hero-content p {
    font-size: 1.1rem;
    opacity: 0.95;
    line-height: 1.4;
}

.pqrs-info-cards {
    padding: 4rem 1.5rem 2rem 1.5rem;
    background-color: #fdfdfd;
}

.info-container {
    max-width: 1140px;
    margin: 0 auto;
}

.info-title {
    text-align: center;
    margin-bottom: 3rem;
}

.info-title h2 {
    font-size: 1.8rem;
    color: #222;
    font-weight: 700;
}

.info-title .underline {
    width: 60px;
    height: 4px;
    background: #F29522;
    margin: 0.6rem auto 1rem auto;
    border-radius: 4px;
}

.info-title p {
    color: #666;
    font-size: 1rem;
}

/* Rejilla adaptativa optimizada */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.info-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(242, 149, 34, 0.15);
    border-color: rgba(242, 149, 34, 0.3);
}

.card-icon {
    width: 55px;
    height: 55px;
    background: rgba(242, 149, 34, 0.1);
    color: #F29522;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 1.2rem auto;
    transition: background 0.3s ease, color 0.3s ease;
}

.info-card:hover .card-icon {
    background: #F29522;
    color: #fff;
}

.info-card h3 {
    font-size: 1.2rem;
    color: #222;
    margin-bottom: 0.7rem;
    font-weight: 600;
}

.info-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

.pqrs-container {
    max-width: 850px;
    margin: 2rem auto 5rem auto;
    padding: 0 1.5rem;
}

.pqrs-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #eef0f2;
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-header h2 {
    font-size: 1.6rem;
    color: #1f2937;
    font-weight: 700;
}

.form-header .subtitle {
    color: #6b7280;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.form-pqrs {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Manejo de transiciones para campos dinámicos */
.dynamic-field {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dynamic-field.visible {
    display: flex;
    opacity: 1;
}

.form-group label {
    font-size: 0.92rem;
    font-weight: 600;
    color: #374151;
}

.form-group label i {
    color: #F29522;
    margin-right: 5px;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #1f2937;
    background-color: #f9fafb;
    transition: all 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #F29522;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(242, 149, 34, 0.12);
}

.form-pqrs textarea {
    resize: vertical; 
    height: 120px; 
    min-height: 100px; 
    max-height: 280px; 
    width: 100%;
    box-sizing: border-box;
}

.file-upload-box {
    border: 2px dashed #d1d5db;
    padding: 1rem;
    border-radius: 10px;
    background: #fdfdfd;
    transition: border-color 0.3s;
}

.file-upload-box:hover {
    border-color: #F29522;
}

.file-help {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.terms-container {
    margin-top: 0.5rem;
    padding: 0.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-weight: 500 !important;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #F29522;
    margin-top: 3px;
    flex-shrink: 0;
}

.checkbox-text {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.5;
}

.policy-link {
    color: #F29522;
    text-decoration: none;
    font-weight: 600;
    transition: text-decoration 0.2s;
}

.policy-link:hover {
    text-decoration: underline;
}

.captcha-container {
    display: flex;
    justify-content: center;
    margin: 0.5rem 0;
}

.btn-submit {
    background: linear-gradient(135deg, #F29522, #ffb84d);
    color: #fff;
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(242, 149, 34, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 149, 34, 0.45);
}

.btn-submit:disabled {
    background: #d1d5db !important;
    box-shadow: none !important;
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.alert-success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

@media (max-width: 768px) {
    .pqrs-hero { height: 25vh; }
    .pqrs-hero-content h1 { font-size: 1.8rem; }
    .pqrs-card { padding: 1.5rem; }
}

/* Oculto por defecto */
.dynamic-field {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Clase que inyecta JavaScript al cumplir la condición */
.dynamic-field.visible {
    display: flex;
    opacity: 1;
}