/* ========================================
   PÁGINA DE ENCARGOS — AZALEA
   Colores: #EFECE5 (beige), #B5759C (rosa), #121212 (negro), #666 (gris), #e5e5e5 (borde)
   Fuentes: Cormorant (títulos), Quicksand (cuerpo)
   ======================================== */

/* --- SECCIÓN 1: HERO ENCARGOS --- */
.az-commission-hero {
    background-color: #EFECE5;
    padding: 80px 50px;
}

.az-commission-hero-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.az-commission-hero-content h1 {
    font-family: 'Cormorant', serif;
    font-size: 52px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 25px;
    line-height: 1.2;
    color: #121212;
}

.az-commission-hero-content p {
    font-family: 'Quicksand', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 480px;
}

/* Imagen única del hero */
.az-commission-hero-single {
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.az-commission-hero-single > img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

/* Composición de imágenes superpuestas (sin uso actual) */
.az-commission-hero-visual {
    position: relative;
    height: 500px;
}

.az-commission-hero-img {
    position: absolute;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.az-commission-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.az-commission-hero-img:nth-child(1) {
    width: 55%;
    height: 70%;
    top: 0;
    left: 10%;
    z-index: 3;
}

.az-commission-hero-img:nth-child(2) {
    width: 45%;
    height: 55%;
    top: 20%;
    right: 0;
    z-index: 2;
}

.az-commission-hero-img:nth-child(3) {
    width: 35%;
    height: 45%;
    bottom: -50px;
    left: 0;
    z-index: 1;
}

/* --- CAROUSEL ENCARGOS REALIZADOS --- */
/* Sizing de tarjetas dentro del carousel (mismo sistema que index.html) */
.az-carousel-track .az-commission-work-card {
    flex: none;
    width: calc((100cqi - 60px) / 3);
    min-width: 0;
    margin-bottom: 0;
}

@container (max-width: 1024px) {
    .az-carousel-track .az-commission-work-card {
        width: calc((100cqi - 30px) / 2);
    }
}

@container (max-width: 768px) {
    .az-carousel-track .az-commission-work-card {
        width: 100cqi;
    }
}

/* --- SECCIÓN 2: ENCARGOS REALIZADOS --- */
.az-commission-works {
    padding: 80px 50px;
    background-color: #fff;
}

.az-commission-works-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.az-commission-works-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 60px;
}

.az-commission-works-header h2 {
    font-family: 'Cormorant', serif;
    font-size: 38px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    flex-shrink: 0;
    color: #121212;
}

.az-commission-works-header p {
    font-family: 'Quicksand', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    max-width: 500px;
    font-weight: 300;
}

.az-commission-works-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.az-commission-work-card {
    position: relative;
    overflow: hidden;
    background: white;
    border: 1px solid #e5e5e5;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: #121212;
    display: block;
}

.az-commission-work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.az-commission-work-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.az-commission-work-card-info {
    padding: 20px;
}

.az-commission-work-card-info h3 {
    font-family: 'Cormorant', serif;
    font-size: 20px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: #121212;
}

.az-commission-work-card-info p {
    font-family: 'Quicksand', sans-serif;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    font-weight: 300;
}

/* --- SECCIÓN 3: POR QUÉ ELEGIRNOS + CÓMO FUNCIONA --- */
.az-commission-why {
    padding: 80px 50px;
    background-color: #fff;
}

.az-commission-why-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.az-commission-why-image {
    overflow: hidden;
}

.az-commission-why-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.az-commission-why-text {
    background-color: #EFECE5;
    padding: 50px;
}

.az-commission-why-text h2 {
    font-family: 'Cormorant', serif;
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
    color: #121212;
}

.az-commission-check-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.az-commission-check-list li {
    font-family: 'Quicksand', sans-serif;
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    padding: 8px 0 8px 32px;
    position: relative;
    font-weight: 300;
}

/* Icono check en CSS puro */
.az-commission-check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15px;
    width: 14px;
    height: 7px;
    border-left: 2px solid #B5759C;
    border-bottom: 2px solid #B5759C;
    transform: rotate(-45deg);
}

.az-commission-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step;
}

.az-commission-steps li {
    font-family: 'Quicksand', sans-serif;
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    padding: 10px 0 10px 42px;
    position: relative;
    font-weight: 300;
    counter-increment: step;
}

.az-commission-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 10px;
    width: 28px;
    height: 28px;
    background: #B5759C;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Quicksand', sans-serif;
}

/* --- SECCIÓN 4: PREGUNTAS FRECUENTES --- */
.az-commission-faq {
    padding: 80px 50px;
    background-color: #EFECE5;
}

.az-commission-faq-inner {
    max-width: 900px;
    margin: 0 auto;
}

.az-commission-faq-inner > h2 {
    font-family: 'Cormorant', serif;
    font-size: 38px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 50px;
    color: #121212;
}

/* Items del acordeón — mismo estilo visual que faq.html */
.az-faq-item {
    border-bottom: 1px solid #d4d0c8;
}

.az-faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: 'Quicksand', sans-serif;
    font-size: 17px;
    font-weight: 500;
    text-align: left;
    color: #121212;
    transition: color 0.3s;
}

.az-faq-question:hover {
    color: #B5759C;
}

.az-faq-question span:first-child {
    flex: 1;
    padding-right: 20px;
}

.az-faq-icon {
    font-size: 22px;
    font-weight: 300;
    color: #B5759C;
    transition: transform 0.3s;
    flex-shrink: 0;
    width: 22px;
    text-align: center;
    font-family: 'Quicksand', sans-serif;
    line-height: 1;
}

.az-faq-item.active .az-faq-icon {
    transform: rotate(45deg);
}

.az-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.az-faq-answer p {
    font-family: 'Quicksand', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 15px;
    font-weight: 300;
}

.az-faq-answer p:last-child {
    margin-bottom: 25px;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .az-commission-works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Hero */
    .az-commission-hero {
        padding: 50px 20px;
    }

    .az-commission-hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .az-commission-hero-content h1 {
        font-size: 36px;
    }

    .az-commission-hero-visual {
        height: 300px;
    }

    .az-commission-hero-single > img {
        height: 300px;
    }

    .az-commission-hero-img:nth-child(1) {
        width: 60%;
        height: 65%;
        left: 5%;
    }

    .az-commission-hero-img:nth-child(2) {
        width: 50%;
        height: 50%;
        top: 25%;
    }

    .az-commission-hero-img:nth-child(3) {
        width: 40%;
        height: 40%;
    }

    /* Obras realizadas */
    .az-commission-works {
        padding: 50px 20px;
    }

    .az-commission-works-header {
        flex-direction: column;
        gap: 15px;
    }

    .az-commission-works-header h2 {
        font-size: 28px;
    }

    .az-commission-works-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* Por qué + Cómo funciona */
    .az-commission-why {
        padding: 50px 20px;
    }

    .az-commission-why-inner {
        grid-template-columns: 1fr;
    }

    .az-commission-why-image img {
        height: 350px;
    }

    .az-commission-why-text {
        padding: 30px 25px;
    }

    .az-commission-why-text h2 {
        font-size: 26px;
    }

    /* FAQ */
    .az-commission-faq {
        padding: 50px 20px;
    }

    .az-commission-faq-inner > h2 {
        font-size: 28px;
    }

    .az-faq-question {
        font-size: 15px;
        padding: 20px 0;
    }

    .az-faq-answer p {
        font-size: 14px;
    }
}
