/* ===========================
   SERVICIOS
=========================== */

.tarjeta-servicio {
    background: #fff;
    border: 1px solid var(--color-borde);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: .25s ease;
}

    .tarjeta-servicio:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0,0,0,.08);
    }

.tarjeta-servicio__imagen-envoltorio {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f8f2fb;
}

.tarjeta-servicio__imagen {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tarjeta-servicio__imagen--vacia {
    width: 100%;
    min-height: 300px;
    background: var(--color-bg-alt);
}

.tarjeta-servicio__cuerpo {
    display: flex;
    flex-direction: column;
    gap: .8rem;
    padding: 1.25rem;
}

.tarjeta-servicio__nombre {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-texto);
    text-decoration: none;
}

.tarjeta-servicio__precio {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-primario);
    white-space: nowrap;
}

.tarjeta-servicio .boton {
    margin-top: .5rem;
}

.grid-servicios {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}


/* ===========================
   DETALLE DE SERVICIO
=========================== */

.detalle-servicio {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: 3rem;
    align-items: start;
}

.detalle-servicio__galeria {
    width: 100%;
}

.detalle-servicio__imagen-envoltorio {
    width: 100%;
    max-width: 500px;
    height: 700px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 16px;
    background: #f8f2fb;
}

.detalle-servicio__imagen-principal {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detalle-servicio__imagen--vacia {
    width: 100%;
    height: 100%;
    background: var(--color-bg-alt);
}

.detalle-servicio__miniaturas {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-top: 1rem;
}

.detalle-servicio__miniatura {
    width: 80px;
    height: 105px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: #f8f2fb;
    cursor: pointer;
    transition: .2s ease;
}

.detalle-servicio__miniatura:hover {
    border-color: var(--color-secundario);
    transform: translateY(-2px);
}

.detalle-servicio__miniatura img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detalle-servicio__info {
    padding-top: 1rem;
}

@media (max-width: 768px) {

    .detalle-servicio {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .detalle-servicio__imagen-envoltorio {
        max-width: 100%;
        height: 600px;
    }

    .detalle-servicio__info {
        padding-top: 0;
    }

    .detalle-servicio__miniatura {
        width: 65px;
        height: 85px;
    }
}

/* ===========================
   MÓVIL
=========================== */

@media (max-width: 768px) {

    .detalle-servicio {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .detalle-servicio__imagen-envoltorio {
        max-width: 100%;
        height: auto;
        aspect-ratio: 9 / 16;
    }

    .detalle-servicio__imagen-principal {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .detalle-servicio__info {
        padding-top: 0;
    }

    .detalle-servicio__miniatura {
        width: 65px;
        height: 85px;
    }
}
/* ===========================
   IMÁGENES EN ADMINISTRACIÓN
=========================== */

.campo__vista-previa {
    display: block;
    width: 180px;
    height: 240px;
    object-fit: cover;
    border-radius: 12px;
    margin-top: .75rem;
}

.imagenes-referencia-admin {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: .75rem;
}

.imagen-referencia-admin {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
}

    .imagen-referencia-admin .campo__vista-previa {
        width: 160px;
        height: 220px;
        object-fit: cover;
    }


/* ===========================
   FORMULARIOS
=========================== */

.campo {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-bottom: 1.5rem;
}

    .campo label {
        font-weight: 600;
    }

    .campo input,
    .campo select,
    .campo textarea {
        padding: .9rem 1rem;
        border-radius: 12px;
        border: 1px solid var(--color-borde);
        background: white;
        transition: .2s;
    }

        .campo input:focus,
        .campo select:focus,
        .campo textarea:focus {
            outline: none;
            border-color: var(--color-secundario);
            box-shadow: 0 0 0 4px rgba(185,122,217,.15);
        }


/* ===========================
   MÓVIL
=========================== */

@media (max-width: 768px) {

    .grid-servicios {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
        width: 100%;
    }

    .tarjeta-servicio {
        width: 100%;
        min-width: 0;
    }

    .tarjeta-servicio__cuerpo {
        padding: 1rem;
        gap: .5rem;
    }

    .tarjeta-servicio__nombre {
        font-size: 1rem;
    }

    .tarjeta-servicio__precio {
        font-size: .85rem;
        white-space: normal;
        line-height: 1.3;
    }


    /* DETALLE */

    .detalle-servicio {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .detalle-servicio__imagen-envoltorio {
        max-width: 100%;
    }

    .detalle-servicio__imagen {
        width: auto;
        max-width: 100%;
        height: auto;
    }

    .detalle-servicio__miniatura {
        width: 65px;
        height: 85px;
    }

    .detalle-servicio__info {
        padding-top: 0;
    }
}
