/* === REQUISITOS DE ACCESO STYLES - ESTRUCTURA CONVIVE MADRID === */

/* Page Header */
.page-header {
    background-color: #ffffff;
    padding: 60px 0 40px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 20px;
}

.page-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666666;
    max-width: 900px;
}

/* Principales Requisitos Section */
.principales-requisitos {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.section-heading {
    font-size: 2rem;
    font-weight: 700;
    color: #000000;
    text-align: center;
    margin-bottom: 20px;
}

.section-subheading {
    font-size: 1.1rem;
    color: #666666;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

/* Requisito Boxes */
.requisito-box {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: left;
    /* Changed from center */
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    /* Keeps number inside rounded corners */
    z-index: 1;
}

.requisito-box:hover {
    border-color: #000000;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.requisito-icon {
    width: 70px;
    height: 70px;
    margin: 0 0 20px 0;
    /* Changed from 0 auto 20px */
    background-color: #000000;
    /* Reverted to black */
    border-radius: 50%;
    /* Reverted to circle */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.requisito-icon i {
    font-size: 2rem;
    color: #ffffff;
    /* Reverted to white */
}

/* New Elements Styles */
.req-link-normativa {
    display: inline-block;
    margin-top: 15px;
    color: #000000;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid #000000;
    padding-bottom: 2px;
    transition: opacity 0.3s ease;
}

.req-link-normativa:hover {
    opacity: 0.7;
    color: #000000;
}

.req-highlight-tag {
    display: inline-block;
    background-color: #e9ecef;
    /* Light gray for B&W theme */
    color: #000000;
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 15px;
}

.requisito-icon i {
    font-size: 2rem;
    color: #ffffff;
}

.requisito-box h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 15px;
}

.requisito-box p {
    font-size: 0.95rem;
    color: #666666;
    line-height: 1.6;
    margin: 0;
}

/* Estilo especial para el cuadro de Ingresos mínimos */
.requisito-box-compact .ingresos-list {
    margin-top: 10px;
}

.ingreso-item {
    font-size: 0.9rem;
    color: #666666;
    line-height: 1.8;
    margin-bottom: 5px;
}

.ingreso-item strong {
    color: #000000;
    font-weight: 700;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.action-buttons .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 25px;
}

.action-buttons .btn-dark {
    background-color: #000000;
    border-color: #000000;
}

.action-buttons .btn-outline-dark {
    border-color: #000000;
    color: #000000;
}

.action-buttons .btn-dark:hover {
    background-color: #333333;
}

.action-buttons .btn-outline-dark:hover {
    background-color: #000000;
    color: #ffffff;
}

/* Procedimiento Section */
.procedimiento-section {
    background-color: #ffffff;
    padding: 80px 0;
}

.procedimiento-content {
    max-width: 900px;
    margin: 40px auto 0;
}

.procedimiento-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    margin-top: 40px;
    margin-bottom: 20px;
}

.procedimiento-content h3:first-child {
    margin-top: 0;
}

.procedimiento-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #666666;
}

/* Documentación Section */
.documentacion-section {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.section-intro {
    font-size: 1.05rem;
    color: #666666;
    text-align: center;
    max-width: 800px;
    margin: 20px auto 40px;
    line-height: 1.8;
}

/* Accordion Styles */
.accordion {
    max-width: 1320px;
    margin: 0 auto;
}

.accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.accordion-button {
    background-color: #f5f5f5;
    color: #000000;
    font-weight: 600;
    font-size: 1rem;
    padding: 20px 25px;
    border: none;
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    background-color: #e8e8e8;
    color: #000000;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000000'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 25px;
    background-color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #666666;
}

/* Descargar Bases Section */
.descargar-bases {
    background-color: #000000;
    color: #ffffff;
    padding: 80px 0;
}

.descargar-bases h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.descargar-bases p {
    font-size: 1.05rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.descargar-bases .btn {
    padding: 15px 40px;
    font-weight: 600;
    border-radius: 25px;
    font-size: 1.05rem;
}

.descargar-bases .btn-outline-light {
    border-color: #ffffff;
    color: #ffffff;
}

.descargar-bases .btn-outline-light:hover {
    background-color: #ffffff;
    color: #000000;
}

/* Normativas Section */
.normativas-section {
    background-color: #ffffff;
    padding: 80px 0;
}

.normativa-links {
    max-width: 900px;
    margin: 40px auto 0;
}

.normativa-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    margin-bottom: 15px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #000000;
    transition: all 0.3s ease;
}

.normativa-link:hover {
    background-color: #000000;
    color: #ffffff;
    border-color: #000000;
    transform: translateX(5px);
}

.normativa-link span {
    font-size: 1rem;
    font-weight: 500;
}

.normativa-link i {
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 992px) {
    .page-title {
        font-size: 2rem;
    }

    .section-heading {
        font-size: 1.75rem;
    }

    .principales-requisitos,
    .procedimiento-section,
    .documentacion-section,
    .descargar-bases,
    .normativas-section {
        padding: 60px 0;
    }

    .requisito-box {
        padding: 30px 20px;
    }

    .action-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .action-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 40px 0 30px;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .page-intro {
        font-size: 1rem;
    }

    .section-heading {
        font-size: 1.5rem;
    }

    .section-subheading,
    .section-intro {
        font-size: 1rem;
    }

    .requisito-box {
        padding: 25px 20px;
        margin-bottom: 20px;
    }

    .requisito-icon {
        width: 60px;
        height: 60px;
    }

    .requisito-icon i {
        font-size: 1.5rem;
    }

    .requisito-box h3 {
        font-size: 1.1rem;
    }

    .action-buttons {
        margin-top: 30px;
    }

    .procedimiento-content h3 {
        font-size: 1.3rem;
    }

    .procedimiento-content p {
        font-size: 1rem;
    }

    .accordion-button {
        font-size: 0.9rem;
        padding: 15px 20px;
    }

    .accordion-body {
        padding: 20px;
        font-size: 0.9rem;
    }

    .descargar-bases h2 {
        font-size: 1.5rem;
    }

    .descargar-bases p {
        font-size: 1rem;
    }

    .normativa-link {
        padding: 15px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .normativa-link span {
        font-size: 0.9rem;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.requisito-box,
.accordion-item,
.normativa-link {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Print styles */
@media print {

    .top-bar,
    .main-navbar,
    .action-buttons,
    .descargar-bases,
    .footer,
    .footer-bottom {
        display: none;
    }

    .page-header,
    .principales-requisitos,
    .procedimiento-section,
    .documentacion-section,
    .normativas-section {
        padding: 20px 0;
    }

    .accordion-button:not(.collapsed) {
        display: block;
    }

    .accordion-collapse {
        display: block !important;
    }
}

/* === NUEVOS ESTILOS REQUISITOS (BLACK & WHITE) === */

/* Header Degradado */
.req-header-gradient {
    background: linear-gradient(180deg, #000000 0%, #ffffff 100%);
    padding: 100px 0 60px;
    text-align: center;
    color: #000000;
}

.req-header-gradient .page-title {
    color: #ffffff;
    margin-bottom: 25px;
}

.req-header-gradient .page-intro {
    color: #333333;
    font-weight: 500;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

/* Watermark Numbering */
.requisito-box {
    position: relative;
    overflow: hidden;
    /* Keeps number inside rounded corners */
    z-index: 1;
}

.requisito-number {
    position: absolute;
    top: 0px;
    right: 20px;
    font-family: 'Outfit', sans-serif;
    font-size: 6rem;
    font-weight: 700;
    color: #f2f2f2;
    z-index: -1;
    line-height: 1;
    pointer-events: none;
}

/* Ensure content stays on top */
.requisito-icon,
.requisito-box h3,
.requisito-box p,
.requisito-box div {
    position: relative;
    z-index: 2;
}

/* Disclaimer informativo */
.gallery-disclaimer {
    font-size: 12px;
    color: #888888;
    font-style: italic;
    margin-top: 8px;
    margin-bottom: 0;
    line-height: 1.5;
}

/* === PROCESO DE ADJUDICACIÓN (NUEVO DISEÑO) === */
.proceso-adjudicacion-section {
    background-color: #f8f9fa;
    padding: 100px 0;
    color: #000000;
}

.proceso-adjudicacion-section .section-heading {
    color: #000000;
    text-align: left;
    margin-bottom: 60px;
    font-size: 2.2rem;
}

.proceso-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.proceso-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 35px 25px;
    position: relative;
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s ease, border-color 0.3s ease;
    border: 1px solid #e0e0e0;
}

.proceso-card:hover {
    transform: translateY(-5px);
    border-color: #000000;
}

.proceso-card .step-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: #000000;
    line-height: 1;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    font-family: 'Outfit', sans-serif;
}

.proceso-card .icon-wrapper {
    width: 45px;
    height: 45px;
    background-color: #000000;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.proceso-card .icon-wrapper i {
    color: #ffffff;
    font-size: 1.2rem;
}

.proceso-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #000000;
    line-height: 1.3;
    position: relative;
    z-index: 2;
}

.proceso-card p {
    font-size: 16px;
    color: #666666;
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* Responsive grid */
@media (max-width: 1200px) {
    .proceso-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .proceso-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .proceso-grid {
        grid-template-columns: 1fr;
    }

    .proceso-adjudicacion-section {
        padding: 60px 0;
    }
}

/* === CHECKLIST DE DOCUMENTACIÓN === */
.accordion-header {
    position: relative;
}

.accordion-button {
    font-weight: 700;
    font-size: 1.1rem;
    padding: 24px 30px;
    background-color: #ffffff;
    border-bottom: 1px solid #eaeaea;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    color: #000000;
    box-shadow: none;
    border-bottom-color: transparent;
}

.accordion-item {
    border: 1px solid #eaeaea;
    border-radius: 12px !important;
    overflow: hidden;
    margin-bottom: 20px;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.accordion-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.accordion-body {
    padding: 0 30px 30px;
    background-color: #f8f9fa;
}

/* Category Progress Indicator */
.category-progress {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    font-weight: 600;
    color: #888888;
    background-color: #f0f0f0;
    padding: 4px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
    z-index: 5;
    pointer-events: none;
}

.category-progress.completed {
    background-color: #000000;
    color: #ffffff;
}

/* Checklist Items Styles */
.checklist-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.checklist-item:hover {
    border-color: #cccccc;
    background-color: #fafafa;
}

.checklist-item.checked {
    border-color: #000000;
    background-color: #fafafa;
}

.checklist-item.checked::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #000000;
}

/* Custom Checkbox Design */
.checklist-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    min-width: 24px;
    height: 24px;
    background-color: #ffffff;
    border: 2px solid #dddddd;
    border-radius: 6px;
    margin-right: 18px;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.checklist-item:hover .checkmark {
    border-color: #aaaaaa;
}

.checklist-checkbox:checked~.checkmark {
    background-color: #000000;
    border-color: #000000;
}

.checkmark i {
    color: #ffffff;
    font-size: 14px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.checklist-checkbox:checked~.checkmark i {
    opacity: 1;
    transform: scale(1);
}

/* Item Content */
.checklist-content {
    flex: 1;
    transition: opacity 0.3s ease;
}

.checklist-title {
    font-weight: 700;
    font-size: 1rem;
    color: #222222;
    margin-bottom: 6px;
    display: block;
    transition: color 0.3s ease;
}

.checklist-desc {
    font-size: 0.9rem;
    color: #777777;
    margin: 0;
    line-height: 1.5;
}

.checklist-item.checked .checklist-title {
    color: #666666;
    text-decoration: line-through;
}

.checklist-item.checked .checklist-desc {
    opacity: 0.7;
}

@media (max-width: 768px) {
    .category-progress {
        position: relative;
        right: auto;
        left: 0;
        top: auto;
        transform: none;
        display: inline-block;
        margin-top: 8px;
        margin-bottom: 5px;
    }

    .accordion-button {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .accordion-button::after {
        position: absolute;
        right: 20px;
        top: 25px;
    }
}

/* === CHECKLIST SUMMARY === */
.checklist-summary-container {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    animation: fadeIn 0.5s ease;
}

.summary-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #222222;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.summary-category {
    margin-bottom: 20px;
}

.summary-category h5 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 10px;
}

.summary-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.summary-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #555555;
}

.summary-list li::before {
    content: '\F26E';
    /* bi-check-circle-fill */
    font-family: bootstrap-icons;
    position: absolute;
    left: 0;
    top: 2px;
    color: #000000;
    font-size: 14px;
}

.empty-summary-msg {
    color: #888888;
    font-style: italic;
    text-align: center;
    padding: 20px 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media print {
    body * {
        visibility: hidden;
    }

    .checklist-summary-container,
    .checklist-summary-container * {
        visibility: visible;
    }

    .checklist-summary-container {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        box-shadow: none;
        border: none;
    }

    .summary-actions,
    .category-progress {
        display: none !important;
    }

    .accordion {
        display: none !important;
    }
}