﻿.upload-section {
    background: #fff;
    border: 1px solid #E5E0D8;
    border-radius: 12px;
    padding: 28px 28px 32px;
}

.upload-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1A1A2E;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .upload-title i {
        color: #E8401C;
        font-size: 1rem;
    }

.upload-subtitle {
    font-size: 0.85rem;
    color: #6B7280;
    margin-bottom: 22px;
}

.upload-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

@media (max-width: 768px) {
    .upload-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 420px) {
    .upload-grid {
        grid-template-columns: 1fr;
    }
}

.upload-slot {
    position: relative;
    cursor: pointer;
    border: 1.5px dashed #C9C4BC;
    border-radius: 10px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    transition: border-color .2s, background .2s;
    display: block;
}

    .upload-slot:hover {
        border-color: var(--brand-primary);
        background: rgba(232,64,28,0.03);
    }

.upload-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #9CA3AF;
    transition: color .2s;
}

.upload-slot:hover .upload-placeholder {
    color: #E8401C;
}

.upload-placeholder i {
    font-size: 1.5rem;
}

.upload-placeholder span {
    font-size: 0.78rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
}

.upload-placeholder.has-image {
    background-size: cover;
    background-position: center;
}

    .upload-placeholder.has-image i,
    .upload-placeholder.has-image span {
        display: none;
    }

.upload-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(26,26,46,0.65);
    border: none;
    color: #fff;
    font-size: 11px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s;
    z-index: 2;
}

    .upload-remove:hover {
        background: #E8401C;
    }

.upload-slot.filled .upload-remove {
    display: flex;
}

/* Info rows */
.branch-info {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
}

    .branch-info li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        font-size: 0.88rem;
        color: #374151;
        padding: 7px 0;
        border-bottom: 1px solid #F3F0EB;
    }

        .branch-info li:last-child {
            border-bottom: none;
        }

    .branch-info .bi {
        color: var(--brand-primary);
        font-size: 15px;
        margin-top: 1px;
        flex-shrink: 0;
    }

    .branch-info strong {
        display: block;
        font-weight: 600;
        color: var(--brand-dark);
        margin-bottom: 2px;
    }

.schedule-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

    .schedule-grid span:nth-child(odd) {
        font-weight: 600;
        color: var(--brand-dark);
    }

.contact-wrapper {
    align-items: flex-start;
    margin-top: 25px;
}

.contact-form-content {
    padding-right: 35px;
}

.contact-title {
    font-size: 34px;
    font-weight: 700;
    color: #070b1d;
    margin-bottom: 14px;
}

.contact-description {
    font-size: 15px;
    color: #33384d;
    line-height: 1.7;
    margin-bottom: 22px;
    max-width: 560px;
}

.contact-input-box {
    border: 1px solid #dddddd;
    border-radius: 9px;
    padding: 10px 14px;
    min-height: 62px;
    background: #ffffff;
    transition: all .2s ease-in-out;
}

    .contact-input-box:focus-within {
        border-color: #405ff2;
        box-shadow: 0 0 0 3px rgba(64, 95, 242, 0.08);
    }

    .contact-input-box label {
        display: block;
        font-size: 12px;
        color: #7f8798;
        margin-bottom: 4px;
        font-weight: 400;
    }

.contact-input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 14px;
    color: #050b20;
    padding: 0;
    background: transparent;
}

    .contact-input::placeholder {
        color: #050b20;
        opacity: 1;
    }

.textarea-box {
    min-height: 180px;
    align-items: flex-start;
}

.contact-textarea {
    min-height: 135px;
    resize: none;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #405ff2;
    color: #ffffff !important;
    border-radius: 8px;
    padding: 13px 24px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all .2s ease-in-out;
}

    .contact-btn:hover {
        background: #2747d8;
        color: #ffffff !important;
        transform: translateY(-1px);
    }

    .contact-btn i {
        font-size: 18px;
    }

.contact-details-card {
    border: 1px solid #dddddd;
    border-radius: 14px;
    padding: 30px 35px;
    background: #ffffff;
    min-height: 350px;
}

    .contact-details-card h4 {
        font-size: 19px;
        font-weight: 600;
        color: #070b1d;
        margin-bottom: 15px;
    }

.contact-details-description {
    font-size: 14px;
    color: #33384d;
    line-height: 1.7;
    margin-bottom: 30px;
}

.contact-detail-item {
    display: flex;
    gap: 14px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 28px;
    min-width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    color: #050b20;
    font-size: 22px;
    margin-top: 2px;
}

.contact-detail-item h6 {
    font-size: 14px;
    font-weight: 600;
    color: #050b20;
    margin-bottom: 5px;
}

.contact-detail-item p {
    font-size: 14px;
    color: #050b20;
    line-height: 1.6;
    margin: 0;
}

.contact-social {
    margin-top: 20px;
}

    .contact-social h6 {
        font-size: 14px;
        font-weight: 600;
        color: #050b20;
        margin-bottom: 14px;
    }

.social-icons {
    display: flex;
    align-items: center;
    gap: 18px;
}

    .social-icons a {
        color: #050b20;
        font-size: 18px;
        text-decoration: none;
        transition: all .2s ease-in-out;
    }

        .social-icons a:hover {
            color: #405ff2;
            transform: translateY(-2px);
        }

@media (max-width: 991px) {
    .contact-form-content {
        padding-right: 0;
        margin-bottom: 35px;
    }

    .contact-details-card {
        padding: 25px;
    }
}

.contact-input.is-invalid {
    border: 1px solid #dc3545;
}

.contact-input.is-valid {
    border: 1px solid #198754;
}

.mensaje-error {
    display: none;
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
}

    .mensaje-error.activo {
        display: block;
    }

.mensaje-contacto-exito {
    background: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.mensaje-contacto-error {
    background: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}


.upload-section {
    background: #fff;
    border: 1px solid #E5E0D8;
    border-radius: 12px;
    padding: 28px 28px 32px;
}

.upload-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1A1A2E;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .upload-title i {
        color: #405ff2;
        font-size: 1rem;
    }

.upload-subtitle {
    font-size: 0.85rem;
    color: #6B7280;
    margin-bottom: 22px;
}

/* Grid 4 columnas en desktop, 2 en tablet, 1 en móvil */
.upload-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

@media (max-width: 768px) {
    .upload-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 420px) {
    .upload-grid {
        grid-template-columns: 1fr;
    }
}

/* Slot */
.upload-slot {
    position: relative;
    cursor: pointer;
    border: 1.5px dashed #C9C4BC;
    border-radius: 10px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    transition: border-color .2s, background .2s;
    display: block;
}

    .upload-slot:hover {
        border-color: #405ff2;
        background: rgba(64, 95, 242, 0.04);
    }

/* Estado vacío */
.upload-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #9CA3AF;
    transition: color .2s;
}

.upload-slot:hover .upload-placeholder {
    color: #405ff2;
}

.upload-placeholder i {
    font-size: 1.5rem;
}

.upload-placeholder span {
    font-size: 0.78rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
}

/* Preview de imagen */
.upload-placeholder.has-image {
    background-size: cover;
    background-position: center;
}

    .upload-placeholder.has-image i,
    .upload-placeholder.has-image span {
        display: none;
    }

/* Botón eliminar */
.upload-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(26,26,46,0.65);
    border: none;
    color: #fff;
    font-size: 11px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s;
    z-index: 2;
}

    .upload-remove:hover {
        background: #405ff2;
    }

.upload-slot.filled .upload-remove {
    display: flex;
}

.form-control.is-invalid {
    border: 1px solid #dc3545;
}

.form-control.is-valid {
    border: 1px solid #198754;
}

.mensaje-error {
    display: none;
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
}

    .mensaje-error.activo {
        display: block;
    }

.mensaje-garantia-exito {
    background: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
}

.mensaje-garantia-error {
    background: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
}

.upload-slot.is-invalid {
    border-color: #405ff2 !important;
    background: rgba(64, 95, 242, 0.04);
}

.upload-slot.filled {
    border-color: #198754 !important;
    border-style: solid;
}

.upload-file-name {
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: 6px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 11px;
    padding: 4px 6px;
    border-radius: 6px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mensaje-error.activo {
    display: block;
}

.warranty-actions {
    width: 100%;
    margin-top: 35px;
    padding-top: 28px;
    border-top: 1px solid #E5E0D8;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.captcha-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.warranty-submit-btn {
    min-width: 220px;
    justify-content: center;
}