/*
 * Estilos particulares de la vista de solicitud de inscripción
 * al padrón de proveedores.
 * Los componentes generales se obtienen de micrositios-base.css.
 */

.altaprov-page {
    width: 100%;
    max-width: 1320px !important;
    min-height: 100vh;
    padding-bottom: 48px;
}

.altaprov-icon-box .v-icon,
.altaprov-guide-icon .v-icon,
.altaprov-help-icon .v-icon,
.altaprov-format-icon .v-icon,
.altaprov-download-button .v-icon {
    position: static !important;
    inset: auto !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin: 0 !important;
    font-size: 24px !important;
    line-height: 1 !important;
    text-align: center;
    transform: none !important;
}

.altaprov-icon-box,
.altaprov-guide-icon,
.altaprov-help-icon,
.altaprov-format-icon {
    position: relative;
}

.altaprov-icon-box .v-icon,
.altaprov-guide-icon .v-icon,
.altaprov-help-icon .v-icon,
.altaprov-format-icon .v-icon {
    position: absolute !important;
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.altaprov-icon-box .v-icon::before,
.altaprov-guide-icon .v-icon::before,
.altaprov-help-icon .v-icon::before,
.altaprov-format-icon .v-icon::before {
    position: static !important;
    display: block !important;
    width: auto;
    height: auto;
    margin: 0 !important;
    line-height: 1 !important;
    transform: none !important;
}

.altaprov-page .site-hero-description,
.altaprov-page .site-section-text,
.altaprov-guide-item span,
.altaprov-help-text,
.altaprov-format-body p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

/* Introducción */
.altaprov-intro {
    margin-top: 30px;
}

.altaprov-guide-card,
.altaprov-help-card {
    height: 100%;
}

.altaprov-guide-list {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.altaprov-guide-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 15px 16px;
    border: 1px solid var(--site-color-border);
    border-radius: 18px;
    background: linear-gradient(135deg, #fff 0%, var(--site-color-surface-alt) 100%);
}

.altaprov-guide-icon,
.altaprov-help-icon,
.altaprov-format-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.altaprov-guide-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 14px;
}

.altaprov-guide-icon--primary {
    background: var(--site-color-primary);
}

.altaprov-guide-icon--secondary {
    background: var(--site-color-secondary);
}

.altaprov-guide-icon--neutral {
    background: var(--site-color-neutral);
}

.altaprov-guide-item strong,
.altaprov-guide-item span {
    display: block;
}

.altaprov-guide-item strong {
    color: var(--site-color-primary);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.35;
}

.altaprov-guide-item span {
    margin-top: 3px;
    color: var(--site-color-muted);
    font-size: 0.84rem;
    line-height: 1.5;
}

.altaprov-help-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    position: relative;
    background:
        radial-gradient(circle at 100% 0%, rgba(196, 92, 145, 0.13), transparent 44%),
        linear-gradient(145deg, #fff 0%, #fbf8fb 100%) !important;
}

.altaprov-help-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 22px;
    border-radius: 19px;
    background: linear-gradient(145deg, var(--site-color-primary), var(--site-color-secondary));
    box-shadow: 0 14px 28px rgba(83, 38, 128, 0.18);
}

.altaprov-help-title {
    margin: 4px 0 0;
    color: var(--site-color-primary);
    font-size: 1.42rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
}

.altaprov-help-text {
    margin: 14px 0 0;
    color: var(--site-color-neutral);
    font-size: 0.94rem;
    line-height: 1.68;
    text-align: justify;
}

.altaprov-help-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--site-color-border);
    color: var(--site-color-muted);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.4;
}

.altaprov-help-note .v-icon {
    color: var(--site-color-primary) !important;
}

/* Tarjetas de formatos */
.altaprov-formats-section {
    scroll-margin-top: 24px;
}

.altaprov-format-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.altaprov-format-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--site-color-border);
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--site-shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.altaprov-format-card:hover {
    transform: translateY(-4px);
    border-color: rgba(83, 38, 128, 0.20);
    box-shadow: 0 22px 46px rgba(82, 82, 90, 0.12);
}

.altaprov-format-topline {
    height: 6px;
    background: var(--site-color-primary);
}

.altaprov-format-card--legal .altaprov-format-topline {
    background: var(--site-color-secondary);
}

.altaprov-format-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 26px 28px 0;
}

.altaprov-format-icon {
    width: 62px;
    height: 62px;
    min-width: 62px;
    border-radius: 20px;
    background: var(--site-color-primary);
    box-shadow: 0 14px 28px rgba(83, 38, 128, 0.18);
}

.altaprov-format-card--legal .altaprov-format-icon {
    background: var(--site-color-secondary);
    box-shadow: 0 14px 28px rgba(196, 92, 145, 0.18);
}

.altaprov-format-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 13px;
    border: 1px solid var(--site-color-border);
    border-radius: 999px;
    color: var(--site-color-primary);
    background: var(--site-color-surface-soft);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.055em;
    line-height: 1;
    text-transform: uppercase;
}

.altaprov-format-card--legal .altaprov-format-tag {
    color: #a63e74;
    background: #fff7fb;
}

.altaprov-format-body {
    flex: 1 1 auto;
    padding: 24px 28px 22px;
}

.altaprov-format-body h3 {
    margin: 0;
    color: var(--site-color-primary);
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
}

.altaprov-format-body p {
    margin: 14px 0 0;
    color: var(--site-color-neutral);
    font-size: 0.95rem;
    line-height: 1.68;
    text-align: justify;
}

.altaprov-format-features {
    display: grid;
    gap: 9px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.altaprov-format-features li {
    position: relative;
    padding-left: 27px;
    color: var(--site-color-neutral);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.45;
}

.altaprov-format-features li::before {
    content: "";
    position: absolute;
    top: 0.34em;
    left: 0;
    width: 14px;
    height: 14px;
    border: 4px solid var(--site-color-primary);
    border-radius: 50%;
    background: #fff;
}

.altaprov-format-card--legal .altaprov-format-features li::before {
    border-color: var(--site-color-secondary);
}

.altaprov-format-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 28px 26px;
    border-top: 1px solid var(--site-color-border);
    background: linear-gradient(180deg, #fff 0%, #fcfafc 100%);
}

.altaprov-file-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    color: var(--site-color-muted);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.35;
}

.altaprov-file-meta .v-icon {
    color: #b42318 !important;
}

.altaprov-file-meta span {
    overflow-wrap: anywhere;
}

.altaprov-download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 11px 18px;
    border-radius: 999px;
    color: #fff !important;
    background: var(--site-color-primary);
    box-shadow: 0 10px 22px rgba(83, 38, 128, 0.20);
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.altaprov-download-button:hover,
.altaprov-download-button:focus {
    transform: translateY(-2px);
    background: var(--site-color-primary-dark);
    box-shadow: 0 14px 26px rgba(83, 38, 128, 0.25);
    outline: none;
}

.altaprov-download-button--secondary {
    background: var(--site-color-secondary);
    box-shadow: 0 10px 22px rgba(196, 92, 145, 0.20);
}

.altaprov-download-button--secondary:hover,
.altaprov-download-button--secondary:focus {
    background: #a84679;
    box-shadow: 0 14px 26px rgba(196, 92, 145, 0.24);
}

/* Ajustes puntuales de Vuetify */
.altaprov-page .v-card::before {
    box-shadow: none !important;
}

@media (max-width: 960px) {
    .altaprov-format-grid {
        grid-template-columns: 1fr;
    }

    .altaprov-format-card {
        max-width: 760px;
        margin: 0 auto;
    }
}

@media (max-width: 720px) {
    .altaprov-page {
        padding-bottom: 34px;
    }

    .altaprov-guide-item {
        align-items: start;
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .altaprov-format-header,
    .altaprov-format-body,
    .altaprov-format-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .altaprov-format-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .altaprov-download-button {
        width: 100%;
        white-space: normal;
        text-align: center;
    }
}

@media (max-width: 520px) {
    .altaprov-format-header {
        align-items: flex-start;
    }

    .altaprov-format-icon {
        width: 54px;
        height: 54px;
        min-width: 54px;
        border-radius: 18px;
    }

    .altaprov-format-tag {
        white-space: normal;
        text-align: center;
    }

    .altaprov-format-body h3 {
        font-size: 1.4rem;
    }

}

@media (prefers-reduced-motion: reduce) {
    .altaprov-format-card,
    .altaprov-download-button {
        transition: none;
    }
}
